/* Class520 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.File;
import java.io.RandomAccessFile;
import java.util.HashMap;
import java.util.Map;

public class Class520 implements Interface47 {
	static Class520 aClass520_6947;
	static Class520 aClass520_6948;
	static Class520 aClass520_6949;
	static Class520 aClass520_6950;
	static Class520 aClass520_6951 = new Class520(0);
	static Class520 aClass520_6952;
	int anInt6953;
	static int anInt6954;

	public int method50() {
		return ((Class520) this).anInt6953 * 1875200761;
	}

	public int method132(int i) {
		return ((Class520) this).anInt6953 * 1875200761;
	}

	static {
		aClass520_6948 = new Class520(1);
		aClass520_6947 = new Class520(2);
		aClass520_6950 = new Class520(3);
		aClass520_6949 = new Class520(4);
		aClass520_6952 = new Class520(5);
	}

	public int method311() {
		return ((Class520) this).anInt6953 * 1875200761;
	}

	public static Class520[] method11655() {
		return (new Class520[] { aClass520_6952, aClass520_6951, aClass520_6947, aClass520_6948, aClass520_6949, aClass520_6950 });
	}

	Class520(int i) {
		((Class520) this).anInt6953 = -1944365239 * i;
	}

	static final void method11656(Class477 class477, byte i) {
		int i_0_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		Class35 class35 = Class109.method2606(i_0_, -1589100401);
		Class118 class118 = Class35.aClass118Array464[i_0_ >> 16];
		Class348_Sub3.method16425(class35, class118, class477, -1847572139);
	}

	static void method11657(int i) {
		if (Class92_Sub20.aClass587_Sub11_10075.aClass441_Sub5_8638.method13747((byte) -26) == 1)
			Class310_Sub2.aClass219_9981.method4510(new Class227(Class218.aClass218_2611, null), -1641833171);
		else {
			client.aClass237_8070.method4757((byte) 50);
			Class109.method2610(735569911);
		}
	}

	public static Interface47 method11658(Class var_class, int i, int i_1_) {
		synchronized (Class449.aMap6356) {
			Map map = (Map) Class449.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(-318448327)), interface47);
				}
				Class449.aMap6356.put(var_class, map);
			}
			Interface47 interface47 = (Interface47) map.get(Integer.valueOf(i));
			return interface47;
		}
	}

	static final void method11659(Class477 class477, int i) {
		int i_3_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		Class587_Sub34_Sub9 class587_sub34_sub9 = Class578.method12450(i_3_);
		if (class587_sub34_sub9 == null) {
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = 0;
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = 0;
		} else {
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = (class587_sub34_sub9.anInt10727 * -2024490155 - class587_sub34_sub9.anInt10730 * 472254095);
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = (-2075994769 * class587_sub34_sub9.anInt10729 - class587_sub34_sub9.anInt10728 * -856839229);
		}
	}

	public static File method11660(String string, byte i) {
		if (!Class249.aBool3992)
			throw new RuntimeException("");
		File file = (File) Class249.aHashtable3993.get(string);
		if (file != null)
			return file;
		File file_4_ = new File(Class249.aFile3991, string);
		RandomAccessFile randomaccessfile = null;
		File file_5_;
		try {
			File file_6_ = new File(file_4_.getParent());
			if (!file_6_.exists())
				throw new RuntimeException("");
			randomaccessfile = new RandomAccessFile(file_4_, "rw");
			int i_7_ = randomaccessfile.read();
			randomaccessfile.seek(0L);
			randomaccessfile.write(i_7_);
			randomaccessfile.seek(0L);
			randomaccessfile.close();
			Class249.aHashtable3993.put(string, file_4_);
			file_5_ = file_4_;
		} catch (Exception exception) {
			try {
				if (null != randomaccessfile) {
					randomaccessfile.close();
					Object object = null;
				}
			} catch (Exception exception_8_) {
				/* empty */
			}
			throw new RuntimeException();
		}
		return file_5_;
	}

	static final void method11661(Class477 class477, int i) {
		int i_9_ = Class389.anInt5698 * -415408091;
		int i_10_ = Class315.anInt4719 * 1842447885;
		int i_11_ = -1;
		if (Class423.aBool6174) {
			Class443[] class443s = Class329.method6361(-1882120222);
			for (int i_12_ = 0; i_12_ < class443s.length; i_12_++) {
				Class443 class443 = class443s[i_12_];
				if (i_9_ == class443.anInt6327 * -1567540405 && i_10_ == class443.anInt6325 * -1775077055) {
					i_11_ = i_12_;
					break;
				}
			}
		}
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = i_11_;
	}
}
