/* Class108 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TimeZone;
import java.util.concurrent.ConcurrentLinkedQueue;

public final class Class108 {
	public static final long aLong1551 = 1000L;
	static HashMap aHashMap1552 = new HashMap();
	static Map aMap1553;

	static TimeZone method2589(String string) {
		synchronized (aHashMap1552) {
			TimeZone timezone = (TimeZone) aHashMap1552.get(string);
			if (timezone == null) {
				timezone = TimeZone.getTimeZone(string);
				aHashMap1552.put(string, timezone);
			}
			TimeZone timezone_0_ = timezone;
			return timezone_0_;
		}
	}

	public static String method2590(Date date, String string) {
		return method2591(date, string, method2592((byte) -35), Class469.aClass469_6450, 534747263);
	}

	static String method2591(Date date, String string, TimeZone timezone, Class469 class469, int i) {
		if (aMap1553 == null) {
			aMap1553 = new HashMap(7);
			Class469[] class469s = Class469.method8332(666212902);
			for (int i_1_ = 0; i_1_ < class469s.length; i_1_++) {
				Class469 class469_2_ = class469s[i_1_];
				aMap1553.put(class469_2_, new ConcurrentLinkedQueue());
			}
		}
		ConcurrentLinkedQueue concurrentlinkedqueue = (ConcurrentLinkedQueue) aMap1553.get(class469);
		SimpleDateFormat simpledateformat = (SimpleDateFormat) concurrentlinkedqueue.poll();
		if (null == simpledateformat)
			simpledateformat = new SimpleDateFormat(string, class469.method8324(-1371192695));
		else
			simpledateformat.applyPattern(string);
		simpledateformat.setTimeZone(timezone);
		String string_3_ = simpledateformat.format(date);
		concurrentlinkedqueue.add(simpledateformat);
		return string_3_;
	}

	static TimeZone method2592(byte i) {
		return method2593("Europe/London", -1588892018);
	}

	static TimeZone method2593(String string, int i) {
		synchronized (aHashMap1552) {
			TimeZone timezone = (TimeZone) aHashMap1552.get(string);
			if (timezone == null) {
				timezone = TimeZone.getTimeZone(string);
				aHashMap1552.put(string, timezone);
			}
			TimeZone timezone_4_ = timezone;
			return timezone_4_;
		}
	}

	static TimeZone method2594() {
		return method2593("Europe/London", -572307082);
	}

	Class108() throws Throwable {
		throw new Error();
	}

	public static String method2595(Date date, String string, int i) {
		return method2591(date, string, method2592((byte) 6), Class469.aClass469_6450, -196475700);
	}

	static TimeZone method2596() {
		return method2593("Europe/London", -474853088);
	}

	static {
		Calendar.getInstance(method2593("Europe/London", -486296638));
	}

	static TimeZone method2597() {
		return method2593("Europe/London", -1646176157);
	}

	static TimeZone method2598() {
		return method2593("Europe/London", -223020182);
	}

	static String method2599(Date date, String string, TimeZone timezone, Class469 class469) {
		if (aMap1553 == null) {
			aMap1553 = new HashMap(7);
			Class469[] class469s = Class469.method8332(-817325784);
			for (int i = 0; i < class469s.length; i++) {
				Class469 class469_5_ = class469s[i];
				aMap1553.put(class469_5_, new ConcurrentLinkedQueue());
			}
		}
		ConcurrentLinkedQueue concurrentlinkedqueue = (ConcurrentLinkedQueue) aMap1553.get(class469);
		SimpleDateFormat simpledateformat = (SimpleDateFormat) concurrentlinkedqueue.poll();
		if (null == simpledateformat)
			simpledateformat = new SimpleDateFormat(string, class469.method8324(1707473998));
		else
			simpledateformat.applyPattern(string);
		simpledateformat.setTimeZone(timezone);
		String string_6_ = simpledateformat.format(date);
		concurrentlinkedqueue.add(simpledateformat);
		return string_6_;
	}

	static final void method2600(Class477 class477, byte i) {
		int i_7_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		Class35 class35 = Class109.method2606(i_7_, 1157381930);
		Class118 class118 = Class35.aClass118Array464[i_7_ >> 16];
		Class351.method6647(class35, class118, class477, (byte) -8);
	}

	static final void method2601(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = client.aBool8162 ? 1 : 0;
	}

	static final void method2602(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class92_Sub20.aClass587_Sub11_10075.aClass441_Sub10_8605.method13848(-1436494024);
	}

	static void method2603(int i, String string, boolean bool, byte i_8_) {
		Class56.method1312((byte) 0);
		Class190.method3992(2131626790);
		Class190.method3993(-1868703290);
		Class71.method1630(i, string, bool, 1332566346);
		Class587_Sub8.aClass347_8588.method6586(-1358997331);
		Class587_Sub8.aClass347_8588.method6585(client.anInterface36_8052, -2123655837);
		Class63.method1497(Class327.aClass84_5125, 1702836395);
		Class298.method6028(Class327.aClass84_5125, Class72.aClass279_1096, (short) 23465);
		Class216.method4474(874551825);
		Class439.method7910(Class3.aClass135Array32, (byte) -119);
		Class506.method11467((byte) -82);
		Class400.method7174((byte) 0);
		if (client.anInt8013 * 906940163 == 17)
			Class574.method12416(14, 15779668);
		else if (906940163 * client.anInt8013 == 7)
			Class574.method12416(11, 876029200);
		else if (18 == 906940163 * client.anInt8013)
			Class574.method12416(12, 645618641);
		else if (906940163 * client.anInt8013 == 0)
			Class574.method12416(6, -955585870);
		else if (5 == 906940163 * client.anInt8013 || client.anInt8013 * 906940163 == 4)
			Class599.method12909((byte) 27);
		else if (2 == client.anInt8013 * 906940163)
			Class574.method12416(13, -749228542);
		else if (906940163 * client.anInt8013 == 6)
			Class162_Sub1.method15374(false, 1872250594);
	}

	static final void method2604(Class84 class84, int i, int i_9_, int i_10_, int i_11_, byte i_12_) {
		class84.method1907(i, i_9_, i + i_10_, i_11_ + i_9_);
		class84.method2094(i, i_9_, i_10_, i_11_, -16777216, 1449550500);
		if (-1036903247 * Class578_Sub1.anInt8522 >= 100) {
			float f = ((float) Class578_Sub1.anInt7398 / (float) Class578_Sub1.anInt7408);
			int i_13_ = i_10_;
			int i_14_ = i_11_;
			if (f < 1.0F)
				i_14_ = (int) (f * (float) i_10_);
			else
				i_13_ = (int) ((float) i_11_ / f);
			i += (i_10_ - i_13_) / 2;
			i_9_ += (i_11_ - i_14_) / 2;
			if (null == Class617.aClass135_7864 || Class617.aClass135_7864.method3100() != i_10_ || Class617.aClass135_7864.method3101() != i_11_) {
				Class578_Sub1.method12465(Class578_Sub1.anInt7393, (Class578_Sub1.anInt7398 + Class578_Sub1.anInt7407), (Class578_Sub1.anInt7393 + Class578_Sub1.anInt7408), Class578_Sub1.anInt7407, i, i_9_, i + i_13_, i_9_ + i_14_);
				Class578_Sub1.method12466(class84, true, true);
				Class617.aClass135_7864 = class84.method1939(i, i_9_, i_13_, i_14_, false);
			}
			Class617.aClass135_7864.method3106(i, i_9_);
			int i_15_ = (i_13_ * (Class296.anInt4405 * 1918014495) / Class578_Sub1.anInt7408);
			int i_16_ = (i_14_ * (Class310.anInt4649 * 730165177) / Class578_Sub1.anInt7398);
			int i_17_ = ((-134027525 * Class351.anInt5452 * i_13_ / Class578_Sub1.anInt7408) + i);
			int i_18_ = i_9_ + i_14_ - (-1618105767 * Class160.anInt1888 * i_14_ / Class578_Sub1.anInt7398) - i_16_;
			int i_19_ = -1996554240;
			if (Class467.aClass467_6427 == client.aClass467_8003)
				i_19_ = -1996488705;
			class84.method2227(i_17_, i_18_, i_15_, i_16_, i_19_, 1);
			class84.method1974(i_17_, i_18_, i_15_, i_16_, i_19_, 0);
			if (Class113.anInt1565 * -762243315 > 0) {
				int i_20_;
				if (Class505.anInt6753 * -1761552127 > 50)
					i_20_ = 500 - Class505.anInt6753 * -217826043;
				else
					i_20_ = Class505.anInt6753 * -217826043;
				for (Class587_Sub2 class587_sub2 = (Class587_Sub2) Class578_Sub1.aClass413_7405.method7361(1809017812); null != class587_sub2; class587_sub2 = (Class587_Sub2) Class578_Sub1.aClass413_7405.method7344(-359856534)) {
					Class558 class558 = (Class578_Sub1.aClass545_7389.method11911(class587_sub2.anInt8428 * -243305725, -1700885390));
					if (Class26.method966(class558, -819030400)) {
						if (class587_sub2.anInt8428 * -243305725 == Class578_Sub1.anInt8520 * 1216616499) {
							int i_21_ = i + (class587_sub2.anInt8429 * -1842551841 * i_13_ / Class578_Sub1.anInt7408);
							int i_22_ = ((i_14_ * (Class578_Sub1.anInt7398 - class587_sub2.anInt8430 * -875033889) / Class578_Sub1.anInt7398) + i_9_);
							class84.method2094(i_21_ - 2, i_22_ - 2, 4, 4, i_20_ << 24 | 0xffff00, -1630314285);
						} else if (-1985536355 * Class578_Sub1.anInt8524 != -1 && (Class578_Sub1.anInt8524 * -1985536355 == class558.anInt7292 * 1632374857)) {
							int i_23_ = i + (i_13_ * (-1842551841 * class587_sub2.anInt8429) / Class578_Sub1.anInt7408);
							int i_24_ = i_9_ + (i_14_ * (Class578_Sub1.anInt7398 - (-875033889 * class587_sub2.anInt8430)) / Class578_Sub1.anInt7398);
							class84.method2094(i_23_ - 2, i_24_ - 2, 4, 4, i_20_ << 24 | 0xffff00, 1740327879);
						}
					}
				}
			}
		}
	}

	static final void method2605(Class477 class477, int i) {
		((Class477) class477).anInt6502 -= -1523363190;
		if ((((Class477) class477).aLongArray6514[((Class477) class477).anInt6502 * 317358477]) <= (((Class477) class477).aLongArray6514[1 + 317358477 * ((Class477) class477).anInt6502]))
			((Class477) class477).anInt6520 += (((Class477) class477).anIntArray6518[((Class477) class477).anInt6520 * -800229703]) * 66826121;
	}
}
