package jagex;

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

public class Class63 {
	static Class63 aClass63_547;
	static Class63 aClass63_548;
	public static Class63 aClass63_549;
	static Class63 aClass63_550;
	static Class63 aClass63_551;
	static Class63 aClass63_552;
	static Class63 aClass63_553;
	static Class63 aClass63_554;
	static Class63 aClass63_555;
	static Class63 aClass63_556;
	static Class63 aClass63_557;
	static Class63 aClass63_558;
	static Class63 aClass63_559;
	static Class63 aClass63_560;
	static Class63 aClass63_561;
	static Class63 aClass63_562;
	static Class63 aClass63_563;
	static Class63 aClass63_564;
	static Class63 aClass63_565;
	static Class63 aClass63_566;
	static Class63 aClass63_567;
	static Class63 aClass63_568;
	static Class63 aClass63_569;
	static Class63 aClass63_570;
	public static Class63 aClass63_571;
	public static Class63 aClass63_572;
	public static Class63 aClass63_573;
	public static Class63 aClass63_574;
	static Class63 aClass63_575;
	static Class63 aClass63_576;
	static Class63 aClass63_577;
	static Class63 aClass63_578;
	static Class63 aClass63_579;
	static Class63 aClass63_580;
	static Class63 aClass63_581;
	static Class63 aClass63_582;
	static Class63 aClass63_583;
	static Class63 aClass63_584;
	static Class63 aClass63_585;
	static Class63 aClass63_586;
	static Class63 aClass63_587;
	static Class63 aClass63_588;
	static Class63 aClass63_589;
	public static Class63 aClass63_590;
	static Class63 aClass63_591;
	static Class63 aClass63_592;
	static Class63 aClass63_593;
	static Class63 aClass63_594;
	static Class63 aClass63_595;
	static Class63 aClass63_596;
	static Class63 aClass63_597;
	static Class63 aClass63_598;
	static Class63 aClass63_599;
	static Class63 aClass63_600;
	static Class63 aClass63_601;
	static Class63 aClass63_602;
	static Class63 aClass63_603;
	static Class63 aClass63_604;
	static Class63 aClass63_605;
	static Class63 aClass63_606 = new Class63(105);
	static Class63 aClass63_607;
	static Class63 aClass63_608;
	static Class63 aClass63_609;
	static Class63 aClass63_610;
	static Class63 aClass63_611;
	static Class63 aClass63_612;
	public static Class63 aClass63_613;
	static Class63 aClass63_614;
	static Class63 aClass63_615;
	static Class63 aClass63_616;
	public static Class63 aClass63_617;
	static Class63 aClass63_618;
	static Class63 aClass63_619;
	static Class63 aClass63_620;
	static Class63 aClass63_621;
	static Class63 aClass63_622;
	static Class63 aClass63_623;
	static Class63 aClass63_624;
	static Class63 aClass63_625;
	static Class63 aClass63_626;
	static Class63 aClass63_627;
	static Class63 aClass63_628;
	static Class63 aClass63_629;
	static Class63 aClass63_630;
	static Class63 aClass63_631;
	static Class63 aClass63_632;
	static Class63 aClass63_633;
	static Class63 aClass63_634;
	static Class63 aClass63_635;
	static Class63 aClass63_636;
	static Class63 aClass63_637;
	static Class63 aClass63_638;
	static Class63 aClass63_639;
	static Class63 aClass63_640;
	static Class63 aClass63_641;
	static Class63 aClass63_642;
	static Class63 aClass63_643;
	static Class63 aClass63_644;
	static Class63 aClass63_645;
	static Class63 aClass63_646;
	static Class63 aClass63_647;
	static Class63 aClass63_648;
	static Class63 aClass63_649;
	static Class63 aClass63_650;
	static Class63 aClass63_651;
	static Class63 aClass63_652;
	static Class63 aClass63_653;
	static Class63 aClass63_654;
	static Class63 aClass63_655;
	static Class63 aClass63_656;
	static Class63 aClass63_657;
	static Class63 aClass63_658;
	static Class63 aClass63_659;
	static Class63 aClass63_660;
	static Class63 aClass63_661;
	static Class63 aClass63_662;
	static Class63 aClass63_663;
	static Class63 aClass63_664;
	static Class63 aClass63_665;
	static Class63 aClass63_666;
	static Class63 aClass63_667;
	static Class63 aClass63_668;
	static Class63 aClass63_669;
	static Class63 aClass63_670;
	static Class63 aClass63_671;
	public int anInt672;
	public static Class248 idx17Reference;
	static int anInt674;

	static {
		aClass63_548 = new Class63(75);
		aClass63_549 = new Class63(46);
		aClass63_607 = new Class63(12);
		aClass63_643 = new Class63(88);
		aClass63_560 = new Class63(97);
		aClass63_553 = new Class63(16);
		aClass63_551 = new Class63(60);
		aClass63_555 = new Class63(15);
		aClass63_556 = new Class63(48);
		aClass63_564 = new Class63(55);
		aClass63_558 = new Class63(116);
		aClass63_559 = new Class63(51);
		aClass63_610 = new Class63(87);
		aClass63_565 = new Class63(28);
		aClass63_562 = new Class63(96);
		aClass63_563 = new Class63(73);
		aClass63_597 = new Class63(58);
		aClass63_547 = new Class63(123);
		aClass63_652 = new Class63(77);
		aClass63_567 = new Class63(64);
		aClass63_568 = new Class63(90);
		aClass63_584 = new Class63(69);
		aClass63_570 = new Class63(40);
		aClass63_571 = new Class63(31);
		aClass63_572 = new Class63(115);
		aClass63_573 = new Class63(59);
		aClass63_574 = new Class63(108);
		aClass63_575 = new Class63(25);
		aClass63_576 = new Class63(65);
		aClass63_577 = new Class63(121);
		aClass63_578 = new Class63(22);
		aClass63_554 = new Class63(109);
		aClass63_658 = new Class63(110);
		aClass63_581 = new Class63(67);
		aClass63_582 = new Class63(29);
		aClass63_668 = new Class63(43);
		aClass63_601 = new Class63(26);
		aClass63_585 = new Class63(118);
		aClass63_586 = new Class63(8);
		aClass63_587 = new Class63(89);
		aClass63_613 = new Class63(74);
		aClass63_603 = new Class63(86);
		aClass63_590 = new Class63(83);
		aClass63_591 = new Class63(93);
		aClass63_592 = new Class63(53);
		aClass63_593 = new Class63(100);
		aClass63_594 = new Class63(45);
		aClass63_595 = new Class63(0);
		aClass63_596 = new Class63(50);
		aClass63_660 = new Class63(54);
		aClass63_598 = new Class63(44);
		aClass63_552 = new Class63(107);
		aClass63_600 = new Class63(98);
		aClass63_605 = new Class63(112);
		aClass63_602 = new Class63(52);
		aClass63_631 = new Class63(99);
		aClass63_566 = new Class63(34);
		aClass63_654 = new Class63(106);
		aClass63_649 = new Class63(11);
		aClass63_664 = new Class63(1);
		aClass63_608 = new Class63(14);
		aClass63_609 = new Class63(17);
		aClass63_583 = new Class63(66);
		aClass63_611 = new Class63(30);
		aClass63_612 = new Class63(95);
		aClass63_569 = new Class63(61);
		aClass63_614 = new Class63(78);
		aClass63_615 = new Class63(42);
		aClass63_616 = new Class63(68);
		aClass63_617 = new Class63(21);
		aClass63_618 = new Class63(94);
		aClass63_579 = new Class63(82);
		aClass63_620 = new Class63(24);
		aClass63_621 = new Class63(27);
		aClass63_622 = new Class63(79);
		aClass63_623 = new Class63(103);
		aClass63_624 = new Class63(76);
		aClass63_625 = new Class63(41);
		aClass63_667 = new Class63(81);
		aClass63_619 = new Class63(6);
		aClass63_628 = new Class63(39);
		aClass63_629 = new Class63(114);
		aClass63_580 = new Class63(49);
		aClass63_645 = new Class63(47);
		aClass63_632 = new Class63(57);
		aClass63_633 = new Class63(33);
		aClass63_634 = new Class63(117);
		aClass63_635 = new Class63(19);
		aClass63_636 = new Class63(92);
		aClass63_637 = new Class63(102);
		aClass63_638 = new Class63(62);
		aClass63_639 = new Class63(10);
		aClass63_640 = new Class63(32);
		aClass63_604 = new Class63(85);
		aClass63_642 = new Class63(70);
		aClass63_630 = new Class63(101);
		aClass63_644 = new Class63(71);
		aClass63_661 = new Class63(124);
		aClass63_646 = new Class63(113);
		aClass63_647 = new Class63(80);
		aClass63_648 = new Class63(23);
		aClass63_557 = new Class63(63);
		aClass63_650 = new Class63(120);
		aClass63_651 = new Class63(36);
		aClass63_550 = new Class63(37);
		aClass63_653 = new Class63(5);
		aClass63_627 = new Class63(56);
		aClass63_655 = new Class63(104);
		aClass63_588 = new Class63(13);
		aClass63_657 = new Class63(72);
		aClass63_626 = new Class63(9);
		aClass63_659 = new Class63(91);
		aClass63_589 = new Class63(122);
		aClass63_641 = new Class63(4);
		aClass63_662 = new Class63(119);
		aClass63_663 = new Class63(35);
		aClass63_599 = new Class63(7);
		aClass63_665 = new Class63(18);
		aClass63_666 = new Class63(3);
		aClass63_561 = new Class63(111);
		aClass63_656 = new Class63(2);
		aClass63_669 = new Class63(38);
		aClass63_670 = new Class63(84);
		aClass63_671 = new Class63(20);
	}

	Class63(int i) {
		anInt672 = 89544511 * i;
	}

	static final void decodePlayerMask(Class572_Sub15_Sub2 buf, int i, Player updateBuild, int i_0_, int i_1_) {
		if (0 != (i_0_ & 0x8)) {
			int[] is = new int[4];
			for (int i_2_ = 0; i_2_ < 4; i_2_++)
				is[i_2_] = buf.readBigSmart((byte) 64);
			int i_3_ = buf.readUnsignedByteC(-1355805752);
			Class565.method6699(updateBuild, is, i_3_, false, (short) -10082);
		}
		if (0 != (i_0_ & 0x800000)) {
			int i_4_ = buf.readUnsignedByte128(1691189556);
			int[] is = new int[i_4_];
			int[] is_5_ = new int[i_4_];
			for (int i_6_ = 0; i_6_ < i_4_; i_6_++) {
				int i_7_ = buf.readUnsignedShortLE((byte) -72);
				if (49152 == (i_7_ & 0xc000)) {
					int i_8_ = buf.readUnsignedShortLE((byte) -28);
					is[i_6_] = i_7_ << 16 | i_8_;
				} else
					is[i_6_] = i_7_;
				is_5_[i_6_] = buf.readUnsignedShort128((byte) 107);
			}
			updateBuild.method10518(is, is_5_, (byte) -125);
		}
		if (0 != (i_0_ & 0x80)) {
			int i_9_ = buf.readUnsignedByte(1679176801);
			if (i_9_ > 0) {
				for (int i_10_ = 0; i_10_ < i_9_; i_10_++) {
					int i_11_ = -1;
					int i_12_ = -1;
					int i_13_ = -1;
					int i_14_ = buf.readUnsignedSmart(1042142722);
					if (i_14_ == 32767) {
						i_14_ = buf.readUnsignedSmart(-1704945020);
						i_12_ = buf.readUnsignedSmart(-1868394486);
						i_11_ = buf.readUnsignedSmart(-139971179);
						i_13_ = buf.readUnsignedSmart(-561297966);
					} else if (i_14_ != 32766)
						i_12_ = buf.readUnsignedSmart(1681229419);
					else {
						i_14_ = -1;
						i_12_ = buf.readUnsignedByteC(-1331366873);
					}
					int i_15_ = buf.readUnsignedSmart(-1444681298);
					updateBuild.method10522(i_14_, i_12_, i_11_, i_13_, client.cycles, i_15_, -1763509798);
				}
			}
			int i_16_ = buf.readUnsignedByte128(-673061871);
			if (i_16_ > 0) {
				for (int i_17_ = 0; i_17_ < i_16_; i_17_++) {
					int i_18_ = buf.readUnsignedSmart(409023123);
					int i_19_ = buf.readUnsignedSmart(-149900816);
					if (i_19_ != 32767) {
						int i_20_ = buf.readUnsignedSmart(-1723274995);
						int i_21_ = buf.readUnsignedByte(1352491890);
						int i_22_ = (i_19_ > 0 ? buf.readUnsignedByte(270534686) : i_21_);
						updateBuild.method10571(i_18_, (client.cycles), i_19_, i_20_, i_21_, i_22_, -1448087679);
					} else
						updateBuild.method10524(i_18_, 16711935);
				}
			}
		}
		if ((i_0_ & 0x1000) != 0) {
			updateBuild.aClass47_11837 = ((Class47) Class455.method5387(Class47.method838((short) -17224), buf.readUnsigned128Byte((byte) 54), -1941771674));
			if (null == updateBuild.aClass47_11837)
				updateBuild.aClass47_11837 = Class47.aClass47_467;
		}
		if (0 != (i_0_ & 0x400000))
			updateBuild.isClanMember = buf.readUnsigned128Byte((byte) 20) == 1;
		if ((i_0_ & 0x800) != 0) {
			String string = buf.readString(1295706626);
			// This is force chat right? theres 2s. wher
			if (Class611.aClass456_Sub1_Sub2_Sub3_Sub2_7976 == updateBuild)
				Class375_Sub3.method8878(2, 0, updateBuild.method10697(true, -609185144), updateBuild.method10698(false, (byte) 59), (updateBuild.displayName), string, 1958898149);
			updateBuild.setNextOverhead(string, 0, 0, 451483828);
		}
		if ((i_0_ & 0x2000) != 0) {
			int i_23_ = buf.readUnsignedByteC(-1843080012);
			int[] is = new int[i_23_];
			int[] is_24_ = new int[i_23_];
			int[] is_25_ = new int[i_23_];
			for (int i_26_ = 0; i_26_ < i_23_; i_26_++) {
				is[i_26_] = buf.readBigSmart((byte) 96);
				is_24_[i_26_] = buf.readUnsignedByte(1015202636);
				is_25_[i_26_] = buf.readUnsignedShort128((byte) 46);
			}
			Class102_Sub3.method9564(updateBuild, is, is_24_, is_25_, (byte) 4);
		}
		if (0 != (i_0_ & 0x8000)) {// Icons
			int i_27_ = buf.readUnsignedByteC(-293484051);
			byte[] is = new byte[i_27_];
			RSByteBuffer class572_sub15 = new RSByteBuffer(is);
			buf.writeBytesReversed(is, 0, i_27_, (byte) 0);
			Class184.aClass572_Sub15Array2158[i] = class572_sub15;
			updateBuild.decodeHeadIcons(class572_sub15, 1130515724);
		}
		if (0 != (i_0_ & 0x40)) {// Appearance
			int i_28_ = buf.readUnsignedByteC(-1757855044);
			byte[] is = new byte[i_28_];
			RSByteBuffer class572_sub15 = new RSByteBuffer(is);
			buf.readBytesA(is, 0, i_28_, -2128464706);
			Class184.aClass572_Sub15Array2157[i] = class572_sub15;
			updateBuild.decodePlayerAppearance(class572_sub15, (byte) 16);
		}
		if ((i_0_ & 0x100000) != 0) {
			updateBuild.anInterface71_11669.method22((byte) -74);
			buf.o += 620787510;
			int i_29_ = (buf.b[((buf.o += 310393755) * -1585139053 - 1)]) & 0xff;
			for (int i_30_ = 0; i_30_ < i_29_; i_30_++) {
				int i_31_ = buf.readUnsigned128Byte((byte) 22);
				BaseVarType class609 = ((BaseVarType) Class455.method5387(BaseVarType.method7258((byte) -93), i_31_, -2094774934));
				Class323 class323 = (Class472.aClass202_Sub1_Sub1_5310.method9205(buf, class609, -141889912));
				updateBuild.anInterface71_11669.method443(380662693 * class323.anInt4079, class323.anObject4078, 1554347211);
			}
		}
		if ((i_0_ & 0x2) != 0) {
			updateBuild.anInt11827 = buf.readUnsignedShort128((byte) 72) * -1381598033;
			if (-2037536229 * updateBuild.stepsCount == 0) {
				updateBuild.method10546(-1319740849 * updateBuild.anInt11827, -2028624538);
				updateBuild.anInt11827 = 1381598033;
			}
		}
		if ((i_0_ & 0x200000) != 0) {
			buf.o += 620787510;
			int i_32_ = (buf.b[((buf.o += 310393755) * -1585139053 - 1)]) & 0xff;
			for (int i_33_ = 0; i_33_ < i_32_; i_33_++) {
				int i_34_ = buf.readUnsignedByte(-71511772);
				BaseVarType class609 = ((BaseVarType) Class455.method5387(BaseVarType.method7258((byte) -82), i_34_, -1958579646));
				Class323 class323 = (Class472.aClass202_Sub1_Sub1_5310.method9205(buf, class609, -141889912));
				updateBuild.anInterface71_11669.method443(class323.anInt4079 * 380662693, class323.anObject4078, -1023742461);
			}
		}
		if ((i_0_ & 0x40000) != 0) {
			updateBuild.aByte11643 = buf.read128Byte(877571984);
			updateBuild.aByte11644 = buf.read128Byte(624278611);
			updateBuild.aByte11626 = buf.readByte128((byte) -106);
			updateBuild.aByte11605 = (byte) buf.readUnsigned128Byte((byte) 101);
			updateBuild.anInt11641 = (client.cycles + buf.readUnsignedShortLE128((byte) 8)) * 1008238467;
			updateBuild.anInt11642 = (client.cycles + buf.readUnsignedShortLE128((byte) 39)) * -1559016237;
		}
		if (0 != (i_0_ & 0x80000)) {
			int i_35_ = buf.readUnsignedShortLE((byte) 42);
			int i_36_ = buf.readIntLE(2132151436);
			if (i_35_ == 65535)
				i_35_ = -1;
			int i_37_ = buf.readUnsignedByte128(-1979643088);
			int i_38_ = i_37_ & 0x7;
			int i_39_ = i_37_ >> 3 & 0xf;
			if (i_39_ == 15)
				i_39_ = -1;
			boolean bool = (i_37_ >> 7 & 0x1) == 1;
			updateBuild.method10520(i_35_, i_36_, i_38_, i_39_, bool, 4, 931172410);
		}
		if ((i_0_ & 0x4) != 0) {
			updateBuild.anInt11634 = buf.readByteC(16711935) * 466976275;
			updateBuild.anInt11636 = buf.readByte(1202331036) * -866081399;
			updateBuild.anInt11635 = buf.readByteC(16711935) * -1178286551;
			updateBuild.anInt11637 = buf.readByteC(16711935) * -1276586765;
			updateBuild.anInt11638 = (buf.readUnsignedShortLE((byte) -56) + client.cycles) * 1549695573;
			updateBuild.anInt11639 = (buf.readUnsignedShort128((byte) 99) + client.cycles) * 2072899299;
			updateBuild.anInt11624 = buf.readUnsignedShort(647518597) * 266972297;
			updateBuild.anInt11634 += 466976275 * updateBuild.screenX[0];
			updateBuild.anInt11636 += (-866081399 * updateBuild.screenY[0]);
			updateBuild.anInt11635 += (-1178286551 * updateBuild.screenX[0]);
			updateBuild.anInt11637 += (updateBuild.screenY[0] * -1276586765);
			updateBuild.stepsCount = -298115053;
			updateBuild.anInt11663 = 0;
		}
		if (0 != (i_0_ & 0x10000)) {
			int i_40_ = buf.readUnsignedShort(647518597);
			int i_41_ = buf.readIntV2(-1138314773);
			if (65535 == i_40_)
				i_40_ = -1;
			int i_42_ = buf.readUnsigned128Byte((byte) 31);
			int i_43_ = i_42_ & 0x7;
			int i_44_ = i_42_ >> 3 & 0xf;
			if (i_44_ == 15)
				i_44_ = -1;
			boolean bool = 1 == (i_42_ >> 7 & 0x1);
			updateBuild.method10520(i_40_, i_41_, i_43_, i_44_, bool, 3, 931172410);
		}
		if ((i_0_ & 0x1) != 0) {
			int i_45_ = buf.readUnsignedShort(647518597);
			int i_46_ = buf.readInt(680475606);
			if (i_45_ == 65535)
				i_45_ = -1;
			int i_47_ = buf.readUnsignedByte128(-862262221);
			int i_48_ = i_47_ & 0x7;
			int i_49_ = i_47_ >> 3 & 0xf;
			if (i_49_ == 15)
				i_49_ = -1;
			boolean bool = (i_47_ >> 7 & 0x1) == 1;
			updateBuild.method10520(i_45_, i_46_, i_48_, i_49_, bool, 0, 931172410);
		}
		if (0 != (i_0_ & 0x10)) {
			int i_50_ = buf.readUnsignedShort(647518597);
			if (i_50_ == 65535)
				i_50_ = -1;
			updateBuild.anInt11619 = i_50_ * 320688299;
		}
		if ((i_0_ & 0x400) != 0) {
			int i_51_ = buf.readUnsignedShortLE128((byte) 60);
			int i_52_ = buf.readIntV1((byte) 0);
			if (i_51_ == 65535)
				i_51_ = -1;
			int i_53_ = buf.readUnsignedByte(1844544008);
			int i_54_ = i_53_ & 0x7;
			int i_55_ = i_53_ >> 3 & 0xf;
			if (i_55_ == 15)
				i_55_ = -1;
			boolean bool = (i_53_ >> 7 & 0x1) == 1;
			updateBuild.method10520(i_51_, i_52_, i_54_, i_55_, bool, 2, 931172410);
		}
		if ((i_0_ & 0x100) != 0) {
			int i_56_ = buf.readUnsignedShortLE128((byte) 102);
			int i_57_ = buf.readIntLE(2135637310);
			if (i_56_ == 65535)
				i_56_ = -1;
			int i_58_ = buf.readUnsignedByte(321568785);
			int i_59_ = i_58_ & 0x7;
			int i_60_ = i_58_ >> 3 & 0xf;
			if (i_60_ == 15)
				i_60_ = -1;
			boolean bool = 1 == (i_58_ >> 7 & 0x1);
			updateBuild.method10520(i_56_, i_57_, i_59_, i_60_, bool, 1, 931172410);
		}
		if (0 != (i_0_ & 0x20000)) {
			String string = buf.readString(1295706626);
			int i_61_ = buf.readUnsigned128Byte((byte) 51);
			if ((i_61_ & 0x1) != 0)
				Class375_Sub3.method8878(2, i_61_, updateBuild.method10697(true, 1848115138), updateBuild.method10698(false, (byte) 21), (updateBuild.displayName), string, 1830315791);
			updateBuild.setNextOverhead(string, 0, 0, 451483828);
		}
	}

	static int method1019(int i, int i_62_) {
		if (i == 16711935)
			return -1;
		return Class665_Sub32.method9159(i, -1662966131);
	}

	static void method1020(int i) {
		ItemsContainer.containers.method7964((byte) 20);
	}

	static final void method1021(Cs2Executor class441, int i) {
		int i_63_ = (((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr -= -1042067865) * 1369304407)]);
		if (i_63_ < 0 || i_63_ > 5 || i_63_ == 2)
			i_63_ = 3;
		BaseVarType.method7260(i_63_, false, 1594355580);
	}

	static boolean method1022(String string, String string_64_, int i) {
		Class13.anInt64 = -688642096;
		Class13.aClass195_96 = client.aClass195_8632;
		return MapSize.method1545(false, false, string, string_64_, -1L);
	}

	static final void method1023(Cs2Executor class441, int i) {
		((Cs2Executor) class441).intStack[(((Cs2Executor) class441).intStackPtr += -1042067865) * 1369304407 - 1] = Class344_Sub2.method9253(-1378247758);
	}
}
