/* Class466 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.net.InetAddress;
import java.util.LinkedList;
import java.util.Queue;

import jaclib.ping.Ping;

public class Class466 implements Runnable
{
    Object anObject6365 = new Object();
    Thread aThread6366;
    Queue aQueue6367 = new LinkedList();
    static Class194 aClass194_6368;
    static int anInt6369;
    public static int anInt6370;
    
    public void method8292() {
	if (null != ((Class466) this).aThread6366) {
	    method8298(((Class466) this).anObject6365, (short) 16547);
	    try {
		((Class466) this).aThread6366.join();
	    } catch (InterruptedException interruptedexception) {
		/* empty */
	    }
	    ((Class466) this).aThread6366 = null;
	}
    }
    
    public Class485 method8293(String string, int i) {
	if (null == ((Class466) this).aThread6366)
	    throw new IllegalStateException("");
	if (null == string)
	    throw new IllegalArgumentException("");
	Class485 class485 = new Class485(string);
	method8298(class485, (short) 30673);
	return class485;
    }
    
    public void method8294(byte i) {
	if (null != ((Class466) this).aThread6366) {
	    method8298(((Class466) this).anObject6365, (short) 25312);
	    try {
		((Class466) this).aThread6366.join();
	    } catch (InterruptedException interruptedexception) {
		/* empty */
	    }
	    ((Class466) this).aThread6366 = null;
	}
    }
    
    public void method8295() {
	for (;;) {
	    Class485 class485;
	    synchronized (((Class466) this).aQueue6367) {
		Object object;
		for (object = ((Class466) this).aQueue6367.poll();
		     null == object;
		     object = ((Class466) this).aQueue6367.poll()) {
		    try {
			((Class466) this).aQueue6367.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class466) this).anObject6365)
		    break;
		class485 = (Class485) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class485) class485).aString6483).getAddress();
		i = Ping.method984(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class485.anInt6484 = -1874075957 * i;
	}
    }
    
    public Class466() {
	((Class466) this).aThread6366 = new Thread(this);
	((Class466) this).aThread6366.setDaemon(true);
	((Class466) this).aThread6366.start();
    }
    
    public void method8296() {
	for (;;) {
	    Class485 class485;
	    synchronized (((Class466) this).aQueue6367) {
		Object object;
		for (object = ((Class466) this).aQueue6367.poll();
		     null == object;
		     object = ((Class466) this).aQueue6367.poll()) {
		    try {
			((Class466) this).aQueue6367.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class466) this).anObject6365)
		    break;
		class485 = (Class485) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class485) class485).aString6483).getAddress();
		i = Ping.method984(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class485.anInt6484 = -1874075957 * i;
	}
    }
    
    public void run() {
	for (;;) {
	    Class485 class485;
	    synchronized (((Class466) this).aQueue6367) {
		Object object;
		for (object = ((Class466) this).aQueue6367.poll();
		     null == object;
		     object = ((Class466) this).aQueue6367.poll()) {
		    try {
			((Class466) this).aQueue6367.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class466) this).anObject6365)
		    break;
		class485 = (Class485) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class485) class485).aString6483).getAddress();
		i = Ping.method984(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class485.anInt6484 = -1874075957 * i;
	}
    }
    
    public void method8297() {
	for (;;) {
	    Class485 class485;
	    synchronized (((Class466) this).aQueue6367) {
		Object object;
		for (object = ((Class466) this).aQueue6367.poll();
		     null == object;
		     object = ((Class466) this).aQueue6367.poll()) {
		    try {
			((Class466) this).aQueue6367.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class466) this).anObject6365)
		    break;
		class485 = (Class485) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class485) class485).aString6483).getAddress();
		i = Ping.method984(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class485.anInt6484 = -1874075957 * i;
	}
    }
    
    void method8298(Object object, short i) {
	synchronized (((Class466) this).aQueue6367) {
	    ((Class466) this).aQueue6367.add(object);
	    ((Class466) this).aQueue6367.notify();
	}
    }
    
    public Class485 method8299(String string) {
	if (null == ((Class466) this).aThread6366)
	    throw new IllegalStateException("");
	if (null == string)
	    throw new IllegalArgumentException("");
	Class485 class485 = new Class485(string);
	method8298(class485, (short) 32489);
	return class485;
    }
    
    public void method8300() {
	for (;;) {
	    Class485 class485;
	    synchronized (((Class466) this).aQueue6367) {
		Object object;
		for (object = ((Class466) this).aQueue6367.poll();
		     null == object;
		     object = ((Class466) this).aQueue6367.poll()) {
		    try {
			((Class466) this).aQueue6367.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class466) this).anObject6365)
		    break;
		class485 = (Class485) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class485) class485).aString6483).getAddress();
		i = Ping.method984(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class485.anInt6484 = -1874075957 * i;
	}
    }
    
    public Class485 method8301(String string) {
	if (null == ((Class466) this).aThread6366)
	    throw new IllegalStateException("");
	if (null == string)
	    throw new IllegalArgumentException("");
	Class485 class485 = new Class485(string);
	method8298(class485, (short) 29267);
	return class485;
    }
    
    public void method8302() {
	if (null != ((Class466) this).aThread6366) {
	    method8298(((Class466) this).anObject6365, (short) 30223);
	    try {
		((Class466) this).aThread6366.join();
	    } catch (InterruptedException interruptedexception) {
		/* empty */
	    }
	    ((Class466) this).aThread6366 = null;
	}
    }
    
    public Class485 method8303(String string) {
	if (null == ((Class466) this).aThread6366)
	    throw new IllegalStateException("");
	if (null == string)
	    throw new IllegalArgumentException("");
	Class485 class485 = new Class485(string);
	method8298(class485, (short) 18915);
	return class485;
    }
    
    void method8304(Object object) {
	synchronized (((Class466) this).aQueue6367) {
	    ((Class466) this).aQueue6367.add(object);
	    ((Class466) this).aQueue6367.notify();
	}
    }
    
    void method8305(Object object) {
	synchronized (((Class466) this).aQueue6367) {
	    ((Class466) this).aQueue6367.add(object);
	    ((Class466) this).aQueue6367.notify();
	}
    }
    
    void method8306(Object object) {
	synchronized (((Class466) this).aQueue6367) {
	    ((Class466) this).aQueue6367.add(object);
	    ((Class466) this).aQueue6367.notify();
	}
    }
    
    void method8307(Object object) {
	synchronized (((Class466) this).aQueue6367) {
	    ((Class466) this).aQueue6367.add(object);
	    ((Class466) this).aQueue6367.notify();
	}
    }
    
    static final void method8308(Class479 class479, byte i) {
	int i_0_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	Class117 class117 = Class70.method1756(i_0_, (byte) 76);
	if (null == class117.aString1460)
	    ((Class479) class479).anObjectArray6437
		[((((Class479) class479).anInt6432 += -1049632545) * -611591393
		  - 1)]
		= "";
	else
	    ((Class479) class479).anObjectArray6437
		[((((Class479) class479).anInt6432 += -1049632545) * -611591393
		  - 1)]
		= class117.aString1460;
    }
    
    static final void method8309(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = (int) client.aFloat8228 >> 3;
    }
    
    static final void method8310(Class479 class479, int i) {
	int i_1_ = (((Class479) class479).anIntArray6435
		    [((((Class479) class479).anInt6442 -= -1158629699)
		      * -117934955)]);
	((Class479) class479).anInt6432 -= -2099265090;
	String string
	    = (String) (((Class479) class479).anObjectArray6437
			[((Class479) class479).anInt6432 * -611591393]);
	String string_2_
	    = (String) (((Class479) class479).anObjectArray6437
			[-611591393 * ((Class479) class479).anInt6432 + 1]);
	if (string.length() <= 500 && string_2_.length() <= 500)
	    Class570.method12622(i_1_, string, string_2_, (byte) 98);
    }
    
    static boolean method8311(int i) {
	if (client.aByteArray8117 != null)
	    return Class492.method11200((byte) -92);
	if (803013737 * Class19.anInt136 != -1)
	    return Class319.method6229(1983846709);
	return Class575.method12695(Class19.aString166, Class19.aString167,
				    464242399);
    }
    
    public static final void method8312(int i) {
	Class194 class194 = Class489.method11175(1749689597);
	Class243_Sub43 class243_sub43
	    = Class529.method11818(Class326.aClass326_4836,
				   class194.aClass432_2312, (short) 255);
	class243_sub43.aClass243_Sub10_Sub1_9988.method14800(0, 272691166);
	class194.method4175(class243_sub43, (byte) 42);
    }
}
