/* Class62 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Random;

public class Class62
{
    Class411 aClass411_667;
    static final int anInt668 = 0;
    Class58[] aClass58Array669;
    int anInt670;
    
    public Class29 method991(int i, byte i_0_) {
	byte[] is
	    = ((Class62) this).aClass411_667.method5042(i, 0, -1942206942);
	Class29 class29 = new Class29();
	class29.method748(new Class487_Sub17(is), -2120419499);
	return class29;
    }
    
    Class58 method992(int i, int i_1_, byte i_2_) {
	if (((Class62) this).anInt670 * -450287393 == -1)
	    return new Class58(false, new Class33[0]);
	Class33 class33
	    = new Class33(((Class62) this).anInt670 * -450287393, i, i_1_);
	return new Class58(false, new Class33[] { class33 });
    }
    
    public Class62(Class616 class616, Class621 class621, Class411 class411) {
	((Class62) this).aClass411_667 = class411;
	Class487_Sub17 class487_sub17
	    = new Class487_Sub17(((Class62) this).aClass411_667
				     .method5042(0, 0, -1914398094));
	int i = ((null == class487_sub17.aByteArray10193
		  || class487_sub17.aByteArray10193.length < 1)
		 ? -1 : class487_sub17.method9219(-1081187182));
	if (i < 4) {
	    ((Class62) this).aClass58Array669 = new Class58[0];
	    ((Class62) this).anInt670 = -2012517151;
	} else {
	    int i_3_ = class487_sub17.method9219(-2104397781);
	    Class356[] class356s = Class360.method4468(-690049781);
	    boolean bool = true;
	    if (class356s.length != i_3_)
		bool = false;
	    else {
		for (int i_4_ = 0; i_4_ < class356s.length; i_4_++) {
		    int i_5_ = class487_sub17.method9219(-2052626739);
		    if (1920098997 * class356s[i_4_].anInt3753 != i_5_) {
			bool = false;
			break;
		    }
		}
	    }
	    if (bool) {
		int i_6_ = class487_sub17.method9219(-1923130444);
		int i_7_ = class487_sub17.method9219(-1583989658);
		int i_8_;
		int i_9_;
		if (i > 2) {
		    ((Class62) this).anInt670
			= class487_sub17.method9221(373873656) * 2012517151;
		    i_8_ = class487_sub17.method9222(-141845401);
		    i_9_ = class487_sub17.method9220((byte) -114);
		} else {
		    ((Class62) this).anInt670 = -2012517151;
		    i_8_ = 0;
		    i_9_ = 0;
		}
		((Class62) this).aClass58Array669 = new Class58[1 + i_7_];
		for (int i_10_ = 0; i_10_ < i_6_; i_10_++) {
		    int i_11_ = class487_sub17.method9219(-1380901141);
		    boolean bool_12_
			= class487_sub17.method9219(-1788248185) == 1;
		    int i_13_ = class487_sub17.method9220((byte) -28);
		    Class33[] class33s;
		    if (-450287393 * ((Class62) this).anInt670 == -1) {
			class33s = new Class33[i_13_];
			for (int i_14_ = 0; i_14_ < i_13_; i_14_++) {
			    int i_15_ = class487_sub17.method9220((byte) -77);
			    int i_16_ = class487_sub17.method9222(1459846494);
			    int i_17_ = class487_sub17.method9220((byte) -61);
			    class33s[i_14_] = new Class33(i_15_, i_16_, i_17_);
			}
			((Class62) this).aClass58Array669[i_11_]
			    = new Class58(bool_12_, class33s);
		    } else {
			class33s = new Class33[i_13_ + 1];
			class33s[0] = new Class33((((Class62) this).anInt670
						   * -450287393),
						  i_8_, i_9_);
			for (int i_18_ = 0; i_18_ < i_13_; i_18_++) {
			    int i_19_ = class487_sub17.method9220((byte) -80);
			    int i_20_ = class487_sub17.method9222(-1889539730);
			    int i_21_ = class487_sub17.method9220((byte) -109);
			    class33s[i_18_ + 1]
				= new Class33(i_19_, i_20_, i_21_);
			}
		    }
		    ((Class62) this).aClass58Array669[i_11_]
			= new Class58(bool_12_, class33s);
		}
		for (int i_22_ = 0; i_22_ < 1 + i_7_; i_22_++) {
		    if (null == ((Class62) this).aClass58Array669[i_22_])
			((Class62) this).aClass58Array669[i_22_]
			    = method992(i_8_, i_9_, (byte) -11);
		}
	    } else {
		((Class62) this).aClass58Array669 = new Class58[0];
		((Class62) this).anInt670 = -2012517151;
	    }
	}
    }
    
    public boolean method993() {
	return -1 != ((Class62) this).anInt670 * -450287393;
    }
    
    public Class33[] method994(int i, int i_23_) {
	if (i < 0 || i >= ((Class62) this).aClass58Array669.length)
	    return ((Class58) method992(0, 0, (byte) -4)).aClass33Array656;
	Class58 class58 = ((Class62) this).aClass58Array669[i];
	if (!((Class58) class58).aBool655
	    || ((Class58) class58).aClass33Array656.length <= 1)
	    return ((Class58) class58).aClass33Array656;
	int i_24_ = ((Class62) this).anInt670 * -450287393 == -1 ? 0 : 1;
	Random random = new Random();
	Class33[] class33s
	    = new Class33[((Class58) class58).aClass33Array656.length];
	System.arraycopy(((Class58) class58).aClass33Array656, 0, class33s, 0,
			 class33s.length);
	for (int i_25_ = i_24_; i_25_ < class33s.length; i_25_++) {
	    int i_26_ = (Class125.method1653(random, class33s.length - i_24_,
					     -1577976998)
			 + i_24_);
	    Class33 class33 = ((Class58) class58).aClass33Array656[i_25_];
	    class33s[i_25_] = class33s[i_26_];
	    class33s[i_26_] = class33;
	}
	return class33s;
    }
    
    public boolean method995(int i) {
	return -1 != ((Class62) this).anInt670 * -450287393;
    }
    
    static int method996(Class211 class211, int i, byte i_27_) {
	if (!client.method10019(class211).method9136(i, 691711673)
	    && class211.anObjectArray2321 == null)
	    return -1;
	return ((null != class211.anIntArray2387
		 && class211.anIntArray2387.length > i)
		? class211.anIntArray2387[i] : -1);
    }
    
    static int method997(int i, int i_28_) {
	if (16711935 == i)
	    return -1;
	return Class302.method4050(i, (byte) 36);
    }
    
    public static void method998(boolean bool, boolean bool_29_, int i) {
	Class545.aBool7393 = bool;
	Class545.aBool7394 = bool_29_;
    }
}
