/* Class506 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Point;

public class Class506 {
	public static Class506 aClass506_6754;
	public static Class506 aClass506_6755;
	static Class506 aClass506_6756;
	public static Class506 aClass506_6757;
	static Class506 aClass506_6758;
	static Class506 aClass506_6759;
	static Class506 aClass506_6760;
	static Class506 aClass506_6761;
	static Class506 aClass506_6762;
	public static Class506 aClass506_6763;
	public int anInt6764;
	public static Class506 aClass506_6765;
	static Class506 aClass506_6766;
	static Class506 aClass506_6767;
	public static Class506 aClass506_6768 = new Class506(0, 2, 2, 1);
	public int anInt6769;
	public int anInt6770;
	public int anInt6771;
	public static Class279 aClass279_6772;

	public static Class506 method11463(int i) {
		Class506[] class506s = Class307.method6117((byte) 30);
		for (int i_0_ = 0; i_0_ < class506s.length; i_0_++) {
			if (i == -69613775 * class506s[i_0_].anInt6764)
				return class506s[i_0_];
		}
		return null;
	}

	static {
		aClass506_6755 = new Class506(1, 2, 2, 0);
		aClass506_6762 = new Class506(2, 4, 4, 0);
		aClass506_6759 = new Class506(4, 1, 1, 1);
		aClass506_6757 = new Class506(6, 0, 4, 2);
		aClass506_6754 = new Class506(7, 0, 1, 1);
		aClass506_6760 = new Class506(8, 0, 4, 1);
		aClass506_6761 = new Class506(9, 0, 4, 1);
		aClass506_6765 = new Class506(10, 2, 2, 0);
		aClass506_6763 = new Class506(11, 0, 1, 2);
		aClass506_6756 = new Class506(12, 0, 1, 0);
		aClass506_6758 = new Class506(13, 0, 1, 0);
		aClass506_6766 = new Class506(14, 0, 4, 1);
		aClass506_6767 = new Class506(15, 0, 1, 0);
	}

	Class506(int i, int i_1_, int i_2_, int i_3_) {
		anInt6764 = -665570863 * i;
		anInt6769 = i_1_ * -1982413733;
		anInt6770 = i_2_ * 370104999;
		anInt6771 = 532001929 * i_3_;
	}

	static void method11464(byte i) {
		synchronized (Class509.aQueue6781) {
			Point point;
			if (Class180.aCanvas2174.isShowing())
				point = Class180.aCanvas2174.getLocationOnScreen();
			else
				point = null;
			for (;;) {
				Class587_Sub32_Sub1 class587_sub32_sub1 = (Class587_Sub32_Sub1) Class509.aQueue6781.poll();
				if (class587_sub32_sub1 == null)
					break;
				if (null == point || !Class180.aCanvas2174.isShowing() || !Class76.aBool1122)
					class587_sub32_sub1.method15960((byte) 61);
				else {
					class587_sub32_sub1.method16716(point, 1646323049);
					if (!class587_sub32_sub1.method16714((byte) -71) && (class587_sub32_sub1.method15955(-201881681) < -334452787 * Class117.anInt1641) && (class587_sub32_sub1.method15950(447334803) < Class39.anInt722 * -322515687) && class587_sub32_sub1.method15955(-865695524) >= 0 && class587_sub32_sub1.method15950(693382656) >= 0) {
						int i_4_ = class587_sub32_sub1.method15948(856162760);
						if (class587_sub32_sub1.method15948(856162760) == -1)
							Class509.aClass488_Sub2_6784.method11077(class587_sub32_sub1, 25876912);
						else if (Class127.method3054(i_4_, 1590826038))
							Class509.aClass488_Sub2_6784.method14493(class587_sub32_sub1, (byte) -125);
					}
				}
			}
		}
	}

	public static String method11465(CharSequence charsequence, int i) {
		int i_5_ = charsequence.length();
		StringBuilder stringbuilder = new StringBuilder(i_5_);
		for (int i_6_ = 0; i_6_ < i_5_; i_6_++) {
			char c = charsequence.charAt(i_6_);
			if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || '.' == c || '-' == c || '*' == c || c == '_')
				stringbuilder.append(c);
			else if (' ' == c)
				stringbuilder.append('+');
			else {
				int i_7_ = Class394.method7136(c, 638319132);
				stringbuilder.append('%');
				int i_8_ = i_7_ >> 4 & 0xf;
				if (i_8_ >= 10)
					stringbuilder.append((char) (i_8_ + 55));
				else
					stringbuilder.append((char) (i_8_ + 48));
				i_8_ = i_7_ & 0xf;
				if (i_8_ >= 10)
					stringbuilder.append((char) (i_8_ + 55));
				else
					stringbuilder.append((char) (48 + i_8_));
			}
		}
		return stringbuilder.toString();
	}

	static void method11466(int i) {
		/* empty */
	}

	public static void method11467(byte i) {
		for (int i_9_ = 0; i_9_ < 114; i_9_++) {
			if (i >= 12)
				break;
			client.aBoolArray8247[i_9_] = true;
		}
	}

	static final void method11468(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class92_Sub20.aClass587_Sub11_10075.aClass441_Sub26_8613.method14044((byte) 13) == 1 ? 1 : 0;
	}

	static void method11469(int i, int i_10_, Class35 class35, Class134 class134, int i_11_, int i_12_, int i_13_) {
		int i_14_ = Class15.anInt146 * -448750597;
		int[] is = Class15.anIntArray144;
		for (int i_15_ = 0; i_15_ < i_14_; i_15_++) {
			Class497_Sub1_Sub3_Sub5_Sub1 class497_sub1_sub3_sub5_sub1 = client.aClass497_Sub1_Sub3_Sub5_Sub1Array8277[is[i_15_]];
			if (null != class497_sub1_sub3_sub5_sub1 && class497_sub1_sub3_sub5_sub1.method17466(16711935) && !class497_sub1_sub3_sub5_sub1.aBool11133 && (Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388 != class497_sub1_sub3_sub5_sub1) && (class497_sub1_sub3_sub5_sub1.aByte8402 == (Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388.aByte8402))) {
				Class277 class277 = (class497_sub1_sub3_sub5_sub1.method11206().aClass277_4041);
				int i_16_ = (int) class277.aFloat4209 / 128 - i / 128;
				int i_17_ = (int) class277.aFloat4213 / 128 - i_10_ / 128;
				boolean bool = false;
				for (int i_18_ = 0; i_18_ < client.anInt8122 * 1592642939; i_18_++) {
					Class10 class10 = client.aClass10Array8244[i_18_];
					if (class497_sub1_sub3_sub5_sub1.aString11111.equals(class10.aString64) && 0 != -1103253493 * class10.anInt59) {
						bool = true;
						break;
					}
				}
				boolean bool_19_ = false;
				for (int i_20_ = 0; i_20_ < -1463267015 * Class436.anInt6285; i_20_++) {
					if (class497_sub1_sub3_sub5_sub1.aString11111.equals(Class92_Sub17.aClass200Array8765[i_20_].aString2436)) {
						bool_19_ = true;
						break;
					}
				}
				boolean bool_21_ = false;
				if ((Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388.anInt11130 * -837096395) != 0 && 0 != (-837096395 * class497_sub1_sub3_sub5_sub1.anInt11130) && (-837096395 * (Class454.aClass497_Sub1_Sub3_Sub5_Sub1_6388.anInt11130) == (class497_sub1_sub3_sub5_sub1.anInt11130 * -837096395)))
					bool_21_ = true;
				if (class497_sub1_sub3_sub5_sub1.aBool11132)
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[6], 2144488411);
				else if (bool_21_)
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[4], 1859510371);
				else if (class497_sub1_sub3_sub5_sub1.aBool11134)
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[7], -319524952);
				else if (bool)
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[3], 147470455);
				else if (bool_19_)
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[5], -1987724524);
				else
					Class513.method11545(class35, class134, i_11_, i_12_, i_16_, i_17_, Class575.aClass135Array7378[2], 55503665);
			}
		}
	}
}
