/* Class47 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.net.InetAddress;
import java.net.UnknownHostException;

import jaclib.ping.Ping;

public class Class47 implements Runnable
{
    String aString594;
    InetAddress anInetAddress595;
    volatile long aLong596 = -413703904764949517L;
    volatile boolean aBool597 = true;
    
    public void method882() {
	while (((Class47) this).aBool597)
	    method886(-1322168111);
    }
    
    void method883(String string, byte i) {
	((Class47) this).aString594 = string;
	((Class47) this).anInetAddress595 = null;
	((Class47) this).aLong596 = -413703904764949517L;
	if (null != ((Class47) this).aString594) {
	    try {
		((Class47) this).anInetAddress595
		    = InetAddress.getByName(((Class47) this).aString594);
	    } catch (UnknownHostException unknownhostexception) {
		/* empty */
	    }
	}
    }
    
    void method884() {
	((Class47) this).aBool597 = false;
    }
    
    void method885(int i) {
	((Class47) this).aBool597 = false;
    }
    
    public void run() {
	while (((Class47) this).aBool597)
	    method886(-803730933);
    }
    
    void method886(int i) {
	if (((Class47) this).anInetAddress595 != null) {
	    try {
		byte[] is = ((Class47) this).anInetAddress595.getAddress();
		((Class47) this).aLong596
		    = (long) Ping.method554(is[0], is[1], is[2], is[3],
					    10000L) * 413703904764949517L;
	    } catch (Throwable throwable) {
		/* empty */
	    }
	}
	Class118.method1565(1000L);
    }
    
    void method887(String string) {
	((Class47) this).aString594 = string;
	((Class47) this).anInetAddress595 = null;
	((Class47) this).aLong596 = -413703904764949517L;
	if (null != ((Class47) this).aString594) {
	    try {
		((Class47) this).anInetAddress595
		    = InetAddress.getByName(((Class47) this).aString594);
	    } catch (UnknownHostException unknownhostexception) {
		/* empty */
	    }
	}
    }
    
    long method888(byte i) {
	return -1097049543700481339L * ((Class47) this).aLong596;
    }
    
    long method889() {
	return -1097049543700481339L * ((Class47) this).aLong596;
    }
    
    Class47() {
	/* empty */
    }
    
    long method890() {
	return -1097049543700481339L * ((Class47) this).aLong596;
    }
    
    long method891() {
	return -1097049543700481339L * ((Class47) this).aLong596;
    }
    
    void method892() {
	((Class47) this).aBool597 = false;
    }
    
    void method893(String string) {
	((Class47) this).aString594 = string;
	((Class47) this).anInetAddress595 = null;
	((Class47) this).aLong596 = -413703904764949517L;
	if (null != ((Class47) this).aString594) {
	    try {
		((Class47) this).anInetAddress595
		    = InetAddress.getByName(((Class47) this).aString594);
	    } catch (UnknownHostException unknownhostexception) {
		/* empty */
	    }
	}
    }
    
    public void method894() {
	while (((Class47) this).aBool597)
	    method886(363780520);
    }
    
    void method895() {
	if (((Class47) this).anInetAddress595 != null) {
	    try {
		byte[] is = ((Class47) this).anInetAddress595.getAddress();
		((Class47) this).aLong596
		    = (long) Ping.method554(is[0], is[1], is[2], is[3],
					    10000L) * 413703904764949517L;
	    } catch (Throwable throwable) {
		/* empty */
	    }
	}
	Class118.method1565(1000L);
    }
    
    public static int method896(int i) {
	if (0 == 1161573955 * Class397.anInt4548) {
	    Class8.aClass8_53.method551(new Class404("jaclib"), -1361756129);
	    if (Class8.aClass8_53.method544((short) 256).method25((byte) 126)
		!= 100)
		return 1;
	    if (!((Class404) Class8.aClass8_53.method544((short) 256))
		     .method4914(603571529)
		&& !Class432.method5291(875038119)) {
		try {
		    Class51.aclient617.method5850(681070186);
		    Class206.method3011(-40654783);
		    Ping.init();
		} catch (Exception_Sub5 exception_sub5) {
		    Class240.method3441(Class3.aClass3_20,
					exception_sub5.aString11035,
					(exception_sub5.anInt11036
					 * -1471056865),
					exception_sub5.getCause(), 1947617887);
		} catch (Throwable throwable) {
		    /* empty */
		}
	    }
	    Class397.anInt4548 = -1399503253;
	}
	if (Class397.anInt4548 * 1161573955 == 1) {
	    Class397.aClass8Array4549 = Class8.method546(1295801497);
	    Class8.aClass8_78.method551(new Class412(Class84.aClass411_1198),
					-1506368427);
	    Class8.aClass8_75.method551(new Class404("jaggl"), -1572656671);
	    Class404 class404 = new Class404("jagdx");
	    if (!Class198.aString2126.startsWith("win"))
		class404.method4916(-1781322025);
	    Class8.aClass8_55.method551(class404, -1505171195);
	    Class8.aClass8_56.method551(new Class404("sw3d"), -1667789952);
	    Class8.aClass8_79.method551(new Class404("hw3d"), -1481574186);
	    Class8.aClass8_58.method551(new Class412(Class645.aClass411_8229),
					-1558465914);
	    Class8.aClass8_57.method551(new Class412(Class625.aClass411_8101),
					-982435401);
	    Class8.aClass8_64.method551(new Class412(Class58.aClass411_657),
					-855667804);
	    Class8.aClass8_65.method551(new Class412(Class76.aClass411_1088),
					-1843689045);
	    Class8.aClass8_62.method551(new Class412(Class282.aClass411_3261),
					-868594923);
	    Class8.aClass8_63.method551(new Class412(Class544.aClass411_7360),
					-1362980471);
	    Class8.aClass8_54.method551(new Class412(Class608.aClass411_7992),
					-1239494468);
	    Class8.aClass8_72.method551(new Class412(Class4.aClass411_28),
					-2115063054);
	    Class8.aClass8_66.method551(new Class412(Class122_Sub2
						     .aClass411_8856),
					-733103532);
	    Class8.aClass8_67.method551(new Class412(Class496.aClass411_6766),
					-839977287);
	    Class8.aClass8_68.method551(new Class412(Class621.aClass411_8080),
					-1520723498);
	    Class8.aClass8_69.method551(new Class412(Class487_Sub41
						     .aClass411_10488),
					-1473038942);
	    Class8.aClass8_70.method551(new Class412(Class204.aClass411_2142),
					-1510316859);
	    Class8.aClass8_71.method551(new Class412(Class598.aClass411_7902),
					-688197954);
	    Class8.aClass8_59.method551(new Class413(Class365.aClass411_3994,
						     "huffman"),
					-814014918);
	    Class8.aClass8_73.method551(new Class412(Class279.aClass411_3239),
					-1127981182);
	    Class8.aClass8_74.method551(new Class412(Class666.aClass411_8446),
					-1311453435);
	    Class8.aClass8_61.method551(new Class412(Class297_Sub1
						     .aClass411_9797),
					-1609886002);
	    Class8.aClass8_52.method551(new Class417(Class553.aClass411_7508,
						     0),
					-1674904800);
	    for (int i_0_ = 0; i_0_ < Class397.aClass8Array4549.length;
		 i_0_++) {
		if (Class397.aClass8Array4549[i_0_].method544((short) 256)
		    == null)
		    throw new RuntimeException();
	    }
	    int i_1_ = 0;
	    Class8[] class8s = Class397.aClass8Array4549;
	    for (int i_2_ = 0; i_2_ < class8s.length; i_2_++) {
		Class8 class8 = class8s[i_2_];
		int i_3_ = class8.method541((short) -19379);
		int i_4_ = class8.method544((short) 256).method25((byte) 127);
		i_1_ += i_3_ * i_4_ / 100;
	    }
	    Class397.anInt4550 = i_1_ * -1500051163;
	    Class397.anInt4548 = 1495960790;
	}
	if (null == Class397.aClass8Array4549)
	    return 100;
	int i_5_ = 0;
	int i_6_ = 0;
	boolean bool = true;
	Class8[] class8s = Class397.aClass8Array4549;
	for (int i_7_ = 0; i_7_ < class8s.length; i_7_++) {
	    Class8 class8 = class8s[i_7_];
	    int i_8_ = class8.method541((short) -1549);
	    int i_9_ = class8.method544((short) 256).method25((byte) 118);
	    if (i_9_ < 100)
		bool = false;
	    i_5_ += i_8_;
	    i_6_ += i_9_ * i_8_ / 100;
	}
	if (bool)
	    Class397.aClass8Array4549 = null;
	i_6_ -= -1705514323 * Class397.anInt4550;
	i_5_ -= Class397.anInt4550 * -1705514323;
	int i_10_ = i_5_ > 0 ? i_6_ * 100 / i_5_ : 100;
	if (!bool && i_10_ > 99)
	    i_10_ = 99;
	return i_10_;
    }
    
    static final void method897(Class612 class612, int i) {
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = 685460351 * Class521.anInt7185;
    }
    
    static void method898(Class487_Sub13 class487_sub13, int i, int i_11_) {
	Object[] objects = class487_sub13.anObjectArray10172;
	int i_12_ = ((Integer) objects[0]).intValue();
	Class487_Sub35_Sub15 class487_sub35_sub15
	    = Class200.method2977(i_12_, -2134928484);
	if (null != class487_sub35_sub15) {
	    Class612 class612 = Class653.method7776(-1435684560);
	    ((Class612) class612).anIntArray8023
		= new int[class487_sub35_sub15.anInt11467 * 1029100355];
	    int i_13_ = 0;
	    ((Class612) class612).anObjectArray8025
		= new String[42167939 * class487_sub35_sub15.anInt11468];
	    int i_14_ = 0;
	    ((Class612) class612).aLongArray8018
		= new long[-1074450047 * class487_sub35_sub15.anInt11462];
	    int i_15_ = 0;
	    for (int i_16_ = 1; i_16_ < objects.length; i_16_++) {
		if (objects[i_16_] instanceof Integer) {
		    int i_17_ = ((Integer) objects[i_16_]).intValue();
		    if (-2147483647 == i_17_)
			i_17_ = class487_sub13.anInt10171 * 2102160625;
		    if (-2147483646 == i_17_)
			i_17_ = -31884209 * class487_sub13.anInt10168;
		    if (-2147483645 == i_17_)
			i_17_ = (class487_sub13.aClass211_10169 != null
				 ? (class487_sub13.aClass211_10169.anInt2393
				    * -612115075)
				 : -1);
		    if (i_17_ == -2147483644)
			i_17_ = class487_sub13.anInt10170 * -23051275;
		    if (i_17_ == -2147483643)
			i_17_ = (class487_sub13.aClass211_10169 != null
				 ? (741091239
				    * class487_sub13.aClass211_10169.anInt2245)
				 : -1);
		    if (-2147483642 == i_17_)
			i_17_ = (null != class487_sub13.aClass211_10173
				 ? (-612115075
				    * class487_sub13.aClass211_10173.anInt2393)
				 : -1);
		    if (i_17_ == -2147483641)
			i_17_ = (class487_sub13.aClass211_10173 != null
				 ? (class487_sub13.aClass211_10173.anInt2245
				    * 741091239)
				 : -1);
		    if (i_17_ == -2147483640)
			i_17_ = 808514059 * class487_sub13.anInt10174;
		    if (-2147483639 == i_17_)
			i_17_ = class487_sub13.anInt10175 * -1647303051;
		    ((Class612) class612).anIntArray8023[i_13_++] = i_17_;
		} else if (objects[i_16_] instanceof String) {
		    String string = (String) objects[i_16_];
		    if (string.equals("event_opbase"))
			string = class487_sub13.aString10176;
		    ((Class612) class612).anObjectArray8025[i_14_++] = string;
		} else if (objects[i_16_] instanceof Long) {
		    long l = ((Long) objects[i_16_]).longValue();
		    ((Class612) class612).aLongArray8018[i_15_++] = l;
		}
	    }
	    ((Class612) class612).anInt8039
		= ((Class487_Sub13) class487_sub13).anInt10177 * -874410347;
	    Class579.method7059(class487_sub35_sub15, i, class612, 1233599991);
	    ((Class612) class612).anInt8039 = 0;
	}
    }
    
    static final void method899
	(Class590_Sub1_Sub5_Sub1 class590_sub1_sub5_sub1, int i) {
	if (class590_sub1_sub5_sub1.anIntArray11593 != null
	    || null != class590_sub1_sub5_sub1.anIntArray11628) {
	    boolean bool = true;
	    Class546 class546 = client.aClass452_10749.method5499((byte) 82);
	    for (int i_18_ = 0;
		 i_18_ < class590_sub1_sub5_sub1.anIntArray11593.length;
		 i_18_++) {
		int i_19_ = -1;
		if (null != class590_sub1_sub5_sub1.anIntArray11593)
		    i_19_ = class590_sub1_sub5_sub1.anIntArray11593[i_18_];
		if (i_19_ == -1) {
		    if (!class590_sub1_sub5_sub1.method10557(i_18_, -1,
							     1638027260))
			bool = false;
		} else {
		    bool = false;
		    boolean bool_20_ = false;
		    boolean bool_21_ = false;
		    Class396 class396
			= class590_sub1_sub5_sub1.method7182().aClass396_4540;
		    int i_22_;
		    int i_23_;
		    if (-1073741824 == (i_19_ & ~0x3fffffff)) {
			int i_24_ = i_19_ & 0xfffffff;
			int i_25_ = i_24_ >> 14;
			int i_26_ = i_24_ & 0x3fff;
			i_22_ = ((int) class396.aFloat4545
				 - (256 + ((i_25_
					    - -494362861 * class546.anInt7397)
					   * 512)));
			i_23_ = ((int) class396.aFloat4547
				 - (256 + ((i_26_
					    - class546.anInt7398 * 1139830351)
					   * 512)));
		    } else if (0 != (i_19_ & 0x8000)) {
			int i_27_ = i_19_ & 0x7fff;
			Class590_Sub1_Sub5_Sub1_Sub2 class590_sub1_sub5_sub1_sub2
			    = (client.aClass590_Sub1_Sub5_Sub1_Sub2Array10838
			       [i_27_]);
			if (class590_sub1_sub5_sub1_sub2 != null) {
			    Class396 class396_28_
				= (class590_sub1_sub5_sub1_sub2.method7182()
				   .aClass396_4540);
			    i_22_ = ((int) class396.aFloat4545
				     - (int) class396_28_.aFloat4545);
			    i_23_ = ((int) class396.aFloat4547
				     - (int) class396_28_.aFloat4547);
			} else {
			    class590_sub1_sub5_sub1.method10557(i_18_, -1,
								2045077213);
			    continue;
			}
		    } else {
			Class487_Sub24 class487_sub24
			    = (Class487_Sub24) client.aClass666_10733
						   .method7918((long) i_19_);
			if (null != class487_sub24) {
			    Class590_Sub1_Sub5_Sub1_Sub1 class590_sub1_sub5_sub1_sub1
				= ((Class590_Sub1_Sub5_Sub1_Sub1)
				   class487_sub24.anObject10235);
			    Class396 class396_29_
				= (class590_sub1_sub5_sub1_sub1.method7182()
				   .aClass396_4540);
			    i_22_ = ((int) class396.aFloat4545
				     - (int) class396_29_.aFloat4545);
			    i_23_ = ((int) class396.aFloat4547
				     - (int) class396_29_.aFloat4547);
			} else {
			    class590_sub1_sub5_sub1.method10557(i_18_, -1,
								1974943761);
			    continue;
			}
		    }
		    if (i_22_ != 0 || 0 != i_23_)
			class590_sub1_sub5_sub1.method10557
			    (i_18_,
			     (int) (Math.atan2((double) i_22_, (double) i_23_)
				    * 2607.5945876176133) & 0x3fff,
			     1744072034);
		}
	    }
	    if (bool) {
		class590_sub1_sub5_sub1.anIntArray11593 = null;
		class590_sub1_sub5_sub1.anIntArray11628 = null;
	    }
	}
    }
}
