package jagex;

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

public class Class456_Sub1_Sub4_Sub2 extends Class456_Sub1_Sub4 implements Interface65 {
	Class535 aClass535_11569;
	boolean aBool11570;
	public Class588 aClass588_11571;
	boolean aBool11572 = true;
	static int[] anIntArray11573;
	static int[] anIntArray11574 = { 1, 2, 4, 8 };

	public void method10495(Class508 class508) {
		aClass588_11571.method6969(class508, 1989582933);
	}

	boolean method8300(int i) {
		return false;
	}

	boolean method8301(byte i) {
		return ((Class456_Sub1_Sub4_Sub2) this).aBool11572;
	}

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

	public int method8310(byte i) {
		return aClass588_11571.method6968(2073759554);
	}

	public int method8312(int i) {
		return aClass588_11571.method6974(248338620);
	}

	public void method10496(Class508 class508, short i) {
		aClass588_11571.method6969(class508, 1513876434);
	}

	Class531 method8350(Class106 class106, int i) {
		Model model = aClass588_11571.method6970(class106, 2048, false, true, (byte) -69);
		if (null == model)
			return null;
		Class261 class261 = method5392();
		Class238 class238 = method5394();
		Class531 class531 = Class572_Sub16_Sub9.method10262((((Class456_Sub1_Sub4_Sub2) this).aBool11570), -250153577);
		int i_0_ = (int) class238.aClass240_2647.aFloat2653 >> 9;
		int i_1_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
		aClass588_11571.method6979(class106, model, class261, i_0_, i_0_, i_1_, i_1_, true, 1194060976);
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null) {
			model.method1375(class261, null, 0);
			class106.method1738(class261, aClass90Array9007[0], class509.aClass326_5684);
		} else
			model.method1375(class261, aClass90Array9007[0], 0);
		if (((Class588) aClass588_11571).aClass485_7796 != null) {
			Class105 class105 = ((Class588) aClass588_11571).aClass485_7796.method5767();
			class106.method1760(class105);
		}
		((Class456_Sub1_Sub4_Sub2) this).aBool11572 = (model.method1400() || ((Class588) aClass588_11571).aClass485_7796 != null);
		if (((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 == null)
			((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 = Class421_Sub1.method9246((int) (class238.aClass240_2647.aFloat2653), (int) (class238.aClass240_2647.aFloat2656), (int) (class238.aClass240_2647.aFloat2657), model, -1618560148);
		else
			Class566.method6716((((Class456_Sub1_Sub4_Sub2) this).aClass535_11569), (int) class238.aClass240_2647.aFloat2653, (int) class238.aClass240_2647.aFloat2656, (int) class238.aClass240_2647.aFloat2657, model, 1234489136);
		return class531;
	}

	public void method120() {
		/* empty */
	}

	public int method398() {
		return ((Class588) aClass588_11571).anInt7787 * -2028862971;
	}

	public void method127() {
		/* empty */
	}

	final void method8302(Class106 class106, Class456_Sub1 class456_sub1, int i, int i_2_, int i_3_, boolean bool, int i_4_) {
		throw new IllegalStateException();
	}

	final void method8303(int i) {
		throw new IllegalStateException();
	}

	public int method136(int i) {
		return ((Class588) aClass588_11571).anInt7787 * -2028862971;
	}

	Class531 method8327(Class106 class106) {
		Model model = aClass588_11571.method6970(class106, 2048, false, true, (byte) -33);
		if (null == model)
			return null;
		Class261 class261 = method5392();
		Class238 class238 = method5394();
		Class531 class531 = Class572_Sub16_Sub9.method10262((((Class456_Sub1_Sub4_Sub2) this).aBool11570), -831301906);
		int i = (int) class238.aClass240_2647.aFloat2653 >> 9;
		int i_5_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
		aClass588_11571.method6979(class106, model, class261, i, i, i_5_, i_5_, true, 470589807);
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null) {
			model.method1375(class261, null, 0);
			class106.method1738(class261, aClass90Array9007[0], class509.aClass326_5684);
		} else
			model.method1375(class261, aClass90Array9007[0], 0);
		if (((Class588) aClass588_11571).aClass485_7796 != null) {
			Class105 class105 = ((Class588) aClass588_11571).aClass485_7796.method5767();
			class106.method1760(class105);
		}
		((Class456_Sub1_Sub4_Sub2) this).aBool11572 = (model.method1400() || ((Class588) aClass588_11571).aClass485_7796 != null);
		if (((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 == null)
			((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 = Class421_Sub1.method9246((int) (class238.aClass240_2647.aFloat2653), (int) (class238.aClass240_2647.aFloat2656), (int) (class238.aClass240_2647.aFloat2657), model, -720661343);
		else
			Class566.method6716((((Class456_Sub1_Sub4_Sub2) this).aClass535_11569), (int) class238.aClass240_2647.aFloat2653, (int) class238.aClass240_2647.aFloat2656, (int) class238.aClass240_2647.aFloat2657, model, -926269960);
		return class531;
	}

	public int method383(int i) {
		return ((Class588) aClass588_11571).anInt7798 * 776659493;
	}

	public void method387(int i) {
		/* empty */
	}

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

	public Class535 method8341(Class106 class106) {
		return ((Class456_Sub1_Sub4_Sub2) this).aClass535_11569;
	}

	public void method386(Class106 class106, int i) {
		aClass588_11571.method6971(class106, 334740992);
	}

	public void method390(Class106 class106, byte i) {
		aClass588_11571.method6989(class106, 644731409);
	}

	static {
		anIntArray11573 = new int[] { 16, 32, 64, 128 };
	}

	public int method55() {
		return -1832178263 * ((Class588) aClass588_11571).anInt7788;
	}

	public void method106() {
		/* empty */
	}

	public void method10497(Class508 class508) {
		aClass588_11571.method6969(class508, 1765186538);
	}

	public void method128() {
		/* empty */
	}

	final boolean method8332() {
		return false;
	}

	public void method122() {
		/* empty */
	}

	public boolean method391() {
		return aClass588_11571.method6983((byte) -113);
	}

	public int method8325() {
		return aClass588_11571.method6974(1104936831);
	}

	public Class456_Sub1_Sub4_Sub2(Class523 class523, Class106 class106, Class639_Sub16 class639_sub16, ObjectDefinitions class509, int i, int i_6_, int i_7_, int i_8_, int i_9_, boolean bool, int i_10_, int i_11_, int i_12_, int i_13_) {
		super(class523, i_7_, i_8_, i_9_, i, i_6_, Class175.method2755(i_10_, i_11_, -1294783963));
		aClass588_11571 = new Class588(class106, class639_sub16, class509, i_10_, i_11_, i_6_, this, bool, i_12_, i_13_);
		((Class456_Sub1_Sub4_Sub2) this).aBool11570 = class509.anInt5627 * -1262171129 != 0 && !bool;
		method8339(1, -184694159);
	}

	public void method395(Class106 class106) {
		aClass588_11571.method6989(class106, -2048653333);
	}

	public void method393(Class106 class106) {
		aClass588_11571.method6989(class106, -531978749);
	}

	public boolean method394() {
		return true;
	}

	public Class535 method8305(Class106 class106) {
		return ((Class456_Sub1_Sub4_Sub2) this).aClass535_11569;
	}

	boolean method8315() {
		return false;
	}

	boolean method8314() {
		return ((Class456_Sub1_Sub4_Sub2) this).aBool11572;
	}

	boolean method8317() {
		return ((Class456_Sub1_Sub4_Sub2) this).aBool11572;
	}

	boolean method8329() {
		return ((Class456_Sub1_Sub4_Sub2) this).aBool11572;
	}

	boolean method8319() {
		return ((Class456_Sub1_Sub4_Sub2) this).aBool11572;
	}

	public int method8320() {
		return aClass588_11571.method6968(1751630114);
	}

	public int method8316() {
		return aClass588_11571.method6968(1924113376);
	}

	public int method389() {
		return ((Class588) aClass588_11571).anInt7787 * -2028862971;
	}

	public int method8323() {
		return aClass588_11571.method6968(1916757606);
	}

	public int method8324() {
		return aClass588_11571.method6974(-466119742);
	}

	public Class535 method8306(Class106 class106, byte i) {
		return ((Class456_Sub1_Sub4_Sub2) this).aClass535_11569;
	}

	Class531 method8326(Class106 class106) {
		Model model = aClass588_11571.method6970(class106, 2048, false, true, (byte) -122);
		if (null == model)
			return null;
		Class261 class261 = method5392();
		Class238 class238 = method5394();
		Class531 class531 = Class572_Sub16_Sub9.method10262((((Class456_Sub1_Sub4_Sub2) this).aBool11570), -1631216499);
		int i = (int) class238.aClass240_2647.aFloat2653 >> 9;
		int i_14_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
		aClass588_11571.method6979(class106, model, class261, i, i, i_14_, i_14_, true, -1415683219);
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null) {
			model.method1375(class261, null, 0);
			class106.method1738(class261, aClass90Array9007[0], class509.aClass326_5684);
		} else
			model.method1375(class261, aClass90Array9007[0], 0);
		if (((Class588) aClass588_11571).aClass485_7796 != null) {
			Class105 class105 = ((Class588) aClass588_11571).aClass485_7796.method5767();
			class106.method1760(class105);
		}
		((Class456_Sub1_Sub4_Sub2) this).aBool11572 = (model.method1400() || ((Class588) aClass588_11571).aClass485_7796 != null);
		if (((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 == null)
			((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 = Class421_Sub1.method9246((int) (class238.aClass240_2647.aFloat2653), (int) (class238.aClass240_2647.aFloat2656), (int) (class238.aClass240_2647.aFloat2657), model, -1249513457);
		else
			Class566.method6716((((Class456_Sub1_Sub4_Sub2) this).aClass535_11569), (int) class238.aClass240_2647.aFloat2653, (int) class238.aClass240_2647.aFloat2656, (int) class238.aClass240_2647.aFloat2657, model, 1759883947);
		return class531;
	}

	public boolean method388(byte i) {
		return aClass588_11571.method6983((byte) -107);
	}

	Class531 method8328(Class106 class106) {
		Model model = aClass588_11571.method6970(class106, 2048, false, true, (byte) -97);
		if (null == model)
			return null;
		Class261 class261 = method5392();
		Class238 class238 = method5394();
		Class531 class531 = Class572_Sub16_Sub9.method10262((((Class456_Sub1_Sub4_Sub2) this).aBool11570), 3821327);
		int i = (int) class238.aClass240_2647.aFloat2653 >> 9;
		int i_15_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
		aClass588_11571.method6979(class106, model, class261, i, i, i_15_, i_15_, true, 869193256);
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null) {
			model.method1375(class261, null, 0);
			class106.method1738(class261, aClass90Array9007[0], class509.aClass326_5684);
		} else
			model.method1375(class261, aClass90Array9007[0], 0);
		if (((Class588) aClass588_11571).aClass485_7796 != null) {
			Class105 class105 = ((Class588) aClass588_11571).aClass485_7796.method5767();
			class106.method1760(class105);
		}
		((Class456_Sub1_Sub4_Sub2) this).aBool11572 = (model.method1400() || ((Class588) aClass588_11571).aClass485_7796 != null);
		if (((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 == null)
			((Class456_Sub1_Sub4_Sub2) this).aClass535_11569 = Class421_Sub1.method9246((int) (class238.aClass240_2647.aFloat2653), (int) (class238.aClass240_2647.aFloat2656), (int) (class238.aClass240_2647.aFloat2657), model, -993466266);
		else
			Class566.method6716((((Class456_Sub1_Sub4_Sub2) this).aClass535_11569), (int) class238.aClass240_2647.aFloat2653, (int) class238.aClass240_2647.aFloat2656, (int) class238.aClass240_2647.aFloat2657, model, 131465512);
		return class531;
	}

	void method8313(Class106 class106) {
		Model model = aClass588_11571.method6970(class106, 262144, true, true, (byte) -125);
		if (null != model) {
			Class261 class261 = method5392();
			Class238 class238 = method5394();
			int i = (int) class238.aClass240_2647.aFloat2653 >> 9;
			int i_16_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
			aClass588_11571.method6979(class106, model, class261, i, i, i_16_, i_16_, false, 1953391510);
		}
	}

	void method8330(Class106 class106) {
		Model model = aClass588_11571.method6970(class106, 262144, true, true, (byte) -66);
		if (null != model) {
			Class261 class261 = method5392();
			Class238 class238 = method5394();
			int i = (int) class238.aClass240_2647.aFloat2653 >> 9;
			int i_17_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
			aClass588_11571.method6979(class106, model, class261, i, i, i_17_, i_17_, false, 718609222);
		}
	}

	boolean method8321(Class106 class106, int i, int i_18_) {
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null)
			return class106.method1736(i, i_18_, method5392(), class509.aClass326_5684, 65280);
		Model model = aClass588_11571.method6970(class106, 131072, false, false, (byte) -80);
		if (model == null)
			return false;
		return model.method1376(i, i_18_, method5392(), false, 0);
	}

	boolean method8342() {
		return false;
	}

	final boolean method8333() {
		return false;
	}

	final boolean method8334() {
		return false;
	}

	final boolean method8347() {
		return false;
	}

	final boolean method8349() {
		return false;
	}

	final void method8337(Class106 class106, Class456_Sub1 class456_sub1, int i, int i_19_, int i_20_, boolean bool) {
		throw new IllegalStateException();
	}

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

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

	public int method399() {
		return ((Class588) aClass588_11571).anInt7787 * -2028862971;
	}

	public void method396(Class106 class106) {
		aClass588_11571.method6971(class106, 334740992);
	}

	public void method397(Class106 class106) {
		aClass588_11571.method6971(class106, 334740992);
	}

	public void method392(Class106 class106) {
		aClass588_11571.method6971(class106, 334740992);
	}

	static int method10498(int i, int i_21_) {
		if (Class516.aClass516_5738.anInt5742 * 1870735441 == i || i == 1870735441 * Class516.aClass516_5728.anInt5742)
			return anIntArray11573[i_21_ & 0x3];
		return anIntArray11574[i_21_ & 0x3];
	}

	public boolean method237() {
		return true;
	}

	public Class535 method8344(Class106 class106) {
		return ((Class456_Sub1_Sub4_Sub2) this).aClass535_11569;
	}

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

	void method8336(Class106 class106, int i) {
		Model model = aClass588_11571.method6970(class106, 262144, true, true, (byte) -124);
		if (null != model) {
			Class261 class261 = method5392();
			Class238 class238 = method5394();
			int i_22_ = (int) class238.aClass240_2647.aFloat2653 >> 9;
			int i_23_ = (int) class238.aClass240_2647.aFloat2657 >> 9;
			aClass588_11571.method6979(class106, model, class261, i_22_, i_22_, i_23_, i_23_, false, 1374286879);
		}
	}

	public int method304(int i) {
		return -1832178263 * ((Class588) aClass588_11571).anInt7788;
	}

	public int method401() {
		return ((Class588) aClass588_11571).anInt7798 * 776659493;
	}

	boolean method8297(Class106 class106, int i, int i_24_, int i_25_) {
		ObjectDefinitions class509 = aClass588_11571.method6987((byte) 1);
		if (class509.aClass326_5684 != null)
			return class106.method1736(i, i_24_, method5392(), class509.aClass326_5684, 65280);
		Model model = aClass588_11571.method6970(class106, 131072, false, false, (byte) -20);
		if (model == null)
			return false;
		return model.method1376(i, i_24_, method5392(), false, 0);
	}

	public int method8322() {
		return aClass588_11571.method6968(1408116904);
	}

	public int method292() {
		return ((Class588) aClass588_11571).anInt7798 * 776659493;
	}

	public int method291() {
		return ((Class588) aClass588_11571).anInt7798 * 776659493;
	}

	boolean method8331() {
		return false;
	}

	public static Model method10499(Class106 class106, int i, int i_26_, int i_27_, int i_28_, int i_29_, int i_30_) {
		long l = (long) i_29_;
		Model model = (Model) Class193.aClass127_2322.method2246(l);
		int i_31_ = 2055;
		if (model == null) {
			Class159 class159 = Class159.method2569(Class489.aClass248_5463, i_29_, 0);
			if (null == class159)
				return null;
			if (class159.anInt1773 < 13)
				class159.method2567(2);
			model = class106.method1755(class159, i_31_, Class193.anInt2313 * 2142303593, 64, 768);
			Class193.aClass127_2322.method2229(model, l);
		}
		model = model.method1351((byte) 6, i_31_, true);
		if (i != 0)
			model.method1355(i);
		if (i_26_ != 0)
			model.method1368(i_26_);
		if (0 != i_27_)
			model.method1500(i_27_);
		if (i_28_ != 0)
			model.method1358(0, i_28_, 0);
		return model;
	}
}
