/* Class528 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.File;
import java.io.IOException;

public class Class528 {
	int[] anIntArray7012;
	short[] aShortArray7013;
	long aLong7014;
	short[] aShortArray7015;

	public Class528(long l, int[] is, short[] is_0_, short[] is_1_) {
		((Class528) this).aLong7014 = -8469321105843446547L * l;
		((Class528) this).anIntArray7012 = is;
		((Class528) this).aShortArray7013 = is_0_;
		((Class528) this).aShortArray7015 = is_1_;
	}

	static final void method11704(Class477 class477, byte i) {
		int i_2_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		Class35 class35 = Class109.method2606(i_2_, 1814992932);
		Class118 class118 = Class35.aClass118Array464[i_2_ >> 16];
		Class243_Sub5.method16073(class35, class118, class477, -566417628);
	}

	static final void method11705(Class477 class477, int i) {
		int i_3_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class246.aClass5_3969.method473(i_3_, -1540012923);
	}

	static final void method11706(Class477 class477, byte i) {
		((Class477) class477).anInt6498 -= -1140365234;
		int i_4_ = (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127]);
		int i_5_ = (((Class477) class477).anIntArray6497[1 + 2028895127 * ((Class477) class477).anInt6498]);
		if (Class35.aClass118Array464[i_4_] == null) {
			if (i > 0)
				((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127) - 1] = 0;
		} else
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = (Class35.aClass118Array464[i_4_].aClass35Array1648[i_5_].anInt627) * 1510284373;
	}

	public static Class415 method11707(String string, String string_6_, boolean bool, byte i) {
		File file = new File(Class264.aFile4125, new StringBuilder().append("preferences").append(string).append(".dat").toString());
		do {
			if (file.exists()) {
				Class415 class415;
				try {
					Class415 class415_7_ = new Class415(file, "rw", 10000L);
					class415 = class415_7_;
				} catch (IOException ioexception) {
					break;
				}
				return class415;
			}
		} while (false);
		String string_8_ = "";
		if (33 == 1828790157 * Class9.anInt56)
			string_8_ = "_rc";
		else if (34 == 1828790157 * Class9.anInt56)
			string_8_ = "_wip";
		File file_9_ = new File(Class6.aString38, new StringBuilder().append("jagex_").append(string_6_).append("_preferences").append(string).append(string_8_).append(".dat").toString());
		do {
			if (!bool && file_9_.exists()) {
				Class415 class415;
				try {
					Class415 class415_10_ = new Class415(file_9_, "rw", 10000L);
					class415 = class415_10_;
				} catch (IOException ioexception) {
					break;
				}
				return class415;
			}
		} while (false);
		Class415 class415;
		try {
			Class415 class415_11_ = new Class415(file, "rw", 10000L);
			class415 = class415_11_;
		} catch (IOException ioexception) {
			throw new RuntimeException();
		}
		return class415;
	}

	static final void method11708(Class477 class477, byte i) {
		int i_12_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = (Class188.aClass618_2249.method13129(i_12_, 2140133738).anInt10848) * -835997759;
	}
}
