/* Class574 - 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 Class574
{
    int anInt7435;
    boolean aBool7436;
    public List aList7437 = new LinkedList();
    int anInt7438;
    public static int anInt7439;
    static int anInt7440;
    
    void method12658(Class582 class582) {
	Class478_Sub1 class478_sub1 = class582.aClass478_Sub1_7591;
	boolean bool = true;
	Class97[] class97s = class582.aClass478_Sub1_7591.aClass97Array8552;
	for (int i = 0; i < class97s.length; i++) {
	    if (class97s[i].aBool1086) {
		bool = false;
		break;
	    }
	}
	if (!bool) {
	    ((Class582) class582).aClass574_7590 = this;
	    if (((Class574) this).aBool7436) {
		Iterator iterator = aList7437.iterator();
		while (iterator.hasNext()) {
		    Class582 class582_0_ = (Class582) iterator.next();
		    if (class478_sub1 == class582_0_.aClass478_Sub1_7591) {
			iterator.remove();
			Class297.method5948(class582_0_, (byte) 1);
		    }
		}
	    }
	    ListIterator listiterator = aList7437.listIterator();
	    while (listiterator.hasNext()) {
		Class582 class582_1_ = (Class582) listiterator.next();
		if (-1432294093 * ((Class478_Sub1) class478_sub1).anInt8556
		    >= (-1432294093
			* (((Class478_Sub1) class582_1_.aClass478_Sub1_7591)
			   .anInt8556))) {
		    listiterator.previous();
		    listiterator.add(class582);
		    return;
		}
	    }
	    aList7437.add(class582);
	}
    }
    
    Class574(boolean bool) {
	((Class574) this).aBool7436 = false;
	((Class574) this).anInt7438 = 0;
	((Class574) this).anInt7435 = 0;
	((Class574) this).aBool7436 = bool;
    }
    
    void method12659(Class582 class582, int i) {
	Class478_Sub1 class478_sub1 = class582.aClass478_Sub1_7591;
	boolean bool = true;
	Class97[] class97s = class582.aClass478_Sub1_7591.aClass97Array8552;
	for (int i_2_ = 0; i_2_ < class97s.length; i_2_++) {
	    if (class97s[i_2_].aBool1086) {
		bool = false;
		break;
	    }
	}
	if (!bool) {
	    ((Class582) class582).aClass574_7590 = this;
	    if (((Class574) this).aBool7436) {
		Iterator iterator = aList7437.iterator();
		while (iterator.hasNext()) {
		    Class582 class582_3_ = (Class582) iterator.next();
		    if (class478_sub1 == class582_3_.aClass478_Sub1_7591) {
			iterator.remove();
			Class297.method5948(class582_3_, (byte) 1);
		    }
		}
	    }
	    ListIterator listiterator = aList7437.listIterator();
	    while (listiterator.hasNext()) {
		Class582 class582_4_ = (Class582) listiterator.next();
		if (-1432294093 * ((Class478_Sub1) class478_sub1).anInt8556
		    >= (-1432294093
			* (((Class478_Sub1) class582_4_.aClass478_Sub1_7591)
			   .anInt8556))) {
		    listiterator.previous();
		    listiterator.add(class582);
		    return;
		}
	    }
	    aList7437.add(class582);
	}
    }
    
    public void method12660() {
	Iterator iterator = aList7437.iterator();
	while (iterator.hasNext()) {
	    Class582 class582 = (Class582) iterator.next();
	    iterator.remove();
	    Class297.method5948(class582, (byte) 1);
	}
    }
    
    public void method12661() {
	Iterator iterator = aList7437.iterator();
	while (iterator.hasNext()) {
	    Class582 class582 = (Class582) iterator.next();
	    iterator.remove();
	    Class297.method5948(class582, (byte) 1);
	}
    }
    
    public void method12662() {
	Iterator iterator = aList7437.iterator();
	while (iterator.hasNext()) {
	    Class582 class582 = (Class582) iterator.next();
	    iterator.remove();
	    Class297.method5948(class582, (byte) 1);
	}
    }
    
    void method12663(Class582 class582) {
	Class478_Sub1 class478_sub1 = class582.aClass478_Sub1_7591;
	boolean bool = true;
	Class97[] class97s = class582.aClass478_Sub1_7591.aClass97Array8552;
	for (int i = 0; i < class97s.length; i++) {
	    if (class97s[i].aBool1086) {
		bool = false;
		break;
	    }
	}
	if (!bool) {
	    ((Class582) class582).aClass574_7590 = this;
	    if (((Class574) this).aBool7436) {
		Iterator iterator = aList7437.iterator();
		while (iterator.hasNext()) {
		    Class582 class582_5_ = (Class582) iterator.next();
		    if (class478_sub1 == class582_5_.aClass478_Sub1_7591) {
			iterator.remove();
			Class297.method5948(class582_5_, (byte) 1);
		    }
		}
	    }
	    ListIterator listiterator = aList7437.listIterator();
	    while (listiterator.hasNext()) {
		Class582 class582_6_ = (Class582) listiterator.next();
		if (-1432294093 * ((Class478_Sub1) class478_sub1).anInt8556
		    >= (-1432294093
			* (((Class478_Sub1) class582_6_.aClass478_Sub1_7591)
			   .anInt8556))) {
		    listiterator.previous();
		    listiterator.add(class582);
		    return;
		}
	    }
	    aList7437.add(class582);
	}
    }
    
    public void method12664(int i) {
	Iterator iterator = aList7437.iterator();
	while (iterator.hasNext()) {
	    Class582 class582 = (Class582) iterator.next();
	    iterator.remove();
	    Class297.method5948(class582, (byte) 1);
	}
    }
    
    void method12665(Class582 class582) {
	Class478_Sub1 class478_sub1 = class582.aClass478_Sub1_7591;
	boolean bool = true;
	Class97[] class97s = class582.aClass478_Sub1_7591.aClass97Array8552;
	for (int i = 0; i < class97s.length; i++) {
	    if (class97s[i].aBool1086) {
		bool = false;
		break;
	    }
	}
	if (!bool) {
	    ((Class582) class582).aClass574_7590 = this;
	    if (((Class574) this).aBool7436) {
		Iterator iterator = aList7437.iterator();
		while (iterator.hasNext()) {
		    Class582 class582_7_ = (Class582) iterator.next();
		    if (class478_sub1 == class582_7_.aClass478_Sub1_7591) {
			iterator.remove();
			Class297.method5948(class582_7_, (byte) 1);
		    }
		}
	    }
	    ListIterator listiterator = aList7437.listIterator();
	    while (listiterator.hasNext()) {
		Class582 class582_8_ = (Class582) listiterator.next();
		if (-1432294093 * ((Class478_Sub1) class478_sub1).anInt8556
		    >= (-1432294093
			* (((Class478_Sub1) class582_8_.aClass478_Sub1_7591)
			   .anInt8556))) {
		    listiterator.previous();
		    listiterator.add(class582);
		    return;
		}
	    }
	    aList7437.add(class582);
	}
    }
    
    static final void method12666(Class479 class479, int i) {
	Class22.anInt234 = (((Class479) class479).anIntArray6435
			    [((((Class479) class479).anInt6442 -= -1158629699)
			      * -117934955)]) * 1476823395;
    }
    
    static final void method12667(Class479 class479, byte i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = (int) (Class78.aLong936 * 1384331996960378281L / 60000L);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = (int) ((Class78.aLong936 * 1384331996960378281L
		      - Class46.method1238(706382216)
		      - Class277.aLong4145 * 3108362272097807981L)
		     / 60000L);
	int[] is = ((Class479) class479).anIntArray6435;
	int i_9_
	    = ((((Class479) class479).anInt6442 += -1158629699) * -117934955
	       - 1);
	int i_10_;
	if (Class50.aBool682) {
	    if (i == 1)
		return;
	    i_10_ = 1;
	} else
	    i_10_ = 0;
	is[i_9_] = i_10_;
    }
    
    static void method12668(int i, String string, int i_11_) {
	Class243_Sub11_Sub11 class243_sub11_sub11
	    = Class482.method11048(3, (long) i);
	class243_sub11_sub11.method17274((byte) -40);
	((Class243_Sub11_Sub11) class243_sub11_sub11).aString10775 = string;
    }
    
    static final void method12669(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = 1;
    }
    
    static boolean method12670(int i) {
	if (Class282.method5707(2033567995 * client.anInt8440, (short) 2982))
	    return false;
	return true;
    }
    
    static final void method12671(Class479 class479, byte i) {
	int i_12_ = (((Class479) class479).anIntArray6435
		     [((((Class479) class479).anInt6442 -= -1158629699)
		       * -117934955)]);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = Class326.aClass12_4953.method562(i_12_, 274113525);
    }
}
