/* Class597 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Point;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Queue;

public class Class597
{
    static boolean aBool7894;
    static long aLong7895 = -7205790212075433709L;
    static Class605_Sub1 aClass605_Sub1_7896;
    static Class605_Sub2 aClass605_Sub2_7897;
    static int anInt7898 = 0;
    static Queue aQueue7899;
    public static short[] aShortArray7900;
    
    public static void method7283() {
	synchronized (aQueue7899) {
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		class487_sub33_sub1.method9407(16711935);
	    }
	}
    }
    
    static {
	aBool7894 = true;
	aClass605_Sub2_7897 = new Class605_Sub2();
	aClass605_Sub1_7896 = new Class605_Sub1();
	aQueue7899 = new LinkedList();
    }
    
    public static void method7284() {
	if (Class434.method5309(-2032639041))
	    Class487_Sub5.method9104(new Class596(), -2039728413);
    }
    
    public static void method7285() {
	aClass605_Sub2_7897.method7401((byte) -56);
	aClass605_Sub1_7896.method7401((byte) -127);
	aLong7895 = -7205790212075433709L;
	aBool7894 = true;
    }
    
    public static void method7286() {
	if (Class434.method5309(-2032639041))
	    Class487_Sub5.method9104(new Class596(), -1869632714);
    }
    
    static void method7287() {
	synchronized (aQueue7899) {
	    Point point;
	    if (Class630.aCanvas8127.isShowing())
		point = Class630.aCanvas8127.getLocationOnScreen();
	    else
		point = null;
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		if (point == null || !Class630.aCanvas8127.isShowing()
		    || !Class157.aBool1921)
		    class487_sub33_sub1.method9407(16711935);
		else {
		    class487_sub33_sub1.method10282(point, 1528402184);
		    if (!class487_sub33_sub1.method10281((byte) 111)
			&& (class487_sub33_sub1.method9415(2057670170)
			    < Class175.anInt2012 * 1881245841)
			&& (class487_sub33_sub1.method9406(1282014226)
			    < -1922042493 * Class570.anInt7649)
			&& class487_sub33_sub1.method9415(1314797555) >= 0
			&& class487_sub33_sub1.method9406(1282014226) >= 0) {
			int i = class487_sub33_sub1.method9416(-2026236061);
			if (class487_sub33_sub1.method9416(-1262416001) == -1)
			    aClass605_Sub1_7896.method7384(class487_sub33_sub1,
							   2046545579);
			else if (Class332.method4311(i, -494482311))
			    aClass605_Sub1_7896.method9493(class487_sub33_sub1,
							   -75352800);
		    }
		}
	    }
	}
    }
    
    static void method7288() {
	synchronized (aQueue7899) {
	    Point point;
	    if (Class630.aCanvas8127.isShowing())
		point = Class630.aCanvas8127.getLocationOnScreen();
	    else
		point = null;
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		if (point == null || !Class630.aCanvas8127.isShowing()
		    || !Class157.aBool1921)
		    class487_sub33_sub1.method9407(16711935);
		else {
		    class487_sub33_sub1.method10282(point, 626752197);
		    if (!class487_sub33_sub1.method10281((byte) 40)
			&& (class487_sub33_sub1.method9415(-1587150833)
			    < Class175.anInt2012 * 1881245841)
			&& (class487_sub33_sub1.method9406(1282014226)
			    < -1922042493 * Class570.anInt7649)
			&& class487_sub33_sub1.method9415(-1140524575) >= 0
			&& class487_sub33_sub1.method9406(1282014226) >= 0) {
			int i = class487_sub33_sub1.method9416(-1512773591);
			if (class487_sub33_sub1.method9416(-1995945370) == -1)
			    aClass605_Sub1_7896.method7384(class487_sub33_sub1,
							   154131694);
			else if (Class332.method4311(i, 1389304356))
			    aClass605_Sub1_7896.method9493(class487_sub33_sub1,
							   576355969);
		    }
		}
	    }
	}
    }
    
    Class597() throws Throwable {
	throw new Error();
    }
    
    public static void method7289() {
	synchronized (aQueue7899) {
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		class487_sub33_sub1.method9407(16711935);
	    }
	}
    }
    
    public static void method7290() {
	synchronized (aQueue7899) {
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		class487_sub33_sub1.method9407(16711935);
	    }
	}
    }
    
    public static void method7291() {
	synchronized (aQueue7899) {
	    for (;;) {
		Class487_Sub33_Sub1 class487_sub33_sub1
		    = (Class487_Sub33_Sub1) aQueue7899.poll();
		if (null == class487_sub33_sub1)
		    break;
		class487_sub33_sub1.method9407(16711935);
	    }
	}
    }
    
    public static void method7292() {
	Class486.method5990((byte) -112);
	aClass605_Sub2_7897.method7383(1382103364);
	aClass605_Sub1_7896.method7383(-1183698523);
	if (client.anInt10962 * -1893856579 > 0) {
	    Class487_Sub19 class487_sub19
		= Class667_Sub1.method9955(Class362.aClass362_3870,
					   client.aClass65_10744.aClass676_946,
					   852043838);
	    class487_sub19.aClass487_Sub17_Sub2_10217
		.method9202(client.anInt10962 * 1014508276, 124374082);
	    for (int i = 0; i < client.anInt10962 * -1893856579; i++) {
		Interface58 interface58 = client.anInterface58Array10721[i];
		long l = (interface58.method381(-843777877)
			  - aLong7895 * -26508860582175003L);
		if (l > 16777215L)
		    l = 16777215L;
		aLong7895
		    = interface58.method381(-843777877) * 7205790212075433709L;
		class487_sub19.aClass487_Sub17_Sub2_10217
		    .method9201(interface58.method384(847108794), (byte) 65);
		class487_sub19.aClass487_Sub17_Sub2_10217
		    .method9204((int) l, (byte) -125);
	    }
	    client.aClass65_10744.method1056(class487_sub19, (byte) 30);
	}
	if (1151758527 * anInt7898 > 0)
	    anInt7898 -= 574947135;
	if (client.aBool10737 && 1151758527 * anInt7898 <= 0) {
	    anInt7898 = -1385959188;
	    client.aBool10737 = false;
	    int i;
	    int i_0_;
	    if (-532631733 * Class168.anInt1964 == 1) {
		if (Class127.aClass258_Sub1_1526.method3589(804845215)
		    == Class266.aClass266_3122) {
		    Class287_Sub1 class287_sub1
			= ((Class287_Sub1)
			   Class127.aClass258_Sub1_1526.method3611((byte) 42));
		    i = Class420.method5136(class287_sub1.aClass414_9872,
					    -549843027) >> 3;
		    int i_1_ = 1024;
		    i_0_
			= (3 * i_1_
			   - (Class540.method6597(class287_sub1.aClass414_9872,
						  546074501)
			      >> 3)) % (2 * i_1_);
		} else {
		    i = 0;
		    i_0_ = 0;
		}
	    } else {
		i = (int) client.aFloat10919 >> 3;
		i_0_ = (int) client.aFloat10853 >> 3;
	    }
	    Class487_Sub19 class487_sub19
		= Class667_Sub1.method9955(Class362.aClass362_3972,
					   client.aClass65_10744.aClass676_946,
					   852043838);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9306(i_0_,
								 -249756072);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9253(i, 156982537);
	    client.aClass65_10744.method1056(class487_sub19, (byte) 15);
	}
	if (aBool7894 != Class157.aBool1921) {
	    aBool7894 = Class157.aBool1921;
	    Class487_Sub19 class487_sub19
		= Class667_Sub1.method9955(Class362.aClass362_3871,
					   client.aClass65_10744.aClass676_946,
					   852043838);
	    class487_sub19.aClass487_Sub17_Sub2_10217
		.method9201(Class157.aBool1921 ? 1 : 0, (byte) -67);
	    client.aClass65_10744.method1056(class487_sub19, (byte) 30);
	}
	if (!client.aBool10699) {
	    Class487_Sub19 class487_sub19
		= Class667_Sub1.method9955(Class362.aClass362_3876,
					   client.aClass65_10744.aClass676_946,
					   852043838);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9201(0, (byte) 51);
	    int i = (class487_sub19.aClass487_Sub17_Sub2_10217.anInt10192
		     * -1980757211);
	    Class487_Sub17 class487_sub17
		= Class447.aClass487_Sub42_5156.method9623(1224477411);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9213
		(class487_sub17.aByteArray10193, 0,
		 class487_sub17.anInt10192 * -1980757211, (byte) 0);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9208
		((-1980757211
		  * class487_sub19.aClass487_Sub17_Sub2_10217.anInt10192) - i,
		 -1757379782);
	    client.aClass65_10744.method1056(class487_sub19, (byte) 9);
	    client.aBool10699 = true;
	}
	if (!client.aBool10700
	    && Class447.aClass487_Sub42_5156.aClass637_Sub8_10503
		   .method9667((byte) 1) == 1) {
	    int[] is = Class463.aClass151_5283.method2006();
	    Class487_Sub19 class487_sub19
		= Class667_Sub1.method9955(Class362.aClass362_3937,
					   client.aClass65_10744.aClass676_946,
					   852043838);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9202(0,
								 -1464227461);
	    int i = (class487_sub19.aClass487_Sub17_Sub2_10217.anInt10192
		     * -1980757211);
	    if (null != is && 0 != is.length) {
		class487_sub19.aClass487_Sub17_Sub2_10217.method9201(1,
								     (byte) 6);
		Class96[] class96s = Class96.method1275((byte) 79);
		HashSet hashset = new HashSet();
		ArrayList arraylist = new ArrayList();
		for (int i_2_ = 0; i_2_ < is.length; i_2_++) {
		    boolean bool = false;
		    for (int i_3_ = 0; i_3_ < class96s.length; i_3_++) {
			if (class96s[i_3_].anInt1276 == is[i_2_]) {
			    hashset.add(class96s[i_3_]);
			    bool = true;
			    break;
			}
		    }
		    if (!bool)
			arraylist.add(Integer.valueOf(is[i_2_]));
		}
		Class203.method3000(hashset,
				    class487_sub19.aClass487_Sub17_Sub2_10217,
				    (byte) 30);
		class487_sub19.aClass487_Sub17_Sub2_10217
		    .method9293(arraylist.size(), 2051686164);
		if (arraylist.size() > 0) {
		    int i_4_ = 2147483647;
		    Iterator iterator = arraylist.iterator();
		    while (iterator.hasNext()) {
			Integer integer = (Integer) iterator.next();
			if (integer.intValue() < i_4_)
			    i_4_ = integer.intValue();
		    }
		    class487_sub19.aClass487_Sub17_Sub2_10217
			.method9217(i_4_, -352467232);
		    iterator = arraylist.iterator();
		    while (iterator.hasNext()) {
			Integer integer = (Integer) iterator.next();
			if (integer.intValue() != i_4_)
			    class487_sub19.aClass487_Sub17_Sub2_10217
				.method9217
				(integer.intValue() - i_4_, -352467232);
		    }
		}
	    } else
		class487_sub19.aClass487_Sub17_Sub2_10217
		    .method9201(0, (byte) 79);
	    class487_sub19.aClass487_Sub17_Sub2_10217.method9215
		((-1980757211
		  * class487_sub19.aClass487_Sub17_Sub2_10217.anInt10192) - i,
		 -473109555);
	    client.aClass65_10744.method1056(class487_sub19, (byte) 76);
	    client.aBool10700 = true;
	}
    }
    
    static final void method7293(Class612 class612, int i) {
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = (Class447.aClass487_Sub42_5156.aClass637_Sub15_10499
		   .method9732((byte) 111)
	       && Class463.aClass151_5283.method2033()) ? 1 : 0;
    }
    
    static final void method7294(Class612 class612, int i) {
	((Class612) class612).anInt8022 -= 402182018;
	int i_5_ = (((Class612) class612).anIntArray8021
		    [-40654783 * ((Class612) class612).anInt8022]);
	int i_6_ = (((Class612) class612).anIntArray8021
		    [1 + ((Class612) class612).anInt8022 * -40654783]);
	Class405_Sub1.method9002(7, i_5_, i_6_, "", 644963589);
    }
}
