/* Class610 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.lang.ref.ReferenceQueue;
import java.util.ArrayList;

public final class Class610 {
	int anInt7825;
	WeakReference_Sub1[] aWeakReference_Sub1Array7826;
	ReferenceQueue aReferenceQueue7827 = new ReferenceQueue();
	public static Class557 aClass557_7828;

	public ArrayList method12987() {
		method12991(1134903307);
		ArrayList arraylist = new ArrayList(((Class610) this).anInt7825 * 2029804407);
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		for (int i = 0; i < weakreference_sub1s.length; i++) {
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s[i]; null != weakreference_sub1; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				Object object = weakreference_sub1.get();
				if (object != null)
					arraylist.add(object);
			}
		}
		return arraylist;
	}

	public Class610() {
		((Class610) this).aWeakReference_Sub1Array7826 = new WeakReference_Sub1[16];
	}

	public void method12988(Object object, byte i) {
		if (null == object)
			throw new NullPointerException();
		method12991(1494843217);
		int i_0_ = System.identityHashCode(object);
		int i_1_ = i_0_ & ((Class610) this).aWeakReference_Sub1Array7826.length - 1;
		WeakReference_Sub1 weakreference_sub1 = ((Class610) this).aWeakReference_Sub1Array7826[i_1_];
		if (null != weakreference_sub1) {
			if (weakreference_sub1.get() == object) {
				((Class610) this).aWeakReference_Sub1Array7826[i_1_] = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				((Class610) this).anInt7825 -= 2102849095;
			} else {
				for (;;) {
					WeakReference_Sub1 weakreference_sub1_2_ = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
					if (null == weakreference_sub1_2_)
						break;
					if (weakreference_sub1_2_.get() == object) {
						((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = (((WeakReference_Sub1) weakreference_sub1_2_).aWeakReference_Sub1_10583);
						((Class610) this).anInt7825 -= 2102849095;
						break;
					}
					weakreference_sub1 = weakreference_sub1_2_;
				}
			}
		}
	}

	public ArrayList method12989(int i) {
		method12991(286998091);
		ArrayList arraylist = new ArrayList(((Class610) this).anInt7825 * 2029804407);
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		for (int i_3_ = 0; i_3_ < weakreference_sub1s.length; i_3_++) {
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s[i_3_]; null != weakreference_sub1; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				Object object = weakreference_sub1.get();
				if (object != null)
					arraylist.add(object);
			}
		}
		return arraylist;
	}

	public void method12990(Object object, Object object_4_, int i) {
		if (null == object)
			throw new NullPointerException();
		method12991(501681276);
		int i_5_ = System.identityHashCode(object);
		int i_6_ = i_5_ & ((Class610) this).aWeakReference_Sub1Array7826.length - 1;
		WeakReference_Sub1 weakreference_sub1 = ((Class610) this).aWeakReference_Sub1Array7826[i_6_];
		if (null == weakreference_sub1) {
			((Class610) this).aWeakReference_Sub1Array7826[i_6_] = new WeakReference_Sub1(object, ((Class610) this).aReferenceQueue7827, i_5_, object_4_);
			((Class610) this).anInt7825 += 2102849095;
			if (((Class610) this).anInt7825 * 2029804407 >= ((Class610) this).aWeakReference_Sub1Array7826.length)
				method12996(1417527737);
		} else {
			for (/**/; weakreference_sub1.get() != object; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				if (null == (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
					((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = new WeakReference_Sub1(object, (((Class610) this).aReferenceQueue7827), i_5_, object_4_);
					((Class610) this).anInt7825 += 2102849095;
					if (2029804407 * ((Class610) this).anInt7825 >= (((Class610) this).aWeakReference_Sub1Array7826).length)
						method12996(-1521453957);
					break;
				}
			}
		}
	}

	void method12991(int i) {
		for (;;) {
			WeakReference_Sub1 weakreference_sub1 = ((WeakReference_Sub1) ((Class610) this).aReferenceQueue7827.poll());
			if (weakreference_sub1 == null)
				break;
			int i_7_ = ((((WeakReference_Sub1) weakreference_sub1).anInt10584 * 1805067597) & (((Class610) this).aWeakReference_Sub1Array7826.length - 1));
			WeakReference_Sub1 weakreference_sub1_8_ = ((Class610) this).aWeakReference_Sub1Array7826[i_7_];
			if (weakreference_sub1 == weakreference_sub1_8_) {
				((Class610) this).aWeakReference_Sub1Array7826[i_7_] = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				((Class610) this).anInt7825 -= 2102849095;
			} else {
				for (/**/; (weakreference_sub1_8_ != null && (((WeakReference_Sub1) weakreference_sub1_8_).aWeakReference_Sub1_10583) != weakreference_sub1); weakreference_sub1_8_ = (((WeakReference_Sub1) weakreference_sub1_8_).aWeakReference_Sub1_10583)) {
					/* empty */
				}
				if (null != weakreference_sub1_8_) {
					((WeakReference_Sub1) weakreference_sub1_8_).aWeakReference_Sub1_10583 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
					((Class610) this).anInt7825 -= 2102849095;
				}
			}
		}
	}

	public void method12992(Object object, Object object_9_) {
		if (null == object)
			throw new NullPointerException();
		method12991(1591093628);
		int i = System.identityHashCode(object);
		int i_10_ = i & ((Class610) this).aWeakReference_Sub1Array7826.length - 1;
		WeakReference_Sub1 weakreference_sub1 = ((Class610) this).aWeakReference_Sub1Array7826[i_10_];
		if (null == weakreference_sub1) {
			((Class610) this).aWeakReference_Sub1Array7826[i_10_] = new WeakReference_Sub1(object, ((Class610) this).aReferenceQueue7827, i, object_9_);
			((Class610) this).anInt7825 += 2102849095;
			if (((Class610) this).anInt7825 * 2029804407 >= ((Class610) this).aWeakReference_Sub1Array7826.length)
				method12996(667152745);
		} else {
			for (/**/; weakreference_sub1.get() != object; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				if (null == (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
					((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = new WeakReference_Sub1(object, (((Class610) this).aReferenceQueue7827), i, object_9_);
					((Class610) this).anInt7825 += 2102849095;
					if (2029804407 * ((Class610) this).anInt7825 >= (((Class610) this).aWeakReference_Sub1Array7826).length)
						method12996(-362806671);
					break;
				}
			}
		}
	}

	public void method12993(Object object, Object object_11_) {
		if (null == object)
			throw new NullPointerException();
		method12991(1633850407);
		int i = System.identityHashCode(object);
		int i_12_ = i & ((Class610) this).aWeakReference_Sub1Array7826.length - 1;
		WeakReference_Sub1 weakreference_sub1 = ((Class610) this).aWeakReference_Sub1Array7826[i_12_];
		if (null == weakreference_sub1) {
			((Class610) this).aWeakReference_Sub1Array7826[i_12_] = new WeakReference_Sub1(object, ((Class610) this).aReferenceQueue7827, i, object_11_);
			((Class610) this).anInt7825 += 2102849095;
			if (((Class610) this).anInt7825 * 2029804407 >= ((Class610) this).aWeakReference_Sub1Array7826.length)
				method12996(1256718375);
		} else {
			for (/**/; weakreference_sub1.get() != object; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				if (null == (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
					((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = new WeakReference_Sub1(object, (((Class610) this).aReferenceQueue7827), i, object_11_);
					((Class610) this).anInt7825 += 2102849095;
					if (2029804407 * ((Class610) this).anInt7825 >= (((Class610) this).aWeakReference_Sub1Array7826).length)
						method12996(220995950);
					break;
				}
			}
		}
	}

	public void method12994(Object object, Object object_13_) {
		if (null == object)
			throw new NullPointerException();
		method12991(1329567846);
		int i = System.identityHashCode(object);
		int i_14_ = i & ((Class610) this).aWeakReference_Sub1Array7826.length - 1;
		WeakReference_Sub1 weakreference_sub1 = ((Class610) this).aWeakReference_Sub1Array7826[i_14_];
		if (null == weakreference_sub1) {
			((Class610) this).aWeakReference_Sub1Array7826[i_14_] = new WeakReference_Sub1(object, ((Class610) this).aReferenceQueue7827, i, object_13_);
			((Class610) this).anInt7825 += 2102849095;
			if (((Class610) this).anInt7825 * 2029804407 >= ((Class610) this).aWeakReference_Sub1Array7826.length)
				method12996(-394241348);
		} else {
			for (/**/; weakreference_sub1.get() != object; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				if (null == (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
					((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = new WeakReference_Sub1(object, (((Class610) this).aReferenceQueue7827), i, object_13_);
					((Class610) this).anInt7825 += 2102849095;
					if (2029804407 * ((Class610) this).anInt7825 >= (((Class610) this).aWeakReference_Sub1Array7826).length)
						method12996(571953811);
					break;
				}
			}
		}
	}

	public ArrayList method12995() {
		method12991(1740561700);
		ArrayList arraylist = new ArrayList(((Class610) this).anInt7825 * 2029804407);
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		for (int i = 0; i < weakreference_sub1s.length; i++) {
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s[i]; null != weakreference_sub1; weakreference_sub1 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583)) {
				Object object = weakreference_sub1.get();
				if (object != null)
					arraylist.add(object);
			}
		}
		return arraylist;
	}

	void method12996(int i) {
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		((Class610) this).aWeakReference_Sub1Array7826 = new WeakReference_Sub1[2 * weakreference_sub1s.length];
		WeakReference_Sub1[] weakreference_sub1s_15_ = weakreference_sub1s;
		for (int i_16_ = 0; i_16_ < weakreference_sub1s_15_.length; i_16_++) {
			WeakReference_Sub1 weakreference_sub1_17_;
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s_15_[i_16_]; null != weakreference_sub1; weakreference_sub1 = weakreference_sub1_17_) {
				weakreference_sub1_17_ = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				int i_18_ = ((1805067597 * ((WeakReference_Sub1) weakreference_sub1).anInt10584) & (((Class610) this).aWeakReference_Sub1Array7826.length - 1));
				((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = ((Class610) this).aWeakReference_Sub1Array7826[i_18_];
				((Class610) this).aWeakReference_Sub1Array7826[i_18_] = weakreference_sub1;
			}
		}
	}

	void method12997() {
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		((Class610) this).aWeakReference_Sub1Array7826 = new WeakReference_Sub1[2 * weakreference_sub1s.length];
		WeakReference_Sub1[] weakreference_sub1s_19_ = weakreference_sub1s;
		for (int i = 0; i < weakreference_sub1s_19_.length; i++) {
			WeakReference_Sub1 weakreference_sub1_20_;
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s_19_[i]; null != weakreference_sub1; weakreference_sub1 = weakreference_sub1_20_) {
				weakreference_sub1_20_ = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				int i_21_ = ((1805067597 * ((WeakReference_Sub1) weakreference_sub1).anInt10584) & (((Class610) this).aWeakReference_Sub1Array7826.length - 1));
				((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = ((Class610) this).aWeakReference_Sub1Array7826[i_21_];
				((Class610) this).aWeakReference_Sub1Array7826[i_21_] = weakreference_sub1;
			}
		}
	}

	void method12998() {
		WeakReference_Sub1[] weakreference_sub1s = ((Class610) this).aWeakReference_Sub1Array7826;
		((Class610) this).aWeakReference_Sub1Array7826 = new WeakReference_Sub1[2 * weakreference_sub1s.length];
		WeakReference_Sub1[] weakreference_sub1s_22_ = weakreference_sub1s;
		for (int i = 0; i < weakreference_sub1s_22_.length; i++) {
			WeakReference_Sub1 weakreference_sub1_23_;
			for (WeakReference_Sub1 weakreference_sub1 = weakreference_sub1s_22_[i]; null != weakreference_sub1; weakreference_sub1 = weakreference_sub1_23_) {
				weakreference_sub1_23_ = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				int i_24_ = ((1805067597 * ((WeakReference_Sub1) weakreference_sub1).anInt10584) & (((Class610) this).aWeakReference_Sub1Array7826.length - 1));
				((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583 = ((Class610) this).aWeakReference_Sub1Array7826[i_24_];
				((Class610) this).aWeakReference_Sub1Array7826[i_24_] = weakreference_sub1;
			}
		}
	}

	void method12999() {
		for (;;) {
			WeakReference_Sub1 weakreference_sub1 = ((WeakReference_Sub1) ((Class610) this).aReferenceQueue7827.poll());
			if (weakreference_sub1 == null)
				break;
			int i = ((((WeakReference_Sub1) weakreference_sub1).anInt10584 * 1805067597) & (((Class610) this).aWeakReference_Sub1Array7826.length - 1));
			WeakReference_Sub1 weakreference_sub1_25_ = ((Class610) this).aWeakReference_Sub1Array7826[i];
			if (weakreference_sub1 == weakreference_sub1_25_) {
				((Class610) this).aWeakReference_Sub1Array7826[i] = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
				((Class610) this).anInt7825 -= 2102849095;
			} else {
				for (/**/; (weakreference_sub1_25_ != null && (((WeakReference_Sub1) weakreference_sub1_25_).aWeakReference_Sub1_10583) != weakreference_sub1); weakreference_sub1_25_ = (((WeakReference_Sub1) weakreference_sub1_25_).aWeakReference_Sub1_10583)) {
					/* empty */
				}
				if (null != weakreference_sub1_25_) {
					((WeakReference_Sub1) weakreference_sub1_25_).aWeakReference_Sub1_10583 = (((WeakReference_Sub1) weakreference_sub1).aWeakReference_Sub1_10583);
					((Class610) this).anInt7825 -= 2102849095;
				}
			}
		}
	}

	static final void method13000(Class477 class477, int i) {
		((Class477) class477).anInt6498 -= 436935797;
		int i_26_ = (((Class477) class477).anIntArray6497[2028895127 * ((Class477) class477).anInt6498]);
		int i_27_ = (((Class477) class477).anIntArray6497[((Class477) class477).anInt6498 * 2028895127 + 1]);
		int i_28_ = (((Class477) class477).anIntArray6497[2 + 2028895127 * ((Class477) class477).anInt6498]);
		Class53.method1288(5, i_26_ << 16 | i_27_, i_28_, "", (byte) 49);
	}
}
