/* Class310_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;

public class Class310_Sub2 extends Class310 {
	Runnable aRunnable9972;
	HashMap aHashMap9973;
	Class303 aClass303_9974;
	Thread aThread9975;
	Runnable aRunnable9976;
	Thread aThread9977;
	long aLong9978;
	static final float aFloat9979 = 2.0F;
	volatile boolean aBool9980 = false;
	public static Class219 aClass219_9981;

	Object method6162(Class309 class309) {
		return null;
	}

	public Class310_Sub2(Class476 class476) {
		((Class310_Sub2) this).aLong9978 = Class121.method2891(-403034465) * -2181249594395920153L;
		((Class310_Sub2) this).aRunnable9972 = new Class178(this);
		((Class310_Sub2) this).aRunnable9976 = new Class175(this);
		((Class310_Sub2) this).aClass303_9974 = new Class303(this);
		((Class310_Sub2) this).aHashMap9973 = new HashMap();
		Iterator iterator = class476.aHashMap6490.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			((Class310_Sub2) this).aHashMap9973.put(class215, (new Class205[((Integer) class476.aHashMap6490.get(class215)).intValue()]));
		}
		iterator = ((Class310_Sub2) this).aHashMap9973.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			for (int i = 0; i < class205s.length; i++) {
				Class115 class115 = new Class115(2.0F);
				class115.method215(0, Class389.aClass389_5692, Class322.aClass322_5078, 2);
				class205s[i] = new Class205(class215, 32768, 3, class115, this);
			}
		}
		((Class310_Sub2) this).aThread9975 = new Thread(((Class310_Sub2) this).aRunnable9976);
		((Class310_Sub2) this).aThread9977 = new Thread(((Class310_Sub2) this).aRunnable9972);
		((Class310_Sub2) this).aThread9975.setPriority(1);
		((Class310_Sub2) this).aThread9977.setPriority(1);
		((Class310_Sub2) this).aThread9975.start();
		((Class310_Sub2) this).aThread9977.start();
	}

	public void method6153(Object object, int i) {
		/* empty */
	}

	public int method6155(Object object, byte i) {
		long l = Class121.method2891(-753884491);
		int i_0_ = (int) (180000.0F / ((float) (l - (6837465078227049175L * ((Class310_Sub2) this).aLong9978)) / 1000.0F));
		((Class310_Sub2) this).aLong9978 = -2181249594395920153L * l;
		return i_0_;
	}

	public Object method6152(int i, int i_1_, Class389 class389, Class322 class322, int i_2_, float f, byte i_3_) {
		return new Object();
	}

	public int method6161(Object object) {
		long l = Class121.method2891(-291683232);
		int i = (int) (180000.0F / ((float) (l - (6837465078227049175L * ((Class310_Sub2) this).aLong9978)) / 1000.0F));
		((Class310_Sub2) this).aLong9978 = -2181249594395920153L * l;
		return i;
	}

	public Class205 method6156(Class215 class215, byte i) {
		synchronized (((Class310_Sub2) this).aHashMap9973) {
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (null == class205s) {
				Class205 class205 = null;
				return class205;
			}
			for (int i_4_ = 0; i_4_ < class205s.length; i_4_++) {
				Class205 class205 = class205s[i_4_];
				Class211 class211 = class205.method4168(-113673350);
				if (Class211.aClass211_2549 == class211) {
					class205.method4165(1249899523);
					Class205 class205_5_ = class205;
					return class205_5_;
				}
			}
		}
		return null;
	}

	Object method6157(Class309 class309, int i) {
		return null;
	}

	public void method6151(int i) {
		if (((Class310_Sub2) this).aClass303_9974 != null)
			((Class310_Sub2) this).aClass303_9974.method6061(-406993647);
		Iterator iterator = ((Class310_Sub2) this).aHashMap9973.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (!class215.aBool2580) {
				boolean bool = false;
				for (int i_6_ = 0; i_6_ < class205s.length; i_6_++) {
					class205s[i_6_].method4178((byte) 4);
					bool |= class205s[i_6_].method4177(1857897095);
				}
				if (bool)
					Arrays.sort(class205s, new Class180(this));
			}
			int i_7_ = 3;
			boolean bool = false;
			int i_8_ = class205s.length - 1;
			while (false == bool) {
				float f = class205s[i_8_].method4162(1077940367);
				Class211 class211 = class205s[i_8_].method4168(1816391980);
				if (f < 0.0F) {
					if (class211 == Class211.aClass211_2546 || Class211.aClass211_2544 == class211 || Class211.aClass211_2545 == class211)
						class205s[i_8_].method4182((byte) -80);
				} else
					bool = true;
				if (--i_8_ < 0)
					bool = true;
			}
			if (i_8_ >= class205s.length - i_7_) {
				for (/**/; i_8_ >= class205s.length - i_7_; i_8_--) {
					Class211 class211 = class205s[i_8_].method4168(1750200212);
					if (Class211.aClass211_2546 == class211)
						class205s[i_8_].method4182((byte) -2);
				}
			}
		}
	}

	public Class303 method6158(int i) {
		return ((Class310_Sub2) this).aClass303_9974;
	}

	Object method6159(Class309 class309) {
		return null;
	}

	HashMap method16190() {
		return ((Class310_Sub2) this).aHashMap9973;
	}

	HashMap method16191(int i) {
		return ((Class310_Sub2) this).aHashMap9973;
	}

	public void method6182() {
		if (((Class310_Sub2) this).aClass303_9974 != null)
			((Class310_Sub2) this).aClass303_9974.method6061(-2058428445);
		Iterator iterator = ((Class310_Sub2) this).aHashMap9973.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (!class215.aBool2580) {
				boolean bool = false;
				for (int i = 0; i < class205s.length; i++) {
					class205s[i].method4178((byte) -102);
					bool |= class205s[i].method4177(2047002275);
				}
				if (bool)
					Arrays.sort(class205s, new Class180(this));
			}
			int i = 3;
			boolean bool = false;
			int i_9_ = class205s.length - 1;
			while (false == bool) {
				float f = class205s[i_9_].method4162(1311967633);
				Class211 class211 = class205s[i_9_].method4168(174468658);
				if (f < 0.0F) {
					if (class211 == Class211.aClass211_2546 || Class211.aClass211_2544 == class211 || Class211.aClass211_2545 == class211)
						class205s[i_9_].method4182((byte) -116);
				} else
					bool = true;
				if (--i_9_ < 0)
					bool = true;
			}
			if (i_9_ >= class205s.length - i) {
				for (/**/; i_9_ >= class205s.length - i; i_9_--) {
					Class211 class211 = class205s[i_9_].method4168(-106352592);
					if (Class211.aClass211_2546 == class211)
						class205s[i_9_].method4182((byte) -109);
				}
			}
		}
	}

	public void method6166() {
		if (((Class310_Sub2) this).aClass303_9974 != null)
			((Class310_Sub2) this).aClass303_9974.method6061(-1687708130);
		Iterator iterator = ((Class310_Sub2) this).aHashMap9973.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (!class215.aBool2580) {
				boolean bool = false;
				for (int i = 0; i < class205s.length; i++) {
					class205s[i].method4178((byte) 25);
					bool |= class205s[i].method4177(1856932568);
				}
				if (bool)
					Arrays.sort(class205s, new Class180(this));
			}
			int i = 3;
			boolean bool = false;
			int i_10_ = class205s.length - 1;
			while (false == bool) {
				float f = class205s[i_10_].method4162(809011971);
				Class211 class211 = class205s[i_10_].method4168(404285377);
				if (f < 0.0F) {
					if (class211 == Class211.aClass211_2546 || Class211.aClass211_2544 == class211 || Class211.aClass211_2545 == class211)
						class205s[i_10_].method4182((byte) -33);
				} else
					bool = true;
				if (--i_10_ < 0)
					bool = true;
			}
			if (i_10_ >= class205s.length - i) {
				for (/**/; i_10_ >= class205s.length - i; i_10_--) {
					Class211 class211 = class205s[i_10_].method4168(1889472613);
					if (Class211.aClass211_2546 == class211)
						class205s[i_10_].method4182((byte) -123);
				}
			}
		}
	}

	public int method6163(Object object) {
		long l = Class121.method2891(-1715115755);
		int i = (int) (180000.0F / ((float) (l - (6837465078227049175L * ((Class310_Sub2) this).aLong9978)) / 1000.0F));
		((Class310_Sub2) this).aLong9978 = -2181249594395920153L * l;
		return i;
	}

	public void method6171(int i) {
		HashMap hashmap = method16191(-1381229061);
		synchronized (hashmap) {
			Iterator iterator = hashmap.keySet().iterator();
			while (iterator.hasNext()) {
				Class215 class215 = (Class215) iterator.next();
				Class205[] class205s = (Class205[]) hashmap.get(class215);
				for (int i_11_ = 0; i_11_ < class205s.length; i_11_++) {
					if (class205s[i_11_].method4168(692407644) != Class211.aClass211_2549) {
						class205s[i_11_].method4182((byte) -47);
						class205s[i_11_].method4202((byte) -95);
					}
				}
			}
		}
		boolean bool = false;
		while (!bool) {
			bool = true;
			synchronized (hashmap) {
				Iterator iterator = hashmap.keySet().iterator();
				while (iterator.hasNext()) {
					Class215 class215 = (Class215) iterator.next();
					Class205[] class205s = (Class205[]) hashmap.get(class215);
					for (int i_12_ = 0; i_12_ < class205s.length; i_12_++) {
						if (class205s[i_12_].method4168(1374494510) != Class211.aClass211_2549) {
							class205s[i_12_].method4178((byte) -44);
							bool = false;
						}
					}
				}
			}
			Class489.method11114(10L);
		}
		((Class310_Sub2) this).aBool9980 = true;
		try {
			((Class310_Sub2) this).aThread9975.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
		try {
			((Class310_Sub2) this).aThread9977.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
	}

	public Object method6164(int i, int i_13_, Class389 class389, Class322 class322, int i_14_, float f) {
		return new Object();
	}

	public Object method6165(int i, int i_15_, Class389 class389, Class322 class322, int i_16_, float f) {
		return new Object();
	}

	public Object method6170(int i, int i_17_, Class389 class389, Class322 class322, int i_18_, float f) {
		return new Object();
	}

	public Object method6167(int i, int i_19_, Class389 class389, Class322 class322, int i_20_, float f) {
		return new Object();
	}

	public void method6168(Object object) {
		/* empty */
	}

	public void method6169(Object object) {
		/* empty */
	}

	public void method6180(Object object) {
		/* empty */
	}

	public void method6150(Object object) {
		/* empty */
	}

	public void method6181(Object object) {
		/* empty */
	}

	public void method6173(Object object) {
		/* empty */
	}

	public Class303 method6183() {
		return ((Class310_Sub2) this).aClass303_9974;
	}

	public void method6174(Object object, byte[] is, int i, int i_21_) {
		/* empty */
	}

	public Class205 method6177(Class215 class215) {
		synchronized (((Class310_Sub2) this).aHashMap9973) {
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (null == class205s) {
				Class205 class205 = null;
				return class205;
			}
			for (int i = 0; i < class205s.length; i++) {
				Class205 class205 = class205s[i];
				Class211 class211 = class205.method4168(406203194);
				if (Class211.aClass211_2549 == class211) {
					class205.method4165(487940681);
					Class205 class205_22_ = class205;
					return class205_22_;
				}
			}
		}
		return null;
	}

	public void method6154(Object object, byte[] is, int i, int i_23_, int i_24_) {
		/* empty */
	}

	public Class205 method6178(Class215 class215) {
		synchronized (((Class310_Sub2) this).aHashMap9973) {
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (null == class205s) {
				Class205 class205 = null;
				return class205;
			}
			for (int i = 0; i < class205s.length; i++) {
				Class205 class205 = class205s[i];
				Class211 class211 = class205.method4168(573620893);
				if (Class211.aClass211_2549 == class211) {
					class205.method4165(949715329);
					Class205 class205_25_ = class205;
					return class205_25_;
				}
			}
		}
		return null;
	}

	public void method6160() {
		if (((Class310_Sub2) this).aClass303_9974 != null)
			((Class310_Sub2) this).aClass303_9974.method6061(-721564029);
		Iterator iterator = ((Class310_Sub2) this).aHashMap9973.keySet().iterator();
		while (iterator.hasNext()) {
			Class215 class215 = (Class215) iterator.next();
			Class205[] class205s = ((Class205[]) ((Class310_Sub2) this).aHashMap9973.get(class215));
			if (!class215.aBool2580) {
				boolean bool = false;
				for (int i = 0; i < class205s.length; i++) {
					class205s[i].method4178((byte) 9);
					bool |= class205s[i].method4177(1619221369);
				}
				if (bool)
					Arrays.sort(class205s, new Class180(this));
			}
			int i = 3;
			boolean bool = false;
			int i_26_ = class205s.length - 1;
			while (false == bool) {
				float f = class205s[i_26_].method4162(1893562361);
				Class211 class211 = class205s[i_26_].method4168(1949644251);
				if (f < 0.0F) {
					if (class211 == Class211.aClass211_2546 || Class211.aClass211_2544 == class211 || Class211.aClass211_2545 == class211)
						class205s[i_26_].method4182((byte) -89);
				} else
					bool = true;
				if (--i_26_ < 0)
					bool = true;
			}
			if (i_26_ >= class205s.length - i) {
				for (/**/; i_26_ >= class205s.length - i; i_26_--) {
					Class211 class211 = class205s[i_26_].method4168(238063903);
					if (Class211.aClass211_2546 == class211)
						class205s[i_26_].method4182((byte) -72);
				}
			}
		}
	}

	public void method6176(Object object, byte[] is, int i, int i_27_) {
		/* empty */
	}

	Object method6172(Class309 class309) {
		return null;
	}

	public Class303 method6179() {
		return ((Class310_Sub2) this).aClass303_9974;
	}

	public void method6175(Object object, byte[] is, int i, int i_28_) {
		/* empty */
	}

	public void method6184() {
		HashMap hashmap = method16191(-118520736);
		synchronized (hashmap) {
			Iterator iterator = hashmap.keySet().iterator();
			while (iterator.hasNext()) {
				Class215 class215 = (Class215) iterator.next();
				Class205[] class205s = (Class205[]) hashmap.get(class215);
				for (int i = 0; i < class205s.length; i++) {
					if (class205s[i].method4168(1845030918) != Class211.aClass211_2549) {
						class205s[i].method4182((byte) -57);
						class205s[i].method4202((byte) -127);
					}
				}
			}
		}
		boolean bool = false;
		while (!bool) {
			bool = true;
			synchronized (hashmap) {
				Iterator iterator = hashmap.keySet().iterator();
				while (iterator.hasNext()) {
					Class215 class215 = (Class215) iterator.next();
					Class205[] class205s = (Class205[]) hashmap.get(class215);
					for (int i = 0; i < class205s.length; i++) {
						if (class205s[i].method4168(1210315632) != Class211.aClass211_2549) {
							class205s[i].method4178((byte) -75);
							bool = false;
						}
					}
				}
			}
			Class489.method11114(10L);
		}
		((Class310_Sub2) this).aBool9980 = true;
		try {
			((Class310_Sub2) this).aThread9975.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
		try {
			((Class310_Sub2) this).aThread9977.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
	}

	public void method6185() {
		HashMap hashmap = method16191(-957986395);
		synchronized (hashmap) {
			Iterator iterator = hashmap.keySet().iterator();
			while (iterator.hasNext()) {
				Class215 class215 = (Class215) iterator.next();
				Class205[] class205s = (Class205[]) hashmap.get(class215);
				for (int i = 0; i < class205s.length; i++) {
					if (class205s[i].method4168(1621334930) != Class211.aClass211_2549) {
						class205s[i].method4182((byte) -13);
						class205s[i].method4202((byte) -3);
					}
				}
			}
		}
		boolean bool = false;
		while (!bool) {
			bool = true;
			synchronized (hashmap) {
				Iterator iterator = hashmap.keySet().iterator();
				while (iterator.hasNext()) {
					Class215 class215 = (Class215) iterator.next();
					Class205[] class205s = (Class205[]) hashmap.get(class215);
					for (int i = 0; i < class205s.length; i++) {
						if (class205s[i].method4168(1798486242) != Class211.aClass211_2549) {
							class205s[i].method4178((byte) -1);
							bool = false;
						}
					}
				}
			}
			Class489.method11114(10L);
		}
		((Class310_Sub2) this).aBool9980 = true;
		try {
			((Class310_Sub2) this).aThread9975.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
		try {
			((Class310_Sub2) this).aThread9977.join();
		} catch (InterruptedException interruptedexception) {
			interruptedexception.printStackTrace();
		}
	}
}
