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

public class Class314_Sub2 extends Class314
{
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9897;
    Class230 aClass230_9898;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9899;
    Class229 aClass229_9900;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9901;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9902;
    Class487_Sub31_Sub1 aClass487_Sub31_Sub1_9903;
    boolean aBool9904;
    public static float aFloat9905;
    public static float aFloat9906;
    public static float aFloat9907 = 1.0F;
    public static float aFloat9908;
    public static float aFloat9909;
    
    boolean method4116() {
	return (aFloat9907 == 1.0F && aFloat9905 == 0.0F && aFloat9906 == 1.0F
		&& aFloat9909 == 0.0F && aFloat9908 == 1.0F);
    }
    
    boolean method4117() {
	return (aClass151_Sub2_3470.aBool9065
		&& aClass151_Sub2_3470.method8378());
    }
    
    boolean method4121() {
	return ((Class314_Sub2) this).aBool9904;
    }
    
    int method4125() {
	return 1;
    }
    
    void method4122(int i, int i_0_) {
	/* empty */
    }
    
    void method4124(int i) {
	((Class314_Sub2) this).aClass229_9900.method3296();
    }
    
    void method4142(int i) {
	((Class314_Sub2) this).aClass229_9900.method3296();
    }
    
    void method4147(int i, Class144_Sub2 class144_sub2,
		    Interface31 interface31, Interface16 interface16,
		    Interface31 interface31_1_, boolean bool) {
	float f = aClass151_Sub2_3470.method8365();
	float f_2_ = (float) class144_sub2.method1943();
	float f_3_ = (float) class144_sub2.method1944();
	float f_4_ = f * 2.0F / f_2_;
	float f_5_ = -f * 2.0F / f_3_;
	float[] fs = { -1.0F + f_4_, 1.0F + f_5_, 0.0F, 0.0F, -1.0F + f_4_,
		       -3.0F + f_5_, 0.0F, 2.0F, 3.0F + f_4_, 1.0F + f_5_,
		       2.0F, 0.0F };
	int i_6_ = (int) f_2_;
	int i_7_ = (int) f_3_;
	int i_8_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 95).method1943()
	       : i_6_);
	int i_9_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 37).method1944()
	       : i_7_);
	((Class314_Sub2) this).aClass229_9900
	    .method3277(((Class314_Sub2) this).aClass230_9898);
	((Class314_Sub2) this).aClass229_9900.method3268();
	float f_10_ = (float) i_6_ / f_2_;
	float f_11_ = (float) i_7_ / f_3_;
	float f_12_ = (float) i_8_ / f_2_;
	float f_13_ = (float) i_9_ / f_3_;
	fs[8] = (fs[8] + 1.0F) * f_10_ - 1.0F;
	fs[5] = (fs[5] - 1.0F) * f_11_ + 1.0F;
	fs[10] *= f_12_;
	fs[7] *= f_13_;
	((Class314_Sub2) this).aClass229_9900.method3285
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9903, fs, (byte) -52);
	((Class314_Sub2) this).aClass229_9900.method3311
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9899, 0, interface31,
	     (byte) 1);
	((Class314_Sub2) this).aClass229_9900.method3307
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9897, aFloat9907,
	     627145984);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9901, aFloat9905,
	     aFloat9906, aFloat9909, aFloat9908, 2092396037);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9902, 0.0F, 0.0F,
	     0.0F, 0.0F, 1470456983);
	aClass151_Sub2_3470.method2034(0, 0, i_6_, i_7_);
    }
    
    void method4140(int i, Class144_Sub2 class144_sub2,
		    Interface31 interface31, Interface16 interface16,
		    Interface31 interface31_14_, boolean bool) {
	float f = aClass151_Sub2_3470.method8365();
	float f_15_ = (float) class144_sub2.method1943();
	float f_16_ = (float) class144_sub2.method1944();
	float f_17_ = f * 2.0F / f_15_;
	float f_18_ = -f * 2.0F / f_16_;
	float[] fs = { -1.0F + f_17_, 1.0F + f_18_, 0.0F, 0.0F, -1.0F + f_17_,
		       -3.0F + f_18_, 0.0F, 2.0F, 3.0F + f_17_, 1.0F + f_18_,
		       2.0F, 0.0F };
	int i_19_ = (int) f_15_;
	int i_20_ = (int) f_16_;
	int i_21_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 2).method1943()
	       : i_19_);
	int i_22_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 3).method1944()
	       : i_20_);
	((Class314_Sub2) this).aClass229_9900
	    .method3277(((Class314_Sub2) this).aClass230_9898);
	((Class314_Sub2) this).aClass229_9900.method3268();
	float f_23_ = (float) i_19_ / f_15_;
	float f_24_ = (float) i_20_ / f_16_;
	float f_25_ = (float) i_21_ / f_15_;
	float f_26_ = (float) i_22_ / f_16_;
	fs[8] = (fs[8] + 1.0F) * f_23_ - 1.0F;
	fs[5] = (fs[5] - 1.0F) * f_24_ + 1.0F;
	fs[10] *= f_25_;
	fs[7] *= f_26_;
	((Class314_Sub2) this).aClass229_9900.method3285
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9903, fs, (byte) -67);
	((Class314_Sub2) this).aClass229_9900.method3311
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9899, 0, interface31,
	     (byte) 1);
	((Class314_Sub2) this).aClass229_9900.method3307
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9897, aFloat9907,
	     -228494477);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9901, aFloat9905,
	     aFloat9906, aFloat9909, aFloat9908, 2101682365);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9902, 0.0F, 0.0F,
	     0.0F, 0.0F, 1669703766);
	aClass151_Sub2_3470.method2034(0, 0, i_19_, i_20_);
    }
    
    int method4127() {
	return 0;
    }
    
    int method4126() {
	return 1;
    }
    
    void method4133() {
	/* empty */
    }
    
    boolean method4119() {
	if (method4117()) {
	    ((Class314_Sub2) this).aClass229_9900
		= aClass151_Sub2_3470.method8245("FilterLevels");
	    if (((Class314_Sub2) this).aClass229_9900 == null)
		return false;
	    try {
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9899
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("sceneTex", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9897
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsGamma", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9901
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsRanges", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9902
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("pixelOffset", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9903
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("PosAndTexCoords", 1385157655);
		((Class314_Sub2) this).aClass230_9898
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3288("techAdjust", -1769114859);
	    } catch (Exception_Sub6_Sub1 exception_sub6_sub1) {
		return false;
	    } catch (Exception_Sub6_Sub2 exception_sub6_sub2) {
		return false;
	    }
	    if (!((Class314_Sub2) this).aClass230_9898.method3365())
		return false;
	    ((Class314_Sub2) this).aBool9904 = true;
	    return true;
	}
	return false;
    }
    
    boolean method4146() {
	return (aClass151_Sub2_3470.aBool9065
		&& aClass151_Sub2_3470.method8378());
    }
    
    static {
	aFloat9905 = 0.0F;
	aFloat9906 = 1.0F;
	aFloat9909 = 0.0F;
	aFloat9908 = 1.0F;
    }
    
    int method4153() {
	return 0;
    }
    
    public Class314_Sub2(Class151_Sub2 class151_sub2) {
	super(class151_sub2);
    }
    
    boolean method4129() {
	if (method4117()) {
	    ((Class314_Sub2) this).aClass229_9900
		= aClass151_Sub2_3470.method8245("FilterLevels");
	    if (((Class314_Sub2) this).aClass229_9900 == null)
		return false;
	    try {
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9899
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("sceneTex", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9897
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsGamma", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9901
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsRanges", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9902
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("pixelOffset", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9903
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("PosAndTexCoords", 1385157655);
		((Class314_Sub2) this).aClass230_9898
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3288("techAdjust", 1491511009);
	    } catch (Exception_Sub6_Sub1 exception_sub6_sub1) {
		return false;
	    } catch (Exception_Sub6_Sub2 exception_sub6_sub2) {
		return false;
	    }
	    if (!((Class314_Sub2) this).aClass230_9898.method3365())
		return false;
	    ((Class314_Sub2) this).aBool9904 = true;
	    return true;
	}
	return false;
    }
    
    boolean method4120() {
	if (method4117()) {
	    ((Class314_Sub2) this).aClass229_9900
		= aClass151_Sub2_3470.method8245("FilterLevels");
	    if (((Class314_Sub2) this).aClass229_9900 == null)
		return false;
	    try {
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9899
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("sceneTex", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9897
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsGamma", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9901
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("paramsRanges", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9902
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("pixelOffset", 1385157655);
		((Class314_Sub2) this).aClass487_Sub31_Sub1_9903
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3274("PosAndTexCoords", 1385157655);
		((Class314_Sub2) this).aClass230_9898
		    = ((Class314_Sub2) this).aClass229_9900
			  .method3288("techAdjust", 808206826);
	    } catch (Exception_Sub6_Sub1 exception_sub6_sub1) {
		return false;
	    } catch (Exception_Sub6_Sub2 exception_sub6_sub2) {
		return false;
	    }
	    if (!((Class314_Sub2) this).aClass230_9898.method3365())
		return false;
	    ((Class314_Sub2) this).aBool9904 = true;
	    return true;
	}
	return false;
    }
    
    void method4137() {
	/* empty */
    }
    
    void method4138(int i, int i_27_) {
	/* empty */
    }
    
    void method4139(int i, int i_28_) {
	/* empty */
    }
    
    boolean method4148() {
	return ((Class314_Sub2) this).aBool9904;
    }
    
    void method4141(int i, Class144_Sub2 class144_sub2,
		    Interface31 interface31, Interface16 interface16,
		    Interface31 interface31_29_, boolean bool) {
	float f = aClass151_Sub2_3470.method8365();
	float f_30_ = (float) class144_sub2.method1943();
	float f_31_ = (float) class144_sub2.method1944();
	float f_32_ = f * 2.0F / f_30_;
	float f_33_ = -f * 2.0F / f_31_;
	float[] fs = { -1.0F + f_32_, 1.0F + f_33_, 0.0F, 0.0F, -1.0F + f_32_,
		       -3.0F + f_33_, 0.0F, 2.0F, 3.0F + f_32_, 1.0F + f_33_,
		       2.0F, 0.0F };
	int i_34_ = (int) f_30_;
	int i_35_ = (int) f_31_;
	int i_36_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 17).method1943()
	       : i_34_);
	int i_37_
	    = (bool ? aClass151_Sub2_3470.method2009((byte) 117).method1944()
	       : i_35_);
	((Class314_Sub2) this).aClass229_9900
	    .method3277(((Class314_Sub2) this).aClass230_9898);
	((Class314_Sub2) this).aClass229_9900.method3268();
	float f_38_ = (float) i_34_ / f_30_;
	float f_39_ = (float) i_35_ / f_31_;
	float f_40_ = (float) i_36_ / f_30_;
	float f_41_ = (float) i_37_ / f_31_;
	fs[8] = (fs[8] + 1.0F) * f_38_ - 1.0F;
	fs[5] = (fs[5] - 1.0F) * f_39_ + 1.0F;
	fs[10] *= f_40_;
	fs[7] *= f_41_;
	((Class314_Sub2) this).aClass229_9900.method3285
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9903, fs, (byte) 46);
	((Class314_Sub2) this).aClass229_9900.method3311
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9899, 0, interface31,
	     (byte) 1);
	((Class314_Sub2) this).aClass229_9900.method3307
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9897, aFloat9907,
	     -44385148);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9901, aFloat9905,
	     aFloat9906, aFloat9909, aFloat9908, 1855939909);
	((Class314_Sub2) this).aClass229_9900.method3283
	    (((Class314_Sub2) this).aClass487_Sub31_Sub1_9902, 0.0F, 0.0F,
	     0.0F, 0.0F, 1377841296);
	aClass151_Sub2_3470.method2034(0, 0, i_34_, i_35_);
    }
    
    int method4144() {
	return 1;
    }
    
    void method4143(int i) {
	((Class314_Sub2) this).aClass229_9900.method3296();
    }
    
    boolean method4134() {
	return ((Class314_Sub2) this).aBool9904;
    }
    
    int method4151() {
	return 1;
    }
    
    int method4149() {
	return 1;
    }
    
    int method4118() {
	return 1;
    }
    
    boolean method4150() {
	return (aFloat9907 == 1.0F && aFloat9905 == 0.0F && aFloat9906 == 1.0F
		&& aFloat9909 == 0.0F && aFloat9908 == 1.0F);
    }
    
    boolean method4123() {
	return (aFloat9907 == 1.0F && aFloat9905 == 0.0F && aFloat9906 == 1.0F
		&& aFloat9909 == 0.0F && aFloat9908 == 1.0F);
    }
    
    int method4152() {
	return 0;
    }
    
    boolean method4132() {
	return (aClass151_Sub2_3470.aBool9065
		&& aClass151_Sub2_3470.method8378());
    }
}
