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

public class Class582
{
    int anInt7794;
    boolean aBool7795;
    Class479_Sub3_Sub1_Sub1[] aClass479_Sub3_Sub1_Sub1Array7796;
    int anInt7797;
    long aLong7798;
    long aLong7799;
    public boolean aBool7800 = false;
    Class147 aClass147_7801;
    List aList7802;
    List aList7803;
    boolean aBool7804;
    boolean aBool7805;
    int anInt7806;
    int anInt7807;
    static boolean[] aBoolArray7808 = new boolean[64];
    static boolean[] aBoolArray7809 = new boolean[16];
    
    void method7092() {
	aBool7800 = true;
	Iterator iterator = ((Class582) this).aList7802.iterator();
	while (iterator.hasNext()) {
	    Class487_Sub37 class487_sub37 = (Class487_Sub37) iterator.next();
	    if ((((Class487_Sub37) class487_sub37).aClass370_10333.anInt4090
		 * 203294751)
		== 1)
		class487_sub37.method5995((short) -13260);
	}
	for (int i = 0;
	     i < ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796.length;
	     i++) {
	    if (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		!= null) {
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		    .method10629();
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i] = null;
	    }
	}
	((Class582) this).anInt7797 = 0;
	((Class582) this).aList7803 = new LinkedList();
	((Class582) this).anInt7794 = 0;
	((Class582) this).aList7802 = new LinkedList();
	((Class582) this).anInt7807 = 0;
    }
    
    Class582(int i, boolean bool) {
	((Class582) this).aBool7795 = false;
	((Class582) this).anInt7797 = 0;
	((Class582) this).aList7803 = new LinkedList();
	((Class582) this).anInt7794 = 0;
	((Class582) this).aList7802 = new LinkedList();
	((Class582) this).anInt7807 = 0;
	((Class582) this).aBool7804 = false;
	((Class582) this).aBool7805 = false;
	((Class582) this).aClass147_7801 = new Class147();
	((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796
	    = new Class479_Sub3_Sub1_Sub1[8192];
	method7093(i, bool);
    }
    
    void method7093(int i, boolean bool) {
	Class574.aList7686.add(this);
	((Class582) this).aLong7799 = (long) i;
	((Class582) this).aLong7798 = (long) i;
	((Class582) this).aBool7804 = true;
	((Class582) this).aBool7805 = bool;
    }
    
    public void method7094() {
	((Class582) this).aBool7804 = true;
    }
    
    void method7095() {
	aBool7800 = true;
	Iterator iterator = ((Class582) this).aList7802.iterator();
	while (iterator.hasNext()) {
	    Class487_Sub37 class487_sub37 = (Class487_Sub37) iterator.next();
	    if ((((Class487_Sub37) class487_sub37).aClass370_10333.anInt4090
		 * 203294751)
		== 1)
		class487_sub37.method5995((short) -11584);
	}
	for (int i = 0;
	     i < ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796.length;
	     i++) {
	    if (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		!= null) {
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		    .method10629();
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i] = null;
	    }
	}
	((Class582) this).anInt7797 = 0;
	((Class582) this).aList7803 = new LinkedList();
	((Class582) this).anInt7794 = 0;
	((Class582) this).aList7802 = new LinkedList();
	((Class582) this).anInt7807 = 0;
    }
    
    public void method7096() {
	((Class582) this).aBool7795 = true;
    }
    
    void method7097() {
	((Class582) this).aBool7795 = false;
    }
    
    boolean method7098(Class151 class151, long l) {
	if (((Class582) this).aLong7799 != ((Class582) this).aLong7798)
	    method7096();
	else
	    method7097();
	if (l - ((Class582) this).aLong7799 > 750L) {
	    method7095();
	    return false;
	}
	int i = (int) (l - ((Class582) this).aLong7798);
	if (((Class582) this).aBool7804) {
	    Iterator iterator = ((Class582) this).aList7803.iterator();
	    while (iterator.hasNext()) {
		Class577 class577 = (Class577) iterator.next();
		for (int i_0_ = 0;
		     i_0_ < (((Class577) class577).aClass367_7715.anInt4034
			     * -1415996097);
		     i_0_++)
		    class577.method7038(class151, l, 1,
					!((Class582) this).aBool7795,
					(byte) 1);
	    }
	    ((Class582) this).aBool7804 = false;
	}
	Iterator iterator = ((Class582) this).aList7803.iterator();
	while (iterator.hasNext()) {
	    Class577 class577 = (Class577) iterator.next();
	    class577.method7038(class151, l, i, !((Class582) this).aBool7795,
				(byte) 1);
	}
	((Class582) this).aLong7798 = l;
	return true;
    }
    
    public void method7099(Class151 class151, long l, Class141[] class141s,
			   Class118[] class118s, boolean bool) {
	if (!aBool7800) {
	    method7100(class151, class141s, bool);
	    method7118(class118s, bool);
	    ((Class582) this).aLong7799 = l;
	}
    }
    
    void method7100(Class151 class151, Class141[] class141s, boolean bool) {
	for (int i = 0; i < 64; i++)
	    aBoolArray7808[i] = false;
	Iterator iterator = ((Class582) this).aList7803.iterator();
    while_2_:
	while (iterator.hasNext()) {
	    Class577 class577 = (Class577) iterator.next();
	    if (class141s != null) {
		for (int i = 0; i < class141s.length && i != 64; i++) {
		    if (((Class577) class577).aClass141_7714 == class141s[i]
			|| (((Class577) class577).aClass141_7714
			    == class141s[i].aClass141_1639)) {
			aBoolArray7808[i] = true;
			class577.method7043(-1382646688);
			((Class577) class577).aBool7718 = false;
			continue while_2_;
		    }
		}
	    }
	    if (!bool) {
		if (((Class577) class577).anInt7730 * 395319115 == 0) {
		    iterator.remove();
		    ((Class582) this).anInt7794--;
		} else
		    ((Class577) class577).aBool7718 = true;
	    }
	}
	if (class141s != null) {
	    for (int i = 0; (i < class141s.length && i != 64
			     && ((Class582) this).anInt7794 != 64); i++) {
		if (!aBoolArray7808[i]) {
		    Class577 class577
			= new Class577(class151, class141s[i], this,
				       ((Class582) this).aLong7799);
		    ((Class582) this).aList7803.add(class577);
		    ((Class582) this).anInt7794++;
		    aBoolArray7808[i] = true;
		}
	    }
	}
    }
    
    public void method7101(long l) {
	((Class582) this).aLong7799 = l;
    }
    
    public void method7102(int i, int i_1_, int i_2_, int i_3_, int i_4_) {
	((Class582) this).anInt7806 = i;
    }
    
    void method7103(Class502 class502, Class151 class151) {
	((Class582) this).aClass147_7801.aClass642_1729.method7640(373444752);
	Iterator iterator = ((Class582) this).aList7803.iterator();
	while (iterator.hasNext()) {
	    Class577 class577 = (Class577) iterator.next();
	    class577.method7040(class502, class151,
				((Class582) this).aLong7798);
	}
    }
    
    public static Class582 method7104(int i, boolean bool) {
	if (Class574.anInt7687 * 75816989
	    != Class574.anInt7693 * -2037787157) {
	    Class582 class582 = (Class574.aClass582Array7690
				 [Class574.anInt7693 * -2037787157]);
	    Class574.anInt7693
		= ((Class574.anInt7693 * -2037787157 + 1
		    & Class142.anIntArray1663[Class574.anInt7696 * 390719905])
		   * -1243829565);
	    class582.method7093(i, bool);
	    return class582;
	}
	return new Class582(i, bool);
    }
    
    public void method7105(long l) {
	((Class582) this).aLong7799 = l;
    }
    
    public Class147 method7106() {
	return ((Class582) this).aClass147_7801;
    }
    
    public void method7107() {
	((Class582) this).aBool7804 = true;
    }
    
    public void method7108() {
	((Class582) this).aBool7804 = true;
    }
    
    public void method7109(int i, int i_5_, int i_6_, int i_7_, int i_8_) {
	((Class582) this).anInt7806 = i;
    }
    
    public void method7110() {
	((Class582) this).aBool7804 = true;
    }
    
    void method7111() {
	aBool7800 = true;
	Iterator iterator = ((Class582) this).aList7802.iterator();
	while (iterator.hasNext()) {
	    Class487_Sub37 class487_sub37 = (Class487_Sub37) iterator.next();
	    if ((((Class487_Sub37) class487_sub37).aClass370_10333.anInt4090
		 * 203294751)
		== 1)
		class487_sub37.method5995((short) -25825);
	}
	for (int i = 0;
	     i < ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796.length;
	     i++) {
	    if (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		!= null) {
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		    .method10629();
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i] = null;
	    }
	}
	((Class582) this).anInt7797 = 0;
	((Class582) this).aList7803 = new LinkedList();
	((Class582) this).anInt7794 = 0;
	((Class582) this).aList7802 = new LinkedList();
	((Class582) this).anInt7807 = 0;
    }
    
    public void method7112() {
	((Class582) this).aBool7795 = true;
    }
    
    public void method7113() {
	((Class582) this).aBool7795 = true;
    }
    
    public Class147 method7114() {
	((Class582) this).aClass147_7801.aClass642_1729.method7640(670231086);
	for (int i = 0;
	     i < ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796.length;
	     i++) {
	    if (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i] != null
		&& (((Class479_Sub3_Sub1_Sub1)
		     ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i])
		    .aClass577_11734) != null)
		((Class582) this).aClass147_7801.aClass642_1729.method7637
		    (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i],
		     (byte) -4);
	}
	return ((Class582) this).aClass147_7801;
    }
    
    void method7115() {
	((Class582) this).aBool7795 = false;
    }
    
    void method7116() {
	((Class582) this).aBool7795 = false;
    }
    
    public void method7117() {
	((Class582) this).aBool7804 = true;
    }
    
    void method7118(Class118[] class118s, boolean bool) {
	for (int i = 0; i < 16; i++)
	    aBoolArray7809[i] = false;
	Iterator iterator = ((Class582) this).aList7802.iterator();
    while_3_:
	while (iterator.hasNext()) {
	    Class487_Sub37 class487_sub37 = (Class487_Sub37) iterator.next();
	    if (class118s != null) {
		for (int i = 0; i < class118s.length; i++) {
		    if ((((Class487_Sub37) class487_sub37).aClass118_10335
			 == class118s[i])
			|| (((Class487_Sub37) class487_sub37).aClass118_10335
			    == class118s[i].aClass118_1464)) {
			aBoolArray7809[i] = true;
			class487_sub37.method9430(-784755134);
			continue while_3_;
		    }
		}
	    }
	    if (!bool) {
		class487_sub37.method5995((short) -8368);
		((Class582) this).anInt7807--;
		if (class487_sub37.method5996((byte) 4)) {
		    class487_sub37.method5995((short) -23942);
		    Class574.anInt7695 -= 931462883;
		}
	    }
	}
	if (class118s != null) {
	    for (int i = 0; (i < class118s.length && i != 16
			     && ((Class582) this).anInt7807 != 16); i++) {
		if (!aBoolArray7809[i]) {
		    Class487_Sub37 class487_sub37 = null;
		    if (((class118s[i].method1562
			  (Class574.anInterface43_7681, 1904112294).anInt4090)
			 * 203294751) == 1
			&& Class574.anInt7695 * -1174260021 < 32) {
			class487_sub37
			    = new Class487_Sub37(class118s[i], this);
			Class574.aClass666_7689.method7922
			    (class487_sub37,
			     (long) (class118s[i].anInt1466 * 1849223467));
			Class574.anInt7695 += 931462883;
		    }
		    if (class487_sub37 == null)
			class487_sub37
			    = new Class487_Sub37(class118s[i], this);
		    ((Class582) this).aList7802.add(class487_sub37);
		    ((Class582) this).anInt7807++;
		    aBoolArray7809[i] = true;
		}
	    }
	}
    }
    
    public void method7119() {
	((Class582) this).aBool7795 = true;
    }
    
    void method7120() {
	aBool7800 = true;
	Iterator iterator = ((Class582) this).aList7802.iterator();
	while (iterator.hasNext()) {
	    Class487_Sub37 class487_sub37 = (Class487_Sub37) iterator.next();
	    if ((((Class487_Sub37) class487_sub37).aClass370_10333.anInt4090
		 * 203294751)
		== 1)
		class487_sub37.method5995((short) -28264);
	}
	for (int i = 0;
	     i < ((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796.length;
	     i++) {
	    if (((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		!= null) {
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i]
		    .method10629();
		((Class582) this).aClass479_Sub3_Sub1_Sub1Array7796[i] = null;
	    }
	}
	((Class582) this).anInt7797 = 0;
	((Class582) this).aList7803 = new LinkedList();
	((Class582) this).anInt7794 = 0;
	((Class582) this).aList7802 = new LinkedList();
	((Class582) this).anInt7807 = 0;
    }
}
