package jagex;

/* Class249 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class249 {
	public static Class249 aClass249_2699;
	public static Class249 aClass249_2700;
	public static Class249 aClass249_2701;
	public static Class249 aClass249_2702;
	public static Class249 aClass249_2703;
	public static Class249 aClass249_2704;
	public static Class249 aClass249_2705;
	public static Class249 aClass249_2706;
	public static Class249 aClass249_2707;
	public static Class249 aClass249_2708;
	public static Class249 aClass249_2709;
	public static Class249 aClass249_2710;
	public static Class249 aClass249_2711;
	public static Class249 aClass249_2712;
	Class258 aClass258_2713;
	public static Class249 aClass249_2714;
	public static Class249 aClass249_2715;
	public static Class249 aClass249_2716;
	public static Class249 aClass249_2717;
	public static Class249 aClass249_2718;
	public static Class249 aClass249_2719;
	public static Class249 aClass249_2720;
	public static Class249 aClass249_2721;
	public static Class249 aClass249_2722 = new Class249(Class258.aClass258_2785);
	public static Class249 aClass249_2723;
	public static Class249 aClass249_2724;
	int anInt2725;
	Interface26 anInterface26_2726;

	public void method3422(Interface26 interface26, int i) {
		if (interface26.method142(199305649) != ((Class249) this).aClass258_2713)
			throw new IllegalArgumentException();
		((Class249) this).anInterface26_2726 = interface26;
	}

	Class249(Class258 class258) {
		((Class249) this).aClass258_2713 = class258;
		((Class249) this).anInt2725 = -1667003927;
	}

	public int method3423(byte i) {
		return -939139495 * ((Class249) this).anInt2725;
	}

	public void method3424(int i, int i_0_) {
		((Class249) this).anInt2725 = i * -1667003927;
	}

	public Interface26 method3425(int i) {
		return ((Class249) this).anInterface26_2726;
	}

	public void method3426(int i) {
		((Class249) this).anInt2725 = i * -1667003927;
	}

	static {
		aClass249_2717 = new Class249(Class258.aClass258_2783);
		aClass249_2712 = new Class249(Class258.aClass258_2783);
		aClass249_2702 = new Class249(Class258.aClass258_2783);
		aClass249_2703 = new Class249(Class258.aClass258_2783);
		aClass249_2704 = new Class249(Class258.aClass258_2783);
		aClass249_2705 = new Class249(Class258.aClass258_2785);
		aClass249_2701 = new Class249(Class258.aClass258_2785);
		aClass249_2707 = new Class249(Class258.aClass258_2785);
		aClass249_2708 = new Class249(Class258.aClass258_2785);
		aClass249_2709 = new Class249(Class258.aClass258_2785);
		aClass249_2700 = new Class249(Class258.aClass258_2785);
		aClass249_2710 = new Class249(Class258.aClass258_2785);
		aClass249_2699 = new Class249(Class258.aClass258_2785);
		aClass249_2716 = new Class249(Class258.aClass258_2785);
		aClass249_2714 = new Class249(Class258.aClass258_2785);
		aClass249_2715 = new Class249(Class258.aClass258_2785);
		aClass249_2711 = new Class249(Class258.aClass258_2785);
		aClass249_2724 = new Class249(Class258.aClass258_2785);
		aClass249_2718 = new Class249(Class258.aClass258_2785);
		aClass249_2719 = new Class249(Class258.aClass258_2782);
		aClass249_2720 = new Class249(Class258.aClass258_2785);
		aClass249_2706 = new Class249(Class258.aClass258_2785);
		aClass249_2721 = new Class249(Class258.aClass258_2785);
		aClass249_2723 = new Class249(Class258.aClass258_2781);
	}

	static boolean method3427(int i) {
		return Class403.method4783(Class586.aClass502_7779.aClass499_5548, (byte) 126);
	}

	public int method3428() {
		return -939139495 * ((Class249) this).anInt2725;
	}

	public int method3429() {
		return -939139495 * ((Class249) this).anInt2725;
	}

	public void method3430(int i) {
		((Class249) this).anInt2725 = i * -1667003927;
	}

	public void method3431(int i) {
		((Class249) this).anInt2725 = i * -1667003927;
	}

	public void method3432(int i) {
		((Class249) this).anInt2725 = i * -1667003927;
	}

	static final void method3433(InterfaceDefinitions class73, int i, int i_1_, Cs2Executor class441, int i_2_) {
		if (class73.anIntArray894 == null) {
			if (i_1_ > 0) {
				class73.aByteArrayArray791 = new byte[11][];
				class73.aByteArrayArray778 = new byte[11][];
				class73.anIntArray749 = new int[11];
				class73.anIntArray841 = new int[11];
				class73.anIntArray894 = new int[11];
			} else
				return;
		}
		class73.anIntArray894[i] = i_1_;
		if (i_1_ > 0)
			class73.aBool837 = true;
		else {
			class73.aBool837 = false;
			for (int i_3_ = 0; i_3_ < class73.aByteArrayArray791.length; i_3_++) {
				if (class73.aByteArrayArray791[i_3_] != null || class73.anIntArray894[i_3_] > 0) {
					class73.aBool837 = true;
					break;
				}
			}
		}
	}

	public static Class249[] method3434(byte i) {
		return new Class249[] { aClass249_2722, aClass249_2717, aClass249_2712, aClass249_2702, aClass249_2703, aClass249_2704, aClass249_2705, aClass249_2701, aClass249_2707, aClass249_2708,
			aClass249_2709, aClass249_2700, aClass249_2710, aClass249_2699, aClass249_2716, aClass249_2714, aClass249_2715, aClass249_2711, aClass249_2724, aClass249_2718, aClass249_2719,
			aClass249_2720, aClass249_2706, aClass249_2721, aClass249_2723 };
	}

	static final void method3435(Cs2Executor class441, byte i) {
		UnderlayDefinition underlayDefinition = (((Cs2Executor) class441).aBool5128 ? ((Cs2Executor) class441).aClass443_5112 : ((Cs2Executor) class441).aClass443_5126);
		InterfaceDefinitions class73 = ((UnderlayDefinition) underlayDefinition).aClass73_5135;
		Class83 class83 = ((UnderlayDefinition) underlayDefinition).aClass83_5134;
		Class64.method1029(class73, class83, class441, 2091884046);
	}

	static final void method3436(Cs2Executor class441, int i) {
		if (Class108.aClass549_1426.method6514(81, (byte) 1))
			((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1)] = 1;
		else
			((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1)] = 0;
	}

	static final void method3437(Cs2Executor class441, byte i) throws Exception_Sub4 {
		int i_4_ = (((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr -= -1042067865) * 1369304407)]);
		Class133_Sub1.aClass411_Sub1_9827.method4972(Class402.method4782(i_4_, 179495686), true, (byte) 9);
		client.aBool8685 = true;
	}

	static Entity method3438(int i, int i_5_, int i_6_, byte i_7_) {
		Class536 class536 = (client.aClass613_8605.method7285(2068383551).aClass536ArrayArrayArray5882[i][i_5_][i_6_]);
		if (null == class536)
			return null;
		Entity class456_sub1_sub2_sub3 = null;
		int i_8_ = -1;
		for (Class543 class543 = class536.aClass543_5994; class543 != null; class543 = class543.aClass543_6100) {
			Class456_Sub1_Sub2 class456_sub1_sub2 = class543.aClass456_Sub1_Sub2_6099;
			if (class456_sub1_sub2 instanceof Entity) {
				Entity class456_sub1_sub2_sub3_9_ = (Entity) class456_sub1_sub2;
				int i_10_ = ((class456_sub1_sub2_sub3_9_.method10556((short) -18283) - 1) * 256 + 252);
				Class240 class240 = class456_sub1_sub2_sub3_9_.method5394().aClass240_2647;
				int i_11_ = (int) class240.aFloat2653 - i_10_ >> 9;
				int i_12_ = (int) class240.aFloat2657 - i_10_ >> 9;
				int i_13_ = i_10_ + (int) class240.aFloat2653 >> 9;
				int i_14_ = (int) class240.aFloat2657 + i_10_ >> 9;
				if (i_11_ <= i_5_ && i_12_ <= i_6_ && i_13_ >= i_5_ && i_14_ >= i_6_) {
					int i_15_ = (i_13_ + 1 - i_5_) * (1 + i_14_ - i_6_);
					if (i_15_ > i_8_) {
						class456_sub1_sub2_sub3 = class456_sub1_sub2_sub3_9_;
						i_8_ = i_15_;
					}
				}
			}
		}
		return class456_sub1_sub2_sub3;
	}

	static void method3439(Class572_Sub15_Sub2 class572_sub15_sub2, short i) {
		class572_sub15_sub2.writeInt(Class243.aClass248_2668.method3364(-447848305), -1743753997);
		class572_sub15_sub2.writeInt(Class296.aClass248_3466.method3364(174582664), -1743753997);
		class572_sub15_sub2.writeInt(Class498.aClass248_5511.method3364(-1090212587), -1743753997);
		class572_sub15_sub2.writeInt(Class133_Sub14.aClass248_9948.method3364(879064156), -1743753997);
		class572_sub15_sub2.writeInt(Class630.aClass248_8114.method3364(-612473336), -1743753997);
		class572_sub15_sub2.writeInt(Class489.aClass248_5463.method3364(-1177610591), -1743753997);
		class572_sub15_sub2.writeInt(Class582.aClass248_7725.method3364(-1233361483), -1743753997);
		class572_sub15_sub2.writeInt(Class479_Sub1.aClass248_8936.method3364(-244621675), -1743753997);
		class572_sub15_sub2.writeInt(Class44.aClass248_444.method3364(545162282), -1743753997);
		class572_sub15_sub2.writeInt(Class438.aClass248_5080.method3364(1184921243), -1743753997);
		class572_sub15_sub2.writeInt(Class88.aClass248_1226.method3364(-1089859002), -1743753997);
		if (!Class64.aBool676)
			class572_sub15_sub2.writeInt(Class510.idx14.method3364(-47497007), -1743753997);
		class572_sub15_sub2.writeInt(Class131.aClass248_1539.method3364(1338176970), -1743753997);
		class572_sub15_sub2.writeInt(Class63.idx17Reference.method3364(2005170590), -1743753997);
		class572_sub15_sub2.writeInt(Class413.aClass248_4917.method3364(-1321175450), -1743753997);
		class572_sub15_sub2.writeInt(GraphicsDefinition.aClass248_8442.method3364(1277915969), -1743753997);
		class572_sub15_sub2.writeInt(Class281.aClass248_3220.method3364(537381836), -1743753997);
		class572_sub15_sub2.writeInt(Class665_Sub26.aClass248_9612.method3364(-1745421726), -1743753997);
		class572_sub15_sub2.writeInt(Class449.aClass248_5169.method3364(413629631), -1743753997);
		class572_sub15_sub2.writeInt(Class549.idx23.method3364(-1291455580), -1743753997);
		class572_sub15_sub2.writeInt(Class282.aClass248_3224.method3364(1250926371), -1743753997);
		class572_sub15_sub2.writeInt(Class317.aClass248_3872.method3364(-2081275343), -1743753997);
		class572_sub15_sub2.writeInt(Class375_Sub3.aClass248_9520.method3364(1794377999), -1743753997);
		class572_sub15_sub2.writeInt(NPCDefintion.aClass248_4860.method3364(2055309131), -1743753997);
		class572_sub15_sub2.writeInt(RSSocket.aClass248_8295.method3364(80118486), -1743753997);
		class572_sub15_sub2.writeInt(Class76.aClass248_946.method3364(-1455928608), -1743753997);
		class572_sub15_sub2.writeInt(HashTable.aClass248_5256.method3364(732432929), -1743753997);
		class572_sub15_sub2.writeInt(Class423_Sub2.aClass248_9761.method3364(-51569385), -1743753997);
		class572_sub15_sub2.writeInt(Class41.method802(-618830203), -1743753997);
		class572_sub15_sub2.writeInt(Class151.method2504(-1839373285), -1743753997);
		class572_sub15_sub2.writeInt(Class392.aClass248_4664.method3364(-594463240), -1743753997);
		class572_sub15_sub2.writeInt(Class392.aClass248_4663.method3364(1002586332), -1743753997);
		if (!Class64.aBool676)
			class572_sub15_sub2.writeInt(Class435.idx40.method3364(-1998402605), -1743753997);
		class572_sub15_sub2.writeInt(Class623.idx41.method3364(-624595080), -1743753997);
		class572_sub15_sub2.writeInt(0, -1743753997);
	}
}
