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

public class Class596 {
	Class605[] aClass605Array7728;
	boolean aBool7729;
	public static int anInt7730;

	Class596(boolean bool, Class605[] class605s) {
		((Class596) this).aBool7729 = bool;
		((Class596) this).aClass605Array7728 = class605s;
	}

	static void method12875(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 - 1] = Class356_Sub1.aClass492_10082.method11142((((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 - 1]), -785895218).method11011(Class246.aClass5_3969, (byte) -28) ? 1 : 0;
	}

	public static final int method12876(int i, int i_0_, int i_1_, int i_2_, int i_3_, int i_4_) {
		if (client.aClass237_8070.method4711((byte) -81) == null)
			return 0;
		if (i_3_ < 3) {
			Class291 class291 = client.aClass237_8070.method4686(1006431657);
			int i_5_ = i >> 9;
			int i_6_ = i_0_ >> 9;
			if (i_1_ < 0 || i_2_ < 0 || i_1_ > client.aClass237_8070.method4724(825155689) - 1 || i_2_ > client.aClass237_8070.method4678((byte) -52) - 1)
				return 0;
			if (i_5_ < 1 || i_6_ < 1 || i_5_ > client.aClass237_8070.method4724(834349392) - 1 || i_6_ > client.aClass237_8070.method4678((byte) -17) - 1)
				return 0;
			boolean bool = 0 != (class291.aByteArrayArrayArray4295[1][i >> 9][i_0_ >> 9] & 0x2);
			if ((i & 0x1ff) == 0) {
				boolean bool_7_ = 0 != ((class291.aByteArrayArrayArray4295[1][i_5_ - 1][i_0_ >> 9]) & 0x2);
				boolean bool_8_ = ((class291.aByteArrayArrayArray4295[1][i_5_][i_0_ >> 9] & 0x2) != 0);
				if (bool_7_ != bool_8_)
					bool = 0 != ((class291.aByteArrayArrayArray4295[1][i_1_][i_2_]) & 0x2);
			}
			if (0 == (i_0_ & 0x1ff)) {
				boolean bool_9_ = 0 != ((class291.aByteArrayArrayArray4295[1][i >> 9][i_6_ - 1]) & 0x2);
				boolean bool_10_ = 0 != (class291.aByteArrayArrayArray4295[1][i >> 9][i_6_] & 0x2);
				if (bool_9_ != bool_10_)
					bool = (class291.aByteArrayArrayArray4295[1][i_1_][i_2_] & 0x2) != 0;
			}
			if (bool)
				i_3_++;
		}
		return client.aClass237_8070.method4711((byte) 52).aClass176Array7580[i_3_].method3817(i, i_0_, (byte) -75);
	}

	static boolean method12877(int i, int i_11_) {
		if (i == 3 || 4 == i || 5 == i || 6 == i || i == 1001 || i == 1002)
			return true;
		if (i == 2)
			return true;
		return false;
	}
}
