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

public class Class359 {
	public static final int anInt5500 = 16;
	static final int anInt5501 = 128;
	static Object anObject5502;
	Interface38 anInterface38_5503;
	public boolean aBool5504;
	Interface39[] anInterface39Array5505 = null;
	static Object anObject5506;
	public Interface39[] anInterface39Array5507;
	public Interface38 anInterface38_5508;
	public Interface38 anInterface38_5509;
	static final int anInt5510 = 128;
	static Object anObject5511;
	Class84_Sub1 aClass84_Sub1_5512;

	static void method6857() {
		if (anObject5506 == null) {
			Class336_Sub1_Sub2 class336_sub1_sub2 = new Class336_Sub1_Sub2();
			byte[] is = class336_sub1_sub2.method17142(128, 128, 16);
			anObject5506 = Class12.method566(is, false, (byte) 27);
		}
		if (anObject5511 == null) {
			Class336_Sub2_Sub1 class336_sub2_sub1 = new Class336_Sub2_Sub1();
			byte[] is = class336_sub2_sub1.method16535(128, 128, 16);
			anObject5511 = Class12.method566(is, false, (byte) 92);
		}
	}

	Class359(Class84_Sub1 class84_sub1) {
		((Class359) this).anInterface38_5503 = null;
		anInterface39Array5507 = null;
		anInterface38_5508 = null;
		anInterface38_5509 = null;
		((Class359) this).aClass84_Sub1_5512 = class84_sub1;
		aBool5504 = ((Class359) this).aClass84_Sub1_5512.aBool8935;
		if (aBool5504 && !(((Class359) this).aClass84_Sub1_5512.method14822(Class172.aClass172_2146, Class96.aClass96_1386)))
			aBool5504 = false;
		if (aBool5504 || (((Class359) this).aClass84_Sub1_5512.method14812(Class172.aClass172_2146, Class96.aClass96_1386))) {
			method6859();
			if (!aBool5504) {
				((Class359) this).anInterface39Array5505 = new Interface39[16];
				for (int i = 0; i < 16; i++) {
					byte[] is = Class97.method2414(anObject5506, i * 32768, 32768, 1079051213);
					((Class359) this).anInterface39Array5505[i] = (((Class359) this).aClass84_Sub1_5512.method14824(Class172.aClass172_2146, 128, 128, true, is));
				}
				anInterface39Array5507 = new Interface39[16];
				for (int i = 0; i < 16; i++) {
					byte[] is = Class97.method2414(anObject5511, i * 32768, 32768, -1684396514);
					anInterface39Array5507[i] = (((Class359) this).aClass84_Sub1_5512.method14824(Class172.aClass172_2146, 128, 128, true, is));
				}
			} else {
				byte[] is = Class441.method7948(anObject5506, false, (byte) 3);
				((Class359) this).anInterface38_5503 = (((Class359) this).aClass84_Sub1_5512.method15096(Class172.aClass172_2146, 128, 128, 16, true, is));
				is = Class441.method7948(anObject5511, false, (byte) 3);
				anInterface38_5508 = (((Class359) this).aClass84_Sub1_5512.method15096(Class172.aClass172_2146, 128, 128, 16, true, is));
			}
		}
	}

	public boolean method6858() {
		return (aBool5504 ? ((Class359) this).anInterface38_5503 != null : ((Class359) this).anInterface39Array5505 != null);
	}

	static void method6859() {
		if (anObject5506 == null) {
			Class336_Sub1_Sub2 class336_sub1_sub2 = new Class336_Sub1_Sub2();
			byte[] is = class336_sub1_sub2.method17142(128, 128, 16);
			anObject5506 = Class12.method566(is, false, (byte) 50);
		}
		if (anObject5511 == null) {
			Class336_Sub2_Sub1 class336_sub2_sub1 = new Class336_Sub2_Sub1();
			byte[] is = class336_sub2_sub1.method16535(128, 128, 16);
			anObject5511 = Class12.method566(is, false, (byte) 101);
		}
	}

	public boolean method6860() {
		if (!((Class359) this).aClass84_Sub1_5512.aBool8935)
			return false;
		if (anInterface38_5509 == null) {
			if (anObject5502 == null) {
				byte[] is = Class242.method4984(128, 128, 16, 8, new Class247_Sub1(419684), 4.0F, 4.0F, 16.0F, 0.5F, 0.6F);
				anObject5502 = Class12.method566(is, false, (byte) 104);
			}
			byte[] is = Class441.method7948(anObject5502, false, (byte) 3);
			byte[] is_0_ = new byte[is.length * 4];
			int i = 0;
			for (int i_1_ = 0; i_1_ < 16; i_1_++) {
				int i_2_ = i_1_ * 16384;
				int i_3_ = i_2_;
				for (int i_4_ = 0; i_4_ < 128; i_4_++) {
					int i_5_ = i_3_ + i_4_ * 128;
					int i_6_ = i_3_ + (i_4_ - 1 & 0x7f) * 128;
					int i_7_ = i_3_ + (i_4_ + 1 & 0x7f) * 128;
					for (int i_8_ = 0; i_8_ < 128; i_8_++) {
						float f = (float) ((is[i_6_ + i_8_] & 0xff) - (is[i_7_ + i_8_] & 0xff));
						float f_9_ = (float) ((is[i_5_ + (i_8_ - 1 & 0x7f)] & 0xff) - (is[i_5_ + (i_8_ + 1 & 0x7f)] & 0xff));
						float f_10_ = (float) (128.0 / Math.sqrt((double) (f_9_ * f_9_ + 16384.0F + f * f)));
						is_0_[i++] = (byte) (int) (f_9_ * f_10_ + 127.0F);
						is_0_[i++] = (byte) (int) (128.0F * f_10_ + 127.0F);
						is_0_[i++] = (byte) (int) (f * f_10_ + 127.0F);
						is_0_[i++] = is[i_2_++];
					}
				}
			}
			anInterface38_5509 = (((Class359) this).aClass84_Sub1_5512.method15096(Class172.aClass172_2145, 128, 128, 16, true, is_0_));
		}
		return anInterface38_5509 != null;
	}

	static void method6861() {
		if (anObject5506 == null) {
			Class336_Sub1_Sub2 class336_sub1_sub2 = new Class336_Sub1_Sub2();
			byte[] is = class336_sub1_sub2.method17142(128, 128, 16);
			anObject5506 = Class12.method566(is, false, (byte) 55);
		}
		if (anObject5511 == null) {
			Class336_Sub2_Sub1 class336_sub2_sub1 = new Class336_Sub2_Sub1();
			byte[] is = class336_sub2_sub1.method16535(128, 128, 16);
			anObject5511 = Class12.method566(is, false, (byte) 108);
		}
	}

	public boolean method6862() {
		return (aBool5504 ? ((Class359) this).anInterface38_5503 != null : ((Class359) this).anInterface39Array5505 != null);
	}

	public boolean method6863() {
		return (aBool5504 ? ((Class359) this).anInterface38_5503 != null : ((Class359) this).anInterface39Array5505 != null);
	}

	public boolean method6864() {
		if (!((Class359) this).aClass84_Sub1_5512.aBool8935)
			return false;
		if (anInterface38_5509 == null) {
			if (anObject5502 == null) {
				byte[] is = Class242.method4984(128, 128, 16, 8, new Class247_Sub1(419684), 4.0F, 4.0F, 16.0F, 0.5F, 0.6F);
				anObject5502 = Class12.method566(is, false, (byte) 27);
			}
			byte[] is = Class441.method7948(anObject5502, false, (byte) 3);
			byte[] is_11_ = new byte[is.length * 4];
			int i = 0;
			for (int i_12_ = 0; i_12_ < 16; i_12_++) {
				int i_13_ = i_12_ * 16384;
				int i_14_ = i_13_;
				for (int i_15_ = 0; i_15_ < 128; i_15_++) {
					int i_16_ = i_14_ + i_15_ * 128;
					int i_17_ = i_14_ + (i_15_ - 1 & 0x7f) * 128;
					int i_18_ = i_14_ + (i_15_ + 1 & 0x7f) * 128;
					for (int i_19_ = 0; i_19_ < 128; i_19_++) {
						float f = (float) ((is[i_17_ + i_19_] & 0xff) - (is[i_18_ + i_19_] & 0xff));
						float f_20_ = (float) ((is[i_16_ + (i_19_ - 1 & 0x7f)] & 0xff) - (is[i_16_ + (i_19_ + 1 & 0x7f)] & 0xff));
						float f_21_ = (float) (128.0 / Math.sqrt((double) (f_20_ * f_20_ + 16384.0F + f * f)));
						is_11_[i++] = (byte) (int) (f_20_ * f_21_ + 127.0F);
						is_11_[i++] = (byte) (int) (128.0F * f_21_ + 127.0F);
						is_11_[i++] = (byte) (int) (f * f_21_ + 127.0F);
						is_11_[i++] = is[i_13_++];
					}
				}
			}
			anInterface38_5509 = (((Class359) this).aClass84_Sub1_5512.method15096(Class172.aClass172_2145, 128, 128, 16, true, is_11_));
		}
		return anInterface38_5509 != null;
	}
}
