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

public class Class647_Sub1_Sub2_Sub2 extends Class647_Sub1_Sub2 implements Interface61 {
	boolean aBool12000;
	Class167 aClass167_12001;
	Class53_Sub18 aClass53_Sub18_12002;
	Class564 aClass564_12003;
	boolean aBool12004;
	int anInt12005;
	boolean aBool12006;
	boolean aBool12007;
	byte aByte12008;
	Class523_Sub27_Sub4 aClass523_Sub27_Sub4_12009;

	public boolean method393(int i) {
		return true;
	}

	boolean method16701(int i) {
		if (null != aClass167_12001)
			return !aClass167_12001.method2731();
		return true;
	}

	public void method398(Class178 class178) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (aClass523_Sub27_Sub4_12009 == null && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9354(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, 435392232);
	}

	public int method16743(int i) {
		return aClass167_12001 != null ? aClass167_12001.method2804() : 0;
	}

	public boolean method399() {
		return true;
	}

	public void method362() {
		if (null != aClass167_12001)
			aClass167_12001.method2684();
	}

	public boolean method403() {
		return true;
	}

	Class559 method16744(Class178 class178, byte i) {
		if (aClass167_12001 == null)
			return null;
		Class435 class435 = method10585();
		Class559 class559 = Class238.method4306(aBool12004, 505946338);
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(anInt12005 * 905561713, (byte) -106)).aClass430_7931);
		if (class430 != null) {
			aClass167_12001.method2708(class435, null, 0);
			class178.method3055(class435, aClass180Array10823[0], class430);
		} else
			aClass167_12001.method2708(class435, aClass180Array10823[0], 0);
		return class559;
	}

	void method16706(Class178 class178, short i) {
		/* empty */
	}

	boolean method16698(Class178 class178, int i, int i_0_, byte i_1_) {
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) -71)).aClass430_7931);
		if (null != class430)
			return class178.method3095(i, i_0_, method10585(), class430, 142091135);
		Class167 class167 = method18455(class178, 131072, (byte) -12);
		if (class167 != null) {
			Class435 class435 = method10585();
			return class167.method2709(i, i_0_, class435, false, 0);
		}
		return false;
	}

	Class559 method16726(Class178 class178) {
		if (aClass167_12001 == null)
			return null;
		Class435 class435 = method10585();
		Class559 class559 = Class238.method4306(aBool12004, 686497475);
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(anInt12005 * 905561713, (byte) 56)).aClass430_7931);
		if (class430 != null) {
			aClass167_12001.method2708(class435, null, 0);
			class178.method3055(class435, aClass180Array10823[0], class430);
		} else
			aClass167_12001.method2708(class435, aClass180Array10823[0], 0);
		return class559;
	}

	void method16703(Class178 class178, Class647_Sub1 class647_sub1, int i, int i_2_, int i_3_, boolean bool, int i_4_) {
		if (class647_sub1 instanceof Class647_Sub1_Sub2_Sub2) {
			Class647_Sub1_Sub2_Sub2 class647_sub1_sub2_sub2_5_ = (Class647_Sub1_Sub2_Sub2) class647_sub1;
			if (null != aClass167_12001 && null != class647_sub1_sub2_sub2_5_.aClass167_12001)
				aClass167_12001.method2735((class647_sub1_sub2_sub2_5_.aClass167_12001), i, i_2_, i_3_, bool);
		}
	}

	void method16704(byte i) {
		aBool12000 = false;
		if (aClass167_12001 != null)
			aClass167_12001.method2769(aClass167_12001.method2683() & ~0x10000);
	}

	public int method401(int i) {
		return anInt12005 * 905561713;
	}

	public int method69(int i) {
		return 1923531495 * Class607.aClass607_7985.anInt7982;
	}

	public int method390(int i) {
		return aByte12008;
	}

	Class559 method16724(Class178 class178) {
		if (aClass167_12001 == null)
			return null;
		Class435 class435 = method10585();
		Class559 class559 = Class238.method4306(aBool12004, -1094349727);
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(anInt12005 * 905561713, (byte) -63)).aClass430_7931);
		if (class430 != null) {
			aClass167_12001.method2708(class435, null, 0);
			class178.method3055(class435, aClass180Array10823[0], class430);
		} else
			aClass167_12001.method2708(class435, aClass180Array10823[0], 0);
		return class559;
	}

	public int method16719() {
		return aClass167_12001 != null ? aClass167_12001.method2804() : 0;
	}

	public int method182() {
		return anInt12005 * 905561713;
	}

	public void method394(Class178 class178, int i) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (null == aClass523_Sub27_Sub4_12009 && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9297(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, -1477751462);
	}

	public void method395(Class178 class178, int i) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (aClass523_Sub27_Sub4_12009 == null && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9354(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, 4839484);
	}

	void method16735() {
		aBool12000 = false;
		if (aClass167_12001 != null)
			aClass167_12001.method2769(aClass167_12001.method2683() & ~0x10000);
	}

	public int method86() {
		return 1923531495 * Class607.aClass607_7985.anInt7982;
	}

	public int method88() {
		return 1923531495 * Class607.aClass607_7985.anInt7982;
	}

	public int method396() {
		return 1923531495 * Class607.aClass607_7985.anInt7982;
	}

	public int method397() {
		return aByte12008;
	}

	boolean method16699(int i) {
		return aBool12000;
	}

	Class167 method18450(Class178 class178, int i) {
		if (null != aClass167_12001 && class178.method3068(aClass167_12001.method2683(), i) == 0)
			return aClass167_12001;
		Class5 class5 = method18451(class178, i, false, 123774279);
		if (class5 != null)
			return (Class167) class5.anObject37;
		return null;
	}

	public boolean method291() {
		return true;
	}

	Class5 method18451(Class178 class178, int i, boolean bool, int i_6_) {
		Class602 class602 = (Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) 3);
		Class142 class142;
		Class142 class142_7_;
		if (aBool12006) {
			class142 = aClass560_10822.aClass142Array7513[aByte10818];
			class142_7_ = aClass560_10822.aClass142Array7547[0];
		} else {
			class142 = aClass560_10822.aClass142Array7547[aByte10818];
			if (aByte10818 < 3)
				class142_7_ = aClass560_10822.aClass142Array7547[aByte10818 + 1];
			else
				class142_7_ = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		return class602.method9922(class178, i, (Class607.aClass607_7985.anInt7982 * 1923531495), aByte12008, class142, class142_7_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, bool, null, 1192307474);
	}

	public boolean method249() {
		return aBool12007;
	}

	public Class564 method16721(Class178 class178) {
		Class437 class437 = method10569().aClass437_4862;
		if (null == aClass564_12003)
			aClass564_12003 = Class470_Sub5.method15901((int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, method18455(class178, 0, (byte) -10), -1961133360);
		return aClass564_12003;
	}

	public boolean method406() {
		return true;
	}

	public void method391(int i) {
		if (null != aClass167_12001)
			aClass167_12001.method2684();
	}

	public Class647_Sub1_Sub2_Sub2(Class560 class560, Class178 class178, Class53_Sub18 class53_sub18, Class602 class602, int i, int i_8_, int i_9_, int i_10_, int i_11_, boolean bool, int i_12_, boolean bool_13_) {
		super(class560, i_9_, i_10_, i_11_, i, i_8_, class602.anInt7930 * -764650141);
		aClass53_Sub18_12002 = class53_sub18;
		anInt12005 = 1640043077 * class602.anInt7854;
		aBool12006 = bool;
		aByte12008 = (byte) i_12_;
		aBool12004 = 0 != -344567467 * class602.anInt7874 && !bool;
		aBool12000 = bool_13_;
		aBool12007 = (class178.method3351() && class602.aBool7921 && !aBool12006 && Class449.aClass523_Sub33_4946.aClass687_Sub10_10619.method16827(784504984) != 0);
		int i_14_ = 2048;
		if (aBool12000)
			i_14_ |= 0x10000;
		if (class602.aBool7881)
			i_14_ |= 0x80000;
		Class5 class5 = method18451(class178, i_14_, aBool12007, 123774279);
		if (null != class5) {
			aClass167_12001 = (Class167) class5.anObject37;
			aClass523_Sub27_Sub4_12009 = (Class523_Sub27_Sub4) class5.anObject36;
			if (aBool12000 || class602.aBool7881) {
				aClass167_12001 = aClass167_12001.method2681((byte) 0, i_14_, false);
				if (class602.aBool7881) {
					Class498 class498 = client.aClass505_11019.method8237(1673191942);
					aClass167_12001.method2839(1472261369 * class498.anInt5565, class498.anInt5567 * 1924364511, class498.anInt5566 * 668310559, (-334846483 * class498.anInt5564));
				}
			}
		}
		method16714(1, -1693925309);
	}

	public void method405(Class178 class178) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (null == aClass523_Sub27_Sub4_12009 && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9297(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, -1477751462);
	}

	public void method404(Class178 class178) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (null == aClass523_Sub27_Sub4_12009 && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9297(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, -1477751462);
	}

	public void method407(Class178 class178) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (aClass523_Sub27_Sub4_12009 == null && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9354(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, -269052771);
	}

	public boolean method392(short i) {
		return aBool12007;
	}

	public void method408(Class178 class178) {
		Object object = null;
		Class523_Sub27_Sub4 class523_sub27_sub4;
		if (aClass523_Sub27_Sub4_12009 == null && aBool12007) {
			Class5 class5 = method18451(class178, 262144, true, 123774279);
			class523_sub27_sub4 = (Class523_Sub27_Sub4) (class5 != null ? class5.anObject36 : null);
		} else {
			class523_sub27_sub4 = aClass523_Sub27_Sub4_12009;
			aClass523_Sub27_Sub4_12009 = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		if (null != class523_sub27_sub4)
			aClass560_10822.method9354(class523_sub27_sub4, aByte10818, (int) class437.aFloat4903, (int) class437.aFloat4905, null, 1904271490);
	}

	boolean method16715() {
		if (null != aClass167_12001)
			return !aClass167_12001.method2731();
		return true;
	}

	boolean method16716() {
		if (aClass167_12001 != null)
			return aClass167_12001.method2730();
		return false;
	}

	boolean method16741() {
		if (aClass167_12001 != null)
			return aClass167_12001.method2730();
		return false;
	}

	boolean method16718() {
		if (aClass167_12001 != null)
			return aClass167_12001.method2730();
		return false;
	}

	public int method400() {
		return aByte12008;
	}

	public int method16720() {
		return aClass167_12001 != null ? aClass167_12001.method2804() : 0;
	}

	boolean method16702(int i) {
		if (aClass167_12001 != null)
			return aClass167_12001.method2730();
		return false;
	}

	public void method358() {
		if (null != aClass167_12001)
			aClass167_12001.method2684();
	}

	Class559 method16725(Class178 class178) {
		if (aClass167_12001 == null)
			return null;
		Class435 class435 = method10585();
		Class559 class559 = Class238.method4306(aBool12004, -1672230919);
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(anInt12005 * 905561713, (byte) 53)).aClass430_7931);
		if (class430 != null) {
			aClass167_12001.method2708(class435, null, 0);
			class178.method3055(class435, aClass180Array10823[0], class430);
		} else
			aClass167_12001.method2708(class435, aClass180Array10823[0], 0);
		return class559;
	}

	public Class564 method16707(Class178 class178, byte i) {
		Class437 class437 = method10569().aClass437_4862;
		if (null == aClass564_12003)
			aClass564_12003 = Class470_Sub5.method15901((int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, method18455(class178, 0, (byte) -113), 324320092);
		return aClass564_12003;
	}

	void method16727(Class178 class178) {
		/* empty */
	}

	void method16728(Class178 class178) {
		/* empty */
	}

	void method16756(Class178 class178) {
		/* empty */
	}

	boolean method16730() {
		return aBool12000;
	}

	boolean method16731() {
		return aBool12000;
	}

	void method16732(Class178 class178, Class647_Sub1 class647_sub1, int i, int i_15_, int i_16_, boolean bool) {
		if (class647_sub1 instanceof Class647_Sub1_Sub2_Sub2) {
			Class647_Sub1_Sub2_Sub2 class647_sub1_sub2_sub2_17_ = (Class647_Sub1_Sub2_Sub2) class647_sub1;
			if (null != aClass167_12001 && null != class647_sub1_sub2_sub2_17_.aClass167_12001)
				aClass167_12001.method2735((class647_sub1_sub2_sub2_17_.aClass167_12001), i, i_15_, i_16_, bool);
		}
	}

	void method16697() {
		aBool12000 = false;
		if (aClass167_12001 != null)
			aClass167_12001.method2769(aClass167_12001.method2683() & ~0x10000);
	}

	void method16734() {
		aBool12000 = false;
		if (aClass167_12001 != null)
			aClass167_12001.method2769(aClass167_12001.method2683() & ~0x10000);
	}

	Class167 method18452(Class178 class178, int i) {
		if (null != aClass167_12001 && class178.method3068(aClass167_12001.method2683(), i) == 0)
			return aClass167_12001;
		Class5 class5 = method18451(class178, i, false, 123774279);
		if (class5 != null)
			return (Class167) class5.anObject37;
		return null;
	}

	boolean method16736(Class178 class178, int i, int i_18_) {
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) -88)).aClass430_7931);
		if (null != class430)
			return class178.method3095(i, i_18_, method10585(), class430, -2093751653);
		Class167 class167 = method18455(class178, 131072, (byte) -22);
		if (class167 != null) {
			Class435 class435 = method10585();
			return class167.method2709(i, i_18_, class435, false, 0);
		}
		return false;
	}

	boolean method16713(Class178 class178, int i, int i_19_) {
		Class430 class430 = (((Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) -43)).aClass430_7931);
		if (null != class430)
			return class178.method3095(i, i_19_, method10585(), class430, 1933522713);
		Class167 class167 = method18455(class178, 131072, (byte) 1);
		if (class167 != null) {
			Class435 class435 = method10585();
			return class167.method2709(i, i_19_, class435, false, 0);
		}
		return false;
	}

	public boolean method402() {
		return aBool12007;
	}

	Class167 method18453(Class178 class178, int i) {
		if (null != aClass167_12001 && class178.method3068(aClass167_12001.method2683(), i) == 0)
			return aClass167_12001;
		Class5 class5 = method18451(class178, i, false, 123774279);
		if (class5 != null)
			return (Class167) class5.anObject37;
		return null;
	}

	Class167 method18454(Class178 class178, int i) {
		if (null != aClass167_12001 && class178.method3068(aClass167_12001.method2683(), i) == 0)
			return aClass167_12001;
		Class5 class5 = method18451(class178, i, false, 123774279);
		if (class5 != null)
			return (Class167) class5.anObject37;
		return null;
	}

	Class167 method18455(Class178 class178, int i, byte i_20_) {
		if (null != aClass167_12001 && class178.method3068(aClass167_12001.method2683(), i) == 0)
			return aClass167_12001;
		Class5 class5 = method18451(class178, i, false, 123774279);
		if (class5 != null)
			return (Class167) class5.anObject37;
		return null;
	}

	Class5 method18456(Class178 class178, int i, boolean bool) {
		Class602 class602 = (Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) 89);
		Class142 class142;
		Class142 class142_21_;
		if (aBool12006) {
			class142 = aClass560_10822.aClass142Array7513[aByte10818];
			class142_21_ = aClass560_10822.aClass142Array7547[0];
		} else {
			class142 = aClass560_10822.aClass142Array7547[aByte10818];
			if (aByte10818 < 3)
				class142_21_ = aClass560_10822.aClass142Array7547[aByte10818 + 1];
			else
				class142_21_ = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		return class602.method9922(class178, i, (Class607.aClass607_7985.anInt7982 * 1923531495), aByte12008, class142, class142_21_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, bool, null, 1192307474);
	}

	Class5 method18457(Class178 class178, int i, boolean bool) {
		Class602 class602 = (Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) 10);
		Class142 class142;
		Class142 class142_22_;
		if (aBool12006) {
			class142 = aClass560_10822.aClass142Array7513[aByte10818];
			class142_22_ = aClass560_10822.aClass142Array7547[0];
		} else {
			class142 = aClass560_10822.aClass142Array7547[aByte10818];
			if (aByte10818 < 3)
				class142_22_ = aClass560_10822.aClass142Array7547[aByte10818 + 1];
			else
				class142_22_ = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		return class602.method9922(class178, i, (Class607.aClass607_7985.anInt7982 * 1923531495), aByte12008, class142, class142_22_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, bool, null, 1192307474);
	}

	Class5 method18458(Class178 class178, int i, boolean bool) {
		Class602 class602 = (Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) 2);
		Class142 class142;
		Class142 class142_23_;
		if (aBool12006) {
			class142 = aClass560_10822.aClass142Array7513[aByte10818];
			class142_23_ = aClass560_10822.aClass142Array7547[0];
		} else {
			class142 = aClass560_10822.aClass142Array7547[aByte10818];
			if (aByte10818 < 3)
				class142_23_ = aClass560_10822.aClass142Array7547[aByte10818 + 1];
			else
				class142_23_ = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		return class602.method9922(class178, i, (Class607.aClass607_7985.anInt7982 * 1923531495), aByte12008, class142, class142_23_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, bool, null, 1192307474);
	}

	Class5 method18459(Class178 class178, int i, boolean bool) {
		Class602 class602 = (Class602) aClass53_Sub18_12002.getDefinition(905561713 * anInt12005, (byte) 82);
		Class142 class142;
		Class142 class142_24_;
		if (aBool12006) {
			class142 = aClass560_10822.aClass142Array7513[aByte10818];
			class142_24_ = aClass560_10822.aClass142Array7547[0];
		} else {
			class142 = aClass560_10822.aClass142Array7547[aByte10818];
			if (aByte10818 < 3)
				class142_24_ = aClass560_10822.aClass142Array7547[aByte10818 + 1];
			else
				class142_24_ = null;
		}
		Class437 class437 = method10569().aClass437_4862;
		return class602.method9922(class178, i, (Class607.aClass607_7985.anInt7982 * 1923531495), aByte12008, class142, class142_24_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, bool, null, 1192307474);
	}
}
