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

public class VarDomainType implements Interface75 {
	public static VarDomainType aClass470_5345;
	public static VarDomainType NPC_CONFIGS;
	static VarDomainType REGION_CONFIGS;
	public static VarDomainType CLAN_CONFIGS;
	static VarDomainType WORLD_CONFIGS;
	public static VarDomainType OBJECT_CONFIGS;
	public static VarDomainType CLIENT_CONFIGS;
	public static VarDomainType CLAN_SETTING_CONFIGS;
	static VarDomainType aClass470_5353;
	public static VarDomainType PLAYER_CONFIGS = new PlayerVarDomainType(JS5ConfigStruct.aClass656_8436, 0);
	static VarDomainType aClass470_5355;
	JS5ConfigStruct js5ConfigStruct;
	int groupId;

	VarDomainType(JS5ConfigStruct js5ConfigStruct, int groupId) {
		this.js5ConfigStruct = js5ConfigStruct;
		this.groupId = -531011657 * groupId;
	}

	public Object method7619(Class159 class159, int i) {
		if (class159.aBool1758)
			return method7620(class159, -1913025020);
		return class159.aClass464_1756.method7538(1635185731);
	}

	Object method7620(Class159 class159, int i) {
		return class159.aClass464_1756.method7538(1635185731);
	}

	public int method82() {
		return groupId * 1059005959;
	}

	static {
		NPC_CONFIGS = new NPCVarDomainType(JS5ConfigStruct.aClass656_8478, 1);
		CLIENT_CONFIGS = new ClientVarDomainType(JS5ConfigStruct.aClass656_8480, 2);
		WORLD_CONFIGS = new WorldVarDomainType(JS5ConfigStruct.aClass656_8490, 3);
		REGION_CONFIGS = new VarDomainType(JS5ConfigStruct.aClass656_8481, 4);
		OBJECT_CONFIGS = new VarDomainType(JS5ConfigStruct.aClass656_8482, 5);
		CLAN_CONFIGS = new VarDomainType(JS5ConfigStruct.aClass656_8483, 6);
		CLAN_SETTING_CONFIGS = new VarDomainType(JS5ConfigStruct.aClass656_8484, 7);
		aClass470_5353 = new Class470_Sub4(JS5ConfigStruct.aClass656_8446, 8);
		aClass470_5345 = new VarDomainType(JS5ConfigStruct.aClass656_8496, 9);
		aClass470_5355 = new VarDomainType(JS5ConfigStruct.aClass656_8466, 10);
	}

	public int method101() {
		return groupId * 1059005959;
	}

	public static VarDomainType[] getVarDomainTypes(byte i) {
		return new VarDomainType[] { WORLD_CONFIGS, NPC_CONFIGS, CLAN_SETTING_CONFIGS, aClass470_5355, OBJECT_CONFIGS, CLIENT_CONFIGS, aClass470_5353, REGION_CONFIGS, PLAYER_CONFIGS, CLAN_CONFIGS, aClass470_5345 };
	}

	public final JS5ConfigStruct getCurrentConfigStruct(byte i) {
		return js5ConfigStruct;
	}

	public static void method7628(int i) {
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub19_10623), 2, 1442850005);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub19_10634), 2, -952564196);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub20_10616), 1, 155724068);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub40_10615), 1, -1361308905);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub37_10642), 1, 1341023079);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub13_10613), 1, 1956443126);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub7_10627), 1, 31494454);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub8_10628), 1, -758028842);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub10_10619), 1, -1001423138);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub12_10618), 1, 1155029092);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub4_10625), 0, 1600813766);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub14_10598), 1, 1960858587);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub39_10605), 0, 1240749991);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub39_10606), 0, 677319634);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub9_10622), 1, 1427512469);
		Class449.aClass523_Sub33_4946.method16240(Class449.aClass523_Sub33_4946.aClass687_Sub16_10624, 1532564021 * Class284.aClass284_3076.anInt3075, 1576513520);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub30_10610), 0, 110318296);
		if (null != Class31.aClass178_303 && Class31.aClass178_303.method3030() && Class31.aClass178_303.method3146())
			Class31.aClass178_303.method3145();
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub41_10626), 1, 1327009678);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub21_10604), 1, -1070170426);
		Class562.method9462((byte) 1);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub42_10612), 1, 436045386);
		Class449.aClass523_Sub33_4946.method16240((Class449.aClass523_Sub33_4946.aClass687_Sub31_10643), 3, -1342898244);
		Class165.method2655((byte) 114);
		client.aClass505_11019.method8271((byte) 8).method10249(472516167);
		client.aBool11133 = true;
	}

	static final void method7629(Class669 class669, int i) {
		int i_2_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		class669.anObjectArray8559[(class669.anInt8560 += 1235970069) * 240723773 - 1] = ((Class212) Class461.aClass218_5122.method3972((short) 256).get(i_2_)).method3825((byte) -58);
	}

	public static Class2 method7630(ItemDefinitions class12, RSBuffer class523_sub34, int i) {
		return Class625.method10220(class12, class523_sub34, 2, 812564660);
	}

	static final void method7631(Class669 class669, int i) {
		class669.anInt8560 -= -587057089;
		String string = ((String) class669.anObjectArray8559[class669.anInt8560 * 240723773]);
		String string_3_ = ((String) class669.anObjectArray8559[240723773 * class669.anInt8560 + 1]);
		String string_4_ = ((String) class669.anObjectArray8559[2 + 240723773 * class669.anInt8560]);
		boolean bool = ((class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]) == 1);
		Class223.method4147(string, string_3_, string_4_, bool, (byte) -13);
	}

	static final void method7632(int i) {
		Class624.aClass53_Sub12_8131.method1299(5, (byte) -66);
		Class519.aClass53_Sub5_7059.method1299(5, (byte) -94);
		Class448.aClass53_Sub6_4945.method1299(5, (byte) -96);
		client.aClass505_11019.method8244(1767923272).method1299(5, (byte) -110);
		Class174.aClass53_Sub7_1856.method1299(5, (byte) -42);
		Class523_Sub37.aClass53_Sub8_10677.method1299(5, (byte) -63);
		TimeUtils.aClass53_Sub13_2492.method1299(5, (byte) -77);
		Class412.aClass53_Sub19_4556.method1299(5, (byte) -22);
		Class539.aClass53_Sub3_7213.method1299(5, (byte) -111);
		Class669.aClass98_Sub1_Sub1_8582.method17702(5, (byte) 4);
		Class265.aClass98_Sub1_Sub2_2858.method17721(5, (short) -2562);
		Class663.aClass98_Sub1_Sub2_8525.method17721(5, (short) 7107);
		Class159.aClass98_Sub1_Sub2_1759.method17721(5, (short) -10705);
		Class531.aClass98_Sub1_Sub2_7125.method17721(5, (short) -9675);
		Class602.aClass98_Sub1_Sub2_7933.method17721(5, (short) -5076);
		Class80.aClass53_Sub17_866.method1299(5, (byte) 6);
		Class287.aClass53_Sub1_3102.method1299(5, (byte) -61);
		Class334.aClass53_Sub14_3544.method1299(5, (byte) -26);
		Class60.aClass53_Sub22_766.method1299(5, (byte) -63);
		Class380.aClass53_Sub11_3937.method1299(5, (byte) -54);
		Class326_Sub2.aClass53_Sub10_10063.method1299(5, (byte) -104);
		ItemDefinitions.aClass53_Sub21_172.method1299(5, (byte) -19);
		BodyDefinitions.aClass53_Sub15_8238.method1299(5, (byte) -80);
		Class295.aClass53_Sub2_3176.method1299(5, (byte) -36);
		Class253.aClass53_Sub4_2740.method1299(5, (byte) -36);
		Class400.method6545(5, (byte) -64);
		Class542.method9000(50, 868454874);
		Class491.aClass423_5536.method6694(50, -772644090);
		Class164_Sub2.method15390(5, 800759788);
		Class687_Sub36.method17044(5, -125479375);
		client.aClass209_11041.method3772(5, (byte) -27);
		client.aClass209_11042.method3772(5, (byte) -101);
		Class663.aClass209_8514.method3772(5, (byte) -6);
		client.aClass209_11299.method3772(5, (byte) -26);
		Class546.aClass53_7303.method1299(5, (byte) -42);
		Class647_Sub1_Sub1_Sub2.aClass53_12014.method1299(5, (byte) -10);
		client.aClass209_11045.method3772(5, (byte) -110);
	}

	public static final void method7633(int i, int i_5_, int i_6_, int i_7_, boolean bool, int i_8_) {
		if (i_6_ < 1)
			i_6_ = 1;
		if (i_7_ < 1)
			i_7_ = 1;
		int i_9_ = i_7_ - 334;
		if (i_9_ < 0)
			i_9_ = 0;
		else if (i_9_ > 100)
			i_9_ = 100;
		int i_10_ = (client.aShort11274 + i_9_ * (client.aShort11275 - client.aShort11274) / 100);
		int i_11_ = i_7_ * i_10_ * 512 / (334 * i_6_);
		if (i_11_ < client.aShort11143) {
			i_11_ = client.aShort11143;
			i_10_ = 334 * (i_11_ * i_6_) / (i_7_ * 512);
			if (i_10_ > client.aShort11020) {
				i_10_ = client.aShort11020;
				int i_12_ = i_10_ * i_7_ * 512 / (i_11_ * 334);
				int i_13_ = (i_6_ - i_12_) / 2;
				if (bool) {
					Class31.aClass178_303.method3071();
					Class31.aClass178_303.method3354(i, i_5_, i_13_, i_7_, -16777216, (byte) 115);
					Class31.aClass178_303.method3354(i + i_6_ - i_13_, i_5_, i_13_, i_7_, -16777216, (byte) 72);
				}
				i += i_13_;
				i_6_ -= 2 * i_13_;
			}
		} else if (i_11_ > client.aShort11205) {
			i_11_ = client.aShort11205;
			i_10_ = i_6_ * i_11_ * 334 / (i_7_ * 512);
			if (i_10_ < client.aShort11278) {
				i_10_ = client.aShort11278;
				int i_14_ = i_11_ * i_6_ * 334 / (i_10_ * 512);
				int i_15_ = (i_7_ - i_14_) / 2;
				if (bool) {
					Class31.aClass178_303.method3071();
					Class31.aClass178_303.method3354(i, i_5_, i_6_, i_15_, -16777216, (byte) 18);
					Class31.aClass178_303.method3354(i, i_5_ + i_7_ - i_15_, i_6_, i_15_, -16777216, (byte) 9);
				}
				i_5_ += i_15_;
				i_7_ -= i_15_ * 2;
			}
		}
		client.anInt11286 = -1715881359 * (i_10_ * i_7_ / 334);
		client.anInt11282 = -1120058005 * i;
		client.anInt11262 = -343478023 * i_5_;
		client.anInt11319 = (short) i_6_ * -1662146725;
		client.anInt11285 = -940946907 * (short) i_7_;
	}

	static int method7634(InterfaceComponentDefinitions class250, int i, int i_16_) {
		if (!client.method17252(class250).method15966(i, -68217686) && null == class250.anObjectArray2661)
			return -1;
		return ((class250.anIntArray2628 != null && class250.anIntArray2628.length > i) ? class250.anIntArray2628[i] : -1);
	}

	static void method7635(Class441 class441, boolean bool, float f, float f_17_, float f_18_, float f_19_, int i, int i_20_, int i_21_) {
		int i_22_ = client.aClass505_11019.method8240(-2052613124);
		int i_23_ = client.aClass505_11019.method8239((byte) 0);
		class441.method7136(f, f_17_, f_18_, f_19_, (float) i_23_, (float) i_22_, (float) i, (float) i_20_);
	}
}
