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

public class Class647_Sub1_Sub3_Sub4 extends Class647_Sub1_Sub3 {
	int anInt12106;
	int anInt12107;
	Class707 aClass707_12108;
	int anInt12109;
	int anInt12110 = 0;
	Class621 aClass621_12111;
	boolean aBool12112;

	Class559 method16724(Class178 class178) {
		Class167 class167 = method18576(class178, 0x800 | (0 != anInt12110 * 2128663943 ? 5 : 0), anInt12107 * -446033193, -713868809);
		if (class167 == null)
			return null;
		Class435 class435 = method10585();
		method18577(class178, class167, class435, (byte) 0);
		Class559 class559 = Class238.method4306(false, -1806376020);
		class167.method2708(class435, aClass180Array10823[0], 0);
		if (aClass621_12111 != null) {
			Class171 class171 = aClass621_12111.method10135();
			class178.method3120(class171);
		}
		aBool12112 = class167.method2730();
		anInt12109 = class167.method2804() * 455470359;
		class167.method2834();
		return class559;
	}

	boolean method16701(int i) {
		return false;
	}

	boolean method16702(int i) {
		return aBool12112;
	}

	void method18573(Class178 class178, Class167 class167, Class435 class435) {
		class167.method2732(class435);
		Class184[] class184s = class167.method2733();
		Class143[] class143s = class167.method2734();
		if ((aClass621_12111 == null || aClass621_12111.aBool8083) && (class184s != null || class143s != null))
			aClass621_12111 = Class621.method10149(client.cycles, true);
		if (aClass621_12111 != null) {
			aClass621_12111.method10129(class178, (long) client.cycles, class184s, class143s, false);
			aClass621_12111.method10133(aByte10821, aShort11750, aShort11749, aShort11751, aShort11752);
		}
	}

	public int method18574(int i) {
		return 763643299 * anInt12106;
	}

	public Class564 method16707(Class178 class178, byte i) {
		return null;
	}

	public int method16719() {
		return anInt12109 * -637396313;
	}

	boolean method16715() {
		return false;
	}

	public final boolean method18575(byte i) {
		return (aClass707_12108 == null || aClass707_12108.method14177(1357652815));
	}

	Class167 method18576(Class178 class178, int i, int i_0_, int i_1_) {
		GraphicsDefinitions class671 = ((GraphicsDefinitions) Class412.aClass53_Sub19_4556.getDefinition(i_0_, (byte) 72));
		Class142 class142 = aClass560_10822.aClass142Array7547[aByte10821];
		Class142 class142_2_ = (aByte10818 < 3 ? aClass560_10822.aClass142Array7547[1 + aByte10818] : null);
		Class437 class437 = method10569().aClass437_4862;
		return ((null != aClass707_12108 && !aClass707_12108.method14177(1357652815)) ? class671.method13698(class178, i, anInt12110 * 111949824, class142, class142_2_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, aClass707_12108, (byte) 2, (byte) 33) : class671.method13698(class178, i, 111949824 * anInt12110, class142, class142_2_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, null, (byte) 2, (byte) 121));
	}

	Class559 method16744(Class178 class178, byte i) {
		Class167 class167 = method18576(class178, 0x800 | (0 != anInt12110 * 2128663943 ? 5 : 0), anInt12107 * -446033193, -713868809);
		if (class167 == null)
			return null;
		Class435 class435 = method10585();
		method18577(class178, class167, class435, (byte) 0);
		Class559 class559 = Class238.method4306(false, 442863058);
		class167.method2708(class435, aClass180Array10823[0], 0);
		if (aClass621_12111 != null) {
			Class171 class171 = aClass621_12111.method10135();
			class178.method3120(class171);
		}
		aBool12112 = class167.method2730();
		anInt12109 = class167.method2804() * 455470359;
		class167.method2834();
		return class559;
	}

	void method16706(Class178 class178, short i) {
		Class167 class167 = method18576(class178, 0, anInt12107 * -446033193, -713868809);
		if (null != class167)
			method18577(class178, class167, method10585(), (byte) 0);
	}

	void method18577(Class178 class178, Class167 class167, Class435 class435, byte i) {
		class167.method2732(class435);
		Class184[] class184s = class167.method2733();
		Class143[] class143s = class167.method2734();
		if ((aClass621_12111 == null || aClass621_12111.aBool8083) && (class184s != null || class143s != null))
			aClass621_12111 = Class621.method10149(client.cycles, true);
		if (aClass621_12111 != null) {
			aClass621_12111.method10129(class178, (long) client.cycles, class184s, class143s, false);
			aClass621_12111.method10133(aByte10821, aShort11750, aShort11749, aShort11751, aShort11752);
		}
	}

	public void method18578(int i) {
		if (aClass621_12111 != null)
			aClass621_12111.method10123();
	}

	public int method16743(int i) {
		return anInt12109 * -637396313;
	}

	final boolean method16699(int i) {
		return false;
	}

	final void method16703(Class178 class178, Class647_Sub1 class647_sub1, int i, int i_3_, int i_4_, boolean bool, int i_5_) {
		throw new IllegalStateException();
	}

	public final boolean method18579(int i) {
		return (aClass707_12108 != null && !aClass707_12108.method14170((short) 255));
	}

	public final boolean method18580() {
		return (aClass707_12108 != null && !aClass707_12108.method14170((short) 255));
	}

	void method16727(Class178 class178) {
		Class167 class167 = method18576(class178, 0, anInt12107 * -446033193, -713868809);
		if (null != class167)
			method18577(class178, class167, method10585(), (byte) 0);
	}

	boolean method16741() {
		return aBool12112;
	}

	boolean method16718() {
		return aBool12112;
	}

	boolean method16713(Class178 class178, int i, int i_6_) {
		return false;
	}

	public int method16720() {
		return anInt12109 * -637396313;
	}

	public Class564 method16721(Class178 class178) {
		return null;
	}

	final void method16697() {
		throw new IllegalStateException();
	}

	final void method16704(byte i) {
		throw new IllegalStateException();
	}

	Class559 method16726(Class178 class178) {
		Class167 class167 = method18576(class178, 0x800 | (0 != anInt12110 * 2128663943 ? 5 : 0), anInt12107 * -446033193, -713868809);
		if (class167 == null)
			return null;
		Class435 class435 = method10585();
		method18577(class178, class167, class435, (byte) 0);
		Class559 class559 = Class238.method4306(false, 1855102183);
		class167.method2708(class435, aClass180Array10823[0], 0);
		if (aClass621_12111 != null) {
			Class171 class171 = aClass621_12111.method10135();
			class178.method3120(class171);
		}
		aBool12112 = class167.method2730();
		anInt12109 = class167.method2804() * 455470359;
		class167.method2834();
		return class559;
	}

	public final void method18581(int i, int i_7_) {
		if (null != aClass707_12108 && !aClass707_12108.method14177(1357652815))
			aClass707_12108.method14205(i, (byte) 63);
	}

	void method16728(Class178 class178) {
		Class167 class167 = method18576(class178, 0, anInt12107 * -446033193, -713868809);
		if (null != class167)
			method18577(class178, class167, method10585(), (byte) 0);
	}

	void method16756(Class178 class178) {
		Class167 class167 = method18576(class178, 0, anInt12107 * -446033193, -713868809);
		if (null != class167)
			method18577(class178, class167, method10585(), (byte) 0);
	}

	public Class647_Sub1_Sub3_Sub4(Class560 class560, int i, int i_8_, int i_9_, int i_10_, int i_11_, int i_12_, int i_13_, int i_14_, int i_15_, int i_16_, int i_17_, int i_18_, boolean bool, int i_19_) {
		super(class560, i_9_, i_10_, i_11_, i_12_, i_13_, i_14_, i_15_, i_16_, i_17_, false, (byte) 0);
		anInt12109 = 0;
		aBool12112 = true;
		anInt12106 = 0;
		anInt12107 = i * -1931542297;
		anInt12110 = 491053111 * i_18_;
		anInt12106 = -1062791669 * i_19_;
		GraphicsDefinitions class671 = ((GraphicsDefinitions) Class412.aClass53_Sub19_4556.getDefinition(anInt12107 * -446033193, (byte) -71));
		int i_20_ = class671.emoteId * -61429051;
		if (-1 != i_20_) {
			aClass707_12108 = new Class707_Sub2(this, false);
			int i_21_ = class671.aBool8602 ? 0 : 2;
			if (bool)
				i_21_ = 1;
			aClass707_12108.method14168(i_20_, i_8_, i_21_, false, 1840849895);
		}
		method16714(1, 647252445);
	}

	final boolean method16731() {
		return false;
	}

	final void method16732(Class178 class178, Class647_Sub1 class647_sub1, int i, int i_22_, int i_23_, boolean bool) {
		throw new IllegalStateException();
	}

	boolean method16698(Class178 class178, int i, int i_24_, byte i_25_) {
		return false;
	}

	final void method16734() {
		throw new IllegalStateException();
	}

	final void method16735() {
		throw new IllegalStateException();
	}

	boolean method16736(Class178 class178, int i, int i_26_) {
		return false;
	}

	Class559 method16725(Class178 class178) {
		Class167 class167 = method18576(class178, 0x800 | (0 != anInt12110 * 2128663943 ? 5 : 0), anInt12107 * -446033193, -713868809);
		if (class167 == null)
			return null;
		Class435 class435 = method10585();
		method18577(class178, class167, class435, (byte) 0);
		Class559 class559 = Class238.method4306(false, -37264193);
		class167.method2708(class435, aClass180Array10823[0], 0);
		if (aClass621_12111 != null) {
			Class171 class171 = aClass621_12111.method10135();
			class178.method3120(class171);
		}
		aBool12112 = class167.method2730();
		anInt12109 = class167.method2804() * 455470359;
		class167.method2834();
		return class559;
	}

	public final void method18582(int i) {
		if (null != aClass707_12108 && !aClass707_12108.method14177(1357652815))
			aClass707_12108.method14205(i, (byte) 121);
	}

	public final boolean method18583() {
		return (aClass707_12108 != null && !aClass707_12108.method14170((short) 255));
	}

	final boolean method16730() {
		return false;
	}

	public final boolean method18584() {
		return (aClass707_12108 == null || aClass707_12108.method14177(1357652815));
	}

	Class167 method18585(Class178 class178, int i, int i_27_) {
		GraphicsDefinitions class671 = ((GraphicsDefinitions) Class412.aClass53_Sub19_4556.getDefinition(i_27_, (byte) 67));
		Class142 class142 = aClass560_10822.aClass142Array7547[aByte10821];
		Class142 class142_28_ = (aByte10818 < 3 ? aClass560_10822.aClass142Array7547[1 + aByte10818] : null);
		Class437 class437 = method10569().aClass437_4862;
		return ((null != aClass707_12108 && !aClass707_12108.method14177(1357652815)) ? class671.method13698(class178, i, anInt12110 * 111949824, class142, class142_28_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, aClass707_12108, (byte) 2, (byte) 49) : class671.method13698(class178, i, 111949824 * anInt12110, class142, class142_28_, (int) class437.aFloat4903, (int) class437.aFloat4904, (int) class437.aFloat4905, null, (byte) 2, (byte) -61));
	}

	void method18586(Class178 class178, Class167 class167, Class435 class435) {
		class167.method2732(class435);
		Class184[] class184s = class167.method2733();
		Class143[] class143s = class167.method2734();
		if ((aClass621_12111 == null || aClass621_12111.aBool8083) && (class184s != null || class143s != null))
			aClass621_12111 = Class621.method10149(client.cycles, true);
		if (aClass621_12111 != null) {
			aClass621_12111.method10129(class178, (long) client.cycles, class184s, class143s, false);
			aClass621_12111.method10133(aByte10821, aShort11750, aShort11749, aShort11751, aShort11752);
		}
	}

	boolean method16716() {
		return aBool12112;
	}

	void method18587(Class178 class178, Class167 class167, Class435 class435) {
		class167.method2732(class435);
		Class184[] class184s = class167.method2733();
		Class143[] class143s = class167.method2734();
		if ((aClass621_12111 == null || aClass621_12111.aBool8083) && (class184s != null || class143s != null))
			aClass621_12111 = Class621.method10149(client.cycles, true);
		if (aClass621_12111 != null) {
			aClass621_12111.method10129(class178, (long) client.cycles, class184s, class143s, false);
			aClass621_12111.method10133(aByte10821, aShort11750, aShort11749, aShort11751, aShort11752);
		}
	}

	public void method18588() {
		if (aClass621_12111 != null)
			aClass621_12111.method10123();
	}
}
