/* Class361 - 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 Class361 implements Runnable
{
    Class372[] aClass372Array5509;
    Thread aThread5510;
    volatile boolean aBool5511;
    public static Class289 aClass289_5512;
    
    Class372 method6912(int i) {
	if (null == ((Class361) this).aClass372Array5509 || i < 0
	    || i >= ((Class361) this).aClass372Array5509.length)
	    return null;
	return ((Class361) this).aClass372Array5509[i];
    }
    
    Class361() {
	/* empty */
    }
    
    boolean method6913(int i) {
	if (((Class361) this).aBool5511)
	    return true;
	if (((Class361) this).aThread5510 == null) {
	    ((Class361) this).aThread5510 = new Thread(this);
	    ((Class361) this).aThread5510.start();
	}
	return ((Class361) this).aBool5511;
    }
    
    public void run() {
	try {
	    int i = (Class437.aClass437_6187 == Class357_Sub3.aClass437_10227
		     ? 80
		     : -146662705 * Class398.aClass395_5751.anInt5737 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL(new StringBuilder().append("http://").append
				  (Class398.aClass395_5751.aString5733).append
				  (":").append
				  (i).append
				  ("/news.ws?game=").append
				  (client.aClass447_8200.anInt6237 * 433759417)
				  .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;
	    ((Class361) this).aClass372Array5509
		= new Class372[strings.length / 3];
	    for (int i_0_ = 0; i_0_ < strings.length; i_0_ += 3)
		((Class361) this).aClass372Array5509[i_0_ / 3]
		    = new Class372(strings[i_0_], strings[1 + i_0_],
				   strings[2 + i_0_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class361) this).aBool5511 = true;
    }
    
    Class372 method6914(int i, int i_1_) {
	if (null == ((Class361) this).aClass372Array5509 || i < 0
	    || i >= ((Class361) this).aClass372Array5509.length)
	    return null;
	return ((Class361) this).aClass372Array5509[i];
    }
    
    public void method6915() {
	try {
	    int i = (Class437.aClass437_6187 == Class357_Sub3.aClass437_10227
		     ? 80
		     : -146662705 * Class398.aClass395_5751.anInt5737 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL(new StringBuilder().append("http://").append
				  (Class398.aClass395_5751.aString5733).append
				  (":").append
				  (i).append
				  ("/news.ws?game=").append
				  (client.aClass447_8200.anInt6237 * 433759417)
				  .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;
	    ((Class361) this).aClass372Array5509
		= new Class372[strings.length / 3];
	    for (int i_2_ = 0; i_2_ < strings.length; i_2_ += 3)
		((Class361) this).aClass372Array5509[i_2_ / 3]
		    = new Class372(strings[i_2_], strings[1 + i_2_],
				   strings[2 + i_2_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class361) this).aBool5511 = true;
    }
    
    public void method6916() {
	try {
	    int i = (Class437.aClass437_6187 == Class357_Sub3.aClass437_10227
		     ? 80
		     : -146662705 * Class398.aClass395_5751.anInt5737 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL(new StringBuilder().append("http://").append
				  (Class398.aClass395_5751.aString5733).append
				  (":").append
				  (i).append
				  ("/news.ws?game=").append
				  (client.aClass447_8200.anInt6237 * 433759417)
				  .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;
	    ((Class361) this).aClass372Array5509
		= new Class372[strings.length / 3];
	    for (int i_3_ = 0; i_3_ < strings.length; i_3_ += 3)
		((Class361) this).aClass372Array5509[i_3_ / 3]
		    = new Class372(strings[i_3_], strings[1 + i_3_],
				   strings[2 + i_3_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class361) this).aBool5511 = true;
    }
    
    public void method6917() {
	try {
	    int i = (Class437.aClass437_6187 == Class357_Sub3.aClass437_10227
		     ? 80
		     : -146662705 * Class398.aClass395_5751.anInt5737 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL(new StringBuilder().append("http://").append
				  (Class398.aClass395_5751.aString5733).append
				  (":").append
				  (i).append
				  ("/news.ws?game=").append
				  (client.aClass447_8200.anInt6237 * 433759417)
				  .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;
	    ((Class361) this).aClass372Array5509
		= new Class372[strings.length / 3];
	    for (int i_4_ = 0; i_4_ < strings.length; i_4_ += 3)
		((Class361) this).aClass372Array5509[i_4_ / 3]
		    = new Class372(strings[i_4_], strings[1 + i_4_],
				   strings[2 + i_4_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class361) this).aBool5511 = true;
    }
    
    Class372 method6918(int i) {
	if (null == ((Class361) this).aClass372Array5509 || i < 0
	    || i >= ((Class361) this).aClass372Array5509.length)
	    return null;
	return ((Class361) this).aClass372Array5509[i];
    }
    
    Class372 method6919(int i) {
	if (null == ((Class361) this).aClass372Array5509 || i < 0
	    || i >= ((Class361) this).aClass372Array5509.length)
	    return null;
	return ((Class361) this).aClass372Array5509[i];
    }
    
    boolean method6920() {
	if (((Class361) this).aBool5511)
	    return true;
	if (((Class361) this).aThread5510 == null) {
	    ((Class361) this).aThread5510 = new Thread(this);
	    ((Class361) this).aThread5510.start();
	}
	return ((Class361) this).aBool5511;
    }
    
    boolean method6921() {
	if (((Class361) this).aBool5511)
	    return true;
	if (((Class361) this).aThread5510 == null) {
	    ((Class361) this).aThread5510 = new Thread(this);
	    ((Class361) this).aThread5510.start();
	}
	return ((Class361) this).aBool5511;
    }
    
    public void method6922() {
	try {
	    int i = (Class437.aClass437_6187 == Class357_Sub3.aClass437_10227
		     ? 80
		     : -146662705 * Class398.aClass395_5751.anInt5737 + 7000);
	    BufferedReader bufferedreader
		= (new BufferedReader
		   (new InputStreamReader
		    (new DataInputStream
		     (new URL(new StringBuilder().append("http://").append
				  (Class398.aClass395_5751.aString5733).append
				  (":").append
				  (i).append
				  ("/news.ws?game=").append
				  (client.aClass447_8200.anInt6237 * 433759417)
				  .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;
	    ((Class361) this).aClass372Array5509
		= new Class372[strings.length / 3];
	    for (int i_5_ = 0; i_5_ < strings.length; i_5_ += 3)
		((Class361) this).aClass372Array5509[i_5_ / 3]
		    = new Class372(strings[i_5_], strings[1 + i_5_],
				   strings[2 + i_5_]);
	} catch (IOException ioexception) {
	    /* empty */
	}
	((Class361) this).aBool5511 = true;
    }
    
    Class372 method6923(int i) {
	if (null == ((Class361) this).aClass372Array5509 || i < 0
	    || i >= ((Class361) this).aClass372Array5509.length)
	    return null;
	return ((Class361) this).aClass372Array5509[i];
    }
    
    boolean method6924() {
	if (((Class361) this).aBool5511)
	    return true;
	if (((Class361) this).aThread5510 == null) {
	    ((Class361) this).aThread5510 = new Thread(this);
	    ((Class361) this).aThread5510.start();
	}
	return ((Class361) this).aBool5511;
    }
    
    boolean method6925() {
	if (((Class361) this).aBool5511)
	    return true;
	if (((Class361) this).aThread5510 == null) {
	    ((Class361) this).aThread5510 = new Thread(this);
	    ((Class361) this).aThread5510.start();
	}
	return ((Class361) this).aBool5511;
    }
    
    public static Class208[] method6926(int i) {
	return (new Class208[]
		{ Class208.aClass208_2476, Class208.aClass208_2475,
		  Class208.aClass208_2477 });
    }
    
    static void method6927(Class479 class479, byte i) {
	((Class479) class479).anIntArray6435
	    [((Class479) class479).anInt6442 * -117934955 - 2]
	    = (Exception_Sub4.aClass495_10538.method11258
		   ((((Class479) class479).anIntArray6435
		     [((Class479) class479).anInt6442 * -117934955 - 2]),
		    (short) 28723)
		   .method11211
	       (Class326.aClass12_4953,
		(((Class479) class479).anIntArray6435
		 [((Class479) class479).anInt6442 * -117934955 - 1]),
		(byte) -24)) ? 1 : 0;
	((Class479) class479).anInt6442 -= -1158629699;
    }
    
    static final void method6928(Class479 class479, int i)
	throws Exception_Sub1 {
	Class340 class340
	    = (Class340) (((Class479) class479).aClass243_Sub11_Sub10_6459
			  .anObjectArray10759
			  [1798300503 * ((Class479) class479).anInt6458]);
	Interface13 interface13
	    = ((Interface13)
	       (0 == (((Class479) class479).anIntArray6456
		      [((Class479) class479).anInt6458 * 1798300503])
		? ((Class479) class479).aMap6436
		      .get(class340.aClass168_5335.aClass296_2121)
		: ((Class479) class479).aMap6451
		      .get(class340.aClass168_5335.aClass296_2121)));
	interface13.method78(class340,
			     (((Class479) class479).anIntArray6435
			      [(((Class479) class479).anInt6442
				-= -1158629699) * -117934955]),
			     2115534004);
    }
    
    static final void method6929(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = Class389.aByte5680;
    }
    
    static final void method6930(Class479 class479, int i) {
	((Class479) class479).anInt6442 -= 479526699;
	int i_6_ = (((Class479) class479).anIntArray6435
		    [-117934955 * ((Class479) class479).anInt6442]);
	int i_7_ = ((((Class479) class479).anIntArray6435
		     [1 + ((Class479) class479).anInt6442 * -117934955])
		    << 1);
	int i_8_ = (((Class479) class479).anIntArray6435
		    [-117934955 * ((Class479) class479).anInt6442 + 2]);
	int i_9_ = (((Class479) class479).anIntArray6435
		    [((Class479) class479).anInt6442 * -117934955 + 3]);
	int i_10_ = (((Class479) class479).anIntArray6435
		     [4 + ((Class479) class479).anInt6442 * -117934955]);
	int i_11_ = (((Class479) class479).anIntArray6435
		     [5 + -117934955 * ((Class479) class479).anInt6442]);
	int i_12_ = (((Class479) class479).anIntArray6435
		     [6 + ((Class479) class479).anInt6442 * -117934955]);
	if (i_6_ >= 0 && i_6_ < 2
	    && null != client.anIntArrayArrayArray8241[i_6_] && i_7_ >= 0
	    && i_7_ < client.anIntArrayArrayArray8241[i_6_].length) {
	    client.anIntArrayArrayArray8241[i_6_][i_7_]
		= new int[] { (i_8_ >> 14 & 0x3fff) << 9, i_9_ << 2,
			      (i_8_ & 0x3fff) << 9, i_12_ };
	    client.anIntArrayArrayArray8241[i_6_][i_7_ + 1]
		= new int[] { (i_10_ >> 14 & 0x3fff) << 9, i_11_ << 2,
			      (i_10_ & 0x3fff) << 9 };
	}
    }
}
