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

public class Class497_Sub1_Sub4_Sub2 extends Class497_Sub1_Sub4 implements Interface23 {
	Class561 aClass561_11031;
	Class163 aClass163_11032;
	Class587_Sub34_Sub10 aClass587_Sub34_Sub10_11033;
	int anInt11034;
	byte aByte11035;
	byte aByte11036;
	Class530 aClass530_11037;
	boolean aBool11038;
	boolean aBool11039;
	boolean aBool11040;
	public static Class279 aClass279_11041;

	boolean method13962() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3612();
		return false;
	}

	public int method151(int i) {
		return ((Class497_Sub1_Sub4_Sub2) this).anInt11034 * -2076102359;
	}

	public void method137(Class84 class84, int i) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((null == ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) 11);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12570(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, -2129483900);
	}

	public int method13953(byte i) {
		return (((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 != null ? ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3535() : 0);
	}

	Class163 method17341(Class84 class84, int i, byte i_0_) {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 && class84.method2149(((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3503(), i) == 0)
			return ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032;
		Class431 class431 = method17342(class84, i, false, (byte) 55);
		if (null != class431)
			return (Class163) class431.anObject6256;
		return null;
	}

	Class431 method17342(Class84 class84, int i, boolean bool, byte i_1_) {
		Class518 class518 = (((Class497_Sub1_Sub4_Sub2) this).aClass530_11037.method11741(-2076102359 * ((Class497_Sub1_Sub4_Sub2) this).anInt11034, -1305441081));
		Class176 class176;
		Class176 class176_2_;
		if (((Class497_Sub1_Sub4_Sub2) this).aBool11038) {
			class176 = aClass581_8403.aClass176Array7607[aByte8401];
			class176_2_ = aClass581_8403.aClass176Array7582[0];
		} else {
			class176 = aClass581_8403.aClass176Array7582[aByte8401];
			if (aByte8401 < 3)
				class176_2_ = aClass581_8403.aClass176Array7582[1 + aByte8401];
			else
				class176_2_ = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		return (class518.method11596(class84, i, ((Class497_Sub1_Sub4_Sub2) this).aByte11035, ((Class497_Sub1_Sub4_Sub2) this).aByte11036, class176, class176_2_, (int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, bool, null, (byte) 0));
	}

	public Class561 method13965(Class84 class84) {
		Class277 class277 = method11206().aClass277_4041;
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031)
			((Class497_Sub1_Sub4_Sub2) this).aClass561_11031 = Class92_Sub3.method14624((int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, method17341(class84, 0, (byte) -56), 1178725422);
		return ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031;
	}

	Class568 method13947(Class84 class84, int i) {
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return null;
		Class346 class346 = class84.method1947();
		class346.method6507(method11187());
		class346.method6522((float) aShort10564, 0.0F, (float) aShort10562);
		Class568 class568 = Class259.method5134(((Class497_Sub1_Sub4_Sub2) this).aBool11039, (byte) -49);
		((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3504(class346, aClass95Array8405[0], 0);
		return class568;
	}

	void method13948(Class84 class84, byte i) {
		/* empty */
	}

	boolean method13944(int i) {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3612();
		return false;
	}

	boolean method13971(Class84 class84, int i, int i_3_) {
		Class163 class163 = method17341(class84, 131072, (byte) -8);
		if (null != class163) {
			Class346 class346 = method11187();
			return class163.method3674(i, i_3_, class346, false, 0);
		}
		return false;
	}

	public int method132(int i) {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11035;
	}

	public int method133(int i) {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11036;
	}

	public void method134(int i) {
		if (((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 != null)
			((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3610();
	}

	public boolean method136(byte i) {
		return true;
	}

	public boolean method142(byte i) {
		return ((Class497_Sub1_Sub4_Sub2) this).aBool11040;
	}

	boolean method13940(Class84 class84, int i, int i_4_, int i_5_) {
		Class163 class163 = method17341(class84, 131072, (byte) -29);
		if (null != class163) {
			Class346 class346 = method11187();
			return class163.method3674(i, i_4_, class346, false, 0);
		}
		return false;
	}

	public void method135(Class84 class84, int i) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 == null) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) -16);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12612(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, (byte) -104);
	}

	public int method111() {
		return ((Class497_Sub1_Sub4_Sub2) this).anInt11034 * -2076102359;
	}

	public int method10() {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11036;
	}

	public int method139() {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11036;
	}

	public boolean method140() {
		return ((Class497_Sub1_Sub4_Sub2) this).aBool11040;
	}

	public boolean method146() {
		return ((Class497_Sub1_Sub4_Sub2) this).aBool11040;
	}

	boolean method13957() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return !((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3549();
		return true;
	}

	public void method147(Class84 class84) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((null == ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) -9);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12570(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, -447047441);
	}

	public void method144(Class84 class84) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((null == ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) 14);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12570(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, -1474647096);
	}

	public void method145(Class84 class84) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((null == ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) -105);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12570(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, -1799342917);
	}

	Class431 method17343(Class84 class84, int i, boolean bool) {
		Class518 class518 = (((Class497_Sub1_Sub4_Sub2) this).aClass530_11037.method11741(-2076102359 * ((Class497_Sub1_Sub4_Sub2) this).anInt11034, -1745539586));
		Class176 class176;
		Class176 class176_6_;
		if (((Class497_Sub1_Sub4_Sub2) this).aBool11038) {
			class176 = aClass581_8403.aClass176Array7607[aByte8401];
			class176_6_ = aClass581_8403.aClass176Array7582[0];
		} else {
			class176 = aClass581_8403.aClass176Array7582[aByte8401];
			if (aByte8401 < 3)
				class176_6_ = aClass581_8403.aClass176Array7582[1 + aByte8401];
			else
				class176_6_ = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		return (class518.method11596(class84, i, ((Class497_Sub1_Sub4_Sub2) this).aByte11035, ((Class497_Sub1_Sub4_Sub2) this).aByte11036, class176, class176_6_, (int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, bool, null, (byte) 0));
	}

	public Class561 method13949(Class84 class84, byte i) {
		Class277 class277 = method11206().aClass277_4041;
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031)
			((Class497_Sub1_Sub4_Sub2) this).aClass561_11031 = Class92_Sub3.method14624((int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, method17341(class84, 0, (byte) 48), 826294319);
		return ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031;
	}

	boolean method14003() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return !((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3549();
		return true;
	}

	boolean method13966() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return !((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3549();
		return true;
	}

	boolean method13939() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3612();
		return false;
	}

	boolean method13961() {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3612();
		return false;
	}

	Class568 method13968(Class84 class84) {
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return null;
		Class346 class346 = class84.method1947();
		class346.method6507(method11187());
		class346.method6522((float) aShort10564, 0.0F, (float) aShort10562);
		Class568 class568 = Class259.method5134(((Class497_Sub1_Sub4_Sub2) this).aBool11039, (byte) 44);
		((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3504(class346, aClass95Array8405[0], 0);
		return class568;
	}

	public void method138(Class84 class84) {
		Object object = null;
		Class587_Sub34_Sub10 class587_sub34_sub10;
		if ((((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 == null) && ((Class497_Sub1_Sub4_Sub2) this).aBool11040) {
			Class431 class431 = method17342(class84, 262144, true, (byte) -4);
			class587_sub34_sub10 = (Class587_Sub34_Sub10) (null != class431 ? class431.anObject6257 : null);
		} else {
			class587_sub34_sub10 = ((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		if (class587_sub34_sub10 != null)
			aClass581_8403.method12612(class587_sub34_sub10, aByte8401, (int) class277.aFloat4209, (int) class277.aFloat4213, null, (byte) -48);
	}

	public void method42() {
		if (((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 != null)
			((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3610();
	}

	public Class497_Sub1_Sub4_Sub2(Class581 class581, Class84 class84, Class530 class530, Class518 class518, int i, int i_7_, int i_8_, int i_9_, int i_10_, boolean bool, int i_11_, int i_12_, int i_13_, int i_14_) {
		super(class581, i_8_, i_9_, i_10_, i, i_7_, i_11_, i_12_);
		((Class497_Sub1_Sub4_Sub2) this).aClass530_11037 = class530;
		((Class497_Sub1_Sub4_Sub2) this).anInt11034 = -1711679219 * class518.anInt6860;
		((Class497_Sub1_Sub4_Sub2) this).aBool11038 = bool;
		((Class497_Sub1_Sub4_Sub2) this).aByte11036 = (byte) i_14_;
		((Class497_Sub1_Sub4_Sub2) this).aByte11035 = (byte) i_13_;
		((Class497_Sub1_Sub4_Sub2) this).aBool11039 = -1158436491 * class518.anInt6878 != 0 && !bool;
		((Class497_Sub1_Sub4_Sub2) this).aBool11040 = (class84.method1881() && class518.aBool6925 && !((Class497_Sub1_Sub4_Sub2) this).aBool11038 && Class92_Sub20.aClass587_Sub11_10075.aClass441_Sub34_8614.method14137(-17297238) != 0);
		int i_15_ = 2048;
		if (class518.aBool6933)
			i_15_ |= 0x80000;
		Class431 class431 = method17342(class84, i_15_, ((Class497_Sub1_Sub4_Sub2) this).aBool11040, (byte) -30);
		if (null != class431) {
			((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 = (Class163) class431.anObject6256;
			((Class497_Sub1_Sub4_Sub2) this).aClass587_Sub34_Sub10_11033 = (Class587_Sub34_Sub10) class431.anObject6257;
			if (class518.aBool6933) {
				((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 = ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3501((byte) 0, i_15_, false);
				if (class518.aBool6933) {
					Class222 class222 = client.aClass237_8070.method4680((byte) 44);
					((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3546(class222.anInt2658 * -1690411727, 2015049643 * class222.anInt2659, class222.anInt2660 * 325050251, 1159814591 * class222.anInt2657);
				}
			}
		}
		method13956(1, 1934756705);
	}

	public Class561 method13946(Class84 class84) {
		Class277 class277 = method11206().aClass277_4041;
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031)
			((Class497_Sub1_Sub4_Sub2) this).aClass561_11031 = Class92_Sub3.method14624((int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, method17341(class84, 0, (byte) 33), 1220915405);
		return ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031;
	}

	boolean method13943(byte i) {
		if (null != ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return !((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3549();
		return true;
	}

	Class568 method13969(Class84 class84) {
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return null;
		Class346 class346 = class84.method1947();
		class346.method6507(method11187());
		class346.method6522((float) aShort10564, 0.0F, (float) aShort10562);
		Class568 class568 = Class259.method5134(((Class497_Sub1_Sub4_Sub2) this).aBool11039, (byte) -96);
		((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3504(class346, aClass95Array8405[0], 0);
		return class568;
	}

	Class568 method13989(Class84 class84) {
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032)
			return null;
		Class346 class346 = class84.method1947();
		class346.method6507(method11187());
		class346.method6522((float) aShort10564, 0.0F, (float) aShort10562);
		Class568 class568 = Class259.method5134(((Class497_Sub1_Sub4_Sub2) this).aBool11039, (byte) -57);
		((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3504(class346, aClass95Array8405[0], 0);
		return class568;
	}

	public boolean method141() {
		return true;
	}

	boolean method13972(Class84 class84, int i, int i_16_) {
		Class163 class163 = method17341(class84, 131072, (byte) 36);
		if (null != class163) {
			Class346 class346 = method11187();
			return class163.method3674(i, i_16_, class346, false, 0);
		}
		return false;
	}

	boolean method13973(Class84 class84, int i, int i_17_) {
		Class163 class163 = method17341(class84, 131072, (byte) 88);
		if (null != class163) {
			Class346 class346 = method11187();
			return class163.method3674(i, i_17_, class346, false, 0);
		}
		return false;
	}

	public int method149() {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11035;
	}

	void method13980(Class84 class84) {
		/* empty */
	}

	public boolean method143() {
		return true;
	}

	public void method150() {
		if (((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 != null)
			((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3610();
	}

	public int method148() {
		return ((Class497_Sub1_Sub4_Sub2) this).aByte11035;
	}

	void method13954(Class84 class84) {
		/* empty */
	}

	public int method13970() {
		return (((Class497_Sub1_Sub4_Sub2) this).aClass163_11032 != null ? ((Class497_Sub1_Sub4_Sub2) this).aClass163_11032.method3535() : 0);
	}

	void method13981(Class84 class84) {
		/* empty */
	}

	Class431 method17344(Class84 class84, int i, boolean bool) {
		Class518 class518 = (((Class497_Sub1_Sub4_Sub2) this).aClass530_11037.method11741(-2076102359 * ((Class497_Sub1_Sub4_Sub2) this).anInt11034, -410481940));
		Class176 class176;
		Class176 class176_18_;
		if (((Class497_Sub1_Sub4_Sub2) this).aBool11038) {
			class176 = aClass581_8403.aClass176Array7607[aByte8401];
			class176_18_ = aClass581_8403.aClass176Array7582[0];
		} else {
			class176 = aClass581_8403.aClass176Array7582[aByte8401];
			if (aByte8401 < 3)
				class176_18_ = aClass581_8403.aClass176Array7582[1 + aByte8401];
			else
				class176_18_ = null;
		}
		Class277 class277 = method11206().aClass277_4041;
		return (class518.method11596(class84, i, ((Class497_Sub1_Sub4_Sub2) this).aByte11035, ((Class497_Sub1_Sub4_Sub2) this).aByte11036, class176, class176_18_, (int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, bool, null, (byte) 0));
	}

	public Class561 method13964(Class84 class84) {
		Class277 class277 = method11206().aClass277_4041;
		if (null == ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031)
			((Class497_Sub1_Sub4_Sub2) this).aClass561_11031 = Class92_Sub3.method14624((int) class277.aFloat4209, (int) class277.aFloat4211, (int) class277.aFloat4213, method17341(class84, 0, (byte) -20), 1933025476);
		return ((Class497_Sub1_Sub4_Sub2) this).aClass561_11031;
	}
}
