/* Class230_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import jagdx.IDirect3DDevice;
import jagdx.IUnknown;

public final class Class230_Sub2 extends Class230
{
    byte[] aByteArray9691;
    Class229_Sub2 aClass229_Sub2_9692;
    Class151_Sub2_Sub1 aClass151_Sub2_Sub1_9693;
    long aLong9694;
    boolean aBool9695 = false;
    static float[] aFloatArray9696 = new float[16];
    static final int anInt9697 = 1;
    long aLong9698;
    static final int anInt9699 = 0;
    byte[] aByteArray9700;
    float[][] aFloatArrayArray9701 = new float[2][];
    boolean[] aBoolArray9702 = new boolean[2];
    
    void method3382(int i, Class403 class403) {
	int i_0_ = i >> 16;
	int i_1_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4902(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_0_],
			 i_1_, 8);
	((Class230_Sub2) this).aBoolArray9702[i_0_] = true;
    }
    
    void method3358(int i, Class403 class403) {
	int i_2_ = i >> 16;
	int i_3_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_2_],
			 i_3_, 16);
	((Class230_Sub2) this).aBoolArray9702[i_2_] = true;
    }
    
    void method8794() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
    }
    
    void method3341(Class487_Sub31_Sub1 class487_sub31_sub1, float f) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_4_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if ((class487_sub31_sub1.method10262(603300654)
	     != Class242.aClass242_2715)
	    && (class487_sub31_sub1.method10262(603300654)
		!= Class242.aClass242_2761))
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i] = f;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_4_ >= 0) {
	    i_4_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_4_] = f;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3388(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_5_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_6_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2716)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_5_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_6_ >= 0) {
	    i_6_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_6_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_6_ + 1] = f_5_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3343(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_7_, float f_8_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_9_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_7_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_8_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_9_ >= 0) {
	    i_9_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_9_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_9_ + 1] = f_7_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_9_ + 2] = f_8_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method8795() {
	method8798();
    }
    
    void method3340(Class487_Sub31_Sub1 class487_sub31_sub1,
		    Class403 class403) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_10_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2732)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0)
	    method8800(i, class403.method4902(aFloatArray9696), 8);
	if (i_10_ >= 0)
	    method8796(i_10_, class403.method4902(aFloatArray9696), 8);
    }
    
    void method3384(Class487_Sub31_Sub1 class487_sub31_sub1,
		    Class403 class403) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_11_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2734)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0)
	    method8800(i, class403.method4886(aFloatArray9696), 16);
	if (i_11_ >= 0)
	    method8796(i_11_, class403.method4886(aFloatArray9696), 16);
    }
    
    void method3345(Class487_Sub31_Sub1 class487_sub31_sub1, float[] fs,
		    int i) {
	int i_12_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_13_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2693)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i_12_ >= 0)
	    method8800(i_12_, fs, i);
	if (i_13_ >= 0)
	    method8796(i_13_, fs, i);
    }
    
    void method3348(Class487_Sub31_Sub1 class487_sub31_sub1, int i,
		    Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3362(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_14_, float f_15_, float f_16_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_17_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2697)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_14_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_15_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 3] = f_16_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_17_ >= 0) {
	    i_17_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_17_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_17_ + 1] = f_14_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_17_ + 2] = f_15_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_17_ + 3] = f_16_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3350(int i, float f, float f_18_, float f_19_, float f_20_) {
	int i_21_ = i >> 16;
	int i_22_ = (i & 0xffff) * 4;
	((Class230_Sub2) this).aFloatArrayArray9701[i_21_][i_22_] = f;
	((Class230_Sub2) this).aFloatArrayArray9701[i_21_][i_22_ + 1] = f_18_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_21_][i_22_ + 2] = f_19_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_21_][i_22_ + 3] = f_20_;
	((Class230_Sub2) this).aBoolArray9702[i_21_] = true;
    }
    
    void method3352(int i, Class403 class403) {
	int i_23_ = i >> 16;
	int i_24_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_23_],
			 i_24_, 12);
	((Class230_Sub2) this).aBoolArray9702[i_23_] = true;
    }
    
    void method3353(int i, Class403 class403) {
	int i_25_ = i >> 16;
	int i_26_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4902(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_25_],
			 i_26_, 8);
	((Class230_Sub2) this).aBoolArray9702[i_25_] = true;
    }
    
    void method3367(int i, Class403 class403) {
	int i_27_ = i >> 16;
	int i_28_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_27_],
			 i_28_, 16);
	((Class230_Sub2) this).aBoolArray9702[i_27_] = true;
    }
    
    void method3349(int i, float[] fs, int i_29_) {
	int i_30_ = i >> 16;
	int i_31_ = (i & 0xffff) * 4;
	System.arraycopy(fs, 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_30_],
			 i_31_, i_29_);
	((Class230_Sub2) this).aBoolArray9702[i_30_] = true;
    }
    
    void method3374(Class487_Sub31_Sub1 class487_sub31_sub1,
		    Class403 class403) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_32_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2734)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0)
	    method8800(i, class403.method4886(aFloatArray9696), 16);
	if (i_32_ >= 0)
	    method8796(i_32_, class403.method4886(aFloatArray9696), 16);
    }
    
    final void method8796(int i, float[] fs, int i_33_) {
	Class643.method7647(fs, 0,
			    ((Class230_Sub2) this).aFloatArrayArray9701[1],
			    i * 4, i_33_);
	((Class230_Sub2) this).aBoolArray9702[1] = true;
    }
    
    void method3355(int i, int i_34_, Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i_34_);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method8797() {
	if (((Class230_Sub2) this).aBoolArray9702[0]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[0]);
	    IDirect3DDevice.SetVertexShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[0].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[0] = false;
	}
	if (((Class230_Sub2) this).aBoolArray9702[1]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[1]);
	    IDirect3DDevice.SetPixelShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[1].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[1] = false;
	}
    }
    
    public void method80() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8237(this);
    }
    
    void method8798() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
    }
    
    public void finalize() {
	method8798();
    }
    
    public void method81() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8237(this);
    }
    
    public void method79() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    IUnknown.Release(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8237(this);
    }
    
    void method3344(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_35_, float f_36_, float f_37_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_38_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2697)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_35_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_36_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 3] = f_37_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_38_ >= 0) {
	    i_38_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_38_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_38_ + 1] = f_35_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_38_ + 2] = f_36_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_38_ + 3] = f_37_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3383(int i, int i_39_, Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i_39_);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    public boolean method3346() {
	if (((Class230_Sub2) this).aBool9695)
	    return true;
	((Class230_Sub2) this).aLong9694
	    = (((Class230_Sub2) this).aByteArray9700 == null ? 0L
	       : (IDirect3DDevice.CreateVertexShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9700)));
	((Class230_Sub2) this).aLong9698
	    = (((Class230_Sub2) this).aByteArray9691 == null ? 0L
	       : (IDirect3DDevice.CreatePixelShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9691)));
	if (((Class230_Sub2) this).aLong9694 == 0L
	    && ((Class230_Sub2) this).aLong9698 == 0L)
	    return false;
	int i = -1;
	for (int i_40_ = 0; i_40_ < ((Class230_Sub2) this)
					.aClass229_Sub2_9692
					.method3270(1875730772); i_40_++) {
	    if (((Class230_Sub2) this).aClass229_Sub2_9692
		    .method3314(i_40_, -175310269)
		== this) {
		i = i_40_;
		break;
	    }
	}
	int i_41_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3321(994346115);
	int i_42_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3306((byte) 1);
	for (int i_43_ = 0; i_43_ < i_41_; i_43_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3299(i_43_, -900611933);
	    class487_sub31_sub1.method10258(i);
	}
	for (int i_44_ = 0; i_44_ < i_42_; i_44_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3297(i_44_, (byte) 93);
	    class487_sub31_sub1.method10258(i);
	}
	int i_45_ = 0;
	int i_46_ = 0;
	int i_47_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3276(this,
								    (byte) 3);
	for (int i_48_ = 0; i_48_ < i_41_ + i_42_; i_48_++) {
	    Class487_Sub31_Sub1_Sub2 class487_sub31_sub1_sub2
		= ((Class487_Sub31_Sub1_Sub2)
		   (i_48_ < i_41_
		    ? ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3299(i_48_, -849034449)
		    : ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3297(i_48_ - i_41_, (byte) 112)));
	    Class242 class242
		= class487_sub31_sub1_sub2.method10262(603300654);
	    int i_49_ = 1;
	    if (class242 == Class242.aClass242_2693) {
		class242 = class487_sub31_sub1_sub2.method10260((byte) -48);
		i_49_ = class487_sub31_sub1_sub2.method10269((byte) 10);
	    }
	    switch (class242.anInt2816 * -749784243) {
	    default:
		i_49_ = 0;
		break;
	    case 11:
	    case 40:
	    case 89:
	    case 112:
		i_49_ *= 3;
		break;
	    case 25:
	    case 97:
	    case 113:
	    case 114:
		i_49_ *= 2;
		break;
	    case 42:
	    case 52:
	    case 95:
	    case 99:
		i_49_ *= 4;
		break;
	    case 28:
	    case 61:
	    case 63:
	    case 79:
	    case 100:
		/* empty */
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11823[i_47_])
		>= 0) {
		int i_50_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11823[i_47_])
		       + i_49_);
		if (i_45_ < i_50_)
		    i_45_ = i_50_;
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11825[i_47_])
		>= 0) {
		int i_51_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11825[i_47_])
		       + i_49_);
		if (i_46_ < i_51_)
		    i_46_ = i_51_;
	    }
	}
	((Class230_Sub2) this).aFloatArrayArray9701[0] = new float[i_45_ * 4];
	((Class230_Sub2) this).aFloatArrayArray9701[1] = new float[i_46_ * 4];
	((Class230_Sub2) this).aBool9695 = true;
	return true;
    }
    
    void method3368(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_52_, float f_53_, float f_54_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_55_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2697)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_52_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_53_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 3] = f_54_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_55_ >= 0) {
	    i_55_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_55_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_55_ + 1] = f_52_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_55_ + 2] = f_53_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_55_ + 3] = f_54_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    public boolean method3360() {
	if (((Class230_Sub2) this).aBool9695)
	    return true;
	((Class230_Sub2) this).aLong9694
	    = (((Class230_Sub2) this).aByteArray9700 == null ? 0L
	       : (IDirect3DDevice.CreateVertexShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9700)));
	((Class230_Sub2) this).aLong9698
	    = (((Class230_Sub2) this).aByteArray9691 == null ? 0L
	       : (IDirect3DDevice.CreatePixelShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9691)));
	if (((Class230_Sub2) this).aLong9694 == 0L
	    && ((Class230_Sub2) this).aLong9698 == 0L)
	    return false;
	int i = -1;
	for (int i_56_ = 0; i_56_ < ((Class230_Sub2) this)
					.aClass229_Sub2_9692
					.method3270(1870789373); i_56_++) {
	    if (((Class230_Sub2) this).aClass229_Sub2_9692
		    .method3314(i_56_, -670654075)
		== this) {
		i = i_56_;
		break;
	    }
	}
	int i_57_ = ((Class230_Sub2) this).aClass229_Sub2_9692
			.method3321(1288503676);
	int i_58_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3306((byte) 6);
	for (int i_59_ = 0; i_59_ < i_57_; i_59_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3299(i_59_, -694019545);
	    class487_sub31_sub1.method10258(i);
	}
	for (int i_60_ = 0; i_60_ < i_58_; i_60_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3297(i_60_, (byte) 118);
	    class487_sub31_sub1.method10258(i);
	}
	int i_61_ = 0;
	int i_62_ = 0;
	int i_63_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3276(this,
								    (byte) 3);
	for (int i_64_ = 0; i_64_ < i_57_ + i_58_; i_64_++) {
	    Class487_Sub31_Sub1_Sub2 class487_sub31_sub1_sub2
		= ((Class487_Sub31_Sub1_Sub2)
		   (i_64_ < i_57_
		    ? ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3299(i_64_, 1133054272)
		    : ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3297(i_64_ - i_57_, (byte) 110)));
	    Class242 class242
		= class487_sub31_sub1_sub2.method10262(603300654);
	    int i_65_ = 1;
	    if (class242 == Class242.aClass242_2693) {
		class242 = class487_sub31_sub1_sub2.method10260((byte) -41);
		i_65_ = class487_sub31_sub1_sub2.method10269((byte) 87);
	    }
	    switch (class242.anInt2816 * -749784243) {
	    default:
		i_65_ = 0;
		break;
	    case 11:
	    case 40:
	    case 89:
	    case 112:
		i_65_ *= 3;
		break;
	    case 25:
	    case 97:
	    case 113:
	    case 114:
		i_65_ *= 2;
		break;
	    case 42:
	    case 52:
	    case 95:
	    case 99:
		i_65_ *= 4;
		break;
	    case 28:
	    case 61:
	    case 63:
	    case 79:
	    case 100:
		/* empty */
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11823[i_63_])
		>= 0) {
		int i_66_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11823[i_63_])
		       + i_65_);
		if (i_61_ < i_66_)
		    i_61_ = i_66_;
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11825[i_63_])
		>= 0) {
		int i_67_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11825[i_63_])
		       + i_65_);
		if (i_62_ < i_67_)
		    i_62_ = i_67_;
	    }
	}
	((Class230_Sub2) this).aFloatArrayArray9701[0] = new float[i_61_ * 4];
	((Class230_Sub2) this).aFloatArrayArray9701[1] = new float[i_62_ * 4];
	((Class230_Sub2) this).aBool9695 = true;
	return true;
    }
    
    void method3373(Class487_Sub31_Sub1 class487_sub31_sub1,
		    Class403 class403) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_68_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2732)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0)
	    method8800(i, class403.method4902(aFloatArray9696), 8);
	if (i_68_ >= 0)
	    method8796(i_68_, class403.method4902(aFloatArray9696), 8);
    }
    
    void method3351(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_69_, float f_70_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_71_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_69_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_70_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_71_ >= 0) {
	    i_71_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_71_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_71_ + 1] = f_69_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_71_ + 2] = f_70_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3363(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_72_, float f_73_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_74_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_72_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_73_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_74_ >= 0) {
	    i_74_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_74_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_74_ + 1] = f_72_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_74_ + 2] = f_73_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3381(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_75_, float f_76_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_77_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_75_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_76_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_77_ >= 0) {
	    i_77_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_77_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_77_ + 1] = f_75_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_77_ + 2] = f_76_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3369(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_78_, float f_79_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_80_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_78_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_79_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_80_ >= 0) {
	    i_80_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_80_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_80_ + 1] = f_78_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_80_ + 2] = f_79_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3342(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_81_, float f_82_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_83_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2767)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_81_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_82_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_83_ >= 0) {
	    i_83_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_83_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_83_ + 1] = f_81_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_83_ + 2] = f_82_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3389(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_84_, float f_85_, float f_86_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_87_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2697)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_84_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 2] = f_85_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 3] = f_86_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_87_ >= 0) {
	    i_87_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_87_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_87_ + 1] = f_84_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_87_ + 2] = f_85_;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_87_ + 3] = f_86_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method8799() {
	method8798();
    }
    
    final void method8800(int i, float[] fs, int i_88_) {
	Class643.method7647(fs, 0,
			    ((Class230_Sub2) this).aFloatArrayArray9701[0],
			    i * 4, i_88_);
	((Class230_Sub2) this).aBoolArray9702[0] = true;
    }
    
    void method3372(Class487_Sub31_Sub1 class487_sub31_sub1, float[] fs,
		    int i) {
	int i_89_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_90_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2693)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i_89_ >= 0)
	    method8800(i_89_, fs, i);
	if (i_90_ >= 0)
	    method8796(i_90_, fs, i);
    }
    
    void method3371(Class487_Sub31_Sub1 class487_sub31_sub1, float[] fs,
		    int i) {
	int i_91_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_92_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2693)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i_91_ >= 0)
	    method8800(i_91_, fs, i);
	if (i_92_ >= 0)
	    method8796(i_92_, fs, i);
    }
    
    void method3357(Class487_Sub31_Sub1 class487_sub31_sub1, float[] fs,
		    int i) {
	int i_93_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_94_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2693)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i_93_ >= 0)
	    method8800(i_93_, fs, i);
	if (i_94_ >= 0)
	    method8796(i_94_, fs, i);
    }
    
    void method8801() {
	if (((Class230_Sub2) this).aBoolArray9702[0]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[0]);
	    IDirect3DDevice.SetVertexShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[0].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[0] = false;
	}
	if (((Class230_Sub2) this).aBoolArray9702[1]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[1]);
	    IDirect3DDevice.SetPixelShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[1].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[1] = false;
	}
    }
    
    void method3375(Class487_Sub31_Sub1 class487_sub31_sub1,
		    Class403 class403) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_95_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2734)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0)
	    method8800(i, class403.method4886(aFloatArray9696), 16);
	if (i_95_ >= 0)
	    method8796(i_95_, class403.method4886(aFloatArray9696), 16);
    }
    
    void method3366(Class487_Sub31_Sub1 class487_sub31_sub1, int i,
		    Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3377(Class487_Sub31_Sub1 class487_sub31_sub1, int i,
		    Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3378(Class487_Sub31_Sub1 class487_sub31_sub1, int i,
		    Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3379(int i, float f, float f_96_, float f_97_, float f_98_) {
	int i_99_ = i >> 16;
	int i_100_ = (i & 0xffff) * 4;
	((Class230_Sub2) this).aFloatArrayArray9701[i_99_][i_100_] = f;
	((Class230_Sub2) this).aFloatArrayArray9701[i_99_][i_100_ + 1] = f_96_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_99_][i_100_ + 2] = f_97_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_99_][i_100_ + 3] = f_98_;
	((Class230_Sub2) this).aBoolArray9702[i_99_] = true;
    }
    
    void method3380(int i, Class403 class403) {
	int i_101_ = i >> 16;
	int i_102_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_101_],
			 i_102_, 12);
	((Class230_Sub2) this).aBoolArray9702[i_101_] = true;
    }
    
    void method3370(int i, Class403 class403) {
	int i_103_ = i >> 16;
	int i_104_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_103_],
			 i_104_, 12);
	((Class230_Sub2) this).aBoolArray9702[i_103_] = true;
    }
    
    public boolean method3359() {
	if (((Class230_Sub2) this).aBool9695)
	    return true;
	((Class230_Sub2) this).aLong9694
	    = (((Class230_Sub2) this).aByteArray9700 == null ? 0L
	       : (IDirect3DDevice.CreateVertexShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9700)));
	((Class230_Sub2) this).aLong9698
	    = (((Class230_Sub2) this).aByteArray9691 == null ? 0L
	       : (IDirect3DDevice.CreatePixelShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9691)));
	if (((Class230_Sub2) this).aLong9694 == 0L
	    && ((Class230_Sub2) this).aLong9698 == 0L)
	    return false;
	int i = -1;
	for (int i_105_ = 0;
	     i_105_ < ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3270(1945213230);
	     i_105_++) {
	    if (((Class230_Sub2) this).aClass229_Sub2_9692
		    .method3314(i_105_, -1124800130)
		== this) {
		i = i_105_;
		break;
	    }
	}
	int i_106_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3321(998258028);
	int i_107_ = ((Class230_Sub2) this).aClass229_Sub2_9692
			 .method3306((byte) -99);
	for (int i_108_ = 0; i_108_ < i_106_; i_108_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3299(i_108_, 1108320056);
	    class487_sub31_sub1.method10258(i);
	}
	for (int i_109_ = 0; i_109_ < i_107_; i_109_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3297(i_109_, (byte) 125);
	    class487_sub31_sub1.method10258(i);
	}
	int i_110_ = 0;
	int i_111_ = 0;
	int i_112_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3276(this,
								    (byte) 3);
	for (int i_113_ = 0; i_113_ < i_106_ + i_107_; i_113_++) {
	    Class487_Sub31_Sub1_Sub2 class487_sub31_sub1_sub2
		= ((Class487_Sub31_Sub1_Sub2)
		   (i_113_ < i_106_
		    ? ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3299(i_113_, 1100663282)
		    : ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3297(i_113_ - i_106_, (byte) 110)));
	    Class242 class242
		= class487_sub31_sub1_sub2.method10262(603300654);
	    int i_114_ = 1;
	    if (class242 == Class242.aClass242_2693) {
		class242 = class487_sub31_sub1_sub2.method10260((byte) -58);
		i_114_ = class487_sub31_sub1_sub2.method10269((byte) 55);
	    }
	    switch (class242.anInt2816 * -749784243) {
	    default:
		i_114_ = 0;
		break;
	    case 11:
	    case 40:
	    case 89:
	    case 112:
		i_114_ *= 3;
		break;
	    case 25:
	    case 97:
	    case 113:
	    case 114:
		i_114_ *= 2;
		break;
	    case 42:
	    case 52:
	    case 95:
	    case 99:
		i_114_ *= 4;
		break;
	    case 28:
	    case 61:
	    case 63:
	    case 79:
	    case 100:
		/* empty */
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11823[i_112_])
		>= 0) {
		int i_115_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11823[i_112_])
		       + i_114_);
		if (i_110_ < i_115_)
		    i_110_ = i_115_;
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11825[i_112_])
		>= 0) {
		int i_116_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11825[i_112_])
		       + i_114_);
		if (i_111_ < i_116_)
		    i_111_ = i_116_;
	    }
	}
	((Class230_Sub2) this).aFloatArrayArray9701[0] = new float[i_110_ * 4];
	((Class230_Sub2) this).aFloatArrayArray9701[1] = new float[i_111_ * 4];
	((Class230_Sub2) this).aBool9695 = true;
	return true;
    }
    
    public boolean method3365() {
	if (((Class230_Sub2) this).aBool9695)
	    return true;
	((Class230_Sub2) this).aLong9694
	    = (((Class230_Sub2) this).aByteArray9700 == null ? 0L
	       : (IDirect3DDevice.CreateVertexShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9700)));
	((Class230_Sub2) this).aLong9698
	    = (((Class230_Sub2) this).aByteArray9691 == null ? 0L
	       : (IDirect3DDevice.CreatePixelShader
		  ((((Class151_Sub2_Sub1)
		     ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693)
		    .aLong11097),
		   ((Class230_Sub2) this).aByteArray9691)));
	if (((Class230_Sub2) this).aLong9694 == 0L
	    && ((Class230_Sub2) this).aLong9698 == 0L)
	    return false;
	int i = -1;
	for (int i_117_ = 0;
	     i_117_ < ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3270(1817254252);
	     i_117_++) {
	    if (((Class230_Sub2) this).aClass229_Sub2_9692
		    .method3314(i_117_, 1233077599)
		== this) {
		i = i_117_;
		break;
	    }
	}
	int i_118_ = ((Class230_Sub2) this).aClass229_Sub2_9692
			 .method3321(1484612311);
	int i_119_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3306((byte) 4);
	for (int i_120_ = 0; i_120_ < i_118_; i_120_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3299(i_120_, -1813052434);
	    class487_sub31_sub1.method10258(i);
	}
	for (int i_121_ = 0; i_121_ < i_119_; i_121_++) {
	    Class487_Sub31_Sub1 class487_sub31_sub1
		= ((Class230_Sub2) this).aClass229_Sub2_9692
		      .method3297(i_121_, (byte) 65);
	    class487_sub31_sub1.method10258(i);
	}
	int i_122_ = 0;
	int i_123_ = 0;
	int i_124_
	    = ((Class230_Sub2) this).aClass229_Sub2_9692.method3276(this,
								    (byte) 3);
	for (int i_125_ = 0; i_125_ < i_118_ + i_119_; i_125_++) {
	    Class487_Sub31_Sub1_Sub2 class487_sub31_sub1_sub2
		= ((Class487_Sub31_Sub1_Sub2)
		   (i_125_ < i_118_
		    ? ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3299(i_125_, -2082169104)
		    : ((Class230_Sub2) this).aClass229_Sub2_9692
			  .method3297(i_125_ - i_118_, (byte) 80)));
	    Class242 class242
		= class487_sub31_sub1_sub2.method10262(603300654);
	    int i_126_ = 1;
	    if (class242 == Class242.aClass242_2693) {
		class242 = class487_sub31_sub1_sub2.method10260((byte) -39);
		i_126_ = class487_sub31_sub1_sub2.method10269((byte) 34);
	    }
	    switch (class242.anInt2816 * -749784243) {
	    default:
		i_126_ = 0;
		break;
	    case 11:
	    case 40:
	    case 89:
	    case 112:
		i_126_ *= 3;
		break;
	    case 25:
	    case 97:
	    case 113:
	    case 114:
		i_126_ *= 2;
		break;
	    case 42:
	    case 52:
	    case 95:
	    case 99:
		i_126_ *= 4;
		break;
	    case 28:
	    case 61:
	    case 63:
	    case 79:
	    case 100:
		/* empty */
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11823[i_124_])
		>= 0) {
		int i_127_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11823[i_124_])
		       + i_126_);
		if (i_122_ < i_127_)
		    i_122_ = i_127_;
	    }
	    if ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
		 .anIntArray11825[i_124_])
		>= 0) {
		int i_128_
		    = ((((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1_sub2)
			.anIntArray11825[i_124_])
		       + i_126_);
		if (i_123_ < i_128_)
		    i_123_ = i_128_;
	    }
	}
	((Class230_Sub2) this).aFloatArrayArray9701[0] = new float[i_122_ * 4];
	((Class230_Sub2) this).aFloatArrayArray9701[1] = new float[i_123_ * 4];
	((Class230_Sub2) this).aBool9695 = true;
	return true;
    }
    
    void method3376(int i, int i_129_, Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i_129_);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3385(int i, int i_130_, Interface40 interface40) {
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.method8313(i_130_);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
	    .method8314(interface40);
    }
    
    void method3387(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_131_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_132_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2716)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_131_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_132_ >= 0) {
	    i_132_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_132_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_132_ + 1]
		= f_131_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3392(int i, float[] fs, int i_133_) {
	int i_134_ = i >> 16;
	int i_135_ = (i & 0xffff) * 4;
	System.arraycopy(fs, 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_134_],
			 i_135_, i_133_);
	((Class230_Sub2) this).aBoolArray9702[i_134_] = true;
    }
    
    void method3390(int i, float f, float f_136_, float f_137_) {
	int i_138_ = i >> 16;
	int i_139_ = (i & 0xffff) * 4;
	((Class230_Sub2) this).aFloatArrayArray9701[i_138_][i_139_] = f;
	((Class230_Sub2) this).aFloatArrayArray9701[i_138_][i_139_ + 1]
	    = f_136_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_138_][i_139_ + 2]
	    = f_137_;
	((Class230_Sub2) this).aBoolArray9702[i_138_] = true;
    }
    
    void method3354(int i, float f, float f_140_, float f_141_) {
	int i_142_ = i >> 16;
	int i_143_ = (i & 0xffff) * 4;
	((Class230_Sub2) this).aFloatArrayArray9701[i_142_][i_143_] = f;
	((Class230_Sub2) this).aFloatArrayArray9701[i_142_][i_143_ + 1]
	    = f_140_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_142_][i_143_ + 2]
	    = f_141_;
	((Class230_Sub2) this).aBoolArray9702[i_142_] = true;
    }
    
    void method3364(int i, Class403 class403) {
	int i_144_ = i >> 16;
	int i_145_ = (i & 0xffff) * 4;
	System.arraycopy(class403.method4886(aFloatArray9696), 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_144_],
			 i_145_, 16);
	((Class230_Sub2) this).aBoolArray9702[i_144_] = true;
    }
    
    void method3391(int i, float[] fs, int i_146_) {
	int i_147_ = i >> 16;
	int i_148_ = (i & 0xffff) * 4;
	System.arraycopy(fs, 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_147_],
			 i_148_, i_146_);
	((Class230_Sub2) this).aBoolArray9702[i_147_] = true;
    }
    
    void method3386(Class487_Sub31_Sub1 class487_sub31_sub1, float f,
		    float f_149_) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_150_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if (class487_sub31_sub1.method10262(603300654)
	    != Class242.aClass242_2716)
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i + 1] = f_149_;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_150_ >= 0) {
	    i_150_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_150_ + 0] = f;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_150_ + 1]
		= f_149_;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    void method3393(int i, float[] fs, int i_151_) {
	int i_152_ = i >> 16;
	int i_153_ = (i & 0xffff) * 4;
	System.arraycopy(fs, 0,
			 ((Class230_Sub2) this).aFloatArrayArray9701[i_152_],
			 i_153_, i_151_);
	((Class230_Sub2) this).aBoolArray9702[i_152_] = true;
    }
    
    Class230_Sub2(Class151_Sub2_Sub1 class151_sub2_sub1,
		  Class229_Sub2 class229_sub2, Class254 class254) {
	this(class151_sub2_sub1, class254);
	((Class230_Sub2) this).aClass151_Sub2_Sub1_9693 = class151_sub2_sub1;
	((Class230_Sub2) this).aClass229_Sub2_9692 = class229_sub2;
    }
    
    void method8802() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
    }
    
    void method3361(Class487_Sub31_Sub1 class487_sub31_sub1, float f) {
	int i = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10678();
	int i_154_
	    = ((Class487_Sub31_Sub1_Sub2) class487_sub31_sub1).method10679();
	if ((class487_sub31_sub1.method10262(603300654)
	     != Class242.aClass242_2715)
	    && (class487_sub31_sub1.method10262(603300654)
		!= Class242.aClass242_2761))
	    throw new IllegalArgumentException_Sub1(class487_sub31_sub1, "");
	if (i >= 0) {
	    i *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[0][i] = f;
	    ((Class230_Sub2) this).aBoolArray9702[0] = true;
	}
	if (i_154_ >= 0) {
	    i_154_ *= 4;
	    ((Class230_Sub2) this).aFloatArrayArray9701[1][i_154_] = f;
	    ((Class230_Sub2) this).aBoolArray9702[1] = true;
	}
    }
    
    Class230_Sub2(Class151_Sub2_Sub1 class151_sub2_sub1, Class254 class254) {
	aString2608 = class254.aString2964;
	if (class254.aString2961 != null) {
	    aString2607 = class254.aString2961;
	    ((Class230_Sub2) this).aByteArray9700
		= class151_sub2_sub1.method10192(aString2607);
	}
	if (class254.aString2963 != null) {
	    aString2606 = class254.aString2963;
	    ((Class230_Sub2) this).aByteArray9691
		= class151_sub2_sub1.method10192(aString2606);
	}
	class151_sub2_sub1.method8379(this);
    }
    
    void method3338(int i, float f, float f_155_, float f_156_) {
	int i_157_ = i >> 16;
	int i_158_ = (i & 0xffff) * 4;
	((Class230_Sub2) this).aFloatArrayArray9701[i_157_][i_158_] = f;
	((Class230_Sub2) this).aFloatArrayArray9701[i_157_][i_158_ + 1]
	    = f_155_;
	((Class230_Sub2) this).aFloatArrayArray9701[i_157_][i_158_ + 2]
	    = f_156_;
	((Class230_Sub2) this).aBoolArray9702[i_157_] = true;
    }
    
    void method8803() {
	if (((Class230_Sub2) this).aLong9694 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9694);
	    ((Class230_Sub2) this).aLong9694 = 0L;
	}
	if (((Class230_Sub2) this).aLong9698 != 0L) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693
		.method10197(((Class230_Sub2) this).aLong9698);
	    ((Class230_Sub2) this).aLong9698 = 0L;
	}
    }
    
    void method8804() {
	if (((Class230_Sub2) this).aBoolArray9702[0]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[0]);
	    IDirect3DDevice.SetVertexShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[0].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[0] = false;
	}
	if (((Class230_Sub2) this).aBoolArray9702[1]) {
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.clear();
	    ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aByteBuffer9026
		.asFloatBuffer
		().put(((Class230_Sub2) this).aFloatArrayArray9701[1]);
	    IDirect3DDevice.SetPixelShaderConstantF
		(((Class151_Sub2_Sub1)
		  ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693).aLong11097,
		 0, ((Class230_Sub2) this).aClass151_Sub2_Sub1_9693.aLong8955,
		 ((Class230_Sub2) this).aFloatArrayArray9701[1].length / 4);
	    ((Class230_Sub2) this).aBoolArray9702[1] = false;
	}
    }
}
