/* Class449 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.HashMap;
import java.util.Map;

public class Class449 {
	static Map aMap6356 = new HashMap();
	static Class587_Sub34_Sub8 aClass587_Sub34_Sub8_6357;

	public static Interface47 method8049(Class var_class, int i) {
		synchronized (aMap6356) {
			Map map = (Map) aMap6356.get(var_class);
			if (map == null) {
				map = new HashMap();
				Interface47[] interface47s = (Interface47[]) var_class.getEnumConstants();
				for (int i_0_ = 0; i_0_ < interface47s.length; i_0_++) {
					Interface47 interface47 = interface47s[i_0_];
					map.put(Integer.valueOf(interface47.method132(-1095463309)), interface47);
				}
				aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	public static Interface47 method8050(Class var_class, int i) {
		synchronized (aMap6356) {
			Map map = (Map) aMap6356.get(var_class);
			if (map == null) {
				map = new HashMap();
				Interface47[] interface47s = (Interface47[]) var_class.getEnumConstants();
				for (int i_1_ = 0; i_1_ < interface47s.length; i_1_++) {
					Interface47 interface47 = interface47s[i_1_];
					map.put(Integer.valueOf(interface47.method132(499415444)), interface47);
				}
				aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	public static Interface47 method8051(Class var_class, int i) {
		synchronized (aMap6356) {
			Map map = (Map) aMap6356.get(var_class);
			if (map == null) {
				map = new HashMap();
				Interface47[] interface47s = (Interface47[]) var_class.getEnumConstants();
				for (int i_2_ = 0; i_2_ < interface47s.length; i_2_++) {
					Interface47 interface47 = interface47s[i_2_];
					map.put(Integer.valueOf(interface47.method132(-666063677)), interface47);
				}
				aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	public static Interface47 method8052(Class var_class, int i) {
		synchronized (aMap6356) {
			Map map = (Map) aMap6356.get(var_class);
			if (map == null) {
				map = new HashMap();
				Interface47[] interface47s = (Interface47[]) var_class.getEnumConstants();
				for (int i_3_ = 0; i_3_ < interface47s.length; i_3_++) {
					Interface47 interface47 = interface47s[i_3_];
					map.put(Integer.valueOf(interface47.method132(-1203061999)), interface47);
				}
				aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	public static Interface47 method8053(Class var_class, int i) {
		synchronized (aMap6356) {
			Map map = (Map) aMap6356.get(var_class);
			if (map == null) {
				map = new HashMap();
				Interface47[] interface47s = (Interface47[]) var_class.getEnumConstants();
				for (int i_4_ = 0; i_4_ < interface47s.length; i_4_++) {
					Interface47 interface47 = interface47s[i_4_];
					map.put(Integer.valueOf(interface47.method132(-1681136589)), interface47);
				}
				aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	Class449() throws Throwable {
		throw new Error();
	}

	public static Interface47 method8054(Interface47[] interface47s, int i) {
		Interface47[] interface47s_5_ = interface47s;
		for (int i_6_ = 0; i_6_ < interface47s_5_.length; i_6_++) {
			Interface47 interface47 = interface47s_5_[i_6_];
			if (i == interface47.method132(-965095434))
				return interface47;
		}
		return null;
	}

	public static Interface47 method8055(Interface47[] interface47s, int i) {
		Interface47[] interface47s_7_ = interface47s;
		for (int i_8_ = 0; i_8_ < interface47s_7_.length; i_8_++) {
			Interface47 interface47 = interface47s_7_[i_8_];
			if (i == interface47.method132(466372485))
				return interface47;
		}
		return null;
	}

	public static void method8056(byte i) {
		for (Class587_Sub7 class587_sub7 = ((Class587_Sub7) Class451.aClass445_6370.method8007(-1605012728)); null != class587_sub7; class587_sub7 = (Class587_Sub7) Class451.aClass445_6370.method7994(-1641458918)) {
			if (((Class587_Sub7) class587_sub7).aClass595_Sub1_8534.method12837(1771369823))
				Class587_Sub28.method15917((((Class587_Sub7) class587_sub7).anInt8535) * 327605167, 1518584285);
			else {
				((Class587_Sub7) class587_sub7).aClass595_Sub1_8534.method14429((byte) 84);
				try {
					((Class587_Sub7) class587_sub7).aClass595_Sub1_8534.method12828((byte) 26);
				} catch (Exception exception) {
					Class423.method7676(new StringBuilder().append("").append(327605167 * (((Class587_Sub7) class587_sub7).anInt8535)).toString(), exception, 1180604739);
					Class587_Sub28.method15917(327605167 * (((Class587_Sub7) class587_sub7).anInt8535), -1053219628);
				}
				if (!((Class587_Sub7) class587_sub7).aBool8537 && !((Class587_Sub7) class587_sub7).aBool8536) {
					Class587_Sub18_Sub3 class587_sub18_sub3 = ((Class587_Sub7) class587_sub7).aClass595_Sub1_8534.method12835((byte) -52);
					if (class587_sub18_sub3 != null) {
						Class587_Sub37_Sub1 class587_sub37_sub1 = class587_sub18_sub3.method16777((byte) -37);
						if (class587_sub37_sub1 != null) {
							class587_sub37_sub1.method16855(((((Class587_Sub7) class587_sub7).anInt8532) * -2044314655), -1528449385);
							((Class587_Sub7) class587_sub7).aBool8537 = true;
						}
					}
				}
			}
		}
	}

	public static boolean method8057(int i, int i_9_) {
		return i == (i & -i);
	}

	static final void method8058(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = (null == client.aClass35_8198 ? -1 : client.aClass35_8198.anInt460 * -1206620715);
	}

	public static Class307 method8059(Class587_Sub4 class587_sub4, int i) {
		Class307 class307 = Class497_Sub1_Sub3_Sub5.method17464(class587_sub4, (short) 27389);
		int i_10_ = class587_sub4.method14408(1097722201);
		int i_11_ = class587_sub4.method14408(1097722201);
		return new Class307_Sub3(class307.aClass387_4623, class307.aClass390_4620, 1692985189 * class307.anInt4621, -1643264885 * class307.anInt4619, class307.anInt4622 * -1625577375, -827947683 * class307.anInt4624, class307.anInt4627 * -172735191, class307.anInt4626 * -1299627293, class307.anInt4625 * 3864871, i_10_, i_11_);
	}

	static Class204 method8060(int i, byte i_12_) {
		if (0 == i) {
			if (3.0 == (double) Class578_Sub1.aFloat7409)
				return Class18.aClass204_249;
			if ((double) Class578_Sub1.aFloat7409 == 4.0)
				return Class212_Sub5.aClass204_10002;
			if ((double) Class578_Sub1.aFloat7409 == 6.0)
				return Class450.aClass204_6368;
			if ((double) Class578_Sub1.aFloat7409 >= 8.0)
				return Class121.aClass204_1668;
		} else if (1 == i) {
			if ((double) Class578_Sub1.aFloat7409 == 3.0)
				return Class450.aClass204_6368;
			if (4.0 == (double) Class578_Sub1.aFloat7409)
				return Class121.aClass204_1668;
			if ((double) Class578_Sub1.aFloat7409 == 6.0)
				return Class261.aClass204_4107;
			if ((double) Class578_Sub1.aFloat7409 >= 8.0)
				return Class487.aClass204_6611;
		} else if (2 == i) {
			if ((double) Class578_Sub1.aFloat7409 == 3.0)
				return Class261.aClass204_4107;
			if ((double) Class578_Sub1.aFloat7409 == 4.0)
				return Class487.aClass204_6611;
			if ((double) Class578_Sub1.aFloat7409 == 6.0)
				return Class179.aClass204_2173;
			if ((double) Class578_Sub1.aFloat7409 >= 8.0)
				return Class68.aClass204_1053;
		}
		return null;
	}

	static final void method8061(Class477 class477, int i) {
		Class480 class480 = (((Class477) class477).aBool6510 ? ((Class477) class477).aClass480_6506 : ((Class477) class477).aClass480_6492);
		Class35 class35 = ((Class480) class480).aClass35_6531;
		Class118 class118 = ((Class480) class480).aClass118_6532;
		Class570.method12355(class35, class118, true, 0, class477, -774065592);
	}
}
