/* Class599 - 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 Class599 implements Runnable
{
    Thread aThread7903;
    Object anObject7904 = new Object();
    Queue aQueue7905 = new LinkedList();
    
    public Class599() {
	((Class599) this).aThread7903 = new Thread(this);
	((Class599) this).aThread7903.setDaemon(true);
	((Class599) this).aThread7903.start();
    }
    
    public Class588 method7302(String string, int i) {
	if (null == ((Class599) this).aThread7903)
	    throw new IllegalStateException("");
	if (null == string)
	    throw new IllegalArgumentException("");
	Class588 class588 = new Class588(string);
	method7304(class588, (byte) 0);
	return class588;
    }
    
    public void method7303(int i) {
	if (((Class599) this).aThread7903 != null) {
	    method7304(((Class599) this).anObject7904, (byte) 0);
	    try {
		((Class599) this).aThread7903.join();
	    } catch (InterruptedException interruptedexception) {
		/* empty */
	    }
	    ((Class599) this).aThread7903 = null;
	}
    }
    
    public void run() {
	for (;;) {
	    Class588 class588;
	    synchronized (((Class599) this).aQueue7905) {
		Object object;
		for (object = ((Class599) this).aQueue7905.poll();
		     null == object;
		     object = ((Class599) this).aQueue7905.poll()) {
		    try {
			((Class599) this).aQueue7905.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class599) this).anObject7904)
		    break;
		class588 = (Class588) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class588) class588).aString7854).getAddress();
		i = Ping.method554(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class588.anInt7853 = i * -272815663;
	}
    }
    
    void method7304(Object object, byte i) {
	synchronized (((Class599) this).aQueue7905) {
	    ((Class599) this).aQueue7905.add(object);
	    ((Class599) this).aQueue7905.notify();
	}
    }
    
    public void method7305() {
	for (;;) {
	    Class588 class588;
	    synchronized (((Class599) this).aQueue7905) {
		Object object;
		for (object = ((Class599) this).aQueue7905.poll();
		     null == object;
		     object = ((Class599) this).aQueue7905.poll()) {
		    try {
			((Class599) this).aQueue7905.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class599) this).anObject7904)
		    break;
		class588 = (Class588) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class588) class588).aString7854).getAddress();
		i = Ping.method554(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class588.anInt7853 = i * -272815663;
	}
    }
    
    public void method7306() {
	for (;;) {
	    Class588 class588;
	    synchronized (((Class599) this).aQueue7905) {
		Object object;
		for (object = ((Class599) this).aQueue7905.poll();
		     null == object;
		     object = ((Class599) this).aQueue7905.poll()) {
		    try {
			((Class599) this).aQueue7905.wait();
		    } catch (InterruptedException interruptedexception) {
			/* empty */
		    }
		}
		if (object == ((Class599) this).anObject7904)
		    break;
		class588 = (Class588) object;
	    }
	    int i;
	    try {
		byte[] is
		    = InetAddress.getByName
			  (((Class588) class588).aString7854).getAddress();
		i = Ping.method554(is[0], is[1], is[2], is[3], 1000L);
	    } catch (Throwable throwable) {
		i = 1000;
	    }
	    class588.anInt7853 = i * -272815663;
	}
    }
    
    static final void method7307(Class612 class612, byte i) {
	Class625 class625 = (((Class612) class612).aBool8038
			     ? ((Class612) class612).aClass625_8045
			     : ((Class612) class612).aClass625_8029);
	Class211 class211 = ((Class625) class625).aClass211_8099;
	Class203 class203 = ((Class625) class625).aClass203_8100;
	Class504.method6250(class211, class203, true, 0, class612, 1271677378);
    }
    
    static final void method7308(Class612 class612, int i) {
	int i_0_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_0_, (short) -2802);
	Class203 class203 = Class163_Sub20.aClass203Array9719[i_0_ >> 16];
	Class10.method566(class211, class203, class612, 923814717);
    }
    
    static final void method7309(Class612 class612, byte i) {
	int i_1_ = -618700519 * Class440.anInt5049;
	int i_2_ = -1515668441 * Class649.anInt8258;
	int i_3_ = -1;
	if (Class632.aBool8130) {
	    Class644[] class644s = Class446.method5468((byte) 67);
	    for (int i_4_ = 0; i_4_ < class644s.length; i_4_++) {
		Class644 class644 = class644s[i_4_];
		if (i_1_ == class644.anInt8227 * -2052741733
		    && class644.anInt8225 * 734520995 == i_2_) {
		    i_3_ = i_4_;
		    break;
		}
	    }
	}
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = i_3_;
    }
    
    public static void method7310(int i) {
	if (-12846323 * Class584.aClass677_7830.anInt8546 != -1)
	    Class171.method2607(Class584.aClass677_7830.anInt8546 * -12846323,
				Class584.aClass677_7830.aString8548,
				1063980409);
    }
    
    static final void method7311(Class612 class612, int i) {
	int i_5_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_5_, (short) -3759);
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = class211.anInt2417 * 547576569;
    }
}
