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

public class Class206 {
	static final int anInt2239 = 0;
	static final int anInt2240 = 2;
	int[] anIntArray2241;
	int[] anIntArray2242;

	void method3731(Class192 class192, int i) {
		int i_0_ = anIntArray2242[0];
		class192.method3630(i, i_0_ >>> 16, i_0_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(1114228668);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_1_ = anIntArray2241.length - 1; i_1_ >= 0; i_1_--) {
			int i_2_ = anIntArray2241[i_1_];
			int i_3_ = anIntArray2242[i_1_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_3_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_3_ & 0xffff;
			byte i_4_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_2_)
				i_4_ = Class666.aClass666_8533.aByte8529;
			else if (i_2_ == 2)
				i_4_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_4_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	void method3732(Class192 class192, int i) {
		int i_5_ = anIntArray2242[0];
		class192.method3630(i, i_5_ >>> 16, i_5_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(1012001472);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_6_ = anIntArray2241.length - 1; i_6_ >= 0; i_6_--) {
			int i_7_ = anIntArray2241[i_6_];
			int i_8_ = anIntArray2242[i_6_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_8_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_8_ & 0xffff;
			byte i_9_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_7_)
				i_9_ = Class666.aClass666_8533.aByte8529;
			else if (i_7_ == 2)
				i_9_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_9_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	void method3733(Class192 class192, int i) {
		int i_10_ = anIntArray2242[0];
		class192.method3630(i, i_10_ >>> 16, i_10_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(560514448);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_11_ = anIntArray2241.length - 1; i_11_ >= 0; i_11_--) {
			int i_12_ = anIntArray2241[i_11_];
			int i_13_ = anIntArray2242[i_11_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_13_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_13_ & 0xffff;
			byte i_14_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_12_)
				i_14_ = Class666.aClass666_8533.aByte8529;
			else if (i_12_ == 2)
				i_14_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_14_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	void method3734(Class192 class192, int i, int i_15_) {
		int i_16_ = anIntArray2242[0];
		class192.method3630(i, i_16_ >>> 16, i_16_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(48055579);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_17_ = anIntArray2241.length - 1; i_17_ >= 0; i_17_--) {
			int i_18_ = anIntArray2241[i_17_];
			int i_19_ = anIntArray2242[i_17_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_19_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_19_ & 0xffff;
			byte i_20_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_18_)
				i_20_ = Class666.aClass666_8533.aByte8529;
			else if (i_18_ == 2)
				i_20_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_20_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	void method3735(Class192 class192, int i) {
		int i_21_ = anIntArray2242[0];
		class192.method3630(i, i_21_ >>> 16, i_21_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(1998672487);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_22_ = anIntArray2241.length - 1; i_22_ >= 0; i_22_--) {
			int i_23_ = anIntArray2241[i_22_];
			int i_24_ = anIntArray2242[i_22_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_24_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_24_ & 0xffff;
			byte i_25_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_23_)
				i_25_ = Class666.aClass666_8533.aByte8529;
			else if (i_23_ == 2)
				i_25_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_25_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	void method3736(Class192 class192, int i) {
		int i_26_ = anIntArray2242[0];
		class192.method3630(i, i_26_ >>> 16, i_26_ & 0xffff, (byte) -1);
		Class647_Sub1_Sub3_Sub1 class647_sub1_sub3_sub1 = class192.method3631(1232383158);
		class647_sub1_sub3_sub1.stepsCount = 0;
		for (int i_27_ = anIntArray2241.length - 1; i_27_ >= 0; i_27_--) {
			int i_28_ = anIntArray2241[i_27_];
			int i_29_ = anIntArray2242[i_27_];
			class647_sub1_sub3_sub1.screenX[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_29_ >> 16;
			class647_sub1_sub3_sub1.screenY[703205765 * class647_sub1_sub3_sub1.stepsCount] = i_29_ & 0xffff;
			byte i_30_ = Class666.aClass666_8531.aByte8529;
			if (0 == i_28_)
				i_30_ = Class666.aClass666_8533.aByte8529;
			else if (i_28_ == 2)
				i_30_ = Class666.aClass666_8532.aByte8529;
			class647_sub1_sub3_sub1.aByteArray11944[class647_sub1_sub3_sub1.stepsCount * 703205765] = i_30_;
			class647_sub1_sub3_sub1.stepsCount += -822788275;
		}
	}

	Class206(RSBuffer class523_sub34) {
		int i = class523_sub34.readUnsignedSmart(368514876);
		anIntArray2241 = new int[i];
		anIntArray2242 = new int[i];
		for (int i_31_ = 0; i_31_ < i; i_31_++) {
			int i_32_ = class523_sub34.readUnsignedByte(-1802545314);
			anIntArray2241[i_31_] = i_32_;
			int i_33_ = class523_sub34.readUnsignedShort(-342528454);
			int i_34_ = class523_sub34.readUnsignedShort(-1510783373);
			anIntArray2242[i_31_] = i_34_ + (i_33_ << 16);
		}
	}

	static final void method3737(InterfaceComponentDefinitions class250, Class242 class242, Class669 class669, byte i) {
		String string = (String) (class669.anObjectArray8559[(class669.anInt8560 -= 1235970069) * 240723773]);
		if (Class594.method9807(string, class669, (byte) 0) != null)
			string = string.substring(0, string.length() - 1);
		class250.anObjectArray2616 = Class78.method1554(string, class669, -68449792);
		class250.aBool2635 = true;
	}

	static final void method3738(Class669 class669, int i) {
		class669.aClass387_8567 = new Class387();
		class669.aClass387_8567.anInt4010 = (class669.anIntArray8557[(class669.anInt8558 -= 2138772399) * 1357652815]) * 266937769;
		class669.aClass387_8567.aClass523_Sub27_Sub18_4009 = Class645.aClass24_8347.method839((class669.aClass387_8567.anInt4010) * -1038659943, (byte) -46);
		class669.aClass387_8567.anIntArray4008 = new int[class669.aClass387_8567.aClass523_Sub27_Sub18_4009.method18250((short) -28696)];
	}
}
