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

public final class Class39
{
    ReferenceQueue aReferenceQueue462 = new ReferenceQueue();
    int anInt463;
    WeakReference_Sub1[] aWeakReference_Sub1Array464
	= new WeakReference_Sub1[16];
    public static Class431 aClass431_465;
    
    public ArrayList method821(byte i) {
	method824(-1278685492);
	ArrayList arraylist
	    = new ArrayList(((Class39) this).anInt463 * 621254181);
	WeakReference_Sub1[] weakreference_sub1s
	    = ((Class39) this).aWeakReference_Sub1Array464;
	for (int i_0_ = 0; i_0_ < weakreference_sub1s.length; i_0_++) {
	    for (WeakReference_Sub1 weakreference_sub1
		     = weakreference_sub1s[i_0_];
		 null != weakreference_sub1;
		 weakreference_sub1
		     = (((WeakReference_Sub1) weakreference_sub1)
			.aWeakReference_Sub1_11534)) {
		Object object = weakreference_sub1.get();
		if (null != object)
		    arraylist.add(object);
	    }
	}
	return arraylist;
    }
    
    public void method822(Object object, Object object_1_, int i) {
	if (null == object)
	    throw new NullPointerException();
	method824(-1278685492);
	int i_2_ = System.identityHashCode(object);
	int i_3_
	    = i_2_ & ((Class39) this).aWeakReference_Sub1Array464.length - 1;
	WeakReference_Sub1 weakreference_sub1
	    = ((Class39) this).aWeakReference_Sub1Array464[i_3_];
	if (weakreference_sub1 == null) {
	    ((Class39) this).aWeakReference_Sub1Array464[i_3_]
		= new WeakReference_Sub1(object,
					 ((Class39) this).aReferenceQueue462,
					 i_2_, object_1_);
	    ((Class39) this).anInt463 += 583833005;
	    if (((Class39) this).anInt463 * 621254181
		>= ((Class39) this).aWeakReference_Sub1Array464.length)
		method823(1106429216);
	} else {
	    for (/**/; weakreference_sub1.get() != object;
		 weakreference_sub1
		     = (((WeakReference_Sub1) weakreference_sub1)
			.aWeakReference_Sub1_11534)) {
		if ((((WeakReference_Sub1) weakreference_sub1)
		     .aWeakReference_Sub1_11534)
		    == null) {
		    ((WeakReference_Sub1) weakreference_sub1)
			.aWeakReference_Sub1_11534
			= new WeakReference_Sub1(object,
						 (((Class39) this)
						  .aReferenceQueue462),
						 i_2_, object_1_);
		    ((Class39) this).anInt463 += 583833005;
		    if (((Class39) this).anInt463 * 621254181
			>= ((Class39) this).aWeakReference_Sub1Array464.length)
			method823(1523608333);
		    break;
		}
	    }
	}
    }
    
    void method823(int i) {
	WeakReference_Sub1[] weakreference_sub1s
	    = ((Class39) this).aWeakReference_Sub1Array464;
	((Class39) this).aWeakReference_Sub1Array464
	    = new WeakReference_Sub1[weakreference_sub1s.length * 2];
	WeakReference_Sub1[] weakreference_sub1s_4_ = weakreference_sub1s;
	for (int i_5_ = 0; i_5_ < weakreference_sub1s_4_.length; i_5_++) {
	    WeakReference_Sub1 weakreference_sub1_6_;
	    for (WeakReference_Sub1 weakreference_sub1
		     = weakreference_sub1s_4_[i_5_];
		 null != weakreference_sub1;
		 weakreference_sub1 = weakreference_sub1_6_) {
		weakreference_sub1_6_
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		int i_7_
		    = ((-682770727
			* ((WeakReference_Sub1) weakreference_sub1).anInt11535)
		       & (((Class39) this).aWeakReference_Sub1Array464.length
			  - 1));
		((WeakReference_Sub1) weakreference_sub1)
		    .aWeakReference_Sub1_11534
		    = ((Class39) this).aWeakReference_Sub1Array464[i_7_];
		((Class39) this).aWeakReference_Sub1Array464[i_7_]
		    = weakreference_sub1;
	    }
	}
    }
    
    void method824(int i) {
	for (;;) {
	    WeakReference_Sub1 weakreference_sub1
		= ((WeakReference_Sub1)
		   ((Class39) this).aReferenceQueue462.poll());
	    if (weakreference_sub1 == null)
		break;
	    int i_8_
		= ((((WeakReference_Sub1) weakreference_sub1).anInt11535
		    * -682770727)
		   & ((Class39) this).aWeakReference_Sub1Array464.length - 1);
	    WeakReference_Sub1 weakreference_sub1_9_
		= ((Class39) this).aWeakReference_Sub1Array464[i_8_];
	    if (weakreference_sub1 == weakreference_sub1_9_) {
		((Class39) this).aWeakReference_Sub1Array464[i_8_]
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		((Class39) this).anInt463 -= 583833005;
	    } else {
		for (/**/;
		     (weakreference_sub1_9_ != null
		      && (((WeakReference_Sub1) weakreference_sub1_9_)
			  .aWeakReference_Sub1_11534) != weakreference_sub1);
		     weakreference_sub1_9_
			 = (((WeakReference_Sub1) weakreference_sub1_9_)
			    .aWeakReference_Sub1_11534)) {
		    /* empty */
		}
		if (weakreference_sub1_9_ != null) {
		    ((WeakReference_Sub1) weakreference_sub1_9_)
			.aWeakReference_Sub1_11534
			= (((WeakReference_Sub1) weakreference_sub1)
			   .aWeakReference_Sub1_11534);
		    ((Class39) this).anInt463 -= 583833005;
		}
	    }
	}
    }
    
    public void method825(Object object, int i) {
	if (null == object)
	    throw new NullPointerException();
	method824(-1278685492);
	int i_10_ = System.identityHashCode(object);
	int i_11_
	    = i_10_ & ((Class39) this).aWeakReference_Sub1Array464.length - 1;
	WeakReference_Sub1 weakreference_sub1
	    = ((Class39) this).aWeakReference_Sub1Array464[i_11_];
	if (null != weakreference_sub1) {
	    if (weakreference_sub1.get() == object) {
		((Class39) this).aWeakReference_Sub1Array464[i_11_]
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		((Class39) this).anInt463 -= 583833005;
	    } else {
		for (;;) {
		    WeakReference_Sub1 weakreference_sub1_12_
			= (((WeakReference_Sub1) weakreference_sub1)
			   .aWeakReference_Sub1_11534);
		    if (weakreference_sub1_12_ == null)
			break;
		    if (weakreference_sub1_12_.get() == object) {
			((WeakReference_Sub1) weakreference_sub1)
			    .aWeakReference_Sub1_11534
			    = (((WeakReference_Sub1) weakreference_sub1_12_)
			       .aWeakReference_Sub1_11534);
			((Class39) this).anInt463 -= 583833005;
			break;
		    }
		    weakreference_sub1 = weakreference_sub1_12_;
		}
	    }
	}
    }
    
    void method826() {
	WeakReference_Sub1[] weakreference_sub1s
	    = ((Class39) this).aWeakReference_Sub1Array464;
	((Class39) this).aWeakReference_Sub1Array464
	    = new WeakReference_Sub1[weakreference_sub1s.length * 2];
	WeakReference_Sub1[] weakreference_sub1s_13_ = weakreference_sub1s;
	for (int i = 0; i < weakreference_sub1s_13_.length; i++) {
	    WeakReference_Sub1 weakreference_sub1_14_;
	    for (WeakReference_Sub1 weakreference_sub1
		     = weakreference_sub1s_13_[i];
		 null != weakreference_sub1;
		 weakreference_sub1 = weakreference_sub1_14_) {
		weakreference_sub1_14_
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		int i_15_
		    = ((-682770727
			* ((WeakReference_Sub1) weakreference_sub1).anInt11535)
		       & (((Class39) this).aWeakReference_Sub1Array464.length
			  - 1));
		((WeakReference_Sub1) weakreference_sub1)
		    .aWeakReference_Sub1_11534
		    = ((Class39) this).aWeakReference_Sub1Array464[i_15_];
		((Class39) this).aWeakReference_Sub1Array464[i_15_]
		    = weakreference_sub1;
	    }
	}
    }
    
    void method827() {
	for (;;) {
	    WeakReference_Sub1 weakreference_sub1
		= ((WeakReference_Sub1)
		   ((Class39) this).aReferenceQueue462.poll());
	    if (weakreference_sub1 == null)
		break;
	    int i
		= ((((WeakReference_Sub1) weakreference_sub1).anInt11535
		    * -682770727)
		   & ((Class39) this).aWeakReference_Sub1Array464.length - 1);
	    WeakReference_Sub1 weakreference_sub1_16_
		= ((Class39) this).aWeakReference_Sub1Array464[i];
	    if (weakreference_sub1 == weakreference_sub1_16_) {
		((Class39) this).aWeakReference_Sub1Array464[i]
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		((Class39) this).anInt463 -= 583833005;
	    } else {
		for (/**/;
		     (weakreference_sub1_16_ != null
		      && (((WeakReference_Sub1) weakreference_sub1_16_)
			  .aWeakReference_Sub1_11534) != weakreference_sub1);
		     weakreference_sub1_16_
			 = (((WeakReference_Sub1) weakreference_sub1_16_)
			    .aWeakReference_Sub1_11534)) {
		    /* empty */
		}
		if (weakreference_sub1_16_ != null) {
		    ((WeakReference_Sub1) weakreference_sub1_16_)
			.aWeakReference_Sub1_11534
			= (((WeakReference_Sub1) weakreference_sub1)
			   .aWeakReference_Sub1_11534);
		    ((Class39) this).anInt463 -= 583833005;
		}
	    }
	}
    }
    
    void method828() {
	for (;;) {
	    WeakReference_Sub1 weakreference_sub1
		= ((WeakReference_Sub1)
		   ((Class39) this).aReferenceQueue462.poll());
	    if (weakreference_sub1 == null)
		break;
	    int i
		= ((((WeakReference_Sub1) weakreference_sub1).anInt11535
		    * -682770727)
		   & ((Class39) this).aWeakReference_Sub1Array464.length - 1);
	    WeakReference_Sub1 weakreference_sub1_17_
		= ((Class39) this).aWeakReference_Sub1Array464[i];
	    if (weakreference_sub1 == weakreference_sub1_17_) {
		((Class39) this).aWeakReference_Sub1Array464[i]
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		((Class39) this).anInt463 -= 583833005;
	    } else {
		for (/**/;
		     (weakreference_sub1_17_ != null
		      && (((WeakReference_Sub1) weakreference_sub1_17_)
			  .aWeakReference_Sub1_11534) != weakreference_sub1);
		     weakreference_sub1_17_
			 = (((WeakReference_Sub1) weakreference_sub1_17_)
			    .aWeakReference_Sub1_11534)) {
		    /* empty */
		}
		if (weakreference_sub1_17_ != null) {
		    ((WeakReference_Sub1) weakreference_sub1_17_)
			.aWeakReference_Sub1_11534
			= (((WeakReference_Sub1) weakreference_sub1)
			   .aWeakReference_Sub1_11534);
		    ((Class39) this).anInt463 -= 583833005;
		}
	    }
	}
    }
    
    void method829() {
	for (;;) {
	    WeakReference_Sub1 weakreference_sub1
		= ((WeakReference_Sub1)
		   ((Class39) this).aReferenceQueue462.poll());
	    if (weakreference_sub1 == null)
		break;
	    int i
		= ((((WeakReference_Sub1) weakreference_sub1).anInt11535
		    * -682770727)
		   & ((Class39) this).aWeakReference_Sub1Array464.length - 1);
	    WeakReference_Sub1 weakreference_sub1_18_
		= ((Class39) this).aWeakReference_Sub1Array464[i];
	    if (weakreference_sub1 == weakreference_sub1_18_) {
		((Class39) this).aWeakReference_Sub1Array464[i]
		    = (((WeakReference_Sub1) weakreference_sub1)
		       .aWeakReference_Sub1_11534);
		((Class39) this).anInt463 -= 583833005;
	    } else {
		for (/**/;
		     (weakreference_sub1_18_ != null
		      && (((WeakReference_Sub1) weakreference_sub1_18_)
			  .aWeakReference_Sub1_11534) != weakreference_sub1);
		     weakreference_sub1_18_
			 = (((WeakReference_Sub1) weakreference_sub1_18_)
			    .aWeakReference_Sub1_11534)) {
		    /* empty */
		}
		if (weakreference_sub1_18_ != null) {
		    ((WeakReference_Sub1) weakreference_sub1_18_)
			.aWeakReference_Sub1_11534
			= (((WeakReference_Sub1) weakreference_sub1)
			   .aWeakReference_Sub1_11534);
		    ((Class39) this).anInt463 -= 583833005;
		}
	    }
	}
    }
    
    static boolean method830(Class210 class210, short i) {
	if (null == class210)
	    return false;
	if (null != class210.anIntArray2195) {
	    class210 = class210.method3042(Class497_Sub1.anInterface14_6773,
					   Class497_Sub1.anInterface13_6772,
					   (byte) 4);
	    if (class210 == null)
		return false;
	}
	if (!class210.aBool2175)
	    return false;
	if (!class210.method3039(Class497_Sub1.anInterface14_6773,
				 Class497_Sub1.anInterface13_6772, 460532817))
	    return false;
	if (Class497_Sub1.aClass666_10465
		.method7918((long) (-1693771093 * class210.anInt2187))
	    != null)
	    return false;
	if (Class497_Sub1.aClass666_10462.method7918((long) (class210.anInt2183
							     * -1014154811))
	    != null)
	    return false;
	if (class210.aString2188 != null) {
	    if (0 == 1968628027 * class210.anInt2176
		&& Class497_Sub1.aBool10468)
		return false;
	    if (1968628027 * class210.anInt2176 == 1
		&& Class497_Sub1.aBool10463)
		return false;
	    if (1968628027 * class210.anInt2176 == 2
		&& Class497_Sub1.aBool10470)
		return false;
	}
	return true;
    }
    
    static Class144_Sub1_Sub2 method831(Class151_Sub1 class151_sub1,
					Canvas canvas, int i, int i_19_,
					int i_20_) {
	Class144_Sub1_Sub2_Sub1 class144_sub1_sub2_sub1
	    = new Class144_Sub1_Sub2_Sub1(class151_sub1, canvas, i, i_19_);
	return class144_sub1_sub2_sub1;
    }
}
