package jagex;

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

public class Class342_Sub1 extends Class342 {
	Class405 aClass405_9714;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9715;
	Class250 aClass250_9716 = new Class250();
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9717;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9718;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9719;
	Class406 aClass406_9720;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9721;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9722;
	Class572_Sub8_Sub1 aClass572_Sub8_Sub1_9723;
	Class405 aClass405_9724;
	Class405 aClass405_9725;

	void method9242(boolean bool, boolean bool_0_) {
		((Class342_Sub1) this).aClass406_9720.method4860(((Class342_Sub1) this).aClass572_Sub8_Sub1_9715, 0, anInterface43_4352, (byte) -126);
		((Class342_Sub1) this).aClass406_9720.method4879(((Class342_Sub1) this).aClass572_Sub8_Sub1_9717, ((Class342_Sub1) this).aClass250_9716, -817293534);
		((Class342_Sub1) this).aClass406_9720.method4903(((Class342_Sub1) this).aClass572_Sub8_Sub1_9718, aClass250_4354, (byte) 47);
		((Class342_Sub1) this).aClass406_9720.method4878(((Class342_Sub1) this).aClass572_Sub8_Sub1_9722, anInt4355, (short) -7418);
		if (bool) {
			if (bool_0_)
				((Class342_Sub1) this).aClass406_9720.method4873(((Class342_Sub1) this).aClass572_Sub8_Sub1_9719, aClass209_4353.aFloat2436, aClass209_4353.aFloat2434, aClass209_4353.aFloat2433, aClass209_4353.aFloat2435, -1932350788);
			else
				((Class342_Sub1) this).aClass406_9720.method4870(((Class342_Sub1) this).aClass572_Sub8_Sub1_9721, Math.min(Math.max(aFloat4358, 0.0F), 1.0F), (byte) -22);
			((Class342_Sub1) this).aClass406_9720.method4874(((Class342_Sub1) this).aClass572_Sub8_Sub1_9723, aClass240_4357.aFloat2653, aClass240_4357.aFloat2656, aClass240_4357.aFloat2657, (byte) -72);
		}
	}

	public void method4296(Class250 class250) {
		((Class342_Sub1) this).aClass250_9716.method3442(class250);
		((Class342_Sub1) this).aClass250_9716.method3445(aClass106_Sub3_4356.aClass250_10414);
	}

	public void method4289(Class250 class250) {
		((Class342_Sub1) this).aClass250_9716.method3442(class250);
		((Class342_Sub1) this).aClass250_9716.method3445(aClass106_Sub3_4356.aClass250_10414);
	}

	public void method4295(int i, boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9724 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, true, 1239189876);
		aClass106_Sub3_4356.method9652(Class379.aClass379_4588, 0, i * 4, 0, 2 * i);
	}

	public void method4288(boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9725 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, false, 1190065259);
		aClass106_Sub3_4356.method9679();
	}

	void method9243(boolean bool, boolean bool_1_, int i) {
		((Class342_Sub1) this).aClass406_9720.method4860(((Class342_Sub1) this).aClass572_Sub8_Sub1_9715, 0, anInterface43_4352, (byte) -122);
		((Class342_Sub1) this).aClass406_9720.method4879(((Class342_Sub1) this).aClass572_Sub8_Sub1_9717, ((Class342_Sub1) this).aClass250_9716, -2104293841);
		((Class342_Sub1) this).aClass406_9720.method4903(((Class342_Sub1) this).aClass572_Sub8_Sub1_9718, aClass250_4354, (byte) -4);
		((Class342_Sub1) this).aClass406_9720.method4878(((Class342_Sub1) this).aClass572_Sub8_Sub1_9722, anInt4355, (short) -24420);
		if (bool) {
			if (bool_1_)
				((Class342_Sub1) this).aClass406_9720.method4873(((Class342_Sub1) this).aClass572_Sub8_Sub1_9719, aClass209_4353.aFloat2436, aClass209_4353.aFloat2434, aClass209_4353.aFloat2433, aClass209_4353.aFloat2435, -2063870250);
			else
				((Class342_Sub1) this).aClass406_9720.method4870(((Class342_Sub1) this).aClass572_Sub8_Sub1_9721, Math.min(Math.max(aFloat4358, 0.0F), 1.0F), (byte) 50);
			((Class342_Sub1) this).aClass406_9720.method4874(((Class342_Sub1) this).aClass572_Sub8_Sub1_9723, aClass240_4357.aFloat2653, aClass240_4357.aFloat2656, aClass240_4357.aFloat2657, (byte) -67);
		}
	}

	public void method4292(Class250 class250) {
		((Class342_Sub1) this).aClass250_9716.method3442(class250);
		((Class342_Sub1) this).aClass250_9716.method3445(aClass106_Sub3_4356.aClass250_10414);
	}

	public void method4291(Class250 class250) {
		((Class342_Sub1) this).aClass250_9716.method3442(class250);
		((Class342_Sub1) this).aClass250_9716.method3445(aClass106_Sub3_4356.aClass250_10414);
	}

	boolean method9244(byte i) throws Exception_Sub3 {
		((Class342_Sub1) this).aClass406_9720 = aClass106_Sub3_4356.method9619("Particle");
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9717 = ((Class342_Sub1) this).aClass406_9720.method4885("WVPMatrix", -1781528558);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9715 = ((Class342_Sub1) this).aClass406_9720.method4885("DiffuseSampler", -2059283480);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9718 = ((Class342_Sub1) this).aClass406_9720.method4885("TexCoordMatrix", -1825620093);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9719 = ((Class342_Sub1) this).aClass406_9720.method4885("DistanceFogPlane", -1581097566);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9723 = ((Class342_Sub1) this).aClass406_9720.method4885("DistanceFogColour", -1568174540);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9721 = ((Class342_Sub1) this).aClass406_9720.method4885("DistanceFogAmount", -1720563746);
		((Class342_Sub1) this).aClass572_Sub8_Sub1_9722 = ((Class342_Sub1) this).aClass406_9720.method4885("DiffuseColour", -951789271);
		((Class342_Sub1) this).aClass405_9714 = ((Class342_Sub1) this).aClass406_9720.method4863("NoFog", -350122362);
		((Class342_Sub1) this).aClass405_9724 = ((Class342_Sub1) this).aClass406_9720.method4863("ParticleFog", -1344978287);
		((Class342_Sub1) this).aClass405_9725 = ((Class342_Sub1) this).aClass406_9720.method4863("BillboardFog", -1927802567);
		if (!((Class342_Sub1) this).aClass405_9714.method4803())
			return false;
		if (!((Class342_Sub1) this).aClass405_9724.method4803())
			return false;
		if (!((Class342_Sub1) this).aClass405_9725.method4803())
			return false;
		return true;
	}

	public void method4294(int i, boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9724 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, true, 282657285);
		aClass106_Sub3_4356.method9652(Class379.aClass379_4588, 0, i * 4, 0, 2 * i);
	}

	public Class342_Sub1(Class106_Sub3 class106_sub3) throws Exception_Sub3 {
		super(class106_sub3);
		method9244((byte) 16);
	}

	public void method4293(int i, boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9724 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, true, 95344795);
		aClass106_Sub3_4356.method9652(Class379.aClass379_4588, 0, i * 4, 0, 2 * i);
	}

	public void method4297(boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9725 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, false, 1443423570);
		aClass106_Sub3_4356.method9679();
	}

	public void method4290(int i, boolean bool) {
		((Class342_Sub1) this).aClass406_9720.method4868(bool ? ((Class342_Sub1) this).aClass405_9724 : ((Class342_Sub1) this).aClass405_9714);
		((Class342_Sub1) this).aClass406_9720.method4858();
		method9243(bool, true, 1549979071);
		aClass106_Sub3_4356.method9652(Class379.aClass379_4588, 0, i * 4, 0, 2 * i);
	}

	static final void method9245(InterfaceDefinitions class73, Class83 class83, Cs2Executor class441, byte i) {
		class73.aBool807 = (((Cs2Executor) class441).intStack[((((Cs2Executor) class441).intStackPtr -= -1042067865) * 1369304407)]) == 1;
		Class555.method6575(class73, (short) 14547);
	}
}
