/* Class66 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;

public class Class66 implements Runnable {
	Class351[] aClass351Array1037;
	Thread aThread1038;
	volatile boolean aBool1039;
	static int anInt1040;
	static int anInt1041;

	public void method1560() {
		try {
			int i = (Class495.aClass495_6658 == Class401.aClass495_5754 ? 80 : 7000 + -673119315 * Class408.aClass613_5977.anInt7843);
			BufferedReader bufferedreader = (new BufferedReader(new InputStreamReader(new DataInputStream(new URL(new StringBuilder().append("http://").append(Class408.aClass613_5977.aString7840).append(":").append(i).append("/news.ws?game=").append(client.aClass467_8003.anInt6428 * 1449331361).toString()).openStream()))));
			String string = bufferedreader.readLine();
			ArrayList arraylist = new ArrayList();
			for (/**/; null != string; string = bufferedreader.readLine())
				arraylist.add(string);
			String[] strings = new String[arraylist.size()];
			arraylist.toArray(strings);
			if (0 != strings.length % 3)
				return;
			((Class66) this).aClass351Array1037 = new Class351[strings.length / 3];
			for (int i_0_ = 0; i_0_ < strings.length; i_0_ += 3)
				((Class66) this).aClass351Array1037[i_0_ / 3] = new Class351(strings[i_0_], strings[1 + i_0_], strings[i_0_ + 2]);
		} catch (IOException ioexception) {
			/* empty */
		}
		((Class66) this).aBool1039 = true;
	}

	Class351 method1561(int i, byte i_1_) {
		if (((Class66) this).aClass351Array1037 == null || i < 0 || i >= ((Class66) this).aClass351Array1037.length)
			return null;
		return ((Class66) this).aClass351Array1037[i];
	}

	Class66() {
		/* empty */
	}

	public void run() {
		try {
			int i = (Class495.aClass495_6658 == Class401.aClass495_5754 ? 80 : 7000 + -673119315 * Class408.aClass613_5977.anInt7843);
			BufferedReader bufferedreader = (new BufferedReader(new InputStreamReader(new DataInputStream(new URL(new StringBuilder().append("http://").append(Class408.aClass613_5977.aString7840).append(":").append(i).append("/news.ws?game=").append(client.aClass467_8003.anInt6428 * 1449331361).toString()).openStream()))));
			String string = bufferedreader.readLine();
			ArrayList arraylist = new ArrayList();
			for (/**/; null != string; string = bufferedreader.readLine())
				arraylist.add(string);
			String[] strings = new String[arraylist.size()];
			arraylist.toArray(strings);
			if (0 != strings.length % 3)
				return;
			((Class66) this).aClass351Array1037 = new Class351[strings.length / 3];
			for (int i_2_ = 0; i_2_ < strings.length; i_2_ += 3)
				((Class66) this).aClass351Array1037[i_2_ / 3] = new Class351(strings[i_2_], strings[1 + i_2_], strings[i_2_ + 2]);
		} catch (IOException ioexception) {
			/* empty */
		}
		((Class66) this).aBool1039 = true;
	}

	public void method1562() {
		try {
			int i = (Class495.aClass495_6658 == Class401.aClass495_5754 ? 80 : 7000 + -673119315 * Class408.aClass613_5977.anInt7843);
			BufferedReader bufferedreader = (new BufferedReader(new InputStreamReader(new DataInputStream(new URL(new StringBuilder().append("http://").append(Class408.aClass613_5977.aString7840).append(":").append(i).append("/news.ws?game=").append(client.aClass467_8003.anInt6428 * 1449331361).toString()).openStream()))));
			String string = bufferedreader.readLine();
			ArrayList arraylist = new ArrayList();
			for (/**/; null != string; string = bufferedreader.readLine())
				arraylist.add(string);
			String[] strings = new String[arraylist.size()];
			arraylist.toArray(strings);
			if (0 != strings.length % 3)
				return;
			((Class66) this).aClass351Array1037 = new Class351[strings.length / 3];
			for (int i_3_ = 0; i_3_ < strings.length; i_3_ += 3)
				((Class66) this).aClass351Array1037[i_3_ / 3] = new Class351(strings[i_3_], strings[1 + i_3_], strings[i_3_ + 2]);
		} catch (IOException ioexception) {
			/* empty */
		}
		((Class66) this).aBool1039 = true;
	}

	boolean method1563(short i) {
		if (((Class66) this).aBool1039)
			return true;
		if (((Class66) this).aThread1038 == null) {
			((Class66) this).aThread1038 = new Thread(this);
			((Class66) this).aThread1038.start();
		}
		return ((Class66) this).aBool1039;
	}

	Class351 method1564(int i) {
		if (((Class66) this).aClass351Array1037 == null || i < 0 || i >= ((Class66) this).aClass351Array1037.length)
			return null;
		return ((Class66) this).aClass351Array1037[i];
	}

	Class351 method1565(int i) {
		if (((Class66) this).aClass351Array1037 == null || i < 0 || i >= ((Class66) this).aClass351Array1037.length)
			return null;
		return ((Class66) this).aClass351Array1037[i];
	}

	Class351 method1566(int i) {
		if (((Class66) this).aClass351Array1037 == null || i < 0 || i >= ((Class66) this).aClass351Array1037.length)
			return null;
		return ((Class66) this).aClass351Array1037[i];
	}

	public static void method1567(String string, int i) {
		if (2 == client.anInt8013 * 906940163) {
			Class587_Sub45 class587_sub45 = Class70.method1609(Class320.aClass320_4858, client.aClass190_8064.aClass426_2279, 2042697197);
			class587_sub45.aClass587_Sub4_Sub1_9890.method14178(0, 737801327);
			int i_4_ = (-1961774223 * class587_sub45.aClass587_Sub4_Sub1_9890.anInt8458);
			class587_sub45.aClass587_Sub4_Sub1_9890.method14382(string, 243695976);
			class587_sub45.aClass587_Sub4_Sub1_9890.anInt8458 += 1604239095;
			class587_sub45.aClass587_Sub4_Sub1_9890.method14266(Class14.anIntArray132, i_4_, (-1961774223 * class587_sub45.aClass587_Sub4_Sub1_9890.anInt8458), 276089765);
			class587_sub45.aClass587_Sub4_Sub1_9890.method14364((-1961774223 * class587_sub45.aClass587_Sub4_Sub1_9890.anInt8458) - i_4_, (byte) 4);
			client.aClass190_8064.method3964(class587_sub45, 2030065190);
			Class480.aClass470_6533 = Class470.aClass470_6453;
		}
	}

	static final void method1568(Class477 class477, int i) {
		((Class477) class477).anInt6498 -= -1140365234;
		if ((((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127]) <= (((Class477) class477).anIntArray6497[1 + ((Class477) class477).anInt6498 * 2028895127]))
			((Class477) class477).anInt6520 += (((Class477) class477).anIntArray6518[((Class477) class477).anInt6520 * -800229703]) * 66826121;
	}

	static final void method1569(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class555.anInt7245 * -1785525901;
	}

	static final void method1570(Class477 class477, int i) {
		int i_5_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = ((Class477) class477).aClass355_6522.anIntArray5471[i_5_];
	}

	static final void method1571(Class477 class477, byte i) {
		((Class477) class477).anInt6498 -= -1140365234;
		int i_6_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498]);
		int i_7_ = (((Class477) class477).anIntArray6497[1 + 2028895127 * ((Class477) class477).anInt6498]);
		Class616 class616 = Class12.aClass623_76.method13188(i_7_, (byte) -7);
		if (class616.method13097(1954171942)) {
			if (i > 0)
				((Class477) class477).anObjectArray6499[((((Class477) class477).anInt6500 += 1803340247) * -443336217) - 1] = Class112.aClass546_1559.method11926(i_6_, (short) -27274).method11895(i_7_, class616.aString7859, (byte) 30);
		} else
			((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1)] = (Class112.aClass546_1559.method11926(i_6_, (short) -13686).method11903(i_7_, -162093731 * class616.anInt7858, (byte) 97));
	}

	static final void method1572(Class477 class477, int i) {
		Class92_Sub4.method14633(-1685336230);
	}

	static final void method1573(Class477 class477, byte i) {
		int i_8_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class92_Sub7.aClass401_8715.method7178(i_8_, (byte) 125).method17072(-1587111519);
	}

	public static int method1574(int i, int i_9_, float f, byte i_10_) {
		return Class539.method11837(i, i_9_, (int) f, 1449834051);
	}

	static final void method1575(Class477 class477, int i) {
		((Class477) class477).anInt6498 -= 170442157;
		Class387[] class387s = Class167_Sub2.method15607(-1816594587);
		Class390[] class390s = Class13.method643(-2073441743);
		Class78.method1834(class387s[(((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127])], class390s[(((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 1])], (((Class477) class477).anIntArray6497[2 + 2028895127 * ((Class477) class477).anInt6498]), (((Class477) class477).anIntArray6497[3 + ((Class477) class477).anInt6498 * 2028895127]), (((Class477) class477).anIntArray6497[4 + ((Class477) class477).anInt6498 * 2028895127]), (((Class477) class477).anIntArray6497[5 + ((Class477) class477).anInt6498 * 2028895127]), (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 6]), (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498 + 7]), (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 8]), (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 9]), (((Class477) class477).anIntArray6497[10 + ((Class477) class477).anInt6498 * 2028895127]), (byte) 1);
	}
}
