/* Class507 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;

public class Class507
{
    public List aList6993 = new LinkedList();
    boolean aBool6994 = false;
    int anInt6995 = 0;
    int anInt6996 = 0;
    static long aLong6997;
    
    public void method6275() {
	Iterator iterator = aList6993.iterator();
	while (iterator.hasNext()) {
	    Class493 class493 = (Class493) iterator.next();
	    iterator.remove();
	    Class163_Sub21.method8812(class493, -1267848673);
	}
    }
    
    public void method6276(int i) {
	Iterator iterator = aList6993.iterator();
	while (iterator.hasNext()) {
	    Class493 class493 = (Class493) iterator.next();
	    iterator.remove();
	    Class163_Sub21.method8812(class493, -942625385);
	}
    }
    
    void method6277(Class493 class493, int i) {
	Class590_Sub1 class590_sub1 = class493.aClass590_Sub1_6734;
	boolean bool = true;
	Class150[] class150s
	    = class493.aClass590_Sub1_6734.aClass150Array10413;
	for (int i_0_ = 0; i_0_ < class150s.length; i_0_++) {
	    if (class150s[i_0_].aBool1825) {
		bool = false;
		break;
	    }
	}
	if (!bool) {
	    ((Class493) class493).aClass507_6736 = this;
	    if (((Class507) this).aBool6994) {
		Iterator iterator = aList6993.iterator();
		while (iterator.hasNext()) {
		    Class493 class493_1_ = (Class493) iterator.next();
		    if (class590_sub1 == class493_1_.aClass590_Sub1_6734) {
			iterator.remove();
			Class163_Sub21.method8812(class493_1_, -1586710008);
		    }
		}
	    }
	    ListIterator listiterator = aList6993.listIterator();
	    while (listiterator.hasNext()) {
		Class493 class493_2_ = (Class493) listiterator.next();
		if (1195728177 * ((Class590_Sub1) class590_sub1).anInt10417
		    >= (((Class590_Sub1) class493_2_.aClass590_Sub1_6734)
			.anInt10417) * 1195728177) {
		    listiterator.previous();
		    listiterator.add(class493);
		    return;
		}
	    }
	    aList6993.add(class493);
	}
    }
    
    Class507(boolean bool) {
	((Class507) this).aBool6994 = bool;
    }
    
    public void method6278() {
	Iterator iterator = aList6993.iterator();
	while (iterator.hasNext()) {
	    Class493 class493 = (Class493) iterator.next();
	    iterator.remove();
	    Class163_Sub21.method8812(class493, -1738123004);
	}
    }
    
    public static void method6279(int i) {
	synchronized (Class563.aClass178_7578) {
	    Class563.aClass178_7578.method2667(921772889);
	}
	synchronized (Class563.aClass178_7582) {
	    Class563.aClass178_7582.method2667(-936004595);
	}
    }
    
    static final void method6280(Class612 class612, int i) {
	Class625 class625 = (((Class612) class612).aBool8038
			     ? ((Class612) class612).aClass625_8045
			     : ((Class612) class612).aClass625_8029);
	Class211 class211 = ((Class625) class625).aClass211_8099;
	Class203 class203 = ((Class625) class625).aClass203_8100;
	Class397.method4799(class211, class203, class612, 476433585);
    }
    
    static final void method6281(Class612 class612, int i) {
	int i_3_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = Class296.method4008((char) i_3_, (byte) 0) ? 1 : 0;
    }
    
    static final void method6282(Class612 class612, byte i) {
	int i_4_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_4_, (short) -1706);
	Class203 class203 = Class163_Sub20.aClass203Array9719[i_4_ >> 16];
	Class431.method5278(class211, class203, class612, -1207520742);
    }
    
    static byte[] method6283(Class411 class411, Class41 class41, int i,
			     int i_5_) {
	if (class41.method840(-1228690674) > 1)
	    return class411.method5042(class41.method843(i, -16777216),
				       class41.method841(i, (byte) 74),
				       -2135276642);
	return class411.method5042(class41.anInt554 * -2045352083, i,
				   -2001450931);
    }
    
    public static Class278 method6284(int i, byte i_6_) {
	if (i == 1358959163 * Class278.aClass278_3230.anInt3235)
	    return Class278.aClass278_3230;
	if (i == Class278.aClass278_3229.anInt3235 * 1358959163)
	    return Class278.aClass278_3229;
	if (i == 1358959163 * Class278.aClass278_3233.anInt3235)
	    return Class278.aClass278_3233;
	if (i == Class278.aClass278_3231.anInt3235 * 1358959163)
	    return Class278.aClass278_3231;
	if (i == Class278.aClass278_3228.anInt3235 * 1358959163)
	    return Class278.aClass278_3228;
	if (i == Class278.aClass278_3234.anInt3235 * 1358959163)
	    return Class278.aClass278_3234;
	if (i == 1358959163 * Class278.aClass278_3232.anInt3235)
	    return Class278.aClass278_3232;
	return null;
    }
    
    static final void method6285(Class612 class612, int i) {
	int i_7_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	int i_8_ = i_7_ >> 16;
	if (null == Class163_Sub20.aClass203Array9719[i_8_])
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= 0;
	else
	    ((Class612) class612).anIntArray8021
		[((((Class612) class612).anInt8022 += 201091009) * -40654783
		  - 1)]
		= 395657079 * (Class163_Sub20.aClass203Array9719[i_8_]
			       .aClass211Array2134[i_7_].anInt2243);
    }
}
