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

public class Class418 {
	Object[] anObjectArray6136;
	Map aMap6137;
	String aString6138 = "null";
	int anInt6139 = 0;
	public char aChar6140;
	int anInt6141;
	public char aChar6142;
	HashMap aHashMap6143;
	static int anInt6144;

	void method7559(int i) {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i_0_ = 0; i_0_ < ((Class418) this).anObjectArray6136.length; i_0_++) {
				if (null != ((Class418) this).anObjectArray6136[i_0_]) {
					Object object = ((Class418) this).anObjectArray6136[i_0_];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i_0_));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i_1_ = 0;
			Iterator iterator_2_ = list.iterator();
			while (iterator_2_.hasNext()) {
				Integer integer = (Integer) iterator_2_.next();
				is[i_1_++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	public boolean method7560(Object object) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return false;
		if (((Class418) this).aHashMap6143 == null)
			method7559(2049394491);
		return ((Class418) this).aHashMap6143.containsKey(object);
	}

	void method7561(Class587_Sub4 class587_sub4, int i, byte i_3_) {
		if (i == 1)
			aChar6140 = Class84.method2260(class587_sub4.method14196(1494411077), 2020804685);
		else if (2 == i)
			aChar6142 = Class84.method2260(class587_sub4.method14196(-843212724), 2053473631);
		else if (3 == i)
			((Class418) this).aString6138 = class587_sub4.method14209(311529841);
		else if (i == 4)
			((Class418) this).anInt6141 = class587_sub4.method14408(1097722201) * 1073743515;
		else if (i == 5 || 6 == i) {
			((Class418) this).anInt6139 = class587_sub4.method14191((byte) -87) * 1874763985;
			((Class418) this).aMap6137 = new HashMap(-1654802383 * ((Class418) this).anInt6139);
			for (int i_4_ = 0; i_4_ < -1654802383 * ((Class418) this).anInt6139; i_4_++) {
				int i_5_ = class587_sub4.method14408(1097722201);
				java.io.Serializable serializable;
				if (i == 5)
					serializable = class587_sub4.method14209(886109828);
				else
					serializable = new Integer(class587_sub4.method14408(1097722201));
				((Class418) this).aMap6137.put(new Integer(i_5_), serializable);
			}
		} else if (7 == i || i == 8) {
			int i_6_ = class587_sub4.method14191((byte) -51);
			((Class418) this).anInt6139 = class587_sub4.method14191((byte) -110) * 1874763985;
			((Class418) this).anObjectArray6136 = new Object[i_6_];
			for (int i_7_ = 0; i_7_ < ((Class418) this).anInt6139 * -1654802383; i_7_++) {
				int i_8_ = class587_sub4.method14191((byte) -22);
				if (7 == i)
					((Class418) this).anObjectArray6136[i_8_] = class587_sub4.method14209(-1645095162);
				else
					((Class418) this).anObjectArray6136[i_8_] = new Integer(class587_sub4.method14408(1097722201));
			}
		}
	}

	void method7562() {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i = 0; i < ((Class418) this).anObjectArray6136.length; i++) {
				if (null != ((Class418) this).anObjectArray6136[i]) {
					Object object = ((Class418) this).anObjectArray6136[i];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i = 0;
			Iterator iterator_9_ = list.iterator();
			while (iterator_9_.hasNext()) {
				Integer integer = (Integer) iterator_9_.next();
				is[i++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	public String method7563(int i, int i_10_) {
		Object object = method7568(i, (byte) 58);
		if (object == null)
			return ((Class418) this).aString6138;
		return (String) object;
	}

	void method7564(Class587_Sub4 class587_sub4, int i) {
		for (;;) {
			int i_11_ = class587_sub4.method14349(-1130636365);
			if (0 == i_11_)
				break;
			method7561(class587_sub4, i_11_, (byte) 0);
		}
	}

	public boolean method7565(Object object, int i) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return false;
		if (((Class418) this).aHashMap6143 == null)
			method7559(2141433886);
		return ((Class418) this).aHashMap6143.containsKey(object);
	}

	public int[] method7566(Object object, byte i) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return null;
		if (null == ((Class418) this).aHashMap6143)
			method7559(2031921249);
		return (int[]) ((Class418) this).aHashMap6143.get(object);
	}

	public int method7567(byte i) {
		return -1654802383 * ((Class418) this).anInt6139;
	}

	Object method7568(int i, byte i_12_) {
		if (null != ((Class418) this).anObjectArray6136) {
			if (i < 0 || i >= ((Class418) this).anObjectArray6136.length)
				return null;
			return ((Class418) this).anObjectArray6136[i];
		}
		if (null != ((Class418) this).aMap6137)
			return ((Class418) this).aMap6137.get(new Integer(i));
		return null;
	}

	public int[] method7569(Object object) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return null;
		if (null == ((Class418) this).aHashMap6143)
			method7559(2095025553);
		return (int[]) ((Class418) this).aHashMap6143.get(object);
	}

	void method7570(Class587_Sub4 class587_sub4, int i) {
		if (i == 1)
			aChar6140 = Class84.method2260(class587_sub4.method14196(-1442257289), 1524380148);
		else if (2 == i)
			aChar6142 = Class84.method2260(class587_sub4.method14196(-463270700), 1186728844);
		else if (3 == i)
			((Class418) this).aString6138 = class587_sub4.method14209(463218038);
		else if (i == 4)
			((Class418) this).anInt6141 = class587_sub4.method14408(1097722201) * 1073743515;
		else if (i == 5 || 6 == i) {
			((Class418) this).anInt6139 = class587_sub4.method14191((byte) -5) * 1874763985;
			((Class418) this).aMap6137 = new HashMap(-1654802383 * ((Class418) this).anInt6139);
			for (int i_13_ = 0; i_13_ < -1654802383 * ((Class418) this).anInt6139; i_13_++) {
				int i_14_ = class587_sub4.method14408(1097722201);
				java.io.Serializable serializable;
				if (i == 5)
					serializable = class587_sub4.method14209(-1174140725);
				else
					serializable = new Integer(class587_sub4.method14408(1097722201));
				((Class418) this).aMap6137.put(new Integer(i_14_), serializable);
			}
		} else if (7 == i || i == 8) {
			int i_15_ = class587_sub4.method14191((byte) -40);
			((Class418) this).anInt6139 = class587_sub4.method14191((byte) -52) * 1874763985;
			((Class418) this).anObjectArray6136 = new Object[i_15_];
			for (int i_16_ = 0; i_16_ < ((Class418) this).anInt6139 * -1654802383; i_16_++) {
				int i_17_ = class587_sub4.method14191((byte) -78);
				if (7 == i)
					((Class418) this).anObjectArray6136[i_17_] = class587_sub4.method14209(1182393768);
				else
					((Class418) this).anObjectArray6136[i_17_] = new Integer(class587_sub4.method14408(1097722201));
			}
		}
	}

	public String method7571(int i) {
		Object object = method7568(i, (byte) 60);
		if (object == null)
			return ((Class418) this).aString6138;
		return (String) object;
	}

	Object method7572(int i) {
		if (null != ((Class418) this).anObjectArray6136) {
			if (i < 0 || i >= ((Class418) this).anObjectArray6136.length)
				return null;
			return ((Class418) this).anObjectArray6136[i];
		}
		if (null != ((Class418) this).aMap6137)
			return ((Class418) this).aMap6137.get(new Integer(i));
		return null;
	}

	Object method7573(int i) {
		if (null != ((Class418) this).anObjectArray6136) {
			if (i < 0 || i >= ((Class418) this).anObjectArray6136.length)
				return null;
			return ((Class418) this).anObjectArray6136[i];
		}
		if (null != ((Class418) this).aMap6137)
			return ((Class418) this).aMap6137.get(new Integer(i));
		return null;
	}

	Object method7574(int i) {
		if (null != ((Class418) this).anObjectArray6136) {
			if (i < 0 || i >= ((Class418) this).anObjectArray6136.length)
				return null;
			return ((Class418) this).anObjectArray6136[i];
		}
		if (null != ((Class418) this).aMap6137)
			return ((Class418) this).aMap6137.get(new Integer(i));
		return null;
	}

	void method7575() {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i = 0; i < ((Class418) this).anObjectArray6136.length; i++) {
				if (null != ((Class418) this).anObjectArray6136[i]) {
					Object object = ((Class418) this).anObjectArray6136[i];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i = 0;
			Iterator iterator_18_ = list.iterator();
			while (iterator_18_.hasNext()) {
				Integer integer = (Integer) iterator_18_.next();
				is[i++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	Class418() {
		/* empty */
	}

	void method7576(Class587_Sub4 class587_sub4) {
		for (;;) {
			int i = class587_sub4.method14349(-1130636365);
			if (0 == i)
				break;
			method7561(class587_sub4, i, (byte) 0);
		}
	}

	public int[] method7577(Object object) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return null;
		if (null == ((Class418) this).aHashMap6143)
			method7559(2111060452);
		return (int[]) ((Class418) this).aHashMap6143.get(object);
	}

	public int method7578() {
		return -1654802383 * ((Class418) this).anInt6139;
	}

	void method7579() {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i = 0; i < ((Class418) this).anObjectArray6136.length; i++) {
				if (null != ((Class418) this).anObjectArray6136[i]) {
					Object object = ((Class418) this).anObjectArray6136[i];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i = 0;
			Iterator iterator_19_ = list.iterator();
			while (iterator_19_.hasNext()) {
				Integer integer = (Integer) iterator_19_.next();
				is[i++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	public int method7580(int i, int i_20_) {
		Object object = method7568(i, (byte) 114);
		if (null == object)
			return ((Class418) this).anInt6141 * -1983025261;
		return ((Integer) object).intValue();
	}

	void method7581() {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i = 0; i < ((Class418) this).anObjectArray6136.length; i++) {
				if (null != ((Class418) this).anObjectArray6136[i]) {
					Object object = ((Class418) this).anObjectArray6136[i];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i = 0;
			Iterator iterator_21_ = list.iterator();
			while (iterator_21_.hasNext()) {
				Integer integer = (Integer) iterator_21_.next();
				is[i++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	void method7582() {
		HashMap hashmap = new HashMap();
		if (null != ((Class418) this).anObjectArray6136) {
			for (int i = 0; i < ((Class418) this).anObjectArray6136.length; i++) {
				if (null != ((Class418) this).anObjectArray6136[i]) {
					Object object = ((Class418) this).anObjectArray6136[i];
					List list = (List) hashmap.get(object);
					if (list == null) {
						list = new LinkedList();
						hashmap.put(object, list);
					}
					list.add(new Integer(i));
				}
			}
		} else if (((Class418) this).aMap6137 != null) {
			Iterator iterator = ((Class418) this).aMap6137.entrySet().iterator();
			while (iterator.hasNext()) {
				Map.Entry entry = (Map.Entry) iterator.next();
				Object object = entry.getValue();
				List list = (List) hashmap.get(object);
				if (list == null) {
					list = new LinkedList();
					hashmap.put(object, list);
				}
				list.add(entry.getKey());
			}
		} else
			throw new IllegalStateException();
		((Class418) this).aHashMap6143 = new HashMap();
		Iterator iterator = hashmap.entrySet().iterator();
		while (iterator.hasNext()) {
			Map.Entry entry = (Map.Entry) iterator.next();
			List list = (List) entry.getValue();
			int[] is = new int[list.size()];
			int i = 0;
			Iterator iterator_22_ = list.iterator();
			while (iterator_22_.hasNext()) {
				Integer integer = (Integer) iterator_22_.next();
				is[i++] = integer.intValue();
			}
			if (((Class418) this).anObjectArray6136 == null)
				Arrays.sort(is);
			((Class418) this).aHashMap6143.put(entry.getKey(), is);
		}
	}

	public boolean method7583(Object object) {
		if (-1654802383 * ((Class418) this).anInt6139 == 0)
			return false;
		if (((Class418) this).aHashMap6143 == null)
			method7559(2063076349);
		return ((Class418) this).aHashMap6143.containsKey(object);
	}

	public static void method7584(Class497_Sub1_Sub3_Sub5_Sub1 class497_sub1_sub3_sub5_sub1, int i) {
		Class587_Sub22 class587_sub22 = ((Class587_Sub22) (Class587_Sub22.aClass445_9647.method7988((long) (class497_sub1_sub3_sub5_sub1.anInt11044 * 1297544125))));
		if (null == class587_sub22)
			Class208.method4415(class497_sub1_sub3_sub5_sub1.aByte8402, (class497_sub1_sub3_sub5_sub1.anIntArray11101[0]), (class497_sub1_sub3_sub5_sub1.anIntArray11107[0]), 0, null, null, class497_sub1_sub3_sub5_sub1, (byte) -19);
		else
			class587_sub22.method15798(-135696673);
	}

	public static void method7585(byte i) {
		Class134.method3093((byte) 48);
		Class16.aBool153 = false;
		Class280.method5680(2105024575 * Class78.anInt1134, Class520.anInt6954 * -6863045, -1907370511 * Class592.anInt7704, 472119439 * Class587_Sub40.anInt9800, (byte) 9);
		Class449.aClass587_Sub34_Sub8_6357 = null;
		Class159.aClass587_Sub34_Sub8_1884 = null;
	}
}
