/* Class383_Sub3 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.nio.ByteBuffer;

import jagdx.IDirect3DDevice;
import jagdx.IDirect3DTexture;

public class Class383_Sub3 extends Class383 implements Interface31
{
    float aFloat9968;
    int anInt9969;
    float aFloat9970;
    boolean aBool9971;
    int anInt9972;
    boolean aBool9973;
    
    public void method193(int i, int i_0_, int i_1_, int i_2_, int[] is,
			  int i_3_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
	    .method8242(i_1_ * i_2_ * 4);
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	IDirect3DTexture.Download(((Class383_Sub3) this).aLong4302, 0, i, i_0_,
				  i_1_, i_2_, i_1_ * 4, 0,
				  (((Class383_Sub3) this)
				   .aClass151_Sub2_Sub1_4300.aLong8955));
	bytebuffer.asIntBuffer().get(is, i_3_, i_1_ * i_2_);
    }
    
    Class383_Sub3(Class151_Sub2_Sub1 class151_sub2_sub1, Class116 class116,
		  Class155 class155, int i, int i_4_, int i_5_, int i_6_) {
	super(class151_sub2_sub1, class116, class155, false, i * i_4_);
	if (!((Class151_Sub2_Sub1)
	      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300).aBool11128) {
	    ((Class383_Sub3) this).anInt9972
		= Class294_Sub1.method8854(i, (byte) 0);
	    ((Class383_Sub3) this).anInt9969
		= Class294_Sub1.method8854(i_4_, (byte) 0);
	    ((Class383_Sub3) this).aFloat9970
		= (float) i / (float) ((Class383_Sub3) this).anInt9972;
	    ((Class383_Sub3) this).aFloat9968
		= (float) i_4_ / (float) ((Class383_Sub3) this).anInt9969;
	} else {
	    ((Class383_Sub3) this).anInt9972 = i;
	    ((Class383_Sub3) this).anInt9969 = i_4_;
	    ((Class383_Sub3) this).aFloat9970 = 1.0F;
	    ((Class383_Sub3) this).aFloat9968 = 1.0F;
	}
	((Class383_Sub3) this).aLong4302
	    = (IDirect3DDevice.CreateTexture
	       (((Class151_Sub2_Sub1)
		 ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300).aLong11097,
		((Class383_Sub3) this).anInt9972,
		((Class383_Sub3) this).anInt9969, 0, i_5_,
		Class151_Sub2_Sub1.method10193((((Class383_Sub3) this)
						.aClass116_4298),
					       (((Class383_Sub3) this)
						.aClass155_4301)),
		i_6_));
    }
    
    Class383_Sub3(Class151_Sub2_Sub1 class151_sub2_sub1, int i, int i_7_,
		  boolean bool, int[] is, int i_8_, int i_9_) {
	super(class151_sub2_sub1, Class116.aClass116_1448,
	      Class155.aClass155_1894,
	      bool && ((Class151_Sub2_Sub1) class151_sub2_sub1).aBool11117,
	      i * i_7_);
	if (!((Class151_Sub2_Sub1)
	      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300).aBool11128) {
	    ((Class383_Sub3) this).anInt9972
		= Class294_Sub1.method8854(i, (byte) 0);
	    ((Class383_Sub3) this).anInt9969
		= Class294_Sub1.method8854(i_7_, (byte) 0);
	    ((Class383_Sub3) this).aFloat9970
		= (float) i / (float) ((Class383_Sub3) this).anInt9972;
	    ((Class383_Sub3) this).aFloat9968
		= (float) i_7_ / (float) ((Class383_Sub3) this).anInt9969;
	    if (i != ((Class383_Sub3) this).anInt9972
		|| i_7_ != ((Class383_Sub3) this).anInt9969) {
		is = (((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
			  .method2115
		      (i, i_7_, ((Class383_Sub3) this).anInt9972,
		       ((Class383_Sub3) this).anInt9969, is, i_8_, i_9_,
		       1830106131));
		i_8_ = 0;
		i_9_ = ((Class383_Sub3) this).anInt9972;
	    }
	} else {
	    ((Class383_Sub3) this).anInt9972 = i;
	    ((Class383_Sub3) this).anInt9969 = i_7_;
	    ((Class383_Sub3) this).aFloat9970 = 1.0F;
	    ((Class383_Sub3) this).aFloat9968 = 1.0F;
	}
	if (bool)
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 0, 1024, 21, 1));
	else
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 1, 0, 21, 1));
	if (i_9_ == 0)
	    i_9_ = ((Class383_Sub3) this).anInt9972;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_9_ * ((Class383_Sub3) this).anInt9969
	     * (((Class383_Sub3) this).aClass116_4298.anInt1453
		* -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_8_,
				     i_9_ * ((Class383_Sub3) this).anInt9969);
	IDirect3DTexture.Upload(((Class383_Sub3) this).aLong4302, 0, 0, 0,
				((Class383_Sub3) this).anInt9972,
				((Class383_Sub3) this).anInt9969,
				i_9_ * ((((Class383_Sub3) this).aClass116_4298
					 .anInt1453)
					* -1152771135),
				0,
				(((Class383_Sub3) this)
				 .aClass151_Sub2_Sub1_4300.aLong8955));
    }
    
    Class383_Sub3(Class151_Sub2_Sub1 class151_sub2_sub1, Class116 class116,
		  int i, int i_10_, boolean bool, byte[] is, int i_11_,
		  int i_12_) {
	super(class151_sub2_sub1, class116, Class155.aClass155_1894,
	      bool && ((Class151_Sub2_Sub1) class151_sub2_sub1).aBool11117,
	      i * i_10_);
	if (!((Class151_Sub2_Sub1)
	      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300).aBool11128) {
	    ((Class383_Sub3) this).anInt9972
		= Class294_Sub1.method8854(i, (byte) 0);
	    ((Class383_Sub3) this).anInt9969
		= Class294_Sub1.method8854(i_10_, (byte) 0);
	    ((Class383_Sub3) this).aFloat9970
		= (float) i / (float) ((Class383_Sub3) this).anInt9972;
	    ((Class383_Sub3) this).aFloat9968
		= (float) i_10_ / (float) ((Class383_Sub3) this).anInt9969;
	    if (i != ((Class383_Sub3) this).anInt9972
		|| i_10_ != ((Class383_Sub3) this).anInt9969) {
		is = (((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
			  .method2117
		      (i, i_10_, ((Class383_Sub3) this).anInt9972,
		       ((Class383_Sub3) this).anInt9969, is, i_11_, i_12_,
		       class116.anInt1453 * -1152771135, 1169337854));
		i_11_ = 0;
		i_12_ = ((Class383_Sub3) this).anInt9972;
	    }
	} else {
	    ((Class383_Sub3) this).anInt9972 = i;
	    ((Class383_Sub3) this).anInt9969 = i_10_;
	    ((Class383_Sub3) this).aFloat9970 = 1.0F;
	    ((Class383_Sub3) this).aFloat9968 = 1.0F;
	}
	if (bool)
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 0, 1024,
		    Class151_Sub2_Sub1.method10193((((Class383_Sub3) this)
						    .aClass116_4298),
						   Class155.aClass155_1894),
		    1));
	else
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 1, 0,
		    Class151_Sub2_Sub1.method10193((((Class383_Sub3) this)
						    .aClass116_4298),
						   Class155.aClass155_1894),
		    1));
	if (i_12_ == 0)
	    i_12_ = ((Class383_Sub3) this).anInt9972;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_12_ * ((Class383_Sub3) this).anInt9969
	     * (((Class383_Sub3) this).aClass116_4298.anInt1453
		* -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	if (((Class383_Sub3) this).aClass116_4298 == Class116.aClass116_1455) {
	    bytebuffer.put(is, i_11_,
			   (((Class383_Sub3) this).anInt9969
			    * ((Class383_Sub3) this).anInt9972 / 2));
	    IDirect3DTexture.Upload(((Class383_Sub3) this).aLong4302, 0, 0, 0,
				    ((Class383_Sub3) this).anInt9972,
				    ((Class383_Sub3) this).anInt9969 / 4,
				    ((Class383_Sub3) this).anInt9972 / 4 * 8,
				    0,
				    (((Class383_Sub3) this)
				     .aClass151_Sub2_Sub1_4300.aLong8955));
	} else if (((Class383_Sub3) this).aClass116_4298
		   == Class116.aClass116_1456) {
	    bytebuffer.put(is, i_11_, (((Class383_Sub3) this).anInt9969
				       * ((Class383_Sub3) this).anInt9972));
	    IDirect3DTexture.Upload(((Class383_Sub3) this).aLong4302, 0, 0, 0,
				    ((Class383_Sub3) this).anInt9972,
				    ((Class383_Sub3) this).anInt9969 / 4,
				    ((Class383_Sub3) this).anInt9972 / 4 * 16,
				    0,
				    (((Class383_Sub3) this)
				     .aClass151_Sub2_Sub1_4300.aLong8955));
	} else {
	    bytebuffer.put(is, i_11_,
			   i_12_ * ((Class383_Sub3) this).anInt9969);
	    IDirect3DTexture.Upload(((Class383_Sub3) this).aLong4302, 0, 0, 0,
				    ((Class383_Sub3) this).anInt9972,
				    ((Class383_Sub3) this).anInt9969,
				    i_12_ * ((((Class383_Sub3) this)
					      .aClass116_4298.anInt1453)
					     * -1152771135),
				    0,
				    (((Class383_Sub3) this)
				     .aClass151_Sub2_Sub1_4300.aLong8955));
	}
    }
    
    Class383_Sub3(Class151_Sub2_Sub1 class151_sub2_sub1, Class116 class116,
		  int i, int i_13_, boolean bool, float[] fs, int i_14_,
		  int i_15_) {
	super(class151_sub2_sub1, class116, Class155.aClass155_1894,
	      bool && ((Class151_Sub2_Sub1) class151_sub2_sub1).aBool11117,
	      i * i_13_);
	if (!((Class151_Sub2_Sub1)
	      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300).aBool11128) {
	    ((Class383_Sub3) this).anInt9972
		= Class294_Sub1.method8854(i, (byte) 0);
	    ((Class383_Sub3) this).anInt9969
		= Class294_Sub1.method8854(i_13_, (byte) 0);
	    ((Class383_Sub3) this).aFloat9970
		= (float) i / (float) ((Class383_Sub3) this).anInt9972;
	    ((Class383_Sub3) this).aFloat9968
		= (float) i_13_ / (float) ((Class383_Sub3) this).anInt9969;
	    if (i != ((Class383_Sub3) this).anInt9972
		|| i_13_ != ((Class383_Sub3) this).anInt9969) {
		fs = (((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
			  .method1990
		      (i, i_13_, ((Class383_Sub3) this).anInt9972,
		       ((Class383_Sub3) this).anInt9969, fs, i_14_, i_15_,
		       class116.anInt1453 * -1152771135, (byte) -50));
		i_14_ = 0;
		i_15_ = ((Class383_Sub3) this).anInt9972;
	    }
	} else {
	    ((Class383_Sub3) this).anInt9972 = i;
	    ((Class383_Sub3) this).anInt9969 = i_13_;
	    ((Class383_Sub3) this).aFloat9970 = 1.0F;
	    ((Class383_Sub3) this).aFloat9968 = 1.0F;
	}
	if (bool)
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 0, 1024,
		    Class151_Sub2_Sub1.method10193((((Class383_Sub3) this)
						    .aClass116_4298),
						   Class155.aClass155_1893),
		    1));
	else
	    ((Class383_Sub3) this).aLong4302
		= (IDirect3DDevice.CreateTexture
		   ((((Class151_Sub2_Sub1)
		      ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300)
		     .aLong11097),
		    ((Class383_Sub3) this).anInt9972,
		    ((Class383_Sub3) this).anInt9969, 1, 0,
		    Class151_Sub2_Sub1.method10193((((Class383_Sub3) this)
						    .aClass116_4298),
						   Class155.aClass155_1893),
		    1));
	if (i_15_ == 0)
	    i_15_ = ((Class383_Sub3) this).anInt9972;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_15_ * ((Class383_Sub3) this).anInt9969
	     * (((Class383_Sub3) this).aClass116_4298.anInt1453 * -1152771135)
	     * 4);
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asFloatBuffer().put(fs, i_14_,
				       (i_15_
					* ((Class383_Sub3) this).anInt9969
					* ((((Class383_Sub3) this)
					    .aClass116_4298.anInt1453)
					   * -1152771135)));
	IDirect3DTexture.Upload(((Class383_Sub3) this).aLong4302, 0, 0, 0,
				((Class383_Sub3) this).anInt9972,
				((Class383_Sub3) this).anInt9969,
				i_15_ * ((((Class383_Sub3) this).aClass116_4298
					  .anInt1453)
					 * -1152771135) * 4,
				0,
				(((Class383_Sub3) this)
				 .aClass151_Sub2_Sub1_4300.aLong8955));
    }
    
    public int method1() {
	return ((Class383_Sub3) this).anInt9972;
    }
    
    public float method201() {
	return ((Class383_Sub3) this).aFloat9970;
    }
    
    long method4633() {
	return ((Class383_Sub3) this).aLong4302;
    }
    
    public float method163(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9969;
    }
    
    public boolean method198() {
	return true;
    }
    
    public float method173() {
	return ((Class383_Sub3) this).aFloat9968;
    }
    
    public int method38() {
	return ((Class383_Sub3) this).anInt9969;
    }
    
    public void method187(int i, int i_16_, int i_17_, int i_18_, int[] is,
			  int i_19_, int i_20_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_20_ == 0)
	    i_20_ = i_17_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_20_ * i_18_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_19_, i_20_ * i_18_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_16_, i_17_, i_18_,
	     i_20_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    Class383_Sub3(Class151_Sub2_Sub1 class151_sub2_sub1, Class116 class116,
		  Class155 class155, int i, int i_21_) {
	this(class151_sub2_sub1, class116, class155, i, i_21_, 0, 1);
    }
    
    public void method165(boolean bool, boolean bool_22_) {
	((Class383_Sub3) this).aBool9971 = bool;
	((Class383_Sub3) this).aBool9973 = bool_22_;
    }
    
    public float method162(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public void method199(int i, int i_23_, int i_24_, int i_25_, byte[] is,
			  Class116 class116, int i_26_, int i_27_) {
	if (((Class383_Sub3) this).aClass116_4298 != class116
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_27_ == 0)
	    i_27_ = i_24_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_27_ * i_25_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.put(is, i_26_, i_27_ * i_25_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_23_, i_24_, i_25_,
	     i_27_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public void method180(int i, int i_28_, int i_29_, int i_30_, int[] is,
			  int[] is_31_, int i_32_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	method197(i, i_28_, i_29_, i_30_, is, null, i_32_);
    }
    
    public float method177(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public void method169(int i, int i_33_, int i_34_, int i_35_, int i_36_,
			  int i_37_) {
	int[] is = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
		       .method2021(i_36_, i_37_, i_34_, i_35_);
	if (is != null) {
	    for (int i_38_ = 0; i_38_ < is.length; i_38_++)
		is[i_38_] |= ~0xffffff;
	    method171(i, i_33_, i_34_, i_35_, is, 0, i_34_);
	}
    }
    
    public void method285() {
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method10188(this);
    }
    
    public boolean method172() {
	return false;
    }
    
    public void method80() {
	super.method80();
    }
    
    public void method81() {
	super.method80();
    }
    
    public void method79() {
	super.method80();
    }
    
    public int method205() {
	return ((Class383_Sub3) this).anInt9972;
    }
    
    public int method176() {
	return ((Class383_Sub3) this).anInt9969;
    }
    
    public int method161() {
	return ((Class383_Sub3) this).anInt9969;
    }
    
    public float method203(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public void method288() {
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method10188(this);
    }
    
    public void method171(int i, int i_39_, int i_40_, int i_41_, int[] is,
			  int i_42_, int i_43_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_43_ == 0)
	    i_43_ = i_40_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_43_ * i_41_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_42_, i_43_ * i_41_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_39_, i_40_, i_41_,
	     i_43_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public float method200() {
	return ((Class383_Sub3) this).aFloat9970;
    }
    
    public float method167(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public float method181(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9969;
    }
    
    public float method182(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9969;
    }
    
    public boolean method183() {
	return true;
    }
    
    public void method184(boolean bool, boolean bool_44_) {
	((Class383_Sub3) this).aBool9971 = bool;
	((Class383_Sub3) this).aBool9973 = bool_44_;
    }
    
    public void method185(boolean bool, boolean bool_45_) {
	((Class383_Sub3) this).aBool9971 = bool;
	((Class383_Sub3) this).aBool9973 = bool_45_;
    }
    
    public void method186(int i, int i_46_, int i_47_, int i_48_, int[] is,
			  int i_49_, int i_50_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_50_ == 0)
	    i_50_ = i_47_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_50_ * i_48_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_49_, i_50_ * i_48_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_46_, i_47_, i_48_,
	     i_50_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public float method170() {
	return ((Class383_Sub3) this).aFloat9970;
    }
    
    public float method168() {
	return ((Class383_Sub3) this).aFloat9970;
    }
    
    public void method189(int i, int i_51_, int i_52_, int i_53_, int[] is,
			  int i_54_, int i_55_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_55_ == 0)
	    i_55_ = i_52_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_55_ * i_53_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_54_, i_55_ * i_53_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_51_, i_52_, i_53_,
	     i_55_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public void method174(int i, int i_56_, int i_57_, int i_58_, byte[] is,
			  Class116 class116, int i_59_, int i_60_) {
	if (((Class383_Sub3) this).aClass116_4298 != class116
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_60_ == 0)
	    i_60_ = i_57_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_60_ * i_58_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.put(is, i_59_, i_60_ * i_58_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_56_, i_57_, i_58_,
	     i_60_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public void method164(int i, int i_61_, int i_62_, int i_63_, byte[] is,
			  Class116 class116, int i_64_, int i_65_) {
	if (((Class383_Sub3) this).aClass116_4298 != class116
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_65_ == 0)
	    i_65_ = i_62_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_65_ * i_63_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.put(is, i_64_, i_65_ * i_63_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_61_, i_62_, i_63_,
	     i_65_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public void method197(int i, int i_66_, int i_67_, int i_68_, int[] is,
			  int[] is_69_, int i_70_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	method197(i, i_66_, i_67_, i_68_, is, null, i_70_);
    }
    
    public void method188(int i, int i_71_, int i_72_, int i_73_, int[] is,
			  int i_74_, int i_75_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	if (i_75_ == 0)
	    i_75_ = i_72_;
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method8242
	    (i_75_ * i_73_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
			      * -1152771135));
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	bytebuffer.asIntBuffer().put(is, i_74_, i_75_ * i_73_);
	IDirect3DTexture.Upload
	    (((Class383_Sub3) this).aLong4302, 0, i, i_71_, i_72_, i_73_,
	     i_75_ * (((Class383_Sub3) this).aClass116_4298.anInt1453
		      * -1152771135),
	     0, ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aLong8955);
    }
    
    public void method194(int i, int i_76_, int i_77_, int i_78_, int[] is,
			  int i_79_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
	    .method8242(i_77_ * i_78_ * 4);
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	IDirect3DTexture.Download(((Class383_Sub3) this).aLong4302, 0, i,
				  i_76_, i_77_, i_78_, i_77_ * 4, 0,
				  (((Class383_Sub3) this)
				   .aClass151_Sub2_Sub1_4300.aLong8955));
	bytebuffer.asIntBuffer().get(is, i_79_, i_77_ * i_78_);
    }
    
    public void method166(int i, int i_80_, int i_81_, int i_82_, int[] is,
			  int i_83_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
	    .method8242(i_81_ * i_82_ * 4);
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	IDirect3DTexture.Download(((Class383_Sub3) this).aLong4302, 0, i,
				  i_80_, i_81_, i_82_, i_81_ * 4, 0,
				  (((Class383_Sub3) this)
				   .aClass151_Sub2_Sub1_4300.aLong8955));
	bytebuffer.asIntBuffer().get(is, i_83_, i_81_ * i_82_);
    }
    
    public void method196(int i, int i_84_, int i_85_, int i_86_, int[] is,
			  int[] is_87_, int i_88_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	method197(i, i_84_, i_85_, i_86_, is, null, i_88_);
    }
    
    public void method190(int i, int i_89_, int i_90_, int i_91_, int[] is,
			  int[] is_92_, int i_93_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	method197(i, i_89_, i_90_, i_91_, is, null, i_93_);
    }
    
    public void method195(int i, int i_94_, int i_95_, int i_96_, int i_97_,
			  int i_98_) {
	int[] is = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
		       .method2021(i_97_, i_98_, i_95_, i_96_);
	if (is != null) {
	    for (int i_99_ = 0; i_99_ < is.length; i_99_++)
		is[i_99_] |= ~0xffffff;
	    method171(i, i_94_, i_95_, i_96_, is, 0, i_95_);
	}
    }
    
    public float method191() {
	return ((Class383_Sub3) this).aFloat9970;
    }
    
    public void method287(Class313 class313) {
	super.method283(class313);
    }
    
    public float method179(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public void method192(int i, int i_100_, int i_101_, int i_102_, int[] is,
			  int i_103_) {
	if (((Class383_Sub3) this).aClass116_4298 != Class116.aClass116_1448
	    || (((Class383_Sub3) this).aClass155_4301
		!= Class155.aClass155_1894))
	    throw new RuntimeException();
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300
	    .method8242(i_101_ * i_102_ * 4);
	ByteBuffer bytebuffer
	    = ((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.aByteBuffer9026;
	bytebuffer.clear();
	IDirect3DTexture.Download(((Class383_Sub3) this).aLong4302, 0, i,
				  i_100_, i_101_, i_102_, i_101_ * 4, 0,
				  (((Class383_Sub3) this)
				   .aClass151_Sub2_Sub1_4300.aLong8955));
	bytebuffer.asIntBuffer().get(is, i_103_, i_101_ * i_102_);
    }
    
    public float method202() {
	return ((Class383_Sub3) this).aFloat9968;
    }
    
    public float method204() {
	return ((Class383_Sub3) this).aFloat9968;
    }
    
    public boolean method175() {
	return false;
    }
    
    public float method178(float f) {
	return f / (float) ((Class383_Sub3) this).anInt9972;
    }
    
    public void method284() {
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method10188(this);
    }
    
    public void method240() {
	((Class383_Sub3) this).aClass151_Sub2_Sub1_4300.method10188(this);
    }
    
    long method4637() {
	return ((Class383_Sub3) this).aLong4302;
    }
    
    public void method286(Class313 class313) {
	super.method283(class313);
    }
    
    public void method283(Class313 class313) {
	super.method283(class313);
    }
}
