/* Class347 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Frame;
import java.util.HashMap;
import java.util.Map;

public class Class347 {
	Class113 aClass113_5423 = new Class113(20);
	Class279 aClass279_5424;
	Class279 aClass279_5425;
	int[] anIntArray5426;
	Map aMap5427 = null;
	public static Frame aFrame5428;

	public void method6584() {
		((Class347) this).aClass113_5423.method2642(411521739);
	}

	public void method6585(Interface36 interface36, int i) {
		((Class347) this).aMap5427 = new HashMap(((Class347) this).anIntArray5426.length);
		for (int i_0_ = 0; i_0_ < ((Class347) this).anIntArray5426.length; i_0_++) {
			int i_1_ = ((Class347) this).anIntArray5426[i_0_];
			Class611 class611 = Class423.method7670(((Class347) this).aClass279_5424, i_1_, 1974413862);
			byte[] is = ((Class347) this).aClass279_5425.method5587(i_1_, 2028895127);
			Object object = interface36.method243(is, class611, true, (byte) -31);
			((Class347) this).aMap5427.put(Integer.valueOf(i_0_), new Class431(object, class611));
		}
	}

	public void method6586(int i) {
		((Class347) this).aMap5427 = null;
	}

	public void method6587(int i) {
		((Class347) this).aClass113_5423.method2641(i, 1290769642);
	}

	public void method6588() {
		((Class347) this).aMap5427 = null;
	}

	public int method6589(int i) {
		if (null == ((Class347) this).anIntArray5426)
			return 0;
		return ((Class347) this).anIntArray5426.length * 2;
	}

	public int method6590(boolean bool, int i) {
		if (((Class347) this).anIntArray5426 == null)
			return 0;
		if (!bool && null != ((Class347) this).aMap5427)
			return ((Class347) this).anIntArray5426.length * 2;
		int i_2_ = 0;
		for (int i_3_ = 0; i_3_ < ((Class347) this).anIntArray5426.length; i_3_++) {
			int i_4_ = ((Class347) this).anIntArray5426[i_3_];
			if (((Class347) this).aClass279_5425.method5582(i_4_, (byte) 90))
				i_2_++;
			if (((Class347) this).aClass279_5424.method5582(i_4_, (byte) 43))
				i_2_++;
		}
		return i_2_;
	}

	public Class611 method6591(Interface36 interface36, int i, int i_5_) {
		Class431 class431 = method6596(interface36, i, true, true, (byte) 2);
		if (class431 == null)
			return null;
		return (Class611) class431.anObject6257;
	}

	public int method6592(boolean bool) {
		if (((Class347) this).anIntArray5426 == null)
			return 0;
		if (!bool && null != ((Class347) this).aMap5427)
			return ((Class347) this).anIntArray5426.length * 2;
		int i = 0;
		for (int i_6_ = 0; i_6_ < ((Class347) this).anIntArray5426.length; i_6_++) {
			int i_7_ = ((Class347) this).anIntArray5426[i_6_];
			if (((Class347) this).aClass279_5425.method5582(i_7_, (byte) 32))
				i++;
			if (((Class347) this).aClass279_5424.method5582(i_7_, (byte) 76))
				i++;
		}
		return i;
	}

	public int method6593(int i) {
		return method6590(false, -1558626481);
	}

	public void method6594(int i, byte i_8_) {
		((Class347) this).aClass113_5423.method2641(i, -300015523);
	}

	public void method6595(int i) {
		((Class347) this).aClass113_5423.method2646((byte) 1);
	}

	Class431 method6596(Interface36 interface36, int i, boolean bool, boolean bool_9_, byte i_10_) {
		if (i == -1)
			return null;
		if (null != ((Class347) this).anIntArray5426) {
			for (int i_11_ = 0; i_11_ < ((Class347) this).anIntArray5426.length; i_11_++) {
				if (((Class347) this).anIntArray5426[i_11_] == i)
					return (Class431) ((Class347) this).aMap5427.get(Integer.valueOf(i_11_));
			}
		}
		Class431 class431 = (Class431) ((Class347) this).aClass113_5423.method2636((long) (i << 1 | (bool_9_ ? 1 : 0)));
		if (class431 != null) {
			if (bool && null == class431.anObject6257) {
				Class611 class611 = Class423.method7670(((Class347) this).aClass279_5424, i, 1100808871);
				if (class611 == null)
					return null;
				class431.anObject6257 = class611;
			}
			return class431;
		}
		byte[] is = ((Class347) this).aClass279_5425.method5587(i, 2028895127);
		if (null == is)
			return null;
		Class611 class611 = Class423.method7670(((Class347) this).aClass279_5424, i, 1041774670);
		if (class611 == null)
			return null;
		if (bool)
			class431 = new Class431(interface36.method243(is, class611, bool_9_, (byte) -105), class611);
		else
			class431 = new Class431(interface36.method243(is, class611, bool_9_, (byte) 5), null);
		((Class347) this).aClass113_5423.method2662(class431, (long) (i << 1 | (bool_9_ ? 1 : 0)));
		return class431;
	}

	public void method6597(int i) {
		((Class347) this).aClass113_5423.method2642(-221223867);
	}

	public int method6598() {
		return method6590(false, -1558626481);
	}

	public int method6599() {
		return method6590(false, -1558626481);
	}

	public int method6600() {
		return method6590(false, -1558626481);
	}

	public int method6601(boolean bool) {
		if (((Class347) this).anIntArray5426 == null)
			return 0;
		if (!bool && null != ((Class347) this).aMap5427)
			return ((Class347) this).anIntArray5426.length * 2;
		int i = 0;
		for (int i_12_ = 0; i_12_ < ((Class347) this).anIntArray5426.length; i_12_++) {
			int i_13_ = ((Class347) this).anIntArray5426[i_12_];
			if (((Class347) this).aClass279_5425.method5582(i_13_, (byte) 84))
				i++;
			if (((Class347) this).aClass279_5424.method5582(i_13_, (byte) 118))
				i++;
		}
		return i;
	}

	public int method6602() {
		if (null == ((Class347) this).anIntArray5426)
			return 0;
		return ((Class347) this).anIntArray5426.length * 2;
	}

	public void method6603(int i) {
		((Class347) this).aClass113_5423.method2641(i, 574354460);
	}

	public int method6604() {
		if (null == ((Class347) this).anIntArray5426)
			return 0;
		return ((Class347) this).anIntArray5426.length * 2;
	}

	Class431 method6605(Interface36 interface36, int i, boolean bool, boolean bool_14_) {
		if (i == -1)
			return null;
		if (null != ((Class347) this).anIntArray5426) {
			for (int i_15_ = 0; i_15_ < ((Class347) this).anIntArray5426.length; i_15_++) {
				if (((Class347) this).anIntArray5426[i_15_] == i)
					return (Class431) ((Class347) this).aMap5427.get(Integer.valueOf(i_15_));
			}
		}
		Class431 class431 = (Class431) ((Class347) this).aClass113_5423.method2636((long) (i << 1 | (bool_14_ ? 1 : 0)));
		if (class431 != null) {
			if (bool && null == class431.anObject6257) {
				Class611 class611 = Class423.method7670(((Class347) this).aClass279_5424, i, 1594600303);
				if (class611 == null)
					return null;
				class431.anObject6257 = class611;
			}
			return class431;
		}
		byte[] is = ((Class347) this).aClass279_5425.method5587(i, 2028895127);
		if (null == is)
			return null;
		Class611 class611 = Class423.method7670(((Class347) this).aClass279_5424, i, 1311070359);
		if (class611 == null)
			return null;
		if (bool)
			class431 = new Class431(interface36.method243(is, class611, bool_14_, (byte) -13), class611);
		else
			class431 = new Class431(interface36.method243(is, class611, bool_14_, (byte) 33), null);
		((Class347) this).aClass113_5423.method2662(class431, (long) (i << 1 | (bool_14_ ? 1 : 0)));
		return class431;
	}

	public void method6606() {
		((Class347) this).aClass113_5423.method2642(-682596343);
	}

	public Object method6607(Interface36 interface36, int i, boolean bool, boolean bool_16_, int i_17_) {
		Class431 class431 = method6596(interface36, i, bool, bool_16_, (byte) 2);
		if (null == class431)
			return null;
		return class431.anObject6256;
	}

	public void method6608() {
		((Class347) this).aClass113_5423.method2642(-1539516147);
	}

	public void method6609() {
		((Class347) this).aMap5427 = null;
	}

	public void method6610() {
		((Class347) this).aClass113_5423.method2646((byte) 1);
	}

	public Class347(Class279 class279, Class279 class279_18_, int[] is) {
		((Class347) this).aClass279_5425 = class279;
		((Class347) this).aClass279_5424 = class279_18_;
		if (is != null)
			((Class347) this).anIntArray5426 = is;
		else
			((Class347) this).anIntArray5426 = null;
	}

	public void method6611() {
		((Class347) this).aClass113_5423.method2646((byte) 1);
	}

	public void method6612() {
		((Class347) this).aClass113_5423.method2646((byte) 1);
	}

	static final void method6613(Class477 class477, byte i) {
		int i_19_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		int i_20_ = client.aClass239Array8266[i_19_].method4943(-477692618);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = 1 == i_20_ ? 1 : 0;
	}

	static final void method6614(Class477 class477, int i) {
		Class578_Sub1.aBool8521 = ((((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]) == 1);
	}

	static final void method6615(Class477 class477, int i) {
		Class544.method11908(class477, (((Class477) class477).aClass497_Sub1_Sub3_Sub5_6494), -1536163819);
	}

	static final void method6616(Class477 class477, int i) throws Exception_Sub4 {
		((Class477) class477).anInt6498 -= -1140365234;
		int i_21_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498]);
		Class277 class277 = Class277.method5434((float) i_21_, (float) i_21_, (float) i_21_);
		Class426.aClass72_Sub1_6203.method1709(class277, (byte) 6);
		class277.method5515();
	}

	public static int method6617(long l) {
		Class600.method12913(l);
		return Class617.aCalendar7862.get(1);
	}
}
