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

import com.jagex.twitchtv.TwitchWebcamDevice;

public class InterfaceComponentDefinitions {
	public int anInt2501;
	public int anInt2502;
	public int anInt2503;
	public int anInt2504;
	public static int anInt2505;
	public static int anInt2506 = 0;
	public int anInt2507;
	public static int anInt2508;
	public static int anInt2509;
	public static int anInt2510;
	public static int anInt2511;
	public int anInt2512;
	public static int anInt2513;
	public static int anInt2514;
	public String aString2515;
	public static int anInt2516;
	public static int anInt2517;
	public static int anInt2518;
	public InterfaceComponentDefinitions[] aClass250Array2519;
	public static final int anInt2520 = 5;
	public static Class209 aClass209_2521;
	public int anInt2522;
	public int anInt2523;
	public static Class209 aClass209_2524;
	public static boolean aBool2525;
	short[] aShortArray2526;
	public int anInt2527;
	public static int anInt2528;
	public Object[] anObjectArray2529;
	public byte[][] aByteArrayArray2530;
	public Object[] anObjectArray2531;
	public byte aByte2532;
	public byte aByte2533;
	public int type;
	public InterfaceComponentDefinitions[] aClass250Array2535;
	public int anInt2536;
	public int[] anIntArray2537;
	public static int anInt2538;
	public int anInt2539;
	public int anInt2540;
	public int anInt2541;
	public Object[] anObjectArray2542;
	public int anInt2543;
	public int anInt2544;
	public int anInt2545;
	public int parentId;
	public int anInt2547;
	public int anInt2548;
	public int anInt2549;
	public int anInt2550;
	short[] aShortArray2551;
	public int anInt2552;
	public Class302 aClass302_2553;
	public int anInt2554;
	public boolean aBool2555;
	public int anInt2556;
	public boolean aBool2557;
	public static int anInt2558;
	public InterfaceComponentSettings componentSettings;
	public boolean aBool2560;
	public int anInt2561;
	public int anInt2562;
	public int anInt2563;
	public int anInt2564;
	public int anInt2565;
	public boolean aBool2566;
	public boolean aBool2567;
	public boolean aBool2568;
	public boolean aBool2569;
	public int modelType;
	public int anInt2571;
	public Object[] anObjectArray2572;
	public boolean hidden;
	public int anInt2574;
	public static final int anInt2575 = 2;
	public Object[] anObjectArray2576;
	public int anInt2577;
	public int anInt2578;
	public int anInt2579;
	public int anInt2580;
	public int anInt2581;
	public int anInt2582;
	public int anInt2583;
	public int anInt2584;
	public int interfaceHash = 2111216817;
	public boolean aBool2586;
	public int anInt2587;
	short[] aShortArray2588;
	public int anInt2589;
	public static final int anInt2590 = 5;
	public byte aByte2591;
	public int anInt2592;
	public int anInt2593;
	public int anInt2594;
	public Class621 aClass621_2595;
	public int anInt2596;
	public int anInt2597;
	public int anInt2598;
	public static int anInt2599 = -199591181;
	static Class209 aClass209_2600;
	static Class209 aClass209_2601;
	public int anInt2602;
	short[] aShortArray2603;
	public int anInt2604;
	public int anInt2605;
	public boolean aBool2606;
	public String aString2607;
	public int anInt2608;
	public int[] anIntArray2609;
	public byte aByte2610;
	public boolean aBool2611;
	public int anInt2612;
	public boolean aBool2613;
	public int[] anIntArray2614;
	public boolean aBool2615;
	public Object[] anObjectArray2616;
	public int anInt2617;
	public int anInt2618;
	public int[] anIntArray2619;
	public int[] anIntArray2620;
	public static final int anInt2621 = 1;
	public int anInt2622;
	public static final int anInt2623 = 4;
	public static final int anInt2624 = 8;
	public boolean aBool2625;
	public String[] aStringArray2626;
	public int anInt2627;
	public int[] anIntArray2628;
	public int anInt2629;
	public static int anInt2630;
	public int anInt2631;
	public boolean aBool2632;
	public int anInt2633;
	public String aString2634;
	public boolean aBool2635;
	public int anInt2636;
	public Object[] anObjectArray2637;
	public Object[] anObjectArray2638;
	public String aString2639;
	public Object[] anObjectArray2640;
	public String aString2641;
	public Object[] anObjectArray2642;
	public Object[] anObjectArray2643;
	public int anInt2644;
	public Object[] anObjectArray2645;
	public Object[] anObjectArray2646;
	public Object[] anObjectArray2647;
	public Object[] anObjectArray2648;
	public int[] anIntArray2649;
	public Object[] anObjectArray2650;
	public int[] anIntArray2651;
	public Object[] anObjectArray2652;
	public int[] anIntArray2653;
	public Object[] anObjectArray2654;
	public boolean aBool2655;
	public Object[] anObjectArray2656;
	public int[] anIntArray2657;
	public static int anInt2658;
	public int[] anIntArray2659;
	public Object[] anObjectArray2660;
	public Object[] anObjectArray2661;
	public Object[] anObjectArray2662;
	public Object[] anObjectArray2663;
	public Object[] anObjectArray2664;
	public Object[] anObjectArray2665;
	public Object[] anObjectArray2666;
	public Object[] anObjectArray2667;
	public Object[] anObjectArray2668;
	public byte[][] aByteArrayArray2669;
	public Object[] anObjectArray2670;
	public Object[] anObjectArray2671;
	public Object[] anObjectArray2672;
	public Object[] anObjectArray2673;
	public Object[] anObjectArray2674;
	public static int anInt2675 = 1551578906;
	public int anInt2676;
	public Object[] anObjectArray2677;
	public Object[] anObjectArray2678;
	Class14 aClass14_2679;
	public int anInt2680;
	public int anInt2681;
	public int anInt2682;
	public PacketsDecoder aClass233_2683;
	public int anInt2684;
	public InterfaceComponentDefinitions aClass250_2685;
	public int anInt2686;
	public int anInt2687;
	int anInt2688;
	int anInt2689;
	int anInt2690;
	public int anInt2691;
	public boolean aBool2692;
	public Class707 aClass707_2693;
	public int anInt2694;
	public String aString2695;
	public boolean aBool2696;
	public boolean aBool2697;
	public int anInt2698;
	public int anInt2699;
	public int anInt2700;
	public boolean aBool2701;
	public int anInt2702;
	public int anInt2703;
	public int anInt2704;
	public Object[] anObjectArray2705;
	public int anInt2706;
	public int anInt2707;
	public Object[] anObjectArray2708;
	public int anInt2709 = 1287445421;

	public Class10 method4427(Class423 class423, Interface50 interface50, int i) {
		Class10 class10 = class423.method6688(interface50, anInt2605 * 1569774109, (byte) -83);
		aBool2525 = class10 == null;
		return class10;
	}

	void decode(RSBuffer buffer, byte i) {
		int opcode = buffer.readUnsignedByte(-350206877);
		if (255 == opcode)
			opcode = -1;
		type = buffer.readUnsignedByte(-606163641) * -223716471;
		if (0 != (36473529 * type & 0x80)) {
			type = -223716471 * (type * 36473529 & 0x7f);
			aString2695 = buffer.readString(114588333);
		}
		anInt2582 = buffer.readUnsignedShort(-2023417064) * -290728195;
		anInt2574 = buffer.readShort(-913726729) * 1601670177;
		anInt2507 = buffer.readShort(1521288719) * 444853179;
		anInt2502 = buffer.readUnsignedShort(-130278099) * -374402151;
		anInt2686 = buffer.readUnsignedShort(-432658204) * 155747443;
		aByte2591 = buffer.readByte((short) -10200);
		aByte2610 = buffer.readByte((short) -29199);
		aByte2532 = buffer.readByte((short) -14571);
		aByte2533 = buffer.readByte((short) -9048);
		parentId = buffer.readUnsignedShort(-1263420550) * -666809181;
		if (65535 == 97896203 * parentId)
			parentId = 666809181;
		else
			parentId = -666809181 * ((-1363815505 * interfaceHash & ~0xffff) + 97896203 * parentId);
		int i_1_ = buffer.readUnsignedByte(634896450);
		hidden = (i_1_ & 0x1) != 0;
		if (opcode >= 0)
			aBool2701 = (i_1_ & 0x2) != 0;
		if (36473529 * type == 0) {
			anInt2554 = buffer.readUnsignedShort(-1228413182) * -2112443589;
			anInt2618 = buffer.readUnsignedShort(-685911276) * -131997455;
			if (opcode < 0)
				aBool2701 = buffer.readUnsignedByte(-2089393328) == 1;
		}
		if (5 == 36473529 * type) {
			anInt2561 = buffer.readUnsignedInt((byte) -26) * 1531821881;
			anInt2562 = buffer.readUnsignedShort(-2050752312) * 2143580911;
			int i_2_ = buffer.readUnsignedByte(2065933164);
			aBool2632 = 0 != (i_2_ & 0x1);
			aBool2568 = (i_2_ & 0x2) != 0;
			anInt2707 = buffer.readUnsignedByte(1878674469) * -697127929;
			anInt2564 = buffer.readUnsignedByte(1678521297) * 111432765;
			anInt2565 = buffer.readUnsignedInt((byte) -34) * 1180833973;
			aBool2566 = buffer.readUnsignedByte(133718129) == 1;
			aBool2567 = buffer.readUnsignedByte(2090931818) == 1;
			anInt2556 = buffer.readUnsignedInt((byte) -83) * 338805805;
			if (opcode >= 3)
				aBool2569 = buffer.readUnsignedByte(580589362) == 1;
		}
		if (6 == type * 36473529) {
			modelType = -182688103;
			anInt2571 = buffer.readBigSmart((byte) -53) * 903474739;
			int i_3_ = buffer.readUnsignedByte(-772730097);
			boolean bool = (i_3_ & 0x1) == 1;
			aBool2625 = (i_3_ & 0x2) == 2;
			aBool2555 = (i_3_ & 0x4) == 4;
			aBool2586 = (i_3_ & 0x8) == 8;
			if (bool) {
				anInt2579 = buffer.readShort(-361211416) * 228670967;
				anInt2580 = buffer.readShort(-1327979827) * -1951650067;
				anInt2563 = buffer.readUnsignedShort(-1787567548) * 1518877477;
				anInt2577 = buffer.readUnsignedShort(-1128800860) * 1361016637;
				anInt2578 = buffer.readUnsignedShort(-812606891) * -1718268177;
				anInt2544 = buffer.readUnsignedShort(-294088966) * 249826099;
			} else if (aBool2625) {
				anInt2579 = buffer.readShort(-1678369640) * 228670967;
				anInt2580 = buffer.readShort(123325412) * -1951650067;
				anInt2522 = buffer.readShort(-731011087) * -102507035;
				anInt2563 = buffer.readUnsignedShort(-1832566590) * 1518877477;
				anInt2577 = buffer.readUnsignedShort(-868974055) * 1361016637;
				anInt2578 = buffer.readUnsignedShort(-1074201515) * -1718268177;
				anInt2544 = buffer.readShort(-52710853) * 249826099;
			}
			anInt2548 = buffer.readBigSmart((byte) -61) * -1784620421;
			if (aByte2591 != 0)
				anInt2583 = buffer.readUnsignedShort(-1121177651) * 676614039;
			if (0 != aByte2610)
				anInt2503 = buffer.readUnsignedShort(-2118674997) * 562686785;
		}
		if (4 == 36473529 * type) {
			anInt2605 = buffer.readBigSmart((byte) -100) * -254363595;
			if (opcode >= 2)
				aBool2606 = buffer.readUnsignedByte(1575933452) == 1;
			aString2607 = buffer.readString(-307119234);
			anInt2608 = buffer.readUnsignedByte(1491617093) * -2046294063;
			anInt2536 = buffer.readUnsignedByte(468457114) * 2098808279;
			anInt2512 = buffer.readUnsignedByte(1525582349) * -552287483;
			aBool2611 = buffer.readUnsignedByte(-1380151110) == 1;
			anInt2556 = buffer.readUnsignedInt((byte) -65) * 338805805;
			anInt2707 = buffer.readUnsignedByte(116193975) * -697127929;
			if (opcode >= 0)
				anInt2612 = buffer.readUnsignedByte(1405532639) * 1413736565;
		}
		if (3 == type * 36473529) {
			anInt2556 = buffer.readUnsignedInt((byte) -96) * 338805805;
			aBool2557 = buffer.readUnsignedByte(-419543889) == 1;
			anInt2707 = buffer.readUnsignedByte(-1804605087) * -697127929;
		}
		if (type * 36473529 == 9) {
			anInt2694 = buffer.readUnsignedByte(-377835956) * 163847493;
			anInt2556 = buffer.readUnsignedInt((byte) -65) * 338805805;
			aBool2560 = buffer.readUnsignedByte(2017096140) == 1;
		}
		int i_4_ = buffer.read24BitInt(1536126580);
		int i_5_ = buffer.readUnsignedByte(-196241242);
		if (0 != i_5_) {
			aByteArrayArray2530 = new byte[11][];
			aByteArrayArray2669 = new byte[11][];
			anIntArray2537 = new int[11];
			anIntArray2620 = new int[11];
			for (/**/; i_5_ != 0; i_5_ = buffer.readUnsignedByte(1754222175)) {
				int i_6_ = (i_5_ >> 4) - 1;
				i_5_ = i_5_ << 8 | buffer.readUnsignedByte(1021968181);
				i_5_ &= 0xfff;
				if (4095 == i_5_)
					i_5_ = -1;
				byte i_7_ = buffer.readByte((short) -20558);
				if (0 != i_7_)
					aBool2615 = true;
				byte i_8_ = buffer.readByte((short) -483);
				anIntArray2537[i_6_] = i_5_;
				aByteArrayArray2530[i_6_] = new byte[] { i_7_ };
				aByteArrayArray2669[i_6_] = new byte[] { i_8_ };
			}
		}
		aString2639 = buffer.readString(-786759805);
		int i_9_ = buffer.readUnsignedByte(531466881);
		int i_10_ = i_9_ & 0xf;
		int i_11_ = i_9_ >> 4;
		if (i_10_ > 0) {
			aStringArray2626 = new String[i_10_];
			for (int i_12_ = 0; i_12_ < i_10_; i_12_++)
				aStringArray2626[i_12_] = buffer.readString(-1766028782);
		}
		if (i_11_ > 0) {
			int i_13_ = buffer.readUnsignedByte(792391542);
			anIntArray2628 = new int[1 + i_13_];
			for (int i_14_ = 0; i_14_ < anIntArray2628.length; i_14_++)
				anIntArray2628[i_14_] = -1;
			anIntArray2628[i_13_] = buffer.readUnsignedShort(-2040657272);
		}
		if (i_11_ > 1) {
			int i_15_ = buffer.readUnsignedByte(1559441855);
			anIntArray2628[i_15_] = buffer.readUnsignedShort(-1045619425);
		}
		aString2641 = buffer.readString(-133361143);
		if (aString2641.equals(""))
			aString2641 = null;
		anInt2631 = buffer.readUnsignedByte(1267026456) * -1740552373;
		anInt2627 = buffer.readUnsignedByte(679429486) * 403024039;
		anInt2633 = buffer.readUnsignedByte(-1059688336) * -1192448709;
		aString2634 = buffer.readString(-1281768981);
		int i_16_ = -1;
		if (Class503_Sub1.method15791(i_4_, -1126833449) != 0) {
			i_16_ = buffer.readUnsignedShort(-1848491416);
			if (i_16_ == 65535)
				i_16_ = -1;
			anInt2552 = buffer.readUnsignedShort(-1432943589) * 596934093;
			if (65535 == anInt2552 * 1021097733)
				anInt2552 = -596934093;
			anInt2549 = buffer.readUnsignedShort(-459921027) * 1509241607;
			if (65535 == -157037897 * anInt2549)
				anInt2549 = -1509241607;
		}
		if (opcode >= 0) {
			anInt2550 = buffer.readUnsignedShort(-1466114324) * -1911412439;
			if (65535 == 1327137561 * anInt2550)
				anInt2550 = 1911412439;
		}
		componentSettings = new InterfaceComponentSettings(i_4_, i_16_);
		if (opcode >= 0) {
			int i_17_ = buffer.readUnsignedByte(782555861);
			for (int i_18_ = 0; i_18_ < i_17_; i_18_++) {
				int i_19_ = buffer.read24BitInt(-1475169615);
				int i_20_ = buffer.readUnsignedInt((byte) -124);
				aClass14_2679.method738(new Class523_Sub24(i_20_), (long) i_19_);
			}
			int i_21_ = buffer.readUnsignedByte(-424354957);
			for (int i_22_ = 0; i_22_ < i_21_; i_22_++) {
				int i_23_ = buffer.read24BitInt(1629857227);
				String string = buffer.readVersionedString(2030763465);
				aClass14_2679.method738(new Class523_Sub28(string), (long) i_23_);
			}
		}
		anObjectArray2662 = decodeScript(buffer, (short) 21610);
		anObjectArray2708 = decodeScript(buffer, (short) 6397);
		anObjectArray2643 = decodeScript(buffer, (short) 10448);
		anObjectArray2647 = decodeScript(buffer, (short) 16099);
		anObjectArray2646 = decodeScript(buffer, (short) 13343);
		anObjectArray2648 = decodeScript(buffer, (short) 27072);
		anObjectArray2650 = decodeScript(buffer, (short) 13218);
		anObjectArray2652 = decodeScript(buffer, (short) 16823);
		anObjectArray2660 = decodeScript(buffer, (short) 4782);
		anObjectArray2661 = decodeScript(buffer, (short) 29265);
		if (opcode >= 0)
			anObjectArray2616 = decodeScript(buffer, (short) 386);
		anObjectArray2642 = decodeScript(buffer, (short) 21194);
		anObjectArray2637 = decodeScript(buffer, (short) 6330);
		anObjectArray2638 = decodeScript(buffer, (short) 31576);
		anObjectArray2705 = decodeScript(buffer, (short) 31792);
		anObjectArray2640 = decodeScript(buffer, (short) 9761);
		anObjectArray2576 = decodeScript(buffer, (short) 25494);
		anObjectArray2645 = decodeScript(buffer, (short) 9807);
		anObjectArray2663 = decodeScript(buffer, (short) 7121);
		anObjectArray2654 = decodeScript(buffer, (short) 15944);
		anObjectArray2656 = decodeScript(buffer, (short) 27178);
		anIntArray2649 = method4430(buffer, -1088510177);
		anIntArray2651 = method4430(buffer, -1023931227);
		anIntArray2653 = method4430(buffer, 836935720);
		anIntArray2609 = method4430(buffer, -550786955);
		anIntArray2657 = method4430(buffer, 875818612);
	}

	public void method4429(int i, int i_24_) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub24(i_24_), (long) i);
		} else {
			Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
			if (class523_sub24 == null)
				aClass14_2679.method738(new Class523_Sub24(i_24_), (long) i);
			else
				class523_sub24.anInt10542 = i_24_ * 484092519;
		}
	}

	int[] method4430(RSBuffer class523_sub34, int i) {
		int i_25_ = class523_sub34.readUnsignedByte(596658333);
		if (0 == i_25_)
			return null;
		int[] is = new int[i_25_];
		for (int i_26_ = 0; i_26_ < i_25_; i_26_++)
			is[i_26_] = class523_sub34.readUnsignedInt((byte) -16);
		return is;
	}

	public Class148 method4431(Class178 class178, int i) {
		aBool2525 = false;
		long l = (((aBool2568 ? 1L : 0L) << 35) + (long) (anInt2561 * 345997065) + ((long) (anInt2564 * -1420827883) << 36) + ((aBool2566 ? 1L : 0L) << 38) + ((aBool2567 ? 1L : 0L) << 39) + ((long) (-728754787 * anInt2565) << 40));
		Class148 class148 = (Class148) aClass209_2521.method3767(l);
		if (class148 != null)
			return class148;
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null) {
			aBool2525 = true;
			return null;
		}
		if (aBool2566)
			class175.method2998();
		if (aBool2567)
			class175.method2956();
		if (-1420827883 * anInt2564 > 0)
			class175.method2953(-1420827883 * anInt2564);
		else if (0 != anInt2565 * -728754787)
			class175.method2953(1);
		if (-1420827883 * anInt2564 >= 1)
			class175.method2954(1);
		if (anInt2564 * -1420827883 >= 2)
			class175.method2954(16777215);
		if (-728754787 * anInt2565 != 0)
			class175.method2967(~0xffffff | -728754787 * anInt2565);
		class148 = class178.method3104(class175, true);
		aClass209_2521.method3764(class148, l, (class148.method2504() * class148.method2428() * 4), 574372884);
		return class148;
	}

	public String method4432(int i, String string) {
		if (null == aClass14_2679)
			return string;
		Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub28)
			return string;
		return (String) class523_sub28.anObject10554;
	}

	public Class10 method4433(Class423 class423, Interface50 interface50) {
		Class10 class10 = class423.method6688(interface50, anInt2605 * 1569774109, (byte) -83);
		aBool2525 = class10 == null;
		return class10;
	}

	public Class167 method4434(Class178 class178, int i, Class53_Sub17 class53_sub17, Class53_Sub6 class53_sub6, Class53_Sub7 class53_sub7, Class53_Sub8 class53_sub8, Class53_Sub13 class53_sub13, Interface19 interface19, Interface17 interface17, Class707 class707, Class623 class623, int i_27_) {
		aBool2525 = false;
		if (0 == -428962391 * modelType)
			return null;
		if (1 == -428962391 * modelType && anInt2571 * -2080195333 == -1)
			return null;
		if (1 == -428962391 * modelType) {
			int i_28_ = i;
			if (null != class707)
				i |= class707.method14173(-1489341892);
			long l = -1L;
			long[] ls = RSBuffer.aLongArray10662;
			if (null != aShortArray2588) {
				for (int i_29_ = 0; i_29_ < aShortArray2588.length; i_29_++) {
					l = l >>> 8 ^ ls[(int) ((l ^ (long) (aShortArray2588[i_29_] >> 8)) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) aShortArray2588[i_29_]) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) (aShortArray2551[i_29_] >> 8)) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) aShortArray2551[i_29_]) & 0xffL)];
				}
				i |= 0x4000;
			}
			if (null != aShortArray2526) {
				for (int i_30_ = 0; i_30_ < aShortArray2526.length; i_30_++) {
					l = l >>> 8 ^ ls[(int) ((l ^ (long) (aShortArray2526[i_30_] >> 8)) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) aShortArray2526[i_30_]) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) (aShortArray2603[i_30_] >> 8)) & 0xffL)];
					l = l >>> 8 ^ ls[(int) ((l ^ (long) aShortArray2603[i_30_]) & 0xffL)];
				}
				i |= 0x8000;
			}
			long l_31_ = ((long) (class178.anInt1922 * -1144788131) << 59 | (long) (modelType * -428962391) << 55 | (long) (-2080195333 * anInt2571) << 38 | l & 0x3fffffffffL);
			Class167 class167 = (Class167) aClass209_2524.method3767(l_31_);
			if (null == class167 || class178.method3068(class167.method2683(), i) != 0) {
				if (null != class167)
					i = class178.method3117(i, class167.method2683());
				Class179 class179 = Class179.method3485(Class8.aClass472_65, anInt2571 * -2080195333, 0);
				if (null == class179) {
					aBool2525 = true;
					return null;
				}
				if (class179.anInt1952 < 13)
					class179.method3494(2);
				class167 = class178.method3115(class179, i, -46927127 * Class53_Sub8.anInt10969, 64, 768);
				if (aShortArray2588 != null) {
					for (int i_32_ = 0; i_32_ < aShortArray2588.length; i_32_++)
						class167.method2725(aShortArray2588[i_32_], aShortArray2551[i_32_]);
				}
				if (null != aShortArray2526) {
					for (int i_33_ = 0; i_33_ < aShortArray2526.length; i_33_++)
						class167.method2826(aShortArray2526[i_33_], aShortArray2603[i_33_]);
				}
				aClass209_2524.method3770(class167, l_31_);
			}
			if (class707 != null) {
				class167 = class167.method2681((byte) 1, i, true);
				class707.method14229(class167, 0, 2004387699);
			}
			class167.method2769(i_28_);
			return class167;
		}
		if (modelType * -428962391 == 2) {
			Class167 class167 = (((NPCDefinition) class53_sub7.getDefinition(-2080195333 * anInt2571, (byte) -86)).method5483(class178, i, interface19, interface17, class707, aClass302_2553, 2100256080));
			if (null == class167) {
				aBool2525 = true;
				return null;
			}
			return class167;
		}
		if (-428962391 * modelType == 3) {
			if (null == class623)
				return null;
			Class167 class167 = class623.method10184(class178, i, class53_sub6, class53_sub7, class53_sub8, interface19, interface17, class707, (byte) -31);
			if (class167 == null) {
				aBool2525 = true;
				return null;
			}
			return class167;
		}
		if (modelType * -428962391 == 4) {
			ItemDefinitions class12 = ((ItemDefinitions) class53_sub8.getDefinition(anInt2571 * -2080195333, (byte) 22));
			Class167 class167 = class12.method660(class178, i, 10, class623, class707, 0, 0, 0, 0, (byte) 0);
			if (class167 == null) {
				aBool2525 = true;
				return null;
			}
			return class167;
		}
		if (6 == -428962391 * modelType) {
			Class167 class167 = (((NPCDefinition) class53_sub7.getDefinition(-2080195333 * anInt2571, (byte) 67)).method5493(class178, i, class53_sub17, interface19, interface17, class707, null, null, null, 0, aClass302_2553, (byte) -51));
			if (class167 == null) {
				aBool2525 = true;
				return null;
			}
			return class167;
		}
		if (-428962391 * modelType == 7) {
			if (class623 == null)
				return null;
			int i_34_ = -2080195333 * anInt2571 >>> 16;
			int i_35_ = -2080195333 * anInt2571 & 0xffff;
			int i_36_ = anInt2584 * -1918195571;
			Class167 class167 = class623.method10178(class178, i, class53_sub6, class53_sub13, class707, i_34_, i_35_, i_36_, -1506857936);
			if (class167 == null) {
				aBool2525 = true;
				return null;
			}
			return class167;
		}
		return null;
	}

	public void method4435(Class178 class178, Class167 class167, Class435 class435, int i, byte i_37_) {
		class167.method2732(class435);
		Class184[] class184s = class167.method2733();
		Class143[] class143s = class167.method2734();
		if ((null == aClass621_2595 || aClass621_2595.aBool8083) && (class184s != null || null != class143s))
			aClass621_2595 = Class621.method10149(i, false);
		if (aClass621_2595 != null)
			aClass621_2595.method10129(class178, (long) i, class184s, class143s, false);
	}

	public void method4436(int i, byte i_38_) {
		if (aClass14_2679 != null) {
			Class523 class523 = aClass14_2679.getFromIndex((long) i);
			if (null != class523)
				class523.method8661(607052656);
		}
	}

	public Class148 method4437(Class178 class178) {
		aBool2525 = false;
		long l = (((aBool2568 ? 1L : 0L) << 35) + (long) (anInt2561 * 345997065) + ((long) (anInt2564 * -1420827883) << 36) + ((aBool2566 ? 1L : 0L) << 38) + ((aBool2567 ? 1L : 0L) << 39) + ((long) (-728754787 * anInt2565) << 40));
		Class148 class148 = (Class148) aClass209_2521.method3767(l);
		if (class148 != null)
			return class148;
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null) {
			aBool2525 = true;
			return null;
		}
		if (aBool2566)
			class175.method2998();
		if (aBool2567)
			class175.method2956();
		if (-1420827883 * anInt2564 > 0)
			class175.method2953(-1420827883 * anInt2564);
		else if (0 != anInt2565 * -728754787)
			class175.method2953(1);
		if (-1420827883 * anInt2564 >= 1)
			class175.method2954(1);
		if (anInt2564 * -1420827883 >= 2)
			class175.method2954(16777215);
		if (-728754787 * anInt2565 != 0)
			class175.method2967(~0xffffff | -728754787 * anInt2565);
		class148 = class178.method3104(class175, true);
		aClass209_2521.method3764(class148, l, (class148.method2504() * class148.method2428() * 4), 209598753);
		return class148;
	}

	public String method4438(int i, String string, int i_39_) {
		if (null == aClass14_2679)
			return string;
		Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub28)
			return string;
		return (String) class523_sub28.anObject10554;
	}

	public static Class242 method4439(int i, int[] is, Class242 class242, boolean bool) {
		if (!Class251.aClass472_2716.method7651(i, (byte) -8))
			return null;
		int i_40_ = Class251.aClass472_2716.method7702(i, (byte) -99);
		InterfaceComponentDefinitions[] class250s;
		if (i_40_ == 0)
			class250s = new InterfaceComponentDefinitions[0];
		else if (class242 == null)
			class250s = new InterfaceComponentDefinitions[i_40_];
		else
			class250s = class242.aClass250Array2457;
		if (class242 == null)
			class242 = new Class242(bool, class250s);
		else {
			class242.aClass250Array2457 = class250s;
			class242.aBool2456 = bool;
		}
		for (int i_41_ = 0; i_41_ < i_40_; i_41_++) {
			if (class242.aClass250Array2457[i_41_] == null) {
				byte[] is_42_ = Class251.aClass472_2716.method7648(i, i_41_, is, 245018194);
				if (is_42_ != null) {
					InterfaceComponentDefinitions class250 = class242.aClass250Array2457[i_41_] = new InterfaceComponentDefinitions();
					class250.interfaceHash = -2111216817 * (i_41_ + (i << 16));
					class250.decode(new RSBuffer(is_42_), (byte) -7);
				}
			}
		}
		return class242;
	}

	public Class236 method4440(Class178 class178, byte i) {
		long l = ((long) (interfaceHash * -1363815505) << 32 | (long) (234012635 * anInt2709) & 0xffffffffL);
		Class236 class236 = (Class236) aClass209_2600.method3767(l);
		if (null != class236) {
			if (345997065 * anInt2561 != -458193921 * class236.anInt2393) {
				aClass209_2600.method3791(l);
				class236 = null;
			}
			if (null != class236)
				return class236;
		}
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null)
			return null;
		int i_43_ = class175.method2951();
		int i_44_ = class175.method2968();
		int[] is = new int[i_44_];
		int[] is_45_ = new int[i_44_];
		for (int i_46_ = 0; i_46_ < class175.method2945(); i_46_++) {
			int i_47_ = 0;
			int i_48_ = class175.method2944();
			for (int i_49_ = 0; i_49_ < class175.method2944(); i_49_++) {
				if (class175.method2961(i_49_, i_46_) != 0) {
					i_47_ = i_49_;
					break;
				}
			}
			for (int i_50_ = class175.method2944() - 1; i_50_ >= i_47_; i_50_--) {
				if (class175.method2961(i_50_, i_46_) != 0) {
					i_48_ = i_50_ + 1;
					break;
				}
			}
			is[i_46_ + class175.method2948()] = i_47_ + class175.method2946();
			is_45_[i_46_ + class175.method2948()] = i_48_ - i_47_;
		}
		Class145 class145 = class178.method3109(i_43_, i_44_, is, is_45_);
		if (class145 == null)
			return null;
		class236 = new Class236(i_43_, i_44_, is_45_, is, class145, anInt2561 * 345997065);
		aClass209_2600.method3770(class236, l);
		return class236;
	}

	public int method4441(int i, int i_51_, int i_52_) {
		if (null == aClass14_2679)
			return i_51_;
		Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub24)
			return i_51_;
		return class523_sub24.anInt10542 * -677457577;
	}

	public InterfaceComponentDefinitions() {
		anInt2582 = 0;
		aByte2532 = (byte) 0;
		aByte2533 = (byte) 0;
		aByte2591 = (byte) 0;
		aByte2610 = (byte) 0;
		anInt2574 = 0;
		anInt2507 = 0;
		anInt2502 = 0;
		anInt2686 = 0;
		anInt2540 = 0;
		anInt2541 = 0;
		anInt2581 = 0;
		anInt2543 = 0;
		anInt2676 = -1629387817;
		anInt2545 = -917996627;
		parentId = 666809181;
		hidden = false;
		anInt2552 = -596934093;
		anInt2549 = -1509241607;
		anInt2550 = 1911412439;
		aBool2701 = false;
		anInt2636 = 0;
		anInt2539 = 0;
		anInt2554 = 0;
		anInt2618 = 0;
		anInt2556 = 0;
		aBool2557 = false;
		anInt2707 = 0;
		anInt2694 = 163847493;
		aBool2560 = false;
		anInt2561 = -1531821881;
		anInt2562 = 0;
		aBool2632 = false;
		anInt2564 = 0;
		anInt2565 = 0;
		aBool2568 = false;
		aBool2569 = true;
		modelType = -182688103;
		anInt2584 = 1367647675;
		anInt2523 = 0;
		anInt2501 = 0;
		anInt2563 = 0;
		anInt2577 = 0;
		anInt2578 = 0;
		anInt2579 = 0;
		anInt2580 = 0;
		anInt2522 = 0;
		anInt2544 = -787193876;
		anInt2583 = 0;
		anInt2503 = 0;
		aBool2555 = false;
		aBool2586 = false;
		anInt2587 = 1710134862;
		aBool2692 = false;
		anInt2605 = 254363595;
		aBool2606 = true;
		aString2607 = "";
		anInt2608 = 0;
		anInt2536 = 0;
		anInt2512 = 0;
		aBool2611 = false;
		anInt2612 = 0;
		aBool2613 = false;
		componentSettings = InterfaceComponentSettings.aClass523_Sub13_10452;
		aBool2615 = false;
		aString2639 = "";
		anInt2629 = -670460215;
		aClass250_2685 = null;
		anInt2631 = 0;
		anInt2627 = 0;
		anInt2633 = anInt2506 * -915702225;
		aString2634 = "";
		aBool2635 = false;
		anInt2680 = 62233309;
		anInt2681 = 0;
		aString2515 = null;
		aBool2655 = false;
		anInt2547 = 454765767;
		anInt2691 = -219232365;
		anInt2548 = 1784620421;
		aBool2696 = false;
		aBool2697 = false;
		anInt2698 = -862751965;
		anInt2699 = 0;
		anInt2700 = 0;
		anInt2596 = 0;
		anInt2702 = 0;
		anInt2703 = 0;
		anInt2704 = 0;
		anInt2622 = -1768977945;
		anInt2706 = 333677645;
	}

	public static Class242 method4442(int i) {
		return Class31.aClass242Array302[i >> 16];
	}

	public void method4443(int i, String string, int i_53_) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		} else {
			Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
			if (null != class523_sub28)
				class523_sub28.method8661(607052656);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		}
	}

	public static Class242 method4444(int i, int[] is, Class242 class242, boolean bool) {
		if (!Class251.aClass472_2716.method7651(i, (byte) -35))
			return null;
		int i_54_ = Class251.aClass472_2716.method7702(i, (byte) 9);
		InterfaceComponentDefinitions[] class250s;
		if (i_54_ == 0)
			class250s = new InterfaceComponentDefinitions[0];
		else if (class242 == null)
			class250s = new InterfaceComponentDefinitions[i_54_];
		else
			class250s = class242.aClass250Array2457;
		if (class242 == null)
			class242 = new Class242(bool, class250s);
		else {
			class242.aClass250Array2457 = class250s;
			class242.aBool2456 = bool;
		}
		for (int i_55_ = 0; i_55_ < i_54_; i_55_++) {
			if (class242.aClass250Array2457[i_55_] == null) {
				byte[] is_56_ = Class251.aClass472_2716.method7648(i, i_55_, is, 2082304722);
				if (is_56_ != null) {
					InterfaceComponentDefinitions class250 = class242.aClass250Array2457[i_55_] = new InterfaceComponentDefinitions();
					class250.interfaceHash = -2111216817 * (i_55_ + (i << 16));
					class250.decode(new RSBuffer(is_56_), (byte) -98);
				}
			}
		}
		return class242;
	}

	public void method4445(int i, short i_57_, short i_58_, byte i_59_) {
		if (i < 5) {
			if (null == aShortArray2588) {
				aShortArray2588 = new short[5];
				aShortArray2551 = new short[5];
			}
			aShortArray2588[i] = i_57_;
			aShortArray2551[i] = i_58_;
		}
	}

	public void method4446(int i, short i_60_, short i_61_, byte i_62_) {
		if (i < 5) {
			if (aShortArray2526 == null) {
				aShortArray2526 = new short[5];
				aShortArray2603 = new short[5];
			}
			aShortArray2526[i] = i_60_;
			aShortArray2603[i] = i_61_;
		}
	}

	static {
		anInt2558 = -1013280657;
		anInt2505 = 16086136;
		anInt2538 = -1086761173;
		anInt2630 = 796315139;
		anInt2508 = 525516826;
		anInt2509 = -112015741;
		anInt2510 = -539526136;
		anInt2511 = -1941102161;
		anInt2658 = -322656989;
		anInt2513 = 2108949882;
		anInt2514 = 824853653;
		anInt2518 = 210035840;
		anInt2516 = 427205797;
		anInt2517 = 1983886942;
		anInt2528 = -363602841;
		aClass209_2521 = new Class209(6000000, 200);
		aClass209_2600 = new Class209(8);
		aClass209_2601 = new Class209(4);
		aClass209_2524 = new Class209(50);
		aBool2525 = false;
	}

	public static void method4447(Class472 class472, Class472 class472_63_, Class472 class472_64_, Class472 class472_65_) {
		Class251.aClass472_2716 = class472;
		Class8.aClass472_65 = class472_63_;
		Class397.aClass472_4061 = class472_64_;
		Class31.aClass242Array302 = new Class242[Class251.aClass472_2716.method7641(-2118365543)];
		Class391.aBoolArray4024 = new boolean[Class251.aClass472_2716.method7641(-2073754833)];
	}

	public static Class242 method4448(int i) {
		return Class31.aClass242Array302[i >> 16];
	}

	public static void method4449(Class472 class472, Class472 class472_66_, Class472 class472_67_, Class472 class472_68_) {
		Class251.aClass472_2716 = class472;
		Class8.aClass472_65 = class472_66_;
		Class397.aClass472_4061 = class472_67_;
		Class31.aClass242Array302 = new Class242[Class251.aClass472_2716.method7641(-2059386890)];
		Class391.aBoolArray4024 = new boolean[Class251.aClass472_2716.method7641(-2119548409)];
	}

	public static Class242 method4450(int i) {
		return Class31.aClass242Array302[i >> 16];
	}

	public void method4451(int i, int i_69_) {
		if (anIntArray2628 == null || anIntArray2628.length <= i) {
			int[] is = new int[i + 1];
			if (anIntArray2628 != null) {
				for (int i_70_ = 0; i_70_ < anIntArray2628.length; i_70_++)
					is[i_70_] = anIntArray2628[i_70_];
				for (int i_71_ = anIntArray2628.length; i_71_ < i; i_71_++)
					is[i_71_] = -1;
			}
			anIntArray2628 = is;
		}
		anIntArray2628[i] = i_69_;
	}

	public void method4452() {
		anObjectArray2662 = null;
		anObjectArray2637 = null;
		anObjectArray2638 = null;
		anObjectArray2705 = null;
		anObjectArray2640 = null;
		anObjectArray2708 = null;
		anObjectArray2642 = null;
		anObjectArray2643 = null;
		anObjectArray2576 = null;
		anObjectArray2645 = null;
		anObjectArray2646 = null;
		anObjectArray2647 = null;
		anObjectArray2648 = null;
		anIntArray2649 = null;
		anInt2699 = 0;
		anObjectArray2650 = null;
		anIntArray2651 = null;
		anInt2700 = 0;
		anObjectArray2652 = null;
		anIntArray2653 = null;
		anInt2596 = 0;
		anObjectArray2654 = null;
		anIntArray2609 = null;
		anInt2702 = 0;
		anObjectArray2656 = null;
		anIntArray2657 = null;
		anInt2703 = 0;
		anObjectArray2531 = null;
		anIntArray2659 = null;
		anInt2704 = 0;
		anObjectArray2660 = null;
		anObjectArray2661 = null;
		anObjectArray2616 = null;
		anObjectArray2663 = null;
		anObjectArray2664 = null;
		anObjectArray2665 = null;
		anObjectArray2666 = null;
		anObjectArray2667 = null;
		anObjectArray2668 = null;
		anObjectArray2572 = null;
		anObjectArray2670 = null;
		anObjectArray2671 = null;
		anObjectArray2672 = null;
		anObjectArray2673 = null;
		anObjectArray2529 = null;
		anObjectArray2542 = null;
		anObjectArray2674 = null;
		anObjectArray2677 = null;
		anObjectArray2678 = null;
		anInt2698 = -862751965;
	}

	public void method4456(int i, String string) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		} else {
			Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
			if (null != class523_sub28)
				class523_sub28.method8661(607052656);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		}
	}

	public static boolean method4461(int i, int[] is) {
		if (Class391.aBoolArray4024[i])
			return true;
		Class31.aClass242Array302[i] = Class221.method4132(i, is, Class31.aClass242Array302[i], false, (byte) 26);
		if (Class31.aClass242Array302[i] == null)
			return false;
		Class391.aBoolArray4024[i] = true;
		return true;
	}

	static void method4462(int i) {
		if (i != -1 && !Class391.aBoolArray4024[i]) {
			Class251.aClass472_2716.method7647(i, 981299834);
			Class31.aClass242Array302[i] = null;
		}
	}

	public static void method4463(int i) {
		Class391.aBoolArray4024[i] = false;
		Class236.method4285(i, (byte) -115);
	}

	public static void method4464(Class472 class472, Class472 class472_104_, Class472 class472_105_, Class472 class472_106_) {
		Class251.aClass472_2716 = class472;
		Class8.aClass472_65 = class472_104_;
		Class397.aClass472_4061 = class472_105_;
		Class31.aClass242Array302 = new Class242[Class251.aClass472_2716.method7641(-2098791723)];
		Class391.aBoolArray4024 = new boolean[Class251.aClass472_2716.method7641(-2096779158)];
	}

	public String method4466(int i, String string) {
		if (null == aClass14_2679)
			return string;
		Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub28)
			return string;
		return (String) class523_sub28.anObject10554;
	}

	Object[] method4467(RSBuffer class523_sub34) {
		int i = class523_sub34.readUnsignedByte(1618759141);
		if (i == 0)
			return null;
		Object[] objects = new Object[i];
		for (int i_130_ = 0; i_130_ < i; i_130_++) {
			int i_131_ = class523_sub34.readUnsignedByte(841450779);
			if (0 == i_131_)
				objects[i_130_] = new Integer(class523_sub34.readUnsignedInt((byte) -4));
			else if (i_131_ == 1)
				objects[i_130_] = class523_sub34.readString(-284544742);
		}
		aBool2635 = true;
		return objects;
	}

	public Class164 method4471(Class423 class423, Interface50 interface50) {
		Class164 class164 = ((Class164) class423.method6689(interface50, 1569774109 * anInt2605, false, aBool2606, -2097606516));
		aBool2525 = null == class164;
		return class164;
	}

	public void method4473(int i, int i_136_, int i_137_) {
		if (anIntArray2628 == null || anIntArray2628.length <= i) {
			int[] is = new int[i + 1];
			if (anIntArray2628 != null) {
				for (int i_138_ = 0; i_138_ < anIntArray2628.length; i_138_++)
					is[i_138_] = anIntArray2628[i_138_];
				for (int i_139_ = anIntArray2628.length; i_139_ < i; i_139_++)
					is[i_139_] = -1;
			}
			anIntArray2628 = is;
		}
		anIntArray2628[i] = i_136_;
	}

	public Class148 method4474(Class178 class178) {
		aBool2525 = false;
		long l = (((aBool2568 ? 1L : 0L) << 35) + (long) (anInt2561 * 345997065) + ((long) (anInt2564 * -1420827883) << 36) + ((aBool2566 ? 1L : 0L) << 38) + ((aBool2567 ? 1L : 0L) << 39) + ((long) (-728754787 * anInt2565) << 40));
		Class148 class148 = (Class148) aClass209_2521.method3767(l);
		if (class148 != null)
			return class148;
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null) {
			aBool2525 = true;
			return null;
		}
		if (aBool2566)
			class175.method2998();
		if (aBool2567)
			class175.method2956();
		if (-1420827883 * anInt2564 > 0)
			class175.method2953(-1420827883 * anInt2564);
		else if (0 != anInt2565 * -728754787)
			class175.method2953(1);
		if (-1420827883 * anInt2564 >= 1)
			class175.method2954(1);
		if (anInt2564 * -1420827883 >= 2)
			class175.method2954(16777215);
		if (-728754787 * anInt2565 != 0)
			class175.method2967(~0xffffff | -728754787 * anInt2565);
		class148 = class178.method3104(class175, true);
		aClass209_2521.method3764(class148, l, (class148.method2504() * class148.method2428() * 4), 1046652536);
		return class148;
	}

	public Class148 method4475(Class178 class178) {
		aBool2525 = false;
		long l = (((aBool2568 ? 1L : 0L) << 35) + (long) (anInt2561 * 345997065) + ((long) (anInt2564 * -1420827883) << 36) + ((aBool2566 ? 1L : 0L) << 38) + ((aBool2567 ? 1L : 0L) << 39) + ((long) (-728754787 * anInt2565) << 40));
		Class148 class148 = (Class148) aClass209_2521.method3767(l);
		if (class148 != null)
			return class148;
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null) {
			aBool2525 = true;
			return null;
		}
		if (aBool2566)
			class175.method2998();
		if (aBool2567)
			class175.method2956();
		if (-1420827883 * anInt2564 > 0)
			class175.method2953(-1420827883 * anInt2564);
		else if (0 != anInt2565 * -728754787)
			class175.method2953(1);
		if (-1420827883 * anInt2564 >= 1)
			class175.method2954(1);
		if (anInt2564 * -1420827883 >= 2)
			class175.method2954(16777215);
		if (-728754787 * anInt2565 != 0)
			class175.method2967(~0xffffff | -728754787 * anInt2565);
		class148 = class178.method3104(class175, true);
		aClass209_2521.method3764(class148, l, (class148.method2504() * class148.method2428() * 4), 575768345);
		return class148;
	}

	public Class164 method4476(Class423 class423, Interface50 interface50) {
		Class164 class164 = ((Class164) class423.method6689(interface50, 1569774109 * anInt2605, false, aBool2606, -1876334424));
		aBool2525 = null == class164;
		return class164;
	}

	public Class164 method4477(Class423 class423, Interface50 interface50) {
		Class164 class164 = ((Class164) class423.method6689(interface50, 1569774109 * anInt2605, false, aBool2606, -1953151213));
		aBool2525 = null == class164;
		return class164;
	}

	public static void method4478() {
		aClass209_2521.method3773(-1941893533);
		aClass209_2524.method3773(-2119825170);
		aClass209_2600.method3773(-1965712237);
		aClass209_2601.method3773(-2040835179);
	}

	public int method4479(int i, int i_140_) {
		if (null == aClass14_2679)
			return i_140_;
		Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub24)
			return i_140_;
		return class523_sub24.anInt10542 * -677457577;
	}

	public static void method4480(int i) {
		Class53_Sub8.anInt10969 = i * 945947993;
		aClass209_2524.method3773(-2099141943);
	}

	public void method4481(int i, short i_141_, short i_142_) {
		if (i < 5) {
			if (null == aShortArray2588) {
				aShortArray2588 = new short[5];
				aShortArray2551 = new short[5];
			}
			aShortArray2588[i] = i_141_;
			aShortArray2551[i] = i_142_;
		}
	}

	public void method4485(int i, String string, short i_143_) {
		if (aStringArray2626 == null || aStringArray2626.length <= i) {
			String[] strings = new String[1 + i];
			if (aStringArray2626 != null) {
				for (int i_144_ = 0; i_144_ < aStringArray2626.length; i_144_++)
					strings[i_144_] = aStringArray2626[i_144_];
			}
			aStringArray2626 = strings;
		}
		aStringArray2626[i] = string;
	}

	public static void method4486() {
		Class31.aClass242Array302 = new Class242[Class251.aClass472_2716.method7641(-2097116290)];
		Class391.aBoolArray4024 = new boolean[Class251.aClass472_2716.method7641(-2053959564)];
	}

	public Class236 method4487(Class178 class178) {
		long l = ((long) (interfaceHash * -1363815505) << 32 | (long) (234012635 * anInt2709) & 0xffffffffL);
		Class236 class236 = (Class236) aClass209_2600.method3767(l);
		if (null != class236) {
			if (345997065 * anInt2561 != -458193921 * class236.anInt2393) {
				aClass209_2600.method3791(l);
				class236 = null;
			}
			if (null != class236)
				return class236;
		}
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null)
			return null;
		int i = class175.method2951();
		int i_145_ = class175.method2968();
		int[] is = new int[i_145_];
		int[] is_146_ = new int[i_145_];
		for (int i_147_ = 0; i_147_ < class175.method2945(); i_147_++) {
			int i_148_ = 0;
			int i_149_ = class175.method2944();
			for (int i_150_ = 0; i_150_ < class175.method2944(); i_150_++) {
				if (class175.method2961(i_150_, i_147_) != 0) {
					i_148_ = i_150_;
					break;
				}
			}
			for (int i_151_ = class175.method2944() - 1; i_151_ >= i_148_; i_151_--) {
				if (class175.method2961(i_151_, i_147_) != 0) {
					i_149_ = i_151_ + 1;
					break;
				}
			}
			is[i_147_ + class175.method2948()] = i_148_ + class175.method2946();
			is_146_[i_147_ + class175.method2948()] = i_149_ - i_148_;
		}
		Class145 class145 = class178.method3109(i, i_145_, is, is_146_);
		if (class145 == null)
			return null;
		class236 = new Class236(i, i_145_, is_146_, is, class145, anInt2561 * 345997065);
		aClass209_2600.method3770(class236, l);
		return class236;
	}

	Object[] decodeScript(RSBuffer buffer, short i) {
		int i_152_ = buffer.readUnsignedByte(2098410319);
		if (i_152_ == 0)
			return null;
		Object[] objects = new Object[i_152_];
		for (int i_153_ = 0; i_153_ < i_152_; i_153_++) {
			int i_154_ = buffer.readUnsignedByte(-384963913);
			if (0 == i_154_)
				objects[i_153_] = new Integer(buffer.readUnsignedInt((byte) -93));
			else if (i_154_ == 1)
				objects[i_153_] = buffer.readString(-2007693649);
		}
		aBool2635 = true;
		return objects;
	}

	public void method4489(int i, String string) {
		if (aStringArray2626 == null || aStringArray2626.length <= i) {
			String[] strings = new String[1 + i];
			if (aStringArray2626 != null) {
				for (int i_155_ = 0; i_155_ < aStringArray2626.length; i_155_++)
					strings[i_155_] = aStringArray2626[i_155_];
			}
			aStringArray2626 = strings;
		}
		aStringArray2626[i] = string;
	}

	public void method4490(int i, String string) {
		if (aStringArray2626 == null || aStringArray2626.length <= i) {
			String[] strings = new String[1 + i];
			if (aStringArray2626 != null) {
				for (int i_156_ = 0; i_156_ < aStringArray2626.length; i_156_++)
					strings[i_156_] = aStringArray2626[i_156_];
			}
			aStringArray2626 = strings;
		}
		aStringArray2626[i] = string;
	}

	public void method4491(int i, String string) {
		if (aStringArray2626 == null || aStringArray2626.length <= i) {
			String[] strings = new String[1 + i];
			if (aStringArray2626 != null) {
				for (int i_157_ = 0; i_157_ < aStringArray2626.length; i_157_++)
					strings[i_157_] = aStringArray2626[i_157_];
			}
			aStringArray2626 = strings;
		}
		aStringArray2626[i] = string;
	}

	public static void method4492() {
		aClass209_2521.method3776(-503208708);
		aClass209_2524.method3776(-1576661152);
		aClass209_2600.method3776(2101106356);
		aClass209_2601.method3776(1733399477);
	}

	public Class164 method4493(Class423 class423, Interface50 interface50, short i) {
		Class164 class164 = ((Class164) class423.method6689(interface50, 1569774109 * anInt2605, false, aBool2606, -2033029394));
		aBool2525 = null == class164;
		return class164;
	}

	public Class236 method4494(Class178 class178) {
		long l = ((long) (interfaceHash * -1363815505) << 32 | (long) (234012635 * anInt2709) & 0xffffffffL);
		Class236 class236 = (Class236) aClass209_2600.method3767(l);
		if (null != class236) {
			if (345997065 * anInt2561 != -458193921 * class236.anInt2393) {
				aClass209_2600.method3791(l);
				class236 = null;
			}
			if (null != class236)
				return class236;
		}
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null)
			return null;
		int i = class175.method2951();
		int i_158_ = class175.method2968();
		int[] is = new int[i_158_];
		int[] is_159_ = new int[i_158_];
		for (int i_160_ = 0; i_160_ < class175.method2945(); i_160_++) {
			int i_161_ = 0;
			int i_162_ = class175.method2944();
			for (int i_163_ = 0; i_163_ < class175.method2944(); i_163_++) {
				if (class175.method2961(i_163_, i_160_) != 0) {
					i_161_ = i_163_;
					break;
				}
			}
			for (int i_164_ = class175.method2944() - 1; i_164_ >= i_161_; i_164_--) {
				if (class175.method2961(i_164_, i_160_) != 0) {
					i_162_ = i_164_ + 1;
					break;
				}
			}
			is[i_160_ + class175.method2948()] = i_161_ + class175.method2946();
			is_159_[i_160_ + class175.method2948()] = i_162_ - i_161_;
		}
		Class145 class145 = class178.method3109(i, i_158_, is, is_159_);
		if (class145 == null)
			return null;
		class236 = new Class236(i, i_158_, is_159_, is, class145, anInt2561 * 345997065);
		aClass209_2600.method3770(class236, l);
		return class236;
	}

	public Class236 method4495(Class178 class178) {
		long l = ((long) (interfaceHash * -1363815505) << 32 | (long) (234012635 * anInt2709) & 0xffffffffL);
		Class236 class236 = (Class236) aClass209_2600.method3767(l);
		if (null != class236) {
			if (345997065 * anInt2561 != -458193921 * class236.anInt2393) {
				aClass209_2600.method3791(l);
				class236 = null;
			}
			if (null != class236)
				return class236;
		}
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null)
			return null;
		int i = class175.method2951();
		int i_165_ = class175.method2968();
		int[] is = new int[i_165_];
		int[] is_166_ = new int[i_165_];
		for (int i_167_ = 0; i_167_ < class175.method2945(); i_167_++) {
			int i_168_ = 0;
			int i_169_ = class175.method2944();
			for (int i_170_ = 0; i_170_ < class175.method2944(); i_170_++) {
				if (class175.method2961(i_170_, i_167_) != 0) {
					i_168_ = i_170_;
					break;
				}
			}
			for (int i_171_ = class175.method2944() - 1; i_171_ >= i_168_; i_171_--) {
				if (class175.method2961(i_171_, i_167_) != 0) {
					i_169_ = i_171_ + 1;
					break;
				}
			}
			is[i_167_ + class175.method2948()] = i_168_ + class175.method2946();
			is_166_[i_167_ + class175.method2948()] = i_169_ - i_168_;
		}
		Class145 class145 = class178.method3109(i, i_165_, is, is_166_);
		if (class145 == null)
			return null;
		class236 = new Class236(i, i_165_, is_166_, is, class145, anInt2561 * 345997065);
		aClass209_2600.method3770(class236, l);
		return class236;
	}

	public Class236 method4496(Class178 class178) {
		long l = ((long) (interfaceHash * -1363815505) << 32 | (long) (234012635 * anInt2709) & 0xffffffffL);
		Class236 class236 = (Class236) aClass209_2600.method3767(l);
		if (null != class236) {
			if (345997065 * anInt2561 != -458193921 * class236.anInt2393) {
				aClass209_2600.method3791(l);
				class236 = null;
			}
			if (null != class236)
				return class236;
		}
		Class175 class175 = Class166.method2658(Class397.aClass472_4061, anInt2561 * 345997065, 0);
		if (class175 == null)
			return null;
		int i = class175.method2951();
		int i_172_ = class175.method2968();
		int[] is = new int[i_172_];
		int[] is_173_ = new int[i_172_];
		for (int i_174_ = 0; i_174_ < class175.method2945(); i_174_++) {
			int i_175_ = 0;
			int i_176_ = class175.method2944();
			for (int i_177_ = 0; i_177_ < class175.method2944(); i_177_++) {
				if (class175.method2961(i_177_, i_174_) != 0) {
					i_175_ = i_177_;
					break;
				}
			}
			for (int i_178_ = class175.method2944() - 1; i_178_ >= i_175_; i_178_--) {
				if (class175.method2961(i_178_, i_174_) != 0) {
					i_176_ = i_178_ + 1;
					break;
				}
			}
			is[i_174_ + class175.method2948()] = i_175_ + class175.method2946();
			is_173_[i_174_ + class175.method2948()] = i_176_ - i_175_;
		}
		Class145 class145 = class178.method3109(i, i_172_, is, is_173_);
		if (class145 == null)
			return null;
		class236 = new Class236(i, i_172_, is_173_, is, class145, anInt2561 * 345997065);
		aClass209_2600.method3770(class236, l);
		return class236;
	}

	public int method4498(int i, int i_202_) {
		if (null == aClass14_2679)
			return i_202_;
		Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub24)
			return i_202_;
		return class523_sub24.anInt10542 * -677457577;
	}

	public String method4499(int i, String string) {
		if (null == aClass14_2679)
			return string;
		Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub28)
			return string;
		return (String) class523_sub28.anObject10554;
	}

	public String method4500(int i, String string) {
		if (null == aClass14_2679)
			return string;
		Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
		if (null == class523_sub28)
			return string;
		return (String) class523_sub28.anObject10554;
	}

	public void method4501(int i) {
		anObjectArray2662 = null;
		anObjectArray2637 = null;
		anObjectArray2638 = null;
		anObjectArray2705 = null;
		anObjectArray2640 = null;
		anObjectArray2708 = null;
		anObjectArray2642 = null;
		anObjectArray2643 = null;
		anObjectArray2576 = null;
		anObjectArray2645 = null;
		anObjectArray2646 = null;
		anObjectArray2647 = null;
		anObjectArray2648 = null;
		anIntArray2649 = null;
		anInt2699 = 0;
		anObjectArray2650 = null;
		anIntArray2651 = null;
		anInt2700 = 0;
		anObjectArray2652 = null;
		anIntArray2653 = null;
		anInt2596 = 0;
		anObjectArray2654 = null;
		anIntArray2609 = null;
		anInt2702 = 0;
		anObjectArray2656 = null;
		anIntArray2657 = null;
		anInt2703 = 0;
		anObjectArray2531 = null;
		anIntArray2659 = null;
		anInt2704 = 0;
		anObjectArray2660 = null;
		anObjectArray2661 = null;
		anObjectArray2616 = null;
		anObjectArray2663 = null;
		anObjectArray2664 = null;
		anObjectArray2665 = null;
		anObjectArray2666 = null;
		anObjectArray2667 = null;
		anObjectArray2668 = null;
		anObjectArray2572 = null;
		anObjectArray2670 = null;
		anObjectArray2671 = null;
		anObjectArray2672 = null;
		anObjectArray2673 = null;
		anObjectArray2529 = null;
		anObjectArray2542 = null;
		anObjectArray2674 = null;
		anObjectArray2677 = null;
		anObjectArray2678 = null;
		anInt2698 = -862751965;
	}

	public Class504 method4502(Class53_Sub11 class53_sub11, Class53_Sub10 class53_sub10, int i) {
		if (-1 == anInt2547 * 642394889)
			return null;
		long l = (((long) (-822448913 * anInt2688) & 0xffffL) << 48 | ((long) (anInt2689 * 2001028959) & 0xffffL) << 32 | ((long) (-1229298021 * anInt2690) & 0xffffL) << 16 | (long) (642394889 * anInt2547) & 0xffffL);
		Class504 class504 = (Class504) aClass209_2601.method3767(l);
		if (null == class504) {
			class504 = Class532.method8787(anInt2547 * 642394889, anInt2688 * -822448913, anInt2689 * 2001028959, anInt2690 * -1229298021, class53_sub11, class53_sub10, 540170546);
			aClass209_2601.method3770(class504, l);
		}
		return class504;
	}

	public void method4503(int i, int i_203_) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub24(i_203_), (long) i);
		} else {
			Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
			if (class523_sub24 == null)
				aClass14_2679.method738(new Class523_Sub24(i_203_), (long) i);
			else
				class523_sub24.anInt10542 = i_203_ * 484092519;
		}
	}

	public void method4504(int i, int i_204_) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub24(i_204_), (long) i);
		} else {
			Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
			if (class523_sub24 == null)
				aClass14_2679.method738(new Class523_Sub24(i_204_), (long) i);
			else
				class523_sub24.anInt10542 = i_204_ * 484092519;
		}
	}

	public void method4505(int i, int i_205_, int i_206_) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub24(i_205_), (long) i);
		} else {
			Class523_Sub24 class523_sub24 = (Class523_Sub24) aClass14_2679.getFromIndex((long) i);
			if (class523_sub24 == null)
				aClass14_2679.method738(new Class523_Sub24(i_205_), (long) i);
			else
				class523_sub24.anInt10542 = i_205_ * 484092519;
		}
	}

	int[] method4506(RSBuffer class523_sub34) {
		int i = class523_sub34.readUnsignedByte(1256608793);
		if (0 == i)
			return null;
		int[] is = new int[i];
		for (int i_207_ = 0; i_207_ < i; i_207_++)
			is[i_207_] = class523_sub34.readUnsignedInt((byte) -9);
		return is;
	}

	public void method4507(int i, String string) {
		if (aClass14_2679 == null) {
			aClass14_2679 = new Class14(16);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		} else {
			Class523_Sub28 class523_sub28 = (Class523_Sub28) aClass14_2679.getFromIndex((long) i);
			if (null != class523_sub28)
				class523_sub28.method8661(607052656);
			aClass14_2679.method738(new Class523_Sub28(string), (long) i);
		}
	}

	public void method4508(int i) {
		if (aClass14_2679 != null) {
			Class523 class523 = aClass14_2679.getFromIndex((long) i);
			if (null != class523)
				class523.method8661(607052656);
		}
	}

	public void method4509(int i) {
		if (aClass14_2679 != null) {
			Class523 class523 = aClass14_2679.getFromIndex((long) i);
			if (null != class523)
				class523.method8661(607052656);
		}
	}

	public void method4510(int i, short i_208_, short i_209_) {
		if (i < 5) {
			if (null == aShortArray2588) {
				aShortArray2588 = new short[5];
				aShortArray2551 = new short[5];
			}
			aShortArray2588[i] = i_208_;
			aShortArray2551[i] = i_209_;
		}
	}

	public static void method4511() {
		Class31.aClass242Array302 = new Class242[Class251.aClass472_2716.method7641(-2042636606)];
		Class391.aBoolArray4024 = new boolean[Class251.aClass472_2716.method7641(-2044662419)];
	}

	public void method4512(int i, short i_210_, short i_211_) {
		if (i < 5) {
			if (aShortArray2526 == null) {
				aShortArray2526 = new short[5];
				aShortArray2603 = new short[5];
			}
			aShortArray2526[i] = i_210_;
			aShortArray2603[i] = i_211_;
		}
	}

	public void method4513(int i, short i_212_, short i_213_) {
		if (i < 5) {
			if (aShortArray2526 == null) {
				aShortArray2526 = new short[5];
				aShortArray2603 = new short[5];
			}
			aShortArray2526[i] = i_212_;
			aShortArray2603[i] = i_213_;
		}
	}

	public void method4514(int i, short i_214_, short i_215_) {
		if (i < 5) {
			if (aShortArray2526 == null) {
				aShortArray2526 = new short[5];
				aShortArray2603 = new short[5];
			}
			aShortArray2526[i] = i_214_;
			aShortArray2603[i] = i_215_;
		}
	}

	static void method4515(int i) {
		synchronized (Class38.aClass209_374) {
			Class38.aClass209_374.method3776(-2086989253);
		}
	}

	static void method4516(Class669 class669, int i) {
		int i_216_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		TwitchWebcamDevice twitchwebcamdevice = Class447.method7244(i_216_, 1655699726);
		if (null == twitchwebcamdevice)
			class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = -1;
		else
			class669.anIntArray8557[(class669.anInt8558 += 2138772399) * 1357652815 - 1] = twitchwebcamdevice.method1689();
	}

	static final void method4517(Class669 class669, int i) {
		int i_217_ = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]);
		InterfaceComponentDefinitions class250 = Class188.getDefinitions(i_217_, -1494589954);
		Class242 class242 = Class31.aClass242Array302[i_217_ >> 16];
		Class366.method6326(class250, class242, class669, (byte) 1);
	}

	static boolean method4518(int i, int i_218_) {
		return (59 == i || 2 == i || i == 8 || i == 17 || 15 == i || 16 == i || i == 58);
	}

	static void method4519(int i, int i_219_, byte i_220_) {
		Class36.anInt346 = 805025479 * i;
		Class36.anInt347 = i_219_ * -2101624987;
	}

	static void method4520(int i, int i_221_, int i_222_) {
		if (1 == 1459601073 * Class36.anInt332)
			Class381.method6407(BaseVarType.aClass523_Sub27_Sub6_5392, i, i_221_, false, (byte) 0);
		else if (Class36.anInt332 * 1459601073 == 2)
			Class436.method6874(i, i_221_, -1763152225);
		Class36.anInt332 = 0;
		BaseVarType.aClass523_Sub27_Sub6_5392 = null;
	}

	static final void method4521(Class669 class669, byte i) {
		class669.anInt8558 -= 2138772399;
	}
}
