/* Class287 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.util.concurrent.Callable;

public class Class287 implements Callable {
	URL anURL4280;
	Class587_Sub34_Sub15_Sub3 aClass587_Sub34_Sub15_Sub3_4281;
	Class285 this$0;
	public static long aLong4282;
	static int anInt4283;

	Class287(Class285 class285, URL url, Class587_Sub34_Sub15_Sub3 class587_sub34_sub15_sub3) {
		((Class287) this).this$0 = class285;
		((Class287) this).anURL4280 = url;
		((Class287) this).aClass587_Sub34_Sub15_Sub3_4281 = class587_sub34_sub15_sub3;
	}

	public Object call() throws Exception {
		URLConnection urlconnection = ((Class287) this).anURL4280.openConnection();
		urlconnection.setConnectTimeout(10000);
		urlconnection.setReadTimeout(60000);
		boolean bool = true;
		try {
			urlconnection.connect();
		} catch (IOException ioexception) {
			((Class285) ((Class287) this).this$0).aLong4274 = Class121.method2891(-882728064) * 5658591076269343371L;
			bool = false;
		}
		return new Class286(((Class287) this).this$0, bool ? urlconnection.getInputStream() : null, ((Class287) this).aClass587_Sub34_Sub15_Sub3_4281, ((Class287) this).anURL4280);
	}

	public Object method5732() throws Exception {
		URLConnection urlconnection = ((Class287) this).anURL4280.openConnection();
		urlconnection.setConnectTimeout(10000);
		urlconnection.setReadTimeout(60000);
		boolean bool = true;
		try {
			urlconnection.connect();
		} catch (IOException ioexception) {
			((Class285) ((Class287) this).this$0).aLong4274 = Class121.method2891(-242066315) * 5658591076269343371L;
			bool = false;
		}
		return new Class286(((Class287) this).this$0, bool ? urlconnection.getInputStream() : null, ((Class287) this).aClass587_Sub34_Sub15_Sub3_4281, ((Class287) this).anURL4280);
	}

	public Object method5733() throws Exception {
		URLConnection urlconnection = ((Class287) this).anURL4280.openConnection();
		urlconnection.setConnectTimeout(10000);
		urlconnection.setReadTimeout(60000);
		boolean bool = true;
		try {
			urlconnection.connect();
		} catch (IOException ioexception) {
			((Class285) ((Class287) this).this$0).aLong4274 = Class121.method2891(-108106639) * 5658591076269343371L;
			bool = false;
		}
		return new Class286(((Class287) this).this$0, bool ? urlconnection.getInputStream() : null, ((Class287) this).aClass587_Sub34_Sub15_Sub3_4281, ((Class287) this).anURL4280);
	}

	public Object method5734() throws Exception {
		URLConnection urlconnection = ((Class287) this).anURL4280.openConnection();
		urlconnection.setConnectTimeout(10000);
		urlconnection.setReadTimeout(60000);
		boolean bool = true;
		try {
			urlconnection.connect();
		} catch (IOException ioexception) {
			((Class285) ((Class287) this).this$0).aLong4274 = Class121.method2891(-1231269862) * 5658591076269343371L;
			bool = false;
		}
		return new Class286(((Class287) this).this$0, bool ? urlconnection.getInputStream() : null, ((Class287) this).aClass587_Sub34_Sub15_Sub3_4281, ((Class287) this).anURL4280);
	}

	public static int method5735(int i, int i_0_, int i_1_, int i_2_) {
		i_1_ &= 0x3;
		if (0 == i_1_)
			return i;
		if (1 == i_1_)
			return i_0_;
		if (i_1_ == 2)
			return 4095 - i;
		return 4095 - i_0_;
	}

	static final void method5736(Class477 class477, int i) {
		Class480 class480 = (((Class477) class477).aBool6510 ? ((Class477) class477).aClass480_6506 : ((Class477) class477).aClass480_6492);
		Class35 class35 = ((Class480) class480).aClass35_6531;
		Class118 class118 = ((Class480) class480).aClass118_6532;
		Class321.method6287(class35, class118, class477, -1149844884);
	}

	static final void method5737(Class477 class477, int i) {
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class564.method12230(1349814858).method132(-2081970439);
	}

	static void method5738(Class35 class35, int i, int i_3_, int i_4_) {
		if (0 == class35.aByte513)
			class35.anInt492 = class35.anInt468 * -1017884749;
		else if (class35.aByte513 == 1)
			class35.anInt492 = (-511399061 * class35.anInt468 + (i - class35.anInt557 * 566760625) / 2) * 1856997081;
		else if (2 == class35.aByte513)
			class35.anInt492 = 1856997081 * (i - 566760625 * class35.anInt557 - -511399061 * class35.anInt468);
		else if (class35.aByte513 == 3)
			class35.anInt492 = 1856997081 * (i * (class35.anInt468 * -511399061) >> 14);
		else if (class35.aByte513 == 4)
			class35.anInt492 = ((i - class35.anInt557 * 566760625) / 2 + (i * (-511399061 * class35.anInt468) >> 14)) * 1856997081;
		else
			class35.anInt492 = (i - 566760625 * class35.anInt557 - (-511399061 * class35.anInt468 * i >> 14)) * 1856997081;
		if (class35.aByte466 == 0)
			class35.anInt473 = -87746495 * class35.anInt469;
		else if (class35.aByte466 == 1)
			class35.anInt473 = ((i_3_ - 334998921 * class35.anInt475) / 2 + class35.anInt469 * 1419896751) * -169080049;
		else if (2 == class35.aByte466)
			class35.anInt473 = -169080049 * (i_3_ - 334998921 * class35.anInt475 - class35.anInt469 * 1419896751);
		else if (3 == class35.aByte466)
			class35.anInt473 = -169080049 * (i_3_ * (class35.anInt469 * 1419896751) >> 14);
		else if (4 == class35.aByte466)
			class35.anInt473 = ((i_3_ * (1419896751 * class35.anInt469) >> 14) + (i_3_ - 334998921 * class35.anInt475) / 2) * -169080049;
		else
			class35.anInt473 = (i_3_ - class35.anInt475 * 334998921 - (class35.anInt469 * 1419896751 * i_3_ >> 14)) * -169080049;
		if (client.aBool8196 && (client.method13377(class35).anInt9686 * 804763751 != 0 || class35.anInt439 * 636438009 == 0)) {
			if (class35.anInt492 * -2022008471 < 0)
				class35.anInt492 = 0;
			else if ((-2022008471 * class35.anInt492 + 566760625 * class35.anInt557) > i)
				class35.anInt492 = (i - class35.anInt557 * 566760625) * 1856997081;
			if (class35.anInt473 * -713587729 < 0)
				class35.anInt473 = 0;
			else if ((class35.anInt473 * -713587729 + 334998921 * class35.anInt475) > i_3_)
				class35.anInt473 = -169080049 * (i_3_ - 334998921 * class35.anInt475);
		}
	}

	public static final void method5739(int i) {
		for (int i_5_ = 0; i_5_ < 5; i_5_++)
			client.aBoolArray8279[i_5_] = false;
		client.anInt8062 = -773181809;
		client.anInt8081 = -1907330419;
		Class510.anInt6799 = 0;
		anInt4283 = 0;
		Class239.anInt2825 = 1448896265;
		Class65.anInt1036 = -968757659;
		Class446.anInt6342 = -1659872419;
		client.anInt8267 = client.anInt8021 * 2047859769;
		Class162_Sub1.anInt9290 = 302721749 * Class92_Sub14.anInt8754;
		Class523.anInt6988 = Class193.anInt2310 * -974342173;
		Class92_Sub9.anInt8728 = Class348_Sub3.anInt10169 * -41974337;
		Class245.anInt3967 = 1841100537 * Class244.anInt3965;
		Class587_Sub46.anInt9899 = Class596.anInt7730 * -117878525;
		Class401.anInt5753 = 880419557 * client.anInt8140;
	}

	static final boolean method5740(char c, byte i) {
		if (Character.isISOControl(c))
			return false;
		if (Class36.method1099(c, 1089702148))
			return true;
		char[] cs = Class622.aCharArray7955;
		for (int i_6_ = 0; i_6_ < cs.length; i_6_++) {
			char c_7_ = cs[i_6_];
			if (c == c_7_)
				return true;
		}
		cs = Class622.aCharArray7953;
		for (int i_8_ = 0; i_8_ < cs.length; i_8_++) {
			char c_9_ = cs[i_8_];
			if (c_9_ == c)
				return true;
		}
		return false;
	}

	static final void method5741(Class477 class477, byte i) {
		int i_10_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		Class35 class35 = Class109.method2606(i_10_, 972236169);
		Class118 class118 = Class35.aClass118Array464[i_10_ >> 16];
		Class553.method12072(class35, class118, class477, 761991136);
	}
}
