/* IcmpService_Sub1 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import jaclib.ping.IcmpService;

public class IcmpService_Sub1 extends IcmpService {
	static volatile IcmpService_Sub1 anIcmpService_Sub1_8421;
	List aList8422 = new ArrayList();

	IcmpService_Sub1() {
		/* empty */
	}

	public static boolean method14079() {
		do {
			boolean bool;
			try {
				if (available())
					break;
				bool = false;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		} while (false);
		if (null != anIcmpService_Sub1_8421)
			throw new IllegalStateException("");
		anIcmpService_Sub1_8421 = new IcmpService_Sub1();
		Thread thread = new Thread(new Class474());
		thread.setDaemon(true);
		thread.start();
		return true;
	}

	protected void notify(int i, int i_0_, int i_1_) {
		Iterator iterator = ((IcmpService_Sub1) this).aList8422.iterator();
		while (iterator.hasNext()) {
			Interface49 interface49 = (Interface49) iterator.next();
			interface49.method340(i, i_0_, i_1_, -208393570);
		}
	}

	public static void method14080(Interface49 interface49) {
		if (anIcmpService_Sub1_8421 == null)
			throw new IllegalStateException("");
		((IcmpService_Sub1) anIcmpService_Sub1_8421).aList8422.add(interface49);
	}

	protected void notify(int i) {
		Iterator iterator = ((IcmpService_Sub1) this).aList8422.iterator();
		while (iterator.hasNext()) {
			Interface49 interface49 = (Interface49) iterator.next();
			interface49.method342(0 == i, (byte) -37);
		}
	}

	public static boolean method14081() {
		do {
			boolean bool;
			try {
				if (available())
					break;
				bool = false;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		} while (false);
		if (null != anIcmpService_Sub1_8421)
			throw new IllegalStateException("");
		anIcmpService_Sub1_8421 = new IcmpService_Sub1();
		Thread thread = new Thread(new Class474());
		thread.setDaemon(true);
		thread.start();
		return true;
	}

	public static void method14082(Interface49 interface49) {
		if (anIcmpService_Sub1_8421 == null)
			throw new IllegalStateException("");
		((IcmpService_Sub1) anIcmpService_Sub1_8421).aList8422.add(interface49);
	}

	protected void method12874(int i, int i_2_, int i_3_) {
		Iterator iterator = ((IcmpService_Sub1) this).aList8422.iterator();
		while (iterator.hasNext()) {
			Interface49 interface49 = (Interface49) iterator.next();
			interface49.method340(i, i_2_, i_3_, -208393570);
		}
	}

	public static boolean method14083() {
		do {
			boolean bool;
			try {
				if (available())
					break;
				bool = false;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		} while (false);
		if (null != anIcmpService_Sub1_8421)
			throw new IllegalStateException("");
		anIcmpService_Sub1_8421 = new IcmpService_Sub1();
		Thread thread = new Thread(new Class474());
		thread.setDaemon(true);
		thread.start();
		return true;
	}

	public static void method14084() {
		if (null != anIcmpService_Sub1_8421) {
			try {
				anIcmpService_Sub1_8421.quit();
			} catch (Throwable throwable) {
				/* empty */
			}
			anIcmpService_Sub1_8421 = null;
		}
	}

	public static void method14085() {
		if (null != anIcmpService_Sub1_8421) {
			try {
				anIcmpService_Sub1_8421.quit();
			} catch (Throwable throwable) {
				/* empty */
			}
			anIcmpService_Sub1_8421 = null;
		}
	}

	public static boolean method14086() {
		do {
			boolean bool;
			try {
				if (available())
					break;
				bool = false;
			} catch (Throwable throwable) {
				return false;
			}
			return bool;
		} while (false);
		if (null != anIcmpService_Sub1_8421)
			throw new IllegalStateException("");
		anIcmpService_Sub1_8421 = new IcmpService_Sub1();
		Thread thread = new Thread(new Class474());
		thread.setDaemon(true);
		thread.start();
		return true;
	}

	protected void method12873(int i) {
		Iterator iterator = ((IcmpService_Sub1) this).aList8422.iterator();
		while (iterator.hasNext()) {
			Interface49 interface49 = (Interface49) iterator.next();
			interface49.method342(0 == i, (byte) 7);
		}
	}

	static final void method14087(Class477 class477, byte i) {
		((Class477) class477).anInt6498 -= -1140365234;
		int i_4_ = (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127]);
		int i_5_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498 + 1]);
		Class587_Sub34_Sub13 class587_sub34_sub13 = Class478.aClass210_6524.method4424(i_4_, -1984024804);
		int i_6_ = class587_sub34_sub13.anIntArray10741[i_5_];
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = i_6_;
	}

	static final void method14088(Class477 class477, int i) {
		int i_7_ = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = Class92_Sub20.aClass587_Sub11_10075.aClass441_Sub32_8630.method7935(i_7_, (byte) -109);
	}
}
