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

import jaclib.ping.Ping;

public class Class341 {
	int anInt3591 = -210144611;
	long aLong3592;
	static final int anInt3593 = 12;
	static final int anInt3594 = 1;
	static final int anInt3595 = 2;
	static final int anInt3596 = 3;
	static final int anInt3597 = 4;
	static final int anInt3598 = 5;
	static final int anInt3599 = 6;
	static final int anInt3600 = 7;
	static final int anInt3601 = 8;
	static final int anInt3602 = 13;
	static final int anInt3603 = 10;
	static final int anInt3604 = 11;
	Class708 aClass708_3605 = new Class708();
	static final int anInt3606 = 9;
	static final int anInt3607 = 14;
	public static boolean aBool3608;

	void method5981(RSBuffer class523_sub34) {
		aLong3592 = class523_sub34.readLong((byte) -30) * 5558866652903012941L;
		anInt3591 = class523_sub34.readUnsignedInt((byte) -40) * 210144611;
		for (int i = class523_sub34.readUnsignedByte(-28858249); 0 != i; i = class523_sub34.readUnsignedByte(-1959798447)) {
			Class523_Sub18 class523_sub18;
			if (3 == i)
				class523_sub18 = new Class523_Sub18_Sub3(this);
			else if (i == 1)
				class523_sub18 = new Class523_Sub18_Sub14(this);
			else if (i == 13)
				class523_sub18 = new Class523_Sub18_Sub5(this);
			else if (4 == i)
				class523_sub18 = new Class523_Sub18_Sub8(this);
			else if (6 == i)
				class523_sub18 = new Class523_Sub18_Sub1(this);
			else if (5 == i)
				class523_sub18 = new Class523_Sub18_Sub9(this);
			else if (2 == i)
				class523_sub18 = new Class523_Sub18_Sub13(this);
			else if (i == 7)
				class523_sub18 = new Class523_Sub18_Sub12(this);
			else if (i == 14)
				class523_sub18 = new Class523_Sub18_Sub2(this);
			else if (i == 8)
				class523_sub18 = new Class523_Sub18_Sub11(this);
			else if (9 == i)
				class523_sub18 = new Class523_Sub18_Sub7(this);
			else if (10 == i)
				class523_sub18 = new Class523_Sub18_Sub4(this);
			else if (11 == i)
				class523_sub18 = new Class523_Sub18_Sub10(this);
			else if (i == 12)
				class523_sub18 = new Class523_Sub18_Sub6(this);
			else
				throw new RuntimeException("");
			class523_sub18.method16037(class523_sub34, (byte) -37);
			aClass708_3605.method14236(class523_sub18, -458306462);
		}
	}

	void method5982(RSBuffer class523_sub34, int i) {
		aLong3592 = class523_sub34.readLong((byte) -111) * 5558866652903012941L;
		anInt3591 = class523_sub34.readUnsignedInt((byte) -37) * 210144611;
		for (int i_0_ = class523_sub34.readUnsignedByte(-98179732); 0 != i_0_; i_0_ = class523_sub34.readUnsignedByte(1878345358)) {
			Class523_Sub18 class523_sub18;
			if (3 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub3(this);
			else if (i_0_ == 1)
				class523_sub18 = new Class523_Sub18_Sub14(this);
			else if (i_0_ == 13)
				class523_sub18 = new Class523_Sub18_Sub5(this);
			else if (4 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub8(this);
			else if (6 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub1(this);
			else if (5 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub9(this);
			else if (2 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub13(this);
			else if (i_0_ == 7)
				class523_sub18 = new Class523_Sub18_Sub12(this);
			else if (i_0_ == 14)
				class523_sub18 = new Class523_Sub18_Sub2(this);
			else if (i_0_ == 8)
				class523_sub18 = new Class523_Sub18_Sub11(this);
			else if (9 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub7(this);
			else if (10 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub4(this);
			else if (11 == i_0_)
				class523_sub18 = new Class523_Sub18_Sub10(this);
			else if (i_0_ == 12)
				class523_sub18 = new Class523_Sub18_Sub6(this);
			else
				throw new RuntimeException("");
			class523_sub18.method16037(class523_sub34, (byte) -51);
			aClass708_3605.method14236(class523_sub18, -1561909512);
		}
	}

	public Class341(RSBuffer class523_sub34) {
		method5982(class523_sub34, 1448100787);
	}

	public void method5983(Class334 class334, int i) {
		if ((1631471864285318789L * aLong3592 != class334.aLong3516 * -3434211855881091715L) || -122201013 * anInt3591 != class334.anInt3517 * 675074917)
			throw new RuntimeException("");
		for (Class523_Sub18 class523_sub18 = (Class523_Sub18) aClass708_3605.method14240(676359154); null != class523_sub18; class523_sub18 = (Class523_Sub18) aClass708_3605.method14244((byte) 58))
			class523_sub18.method16035(class334, 1992078877);
		class334.anInt3517 += -490396051;
	}

	void method5984(RSBuffer class523_sub34) {
		aLong3592 = class523_sub34.readLong((byte) -1) * 5558866652903012941L;
		anInt3591 = class523_sub34.readUnsignedInt((byte) -45) * 210144611;
		for (int i = class523_sub34.readUnsignedByte(289196330); 0 != i; i = class523_sub34.readUnsignedByte(152582612)) {
			Class523_Sub18 class523_sub18;
			if (3 == i)
				class523_sub18 = new Class523_Sub18_Sub3(this);
			else if (i == 1)
				class523_sub18 = new Class523_Sub18_Sub14(this);
			else if (i == 13)
				class523_sub18 = new Class523_Sub18_Sub5(this);
			else if (4 == i)
				class523_sub18 = new Class523_Sub18_Sub8(this);
			else if (6 == i)
				class523_sub18 = new Class523_Sub18_Sub1(this);
			else if (5 == i)
				class523_sub18 = new Class523_Sub18_Sub9(this);
			else if (2 == i)
				class523_sub18 = new Class523_Sub18_Sub13(this);
			else if (i == 7)
				class523_sub18 = new Class523_Sub18_Sub12(this);
			else if (i == 14)
				class523_sub18 = new Class523_Sub18_Sub2(this);
			else if (i == 8)
				class523_sub18 = new Class523_Sub18_Sub11(this);
			else if (9 == i)
				class523_sub18 = new Class523_Sub18_Sub7(this);
			else if (10 == i)
				class523_sub18 = new Class523_Sub18_Sub4(this);
			else if (11 == i)
				class523_sub18 = new Class523_Sub18_Sub10(this);
			else if (i == 12)
				class523_sub18 = new Class523_Sub18_Sub6(this);
			else
				throw new RuntimeException("");
			class523_sub18.method16037(class523_sub34, (byte) -94);
			aClass708_3605.method14236(class523_sub18, 220920126);
		}
	}

	public void method5985(Class334 class334) {
		if ((1631471864285318789L * aLong3592 != class334.aLong3516 * -3434211855881091715L) || -122201013 * anInt3591 != class334.anInt3517 * 675074917)
			throw new RuntimeException("");
		for (Class523_Sub18 class523_sub18 = (Class523_Sub18) aClass708_3605.method14240(1076598857); null != class523_sub18; class523_sub18 = (Class523_Sub18) aClass708_3605.method14244((byte) 62))
			class523_sub18.method16035(class334, 1946032412);
		class334.anInt3517 += -490396051;
	}

	public void method5986(Class334 class334) {
		if ((1631471864285318789L * aLong3592 != class334.aLong3516 * -3434211855881091715L) || -122201013 * anInt3591 != class334.anInt3517 * 675074917)
			throw new RuntimeException("");
		for (Class523_Sub18 class523_sub18 = (Class523_Sub18) aClass708_3605.method14240(696607257); null != class523_sub18; class523_sub18 = (Class523_Sub18) aClass708_3605.method14244((byte) 0))
			class523_sub18.method16035(class334, 2071082823);
		class334.anInt3517 += -490396051;
	}

	public static int method5987(int i) {
		if (Class447.anInt4935 * 28972269 == 0) {
			Class30.aClass30_277.method891(new Class425("jaclib"), -369325074);
			if (Class30.aClass30_277.method887(1143900975).method56((short) 256) != 100)
				return 1;
			if (!((Class425) Class30.aClass30_277.method887(777785789)).method6734(1806251562) && !Class268.method4897(-1570485158)) {
				try {
					Class472.aclient5375.method8411(488497793);
					Class529.method8766(-1949826029);
					Ping.init();
				} catch (Exception_Sub6 exception_sub6) {
					Class268.method4905(Class29.aClass29_262, exception_sub6.aString11383, exception_sub6.anInt11384 * -259554559, exception_sub6.getCause(), -217229469);
				} catch (Throwable throwable) {
					/* empty */
				}
			}
			Class447.anInt4935 = 1305962725;
		}
		if (Class447.anInt4935 * 28972269 == 1) {
			Class447.aClass30Array4934 = Class30.method879(1706349789);
			Class30.aClass30_281.method891(new Class431(Class112.aClass472_1350), -1600914864);
			Class30.aClass30_267.method891(new Class425("jaggl"), -245574111);
			Class425 class425 = new Class425("jagdx");
			if (!Class611.aString8013.startsWith("win"))
				class425.method6737((byte) 0);
			Class30.aClass30_268.method891(class425, -1597236190);
			Class30.aClass30_269.method891(new Class425("sw3d"), -1597691838);
			Class30.aClass30_270.method891(new Class425("hw3d"), -782540300);
			Class30.aClass30_284.method891(new Class431(Class519.aClass472_7058), -939459617);
			Class30.aClass30_265.method891(new Class431(Class518.aClass472_7057), -413489448);
			Class30.aClass30_273.method891(new Class431(Class217.aClass472_2302), -1036401161);
			Class30.aClass30_274.method891(new Class431(Class195.aClass472_2191), -1696452555);
			Class30.aClass30_275.method891(new Class431(Class555.aClass472_7477), -636773736);
			Class30.aClass30_286.method891(new Class431(Class598.aClass472_7841), -1037650159);
			Class30.aClass30_276.method891(new Class431(Class386.aClass472_4007), -317391728);
			Class30.aClass30_278.method891(new Class431(Class23.aClass472_235), -972042010);
			Class30.aClass30_279.method891(new Class431(Class418.aClass472_4698), -1383466392);
			Class30.aClass30_280.method891(new Class431(Class312_Sub2_Sub1.aClass472_11592), -2029826677);
			Class30.aClass30_290.method891(new Class431(Class700.aClass472_8779), -753414928);
			Class30.aClass30_272.method891(new Class431(Class321.aClass472_3439), -1948459521);
			Class30.aClass30_283.method891(new Class431(Class229.aClass472_2363), -206689434);
			Class30.aClass30_271.method891(new Class431(Class534_Sub1.aClass472_10801), -989770856);
			Class30.aClass30_287.method891(new Class431(Class673.aClass472_8612), -1530950804);
			Class30.aClass30_266.method891(new Class428((Class502.aClass472_5590), "huffman"), -305429364);
			Class30.aClass30_282.method891(new Class431(Class55.aClass472_737), -275728422);
			Class30.aClass30_288.method891(new Class431(Class515.aClass472_7045), -2059739222);
			Class30.aClass30_289.method891(new Class431(Class272.aClass472_2886), -2143811015);
			Class30.aClass30_285.method891(new Class436((Class511.aClass472_5761), 0), -1833789899);
			for (int i_1_ = 0; i_1_ < Class447.aClass30Array4934.length; i_1_++) {
				if (Class447.aClass30Array4934[i_1_].method887(1211252443) == null)
					throw new RuntimeException();
			}
			int i_2_ = 0;
			Class30[] class30s = Class447.aClass30Array4934;
			for (int i_3_ = 0; i_3_ < class30s.length; i_3_++) {
				Class30 class30 = class30s[i_3_];
				int i_4_ = class30.method878(-1785204611);
				int i_5_ = class30.method887(1050720349).method56((short) 256);
				i_2_ += i_5_ * i_4_ / 100;
			}
			Class447.anInt4936 = i_2_ * -159275323;
			Class447.anInt4935 = -1683041846;
		}
		if (null == Class447.aClass30Array4934)
			return 100;
		int i_6_ = 0;
		int i_7_ = 0;
		boolean bool = true;
		Class30[] class30s = Class447.aClass30Array4934;
		for (int i_8_ = 0; i_8_ < class30s.length; i_8_++) {
			Class30 class30 = class30s[i_8_];
			int i_9_ = class30.method878(-577351123);
			int i_10_ = class30.method887(283854630).method56((short) 256);
			if (i_10_ < 100)
				bool = false;
			i_6_ += i_9_;
			i_7_ += i_10_ * i_9_ / 100;
		}
		if (bool)
			Class447.aClass30Array4934 = null;
		i_7_ -= Class447.anInt4936 * 262727693;
		i_6_ -= Class447.anInt4936 * 262727693;
		int i_11_ = i_6_ > 0 ? i_7_ * 100 / i_6_ : 100;
		if (!bool && i_11_ > 99)
			i_11_ = 99;
		return i_11_;
	}

	static final void method5988(Class669 class669, short i) {
		int i_12_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = Class98_Sub1_Sub2.playerVarsProvider.method1938(i_12_, (byte) -5);
	}

	static final void method5989(Class669 class669, int i) {
		VarDomainType.method7628(189765723);
		Class526.method8725(-1251166537);
		client.aClass505_11019.method8294(-889374440);
		Class211.method3824(2083056746);
		client.aBool11012 = false;
	}
}
