/* Class510 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Iterator;

public class Class510
{
    public Interface56 anInterface56_6760;
    public static Class272 aClass272_6761;
    static int anInt6762;
    
    public Class510(Class272 class272) {
	byte[] is = class272.method5258((-1253961745
					 * Class488.aClass488_6513.anInt6507),
					875910493);
	method11539(new Class243_Sub10(is), 330444004);
    }
    
    void method11539(Class243_Sub10 class243_sub10, int i) {
	for (;;) {
	    int i_0_ = class243_sub10.method14878((byte) -76);
	    if (0 == i_0_)
		break;
	    if (i_0_ == 1)
		anInterface56_6760
		    = Class304.method6070(class243_sub10, (short) -9390);
	}
    }
    
    void method11540(Class243_Sub10 class243_sub10) {
	for (;;) {
	    int i = class243_sub10.method14878((byte) -20);
	    if (0 == i)
		break;
	    if (i == 1)
		anInterface56_6760
		    = Class304.method6070(class243_sub10, (short) 2566);
	}
    }
    
    public static void method11541(int i) {
	Class505.aClass431_6712 = new Class431(8);
	Class505.anInt6713 = 0;
	Iterator iterator = Class217.aList2519.iterator();
	while (iterator.hasNext()) {
	    Class503 class503 = (Class503) iterator.next();
	    class503.method11451();
	}
    }
    
    static final void method11542(Class479 class479, byte i) {
	Class465 class465;
	if (((Class479) class479).aBool6460) {
	    if (i <= 0)
		return;
	    class465 = ((Class479) class479).aClass465_6445;
	} else
	    class465 = ((Class479) class479).aClass465_6443;
	Class465 class465_1_ = class465;
	Class117 class117 = ((Class465) class465_1_).aClass117_6364;
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = class117.anInt1386 * -1928073259;
    }
    
    public static Object method11543(byte[] is, boolean bool, int i) {
	if (is == null)
	    return null;
	if (is.length > 136) {
	    ByteBuffer bytebuffer = ByteBuffer.allocateDirect(is.length);
	    bytebuffer.position(0);
	    bytebuffer.put(is);
	    return bytebuffer;
	}
	if (bool)
	    return Arrays.copyOf(is, is.length);
	return is;
    }
    
    static final void method11544(Class479 class479, int i) {
	int i_2_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	Class117 class117 = Class70.method1756(i_2_, (byte) 39);
	Class116 class116 = Class211.aClass116Array2498[i_2_ >> 16];
	Class329.method6327(class117, class116, class479, 1217239506);
    }
    
    static void method11545(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [((Class479) class479).anInt6442 * -117934955 - 2]
	    = (Exception_Sub4.aClass495_10538.method11258
	       ((((Class479) class479).anIntArray6435
		 [((Class479) class479).anInt6442 * -117934955 - 2]),
		(short) 18974)
	       .anIntArray6556
	       [(((Class479) class479).anIntArray6435
		 [((Class479) class479).anInt6442 * -117934955 - 1])]);
	((Class479) class479).anInt6442 -= -1158629699;
    }
    
    public static void method11546(int i) {
	for (Class243_Sub11_Sub14 class243_sub11_sub14
		 = ((Class243_Sub11_Sub14)
		    Class22.aClass442_217.method7891(-1780130856));
	     class243_sub11_sub14 != null;
	     class243_sub11_sub14
		 = ((Class243_Sub11_Sub14)
		    Class22.aClass442_217.method7887(1902905771))) {
	    if ((1394910995
		 * ((Class243_Sub11_Sub14) class243_sub11_sub14).anInt10828)
		> 1) {
		((Class243_Sub11_Sub14) class243_sub11_sub14).anInt10828 = 0;
		Class22.aClass132_220.method3293(class243_sub11_sub14,
						 ((((Class243_Sub11_Sub15)
						    (Class243_Sub11_Sub15)
						    (((Class243_Sub11_Sub14)
						      class243_sub11_sub14)
						     .aClass442_10826
						     .aClass243_Sub11_6213
						     .aClass243_Sub11_8697))
						   .aLong10843)
						  * 647379818461129833L));
		((Class243_Sub11_Sub14) class243_sub11_sub14)
		    .aClass442_10826.method7889(1695074414);
	    }
	}
	Class22.anInt201 = 0;
	Class22.anInt213 = 0;
	Class22.aClass420_205.method7457(1837825604);
	Class22.aClass431_216.method7749((byte) 40);
	Class22.aClass442_217.method7889(1815399786);
	Class22.aBool202 = false;
    }
    
    static final void method11547(Class479 class479, byte i) {
	int[] is = ((Class479) class479).anIntArray6435;
	int i_3_
	    = ((((Class479) class479).anInt6442 += -1158629699) * -117934955
	       - 1);
	int i_4_;
	if (((Class479) class479).aClass355_6446.aBool5451) {
	    if (i <= 8)
		return;
	    i_4_ = 1;
	} else
	    i_4_ = 0;
	is[i_3_] = i_4_;
    }
    
    public static void method11548(boolean bool, int i) {
	Class40.aClass130_598.method3169((byte) 68);
	if (Class536.method11927(client.anInt8440 * 2033567995, 188169754)) {
	    Class194[] class194s = client.aClass194Array8184;
	    for (int i_5_ = 0; i_5_ < class194s.length; i_5_++) {
		Class194 class194 = class194s[i_5_];
		class194.anInt2319 += -745163879;
		if (class194.anInt2319 * 408285353 < 50 && !bool)
		    return;
		class194.anInt2319 = 0;
		if (!class194.aBool2327
		    && class194.method4179((byte) 81) != null) {
		    Class243_Sub43 class243_sub43
			= Class529.method11818(Class326.aClass326_4935,
					       class194.aClass432_2312,
					       (short) 255);
		    class194.method4175(class243_sub43, (byte) 41);
		    try {
			class194.method4174(-1859848090);
		    } catch (IOException ioexception) {
			class194.aBool2327 = true;
		    }
		}
	    }
	    Class40.aClass130_598.method3169((byte) -42);
	}
    }
    
    public static void method11549(Class87 class87, Class272 class272, int i) {
	Class102[] class102s
	    = Class176.method3889(class272, Class20.anInt186 * 422060887, 0);
	Class229.aClass135Array3784 = new Class135[class102s.length];
	for (int i_6_ = 0; i_6_ < class102s.length; i_6_++)
	    Class229.aClass135Array3784[i_6_]
		= class87.method2232(class102s[i_6_], true);
	class102s = Class176.method3889(class272,
					Class532.anInt6982 * 1300791513, 0);
	Class161.aClass135Array1888 = new Class135[class102s.length];
	for (int i_7_ = 0; i_7_ < class102s.length; i_7_++)
	    Class161.aClass135Array1888[i_7_]
		= class87.method2232(class102s[i_7_], true);
	class102s
	    = Class176.method3889(class272, -1610488977 * Class20.anInt185, 0);
	Class337.aClass135Array5303 = new Class135[class102s.length];
	for (int i_8_ = 0; i_8_ < class102s.length; i_8_++)
	    Class337.aClass135Array5303[i_8_]
		= class87.method2232(class102s[i_8_], true);
	class102s
	    = Class176.method3889(class272, 1279203467 * Class20.anInt191, 0);
	Class63.aClass135Array805 = new Class135[class102s.length];
	for (int i_9_ = 0; i_9_ < class102s.length; i_9_++)
	    Class63.aClass135Array805[i_9_]
		= class87.method2232(class102s[i_9_], true);
	class102s
	    = Class176.method3889(class272, Class20.anInt187 * -1090022361, 0);
	Class20.aClass135Array182 = new Class135[class102s.length];
	int i_10_ = 25;
	for (int i_11_ = 0; i_11_ < class102s.length; i_11_++) {
	    class102s[i_11_].method2730
		(-i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0));
	    Class20.aClass135Array182[i_11_]
		= class87.method2232(class102s[i_11_], true);
	}
	class102s = Class176.method3889(class272,
					-1162370953 * Class123.anInt1565, 0);
	Class585.aClass135Array7613 = new Class135[class102s.length];
	for (int i_12_ = 0; i_12_ < class102s.length; i_12_++)
	    Class585.aClass135Array7613[i_12_]
		= class87.method2232(class102s[i_12_], true);
	class102s = Class176.method3889(class272,
					-1628479219 * Class406.anInt5975, 0);
	Class421_Sub3.aClass135Array8458 = new Class135[class102s.length];
	i_10_ = 12;
	for (int i_13_ = 0; i_13_ < class102s.length; i_13_++) {
	    class102s[i_13_].method2730
		(-i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0));
	    Class421_Sub3.aClass135Array8458[i_13_]
		= class87.method2232(class102s[i_13_], true);
	}
	class102s
	    = Class176.method3889(class272, Class20.anInt188 * 704444183, 0);
	Class20.aClass135Array193 = new Class135[class102s.length];
	i_10_ = 12;
	for (int i_14_ = 0; i_14_ < class102s.length; i_14_++) {
	    class102s[i_14_].method2730
		(-i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0),
		 -i_10_ + (int) (Math.random() * (double) i_10_ * 2.0));
	    Class20.aClass135Array193[i_14_]
		= class87.method2232(class102s[i_14_], true);
	}
	Class585.aClass135_7612
	    = class87.method2232(Class176.method3886(class272,
						     (Class20.anInt189
						      * 1921676107),
						     0),
				 true);
	Class625.aClass135_8075
	    = class87.method2232(Class176.method3886(class272,
						     ((Class243_Sub45_Sub4
						       .anInt10864)
						      * -1170062465),
						     0),
				 true);
	class102s = Class176.method3889(class272,
					1986979055 * (Class243_Sub11_Sub8_Sub3
						      .anInt11282),
					0);
	Class517.aClass135Array6814 = new Class135[class102s.length];
	for (int i_15_ = 0; i_15_ < class102s.length; i_15_++)
	    Class517.aClass135Array6814[i_15_]
		= class87.method2232(class102s[i_15_], true);
    }
}
