/* Class287_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Container;
import java.awt.Insets;

public class Class287_Sub2 extends Class287
{
    Class396 aClass396_9881;
    Class396 aClass396_9882 = new Class396(Float.NaN, Float.NaN, Float.NaN);
    Class396 aClass396_9883 = new Class396(Float.NaN, Float.NaN, Float.NaN);
    int anInt9884;
    boolean aBool9885;
    
    void method8910(int[][][] is, Class436 class436, int i, int i_0_,
		    int i_1_) {
	if (method3889(-1889434729)
	    && (((Class287_Sub2) this).aClass258_3293.method3600((byte) 17)
		|| ((Class287_Sub2) this).aClass258_3293
		       .method3596(-932347162))
	    && ((Class287_Sub2) this).aClass258_3293.method3596(1168475054)
	    && is != null) {
	    int i_2_
		= ((int) ((Class287_Sub2) this).aClass396_9883.aFloat4545 - i
		   >> 9);
	    int i_3_ = (((int) ((Class287_Sub2) this).aClass396_9883.aFloat4547
			 - i_0_)
			>> 9);
	    if (i_2_ >= 0 && i_3_ >= 0 && 1 + i_2_ < is[0].length
		&& 1 + i_3_ < is[0][0].length) {
		int i_4_ = ((Class287_Sub2) this).anInt9884 * -860788277;
		if (class436.method5316(i_2_, i_3_, 1159687807))
		    i_4_ = 1 + ((Class287_Sub2) this).anInt9884 * -860788277;
		long l
		    = ((long) ((Class287_Sub2) this).aClass396_9883.aFloat4545
		       % 512L);
		long l_5_
		    = ((long) ((Class287_Sub2) this).aClass396_9883.aFloat4547
		       % 512L);
		long l_6_ = ((512L - l_5_)
			     * ((512L - l) * (long) is[i_4_][i_2_][i_3_]));
		l_6_ += (512L - l_5_) * (l * (long) is[i_4_][i_2_ + 1][i_3_]);
		l_6_ += l_5_ * ((512L - l) * (long) is[i_4_][i_2_][i_3_ + 1]);
		l_6_ += (long) is[i_4_][1 + i_2_][1 + i_3_] * l * l_5_;
		l_6_ /= 262144L;
		l_6_ -= 512L;
		float f = ((float) -l_6_
			   - ((Class287_Sub2) this).aClass396_9883.aFloat4542);
		if (f > 0.0F)
		    ((Class287_Sub2) this).aClass396_9883.aFloat4542
			= (float) -l_6_;
	    }
	}
    }
    
    public void method8911(Class487_Sub20 class487_sub20, int i) {
	((Class287_Sub2) this).aClass396_9883.aFloat4545
	    = (float) (-1871098091 * class487_sub20.anInt10221);
	((Class287_Sub2) this).aClass396_9883.aFloat4542
	    = (float) (-1104460365 * class487_sub20.anInt10224);
	((Class287_Sub2) this).aClass396_9883.aFloat4547
	    = (float) (290496665 * class487_sub20.anInt10225);
	if (Float.isNaN(((Class287_Sub2) this).aClass396_9882.aFloat4545)) {
	    ((Class287_Sub2) this).aClass396_9882
		.method4735(((Class287_Sub2) this).aClass396_9883);
	    ((Class287_Sub2) this).aClass396_9881.method4780();
	}
	((Class287_Sub2) this).anInt9884
	    = class487_sub20.anInt10223 * 139234487;
    }
    
    public double[] method3905() {
	double[] ds = new double[3];
	Class396 class396 = method3890(278981046);
	ds[0] = (double) class396.aFloat4545;
	ds[1] = (double) class396.aFloat4542;
	ds[2] = (double) class396.aFloat4547;
	return ds;
    }
    
    public Class287_Sub2(Class258 class258) {
	super(class258);
	((Class287_Sub2) this).aClass396_9881 = new Class396();
	((Class287_Sub2) this).aBool9885 = false;
    }
    
    public Class396 method3890(int i) {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public double[] method3897(int i) {
	double[] ds = new double[3];
	Class396 class396 = method3890(2050975851);
	ds[0] = (double) class396.aFloat4545;
	ds[1] = (double) class396.aFloat4542;
	ds[2] = (double) class396.aFloat4547;
	return ds;
    }
    
    public Class487_Sub20 method3892(int i) {
	return (new Class487_Sub20
		(((Class287_Sub2) this).anInt9884 * -860788277,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4545,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4542,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4547));
    }
    
    public Class396 method3901() {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public void method3894(Class277 class277, int i, int i_7_, int i_8_) {
	class277.anInt3225
	    = (-1898153681
	       * ((int) ((Class287_Sub2) this).aClass396_9882.aFloat4545 - i));
	class277.anInt3224 = -2008457589 * (int) -(((Class287_Sub2) this)
						   .aClass396_9882.aFloat4542);
	class277.anInt3226 = -555499225 * ((int) (((Class287_Sub2) this)
						  .aClass396_9882.aFloat4547)
					   - i_7_);
    }
    
    public void method3909(Class487_Sub17 class487_sub17, byte i) {
	((Class287_Sub2) this).aClass396_9883.method4776(class487_sub17);
    }
    
    public void method8912(boolean bool, int i) {
	((Class287_Sub2) this).aBool9885 = bool;
    }
    
    public void method3888(float f, int[][][] is, Class436 class436, int i,
			   int i_9_, int i_10_) {
	if (((Class287_Sub2) this).aBool9885)
	    method8910(is, class436, i, i_9_, 2111805421);
	((Class287_Sub2) this).aClass258_3293.method3622
	    (true, f, ((Class287_Sub2) this).aClass396_9882,
	     ((Class287_Sub2) this).aClass258_3293.method3614((byte) 1),
	     ((Class287_Sub2) this).aClass396_9883,
	     ((Class287_Sub2) this).aClass396_9881, 1880982729);
    }
    
    public void method3896(float f, int[][][] is, Class436 class436, int i,
			   int i_11_) {
	if (((Class287_Sub2) this).aBool9885)
	    method8910(is, class436, i, i_11_, 2097791305);
	((Class287_Sub2) this).aClass258_3293.method3622
	    (true, f, ((Class287_Sub2) this).aClass396_9882,
	     ((Class287_Sub2) this).aClass258_3293.method3614((byte) 1),
	     ((Class287_Sub2) this).aClass396_9883,
	     ((Class287_Sub2) this).aClass396_9881, -766159872);
    }
    
    public void method3891(float f, int[][][] is, Class436 class436, int i,
			   int i_12_) {
	if (((Class287_Sub2) this).aBool9885)
	    method8910(is, class436, i, i_12_, 2130920498);
	((Class287_Sub2) this).aClass258_3293.method3622
	    (true, f, ((Class287_Sub2) this).aClass396_9882,
	     ((Class287_Sub2) this).aClass258_3293.method3614((byte) 1),
	     ((Class287_Sub2) this).aClass396_9883,
	     ((Class287_Sub2) this).aClass396_9881, -314850777);
    }
    
    public boolean method3898() {
	return !Float.isNaN(((Class287_Sub2) this).aClass396_9882.aFloat4545);
    }
    
    public boolean method3902() {
	return !Float.isNaN(((Class287_Sub2) this).aClass396_9882.aFloat4545);
    }
    
    public Class487_Sub20 method3910() {
	return (new Class487_Sub20
		(((Class287_Sub2) this).anInt9884 * -860788277,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4545,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4542,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4547));
    }
    
    public boolean method3889(int i) {
	return !Float.isNaN(((Class287_Sub2) this).aClass396_9882.aFloat4545);
    }
    
    public void method3915(Class277 class277, int i, int i_13_) {
	class277.anInt3225
	    = (-1898153681
	       * ((int) ((Class287_Sub2) this).aClass396_9882.aFloat4545 - i));
	class277.anInt3224 = -2008457589 * (int) -(((Class287_Sub2) this)
						   .aClass396_9882.aFloat4542);
	class277.anInt3226 = -555499225 * ((int) (((Class287_Sub2) this)
						  .aClass396_9882.aFloat4547)
					   - i_13_);
    }
    
    public Class396 method3903() {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public Class396 method3900() {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public Class396 method3908() {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public void method3913(Class277 class277, int i, int i_14_) {
	class277.anInt3225
	    = (-1898153681
	       * ((int) ((Class287_Sub2) this).aClass396_9882.aFloat4545 - i));
	class277.anInt3224 = -2008457589 * (int) -(((Class287_Sub2) this)
						   .aClass396_9882.aFloat4542);
	class277.anInt3226 = -555499225 * ((int) (((Class287_Sub2) this)
						  .aClass396_9882.aFloat4547)
					   - i_14_);
    }
    
    public float method3893(int i) {
	return 0.0F;
    }
    
    public double[] method3899() {
	double[] ds = new double[3];
	Class396 class396 = method3890(977911954);
	ds[0] = (double) class396.aFloat4545;
	ds[1] = (double) class396.aFloat4542;
	ds[2] = (double) class396.aFloat4547;
	return ds;
    }
    
    public Class487_Sub20 method3912() {
	return (new Class487_Sub20
		(((Class287_Sub2) this).anInt9884 * -860788277,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4545,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4542,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4547));
    }
    
    public Class487_Sub20 method3887() {
	return (new Class487_Sub20
		(((Class287_Sub2) this).anInt9884 * -860788277,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4545,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4542,
		 (int) ((Class287_Sub2) this).aClass396_9882.aFloat4547));
    }
    
    public void method3914(Class277 class277, int i, int i_15_) {
	class277.anInt3225
	    = (-1898153681
	       * ((int) ((Class287_Sub2) this).aClass396_9882.aFloat4545 - i));
	class277.anInt3224 = -2008457589 * (int) -(((Class287_Sub2) this)
						   .aClass396_9882.aFloat4542);
	class277.anInt3226 = -555499225 * ((int) (((Class287_Sub2) this)
						  .aClass396_9882.aFloat4547)
					   - i_15_);
    }
    
    public float method3911() {
	return 0.0F;
    }
    
    public void method3907(Class277 class277, int i, int i_16_) {
	class277.anInt3225
	    = (-1898153681
	       * ((int) ((Class287_Sub2) this).aClass396_9882.aFloat4545 - i));
	class277.anInt3224 = -2008457589 * (int) -(((Class287_Sub2) this)
						   .aClass396_9882.aFloat4542);
	class277.anInt3226 = -555499225 * ((int) (((Class287_Sub2) this)
						  .aClass396_9882.aFloat4547)
					   - i_16_);
    }
    
    public Class396 method3904() {
	return Class396.method4731(((Class287_Sub2) this).aClass396_9882);
    }
    
    public double[] method3895() {
	double[] ds = new double[3];
	Class396 class396 = method3890(692938976);
	ds[0] = (double) class396.aFloat4545;
	ds[1] = (double) class396.aFloat4542;
	ds[2] = (double) class396.aFloat4547;
	return ds;
    }
    
    public boolean method3906() {
	return !Float.isNaN(((Class287_Sub2) this).aClass396_9882.aFloat4545);
    }
    
    public void method3916(Class487_Sub17 class487_sub17) {
	((Class287_Sub2) this).aClass396_9883.method4776(class487_sub17);
    }
    
    public void method8913(boolean bool) {
	((Class287_Sub2) this).aBool9885 = bool;
    }
    
    public static void method8914(int i) {
	synchronized (Class51.aclient617) {
	    if (client.aFrame5395 != null) {
		/* empty */
	    } else {
		Container container = Class593.method7263(2135677657);
		if (container == null) {
		    /* empty */
		} else {
		    Class369.anInt4086 = container.getSize().width * 664857015;
		    Class144_Sub1_Sub2_Sub1.anInt11753
			= container.getSize().height * -1288676257;
		    if (Class37.aFrame459 == container) {
			Insets insets = Class37.aFrame459.getInsets();
			Class369.anInt4086
			    -= 664857015 * (insets.left + insets.right);
			Class144_Sub1_Sub2_Sub1.anInt11753
			    -= (insets.top + insets.bottom) * -1288676257;
		    }
		    if (-1952234489 * Class369.anInt4086 <= 0)
			Class369.anInt4086 = 664857015;
		    if (462225311 * Class144_Sub1_Sub2_Sub1.anInt11753 <= 0)
			Class144_Sub1_Sub2_Sub1.anInt11753 = -1288676257;
		    if (Class180.method2708(-763497040) != 1)
			Class555.method6751(-888136541);
		    else {
			Class175.anInt2012 = client.anInt10835 * -1805490715;
			client.anInt5392
			    = 1600205187 * ((-1952234489 * Class369.anInt4086
					     - -1537057099 * client.anInt10835)
					    / 2);
			Class570.anInt7649 = client.anInt10834 * -1170092665;
			client.anInt5393 = 0;
		    }
		    if (Class2.aClass607_18 != Class607.aClass607_7988
			&& Class175.anInt2012 * 1881245841 < 1024
			&& Class570.anInt7649 * -1922042493 >= 768) {
			/* empty */
		    }
		    Class630.aCanvas8127.setSize((Class175.anInt2012
						  * 1881245841),
						 (Class570.anInt7649
						  * -1922042493));
		    if (null != Class463.aClass151_5283) {
			Class463.aClass151_5283.method2196
			    (Class630.aCanvas8127,
			     1881245841 * Class175.anInt2012,
			     -1922042493 * Class570.anInt7649, -680089067);
			Class475.method5918(Class463.aClass151_5283,
					    Class222.method3225(1954657990));
		    }
		    if (Class37.aFrame459 == container) {
			Insets insets = Class37.aFrame459.getInsets();
			Class630.aCanvas8127.setLocation
			    (1879860523 * client.anInt5392 + insets.left,
			     insets.top + -833984083 * client.anInt5393);
		    } else
			Class630.aCanvas8127.setLocation((1879860523
							  * client.anInt5392),
							 (client.anInt5393
							  * -833984083));
		    Class362.method4479((byte) -23);
		    if (client.anInt10870 * -1899467487 != -1)
			Class4.method514(true, -1785220545);
		    Class176.method2657((short) -1491);
		}
	    }
	}
    }
    
    public static int method8915(int i, int i_17_, boolean bool, int i_18_) {
	Class487_Sub8 class487_sub8 = Class68.method1094(i, bool, 2079353147);
	if (null == class487_sub8)
	    return 0;
	if (-1 == i_17_)
	    return 0;
	int i_19_ = 0;
	for (int i_20_ = 0;
	     i_20_ < ((Class487_Sub8) class487_sub8).anIntArray10118.length;
	     i_20_++) {
	    if (i_17_
		== ((Class487_Sub8) class487_sub8).anIntArray10114[i_20_])
		i_19_
		    += ((Class487_Sub8) class487_sub8).anIntArray10118[i_20_];
	}
	return i_19_;
    }
    
    static final void method8916(Class612 class612, short i) {
	String string = (String) (((Class612) class612).anObjectArray8034
				  [(((Class612) class612).anInt8017
				    -= 1516150619) * -1930397485]);
	int i_21_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class4 class4 = Class276.method3797(Class297_Sub1.aClass411_9797,
					    i_21_, 0, (byte) 1);
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = class4.method497(string, Class343.aClass114Array3659, (byte) 1);
    }
    
    static String method8917(int i, Class621 class621, Class579 class579,
			     byte i_22_) {
	if (i < 100000)
	    return new StringBuilder().append
		       (Class160.method2545(-1773190653 * class579.anInt7764,
					    117037884))
		       .append
		       (i).append
		       (Class657.aString8377).toString();
	if (i < 10000000)
	    return new StringBuilder().append
		       (Class160.method2545(class579.anInt7756 * -420131675,
					    -1675685795))
		       .append
		       (i / 1000).append
		       (Class14.aClass14_254.method582(class621, 2096767477))
		       .append
		       (Class657.aString8377).toString();
	return new StringBuilder().append
		   (Class160.method2545(class579.anInt7738 * -1080366997,
					-1509668925))
		   .append
		   (i / 1000000).append
		   (Class14.aClass14_209.method582(class621, 1245608533))
		   .append
		   (Class657.aString8377).toString();
    }
}
