/* Class112 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
package com.jagex;

public class Class112 implements Interface17, Interface19, Interface73 {
	Class53_Sub3 aClass53_Sub3_1346;
	Class98_Sub1_Sub1 aClass98_Sub1_Sub1_1347;
	public Class590 aClass590_1348;
	Class635[] aClass635Array1349;
	public static Class472 aClass472_1350;
	static Class73 aClass73_1351;
	static Class472 aClass472_1352;

	public int method1936(int i, int i_0_) {
		return aClass635Array1349[i].method10415(2105016648);
	}

	public int method1937(int i, int i_1_) {
		return aClass635Array1349[i].method10425((client.aBool11157 ? Class673.aClass673_8609 : Class673.aClass673_8608), -1410857309);
	}

	public VarBitDefinitions method109(int i) {
		VarBitDefinitions class309 = (VarBitDefinitions) aClass53_Sub3_1346.getDefinition(i, (byte) -6);
		if (class309.aClass159_3367.aClass470_1755 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return class309;
	}

	public int method487(int i, int i_2_) {
		return aClass635Array1349[i].method10414((client.aBool11157 ? Class673.aClass673_8609 : Class673.aClass673_8608), (short) -8192);
	}

	public int method1938(int i, byte i_3_) {
		return aClass635Array1349[i].method10410((byte) 2);
	}

	public int method1939(int i) {
		return aClass635Array1349[i].method10424(-2081041600);
	}

	public Class159 method110(VarDomainType class470, int i, int i_4_) {
		if (class470 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return (Class159) aClass98_Sub1_Sub1_1347.getDefinition(i, (byte) 24);
	}

	public int method1940(int i) {
		return aClass635Array1349[i].method10424(-1821954363);
	}

	public int method94(Class159 class159, int i) {
		return aClass590_1348.method94(class159, -461650463);
	}

	public int method93(VarBitDefinitions class309, int i) {
		return aClass590_1348.method93(class309, 288246785);
	}

	public int method1941(int i) {
		return aClass635Array1349[i].method10425((client.aBool11157 ? Class673.aClass673_8609 : Class673.aClass673_8608), -955466847);
	}

	public int method1942(int i) {
		return aClass635Array1349[i].method10425((client.aBool11157 ? Class673.aClass673_8609 : Class673.aClass673_8608), 149350850);
	}

	public int method95(Class159 class159) {
		return aClass590_1348.method94(class159, 1809041132);
	}

	public int method1943(int i, byte i_5_) {
		return aClass635Array1349[i].method10424(-1840687181);
	}

	public int method488(int i) {
		return aClass635Array1349[i].method10414((client.aBool11157 ? Class673.aClass673_8609 : Class673.aClass673_8608), (short) -8192);
	}

	public int method1944(int i) {
		return aClass635Array1349[i].method10415(2090943268);
	}

	public Class159 method105(VarDomainType class470, int i) {
		if (class470 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return (Class159) aClass98_Sub1_Sub1_1347.getDefinition(i, (byte) -121);
	}

	public VarBitDefinitions method108(int i) {
		VarBitDefinitions class309 = (VarBitDefinitions) aClass53_Sub3_1346.getDefinition(i, (byte) -3);
		if (class309.aClass159_3367.aClass470_1755 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return class309;
	}

	public Class112(Class98_Sub1_Sub1 class98_sub1_sub1, Class53_Sub3 class53_sub3, int i) {
		aClass635Array1349 = new Class635[i];
		aClass590_1348 = new Class590();
		aClass98_Sub1_Sub1_1347 = class98_sub1_sub1;
		aClass53_Sub3_1346 = class53_sub3;
	}

	public VarBitDefinitions method107(int i) {
		VarBitDefinitions class309 = (VarBitDefinitions) aClass53_Sub3_1346.getDefinition(i, (byte) 34);
		if (class309.aClass159_3367.aClass470_1755 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return class309;
	}

	public int method97(VarBitDefinitions class309) {
		return aClass590_1348.method93(class309, -861281987);
	}

	public int method96(Class159 class159) {
		return aClass590_1348.method94(class159, 1294398334);
	}

	public VarBitDefinitions method106(int i, int i_6_) {
		VarBitDefinitions class309 = (VarBitDefinitions) aClass53_Sub3_1346.getDefinition(i, (byte) 43);
		if (class309.aClass159_3367.aClass470_1755 != VarDomainType.PLAYER_CONFIGS)
			return null;
		return class309;
	}

	public static void method1945(int i) {
		Class191.aClass14_2160.method733(962642678);
		Class191.aClass708_2159.method14235((byte) 38);
		Class191.aClass204Array2168 = null;
		Class191.aClass192Array2157 = null;
		Class191.aClass190Array2158 = null;
		Class191.aClass206Array2166 = null;
		Class174.aClass194Array1855 = null;
		Class191.anInt2156 = -1078043049;
		Class191.anInt2162 = 0;
		Class191.anInt2163 = 0;
		Class481.aClass195_5474 = null;
		Class191.anInt2155 = -1159354201;
		Class191.anInt2161 = 403248807;
		if (Class191.aBool2164) {
			client.aShort11143 = Class110.aShort1333;
			client.aShort11205 = Class191.aShort2167;
			client.aShort11278 = Class191.aShort2165;
			client.aShort11020 = Class618.aShort8062;
			Class191.aBool2164 = false;
		}
	}

	static void method1946(Class669 class669, int i) {
		class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = Class158.method2555(-891900129);
	}

	static final void method1947(Class669 class669, byte i) {
		int i_7_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		ItemDefinitions class12 = ((ItemDefinitions) Class523_Sub37.aClass53_Sub8_10677.getDefinition(i_7_, (byte) -23));
		class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = class12.aBool161 ? 1 : 0;
	}

	static final void method1948(Class669 class669, int i) {
		if (Class647_Sub1_Sub3_Sub1.aClass298_Sub1_11957.method5342(-1390175100) != Class291.aClass291_3151)
			throw new RuntimeException();
		class669.anObjectArray8559[(class669.anInt8560 += 1235970069) * 240723773 - 1] = Class647_Sub1_Sub3_Sub1.aClass298_Sub1_11957.method5346((byte) 27);
	}

	static final void method1949(Class669 class669, int i) {
		int i_8_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		Class239 class239 = ((Class239) Class287.aClass53_Sub1_3102.getDefinition(i_8_, (byte) -84));
		class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = class239.anInt2402 * 933897945;
	}

	static final void method1950(Class669 class669, int i) {
		String string = null;
		if (null != Class454.aClass63_4979)
			string = Class454.aClass63_4979.method1426((byte) 1);
		if (string == null)
			string = "";
		class669.anObjectArray8559[(class669.anInt8560 += 1235970069) * 240723773 - 1] = string;
	}

	static final void method1951(Class669 class669, int i) {
		int i_9_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		Class523_Sub27_Sub17 class523_sub27_sub17 = Class502.method8158((byte) 35);
		if (class523_sub27_sub17 != null) {
			boolean bool = class523_sub27_sub17.method18193(i_9_ >> 28 & 0x3, i_9_ >> 14 & 0x3fff, i_9_ & 0x3fff, Class663.anIntArray8517, (short) -3655);
			if (bool) {
				class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = Class663.anIntArray8517[1];
				class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = Class663.anIntArray8517[2];
			} else {
				class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = -1;
				class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = -1;
			}
		} else {
			class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = -1;
			class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = -1;
		}
	}

	static final void method1952(Class669 class669, int i) {
		class669.anInt8562 -= 204911810;
		if (class669.aLongArray8561[class669.anInt8562 * 2056702369] > class669.aLongArray8561[1 + class669.anInt8562 * 2056702369])
			class669.anInt8579 += -1774429083 * (class669.anIntArray8577[1180759405 * class669.anInt8579]);
	}

	public static void method1953(boolean bool, int i) {
		for (Class523_Sub3 class523_sub3 = ((Class523_Sub3) Class523_Sub3.aClass708_10364.method14240(1651306307)); class523_sub3 != null; class523_sub3 = (Class523_Sub3) Class523_Sub3.aClass708_10364.method14244((byte) 63)) {
			if (null != class523_sub3.aClass489_10389) {
				class523_sub3.aClass489_10389.method7960(150, (byte) 92);
				Class254.aClass217_2743.method3864(class523_sub3.aClass489_10389, (byte) 24);
				class523_sub3.aClass489_10389 = null;
			}
			if (null != class523_sub3.aClass489_10379) {
				class523_sub3.aClass489_10379.method7960(150, (byte) 44);
				Class254.aClass217_2743.method3864(class523_sub3.aClass489_10379, (byte) 24);
				class523_sub3.aClass489_10379 = null;
			}
			class523_sub3.method8661(607052656);
		}
		if (bool) {
			for (Class523_Sub3 class523_sub3 = ((Class523_Sub3) Class523_Sub3.aClass708_10365.method14240(1152293453)); null != class523_sub3; class523_sub3 = (Class523_Sub3) Class523_Sub3.aClass708_10365.method14244((byte) 52)) {
				if (class523_sub3.aClass489_10389 != null) {
					class523_sub3.aClass489_10389.method7960(150, (byte) 111);
					Class254.aClass217_2743.method3864(class523_sub3.aClass489_10389, (byte) 24);
					class523_sub3.aClass489_10389 = null;
				}
				class523_sub3.method8661(607052656);
			}
			for (Class523_Sub3 class523_sub3 = ((Class523_Sub3) Class523_Sub3.aClass14_10390.method735(-380907255)); null != class523_sub3; class523_sub3 = (Class523_Sub3) Class523_Sub3.aClass14_10390.method749(-1775988027)) {
				if (null != class523_sub3.aClass489_10389) {
					class523_sub3.aClass489_10389.method7960(150, (byte) 41);
					Class254.aClass217_2743.method3864(class523_sub3.aClass489_10389, (byte) 24);
					class523_sub3.aClass489_10389 = null;
				}
				class523_sub3.method8661(607052656);
			}
		}
	}

	public static void method1954(Class159 class159, int i) {
		Class523_Sub27_Sub7 class523_sub27_sub7 = Class552.createGameTask(2, (long) (class159.anInt1754 * -80020449));
		class523_sub27_sub7.method17962((byte) 27);
	}
}
