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

public class Class487_Sub8 extends Class487
{
    int[] anIntArray10114 = { -1 };
    static Class178 aClass178_10115;
    static Class666 aClass666_10116 = new Class666(32);
    static int anInt10117;
    int[] anIntArray10118 = { 0 };
    static int anInt10119;
    
    final Class134 method9116(Class151 class151, int i, Class652 class652,
			      int i_0_, boolean bool, Class563 class563,
			      int i_1_) {
	Class134 class134 = null;
	int i_2_ = i;
	Class525 class525 = null;
	if (i_0_ != -1)
	    class525 = (Class525) Class262.aClass662_Sub14_3097
				      .method31(i_0_, -716382928);
	int[] is = ((Class487_Sub8) this).anIntArray10114;
	if (null != class525 && class525.anIntArray7227 != null) {
	    is = new int[class525.anIntArray7227.length];
	    for (int i_3_ = 0; i_3_ < class525.anIntArray7227.length; i_3_++) {
		int i_4_ = class525.anIntArray7227[i_3_];
		if (i_4_ >= 0
		    && i_4_ < ((Class487_Sub8) this).anIntArray10114.length)
		    is[i_3_] = ((Class487_Sub8) this).anIntArray10114[i_4_];
		else
		    is[i_3_] = -1;
	    }
	}
	if (class652 != null)
	    i_2_ |= class652.method7721((byte) 56);
	long l = method9122(is, i_0_,
			    null != class563 ? class563.anIntArray7580 : null,
			    bool, 1437471894);
	if (null != aClass178_10115)
	    class134 = (Class134) aClass178_10115.method2662(l);
	if (null == class134
	    || class151.method2080(class134.method1856(), i_2_) != 0) {
	    if (null != class134)
		i_2_ = class151.method2337(i_2_, class134.method1856());
	    int i_5_ = i_2_;
	    boolean bool_6_ = false;
	    for (int i_7_ = 0; i_7_ < is.length; i_7_++) {
		if (is[i_7_] != -1
		    && !((Class657)
			 Class469.aClass662_Sub20_5330.method31(is[i_7_],
								1879422846))
			    .method7846(bool, null, 1001702869))
		    bool_6_ = true;
	    }
	    if (bool_6_)
		return null;
	    Class139[] class139s = new Class139[is.length];
	    for (int i_8_ = 0; i_8_ < is.length; i_8_++) {
		if (-1 != is[i_8_])
		    class139s[i_8_]
			= ((Class657)
			   Class469.aClass662_Sub20_5330.method31(is[i_8_],
								  432841908))
			      .method7848(bool, null, -1588096706);
	    }
	    if (null != class525 && null != class525.anIntArrayArray7237) {
		for (int i_9_ = 0; i_9_ < class525.anIntArrayArray7237.length;
		     i_9_++) {
		    if (null != class525.anIntArrayArray7237[i_9_]
			&& null != class139s[i_9_]) {
			int i_10_ = class525.anIntArrayArray7237[i_9_][0];
			int i_11_ = class525.anIntArrayArray7237[i_9_][1];
			int i_12_ = class525.anIntArrayArray7237[i_9_][2];
			int i_13_ = class525.anIntArrayArray7237[i_9_][3];
			int i_14_ = class525.anIntArrayArray7237[i_9_][4];
			int i_15_ = class525.anIntArrayArray7237[i_9_][5];
			if (i_13_ != 0 || 0 != i_14_ || 0 != i_15_)
			    class139s[i_9_].method1912(i_13_, i_14_, i_15_);
			if (i_10_ != 0 || i_11_ != 0 || 0 != i_12_)
			    class139s[i_9_].method1911(i_10_, i_11_, i_12_);
		    }
		}
	    }
	    Class139 class139 = new Class139(class139s, class139s.length);
	    if (class563 != null)
		i_5_ |= 0x4000;
	    class134 = class151.method2249(class139, i_5_,
					   -1502238401 * anInt10117, 64, 853);
	    if (class563 != null) {
		for (int i_16_ = 0; i_16_ < 10; i_16_++) {
		    for (int i_17_ = 0;
			 i_17_ < Class498.aShortArrayArray6838[i_16_].length;
			 i_17_++) {
			if (class563.anIntArray7580[i_16_]
			    < (Class518.aShortArrayArrayArray7065[i_16_]
			       [i_17_]).length)
			    class134.method1725
				(Class498.aShortArrayArray6838[i_16_][i_17_],
				 (Class518.aShortArrayArrayArray7065[i_16_]
				  [i_17_][class563.anIntArray7580[i_16_]]));
		    }
		}
	    }
	    if (null != aClass178_10115) {
		class134.method1753(i_2_);
		aClass178_10115.method2664(class134, l);
	    }
	}
	if (null == class652)
	    return class134;
	Class134 class134_18_ = class134.method1862((byte) 1, i_2_, true);
	class652.method7722(class134_18_, 0, (short) 5351);
	return class134_18_;
    }
    
    static {
	aClass178_10115 = new Class178(11);
    }
    
    static void method9117() {
	aClass178_10115.method2667(-1983842314);
    }
    
    static void method9118(int i) {
	anInt10117 = i * 246466239;
	aClass178_10115.method2667(1762423468);
    }
    
    static void method9119(int i, boolean bool) {
	Class487_Sub8 class487_sub8 = Class68.method1094(i, bool, 2138374455);
	if (class487_sub8 != null)
	    class487_sub8.method5995((short) -31970);
    }
    
    static void method9120(int i, boolean bool) {
	Class487_Sub8 class487_sub8 = Class68.method1094(i, bool, -443738114);
	if (null != class487_sub8) {
	    for (int i_19_ = 0;
		 (i_19_
		  < ((Class487_Sub8) class487_sub8).anIntArray10114.length);
		 i_19_++) {
		((Class487_Sub8) class487_sub8).anIntArray10114[i_19_] = -1;
		((Class487_Sub8) class487_sub8).anIntArray10118[i_19_] = 0;
	    }
	}
    }
    
    static void method9121(int i, boolean bool) {
	Class487_Sub8 class487_sub8 = Class68.method1094(i, bool, 805244130);
	if (class487_sub8 != null)
	    class487_sub8.method5995((short) -20727);
    }
    
    long method9122(int[] is, int i, int[] is_20_, boolean bool, int i_21_) {
	long[] ls = Class487_Sub17.aLongArray10195;
	long l = -1L;
	l = l >>> 8 ^ ls[(int) ((l ^ (long) (i >> 8)) & 0xffL)];
	l = l >>> 8 ^ ls[(int) ((l ^ (long) i) & 0xffL)];
	for (int i_22_ = 0; i_22_ < is.length; i_22_++) {
	    l = l >>> 8 ^ ls[(int) ((l ^ (long) (is[i_22_] >> 24)) & 0xffL)];
	    l = l >>> 8 ^ ls[(int) ((l ^ (long) (is[i_22_] >> 16)) & 0xffL)];
	    l = l >>> 8 ^ ls[(int) ((l ^ (long) (is[i_22_] >> 8)) & 0xffL)];
	    l = l >>> 8 ^ ls[(int) ((l ^ (long) is[i_22_]) & 0xffL)];
	}
	if (is_20_ != null) {
	    for (int i_23_ = 0; i_23_ < 5; i_23_++)
		l = l >>> 8 ^ ls[(int) ((l ^ (long) is_20_[i_23_]) & 0xffL)];
	}
	l = l >>> 8 ^ ls[(int) ((l ^ (long) (bool ? 1 : 0)) & 0xffL)];
	return l;
    }
    
    Class487_Sub8() {
	/* empty */
    }
    
    static void method9123() {
	aClass666_10116.method7923((byte) 1);
    }
    
    static void method9124() {
	aClass666_10116.method7923((byte) 1);
    }
    
    static void method9125(int i, boolean bool) {
	Class487_Sub8 class487_sub8 = Class68.method1094(i, bool, 740746831);
	if (class487_sub8 != null)
	    class487_sub8.method5995((short) -32268);
    }
    
    static void method9126() {
	aClass178_10115.method2667(778065774);
    }
    
    static void method9127() {
	aClass178_10115.method2667(1739680877);
    }
    
    static void method9128() {
	aClass178_10115.method2667(-2005499913);
    }
}
