/* Class418 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;

public final class Class418
{
    long aLong4674;
    Map aMap4675;
    AbstractQueue_Sub1 anAbstractQueue_Sub1_4676;
    AbstractQueue_Sub1 anAbstractQueue_Sub1_4677;
    Comparator aComparator4678 = new Class421(this);
    Class437 aClass437_4679;
    int anInt4680;
    
    public Class418(int i, Class437 class437) {
	this(-1L, i, class437);
    }
    
    Class418(long l, int i, Class437 class437) {
	((Class418) this).aLong4674 = l * -4828103338877081933L;
	((Class418) this).anInt4680 = i * 372869149;
	((Class418) this).aClass437_4679 = class437;
	if (((Class418) this).anInt4680 * 751663669 == -1) {
	    ((Class418) this).aMap4675 = new HashMap(64);
	    ((Class418) this).anAbstractQueue_Sub1_4676
		= new AbstractQueue_Sub1(64,
					 ((Class418) this).aComparator4678);
	    ((Class418) this).anAbstractQueue_Sub1_4677 = null;
	} else {
	    if (((Class418) this).aClass437_4679 == null)
		throw new IllegalArgumentException("");
	    ((Class418) this).aMap4675
		= new HashMap(751663669 * ((Class418) this).anInt4680);
	    ((Class418) this).anAbstractQueue_Sub1_4676
		= new AbstractQueue_Sub1((751663669
					  * ((Class418) this).anInt4680),
					 ((Class418) this).aComparator4678);
	    ((Class418) this).anAbstractQueue_Sub1_4677
		= new AbstractQueue_Sub1(((Class418) this).anInt4680
					 * 751663669);
	}
    }
    
    public Object method5117(Object object, short i) {
	synchronized (this) {
	    if (((Class418) this).aLong4674 * 1883644840021489787L != -1L)
		method5123(-1518528573);
	    Class432 class432
		= (Class432) ((Class418) this).aMap4675.get(object);
	    if (null == class432) {
		Object object_0_ = null;
		return object_0_;
	    }
	    method5119(class432, false, (byte) -30);
	    Object object_1_ = ((Class432) class432).anObject5018;
	    return object_1_;
	}
    }
    
    boolean method5118() {
	return 751663669 * ((Class418) this).anInt4680 != -1;
    }
    
    void method5119(Class432 class432, boolean bool, byte i) {
	if (!bool) {
	    ((Class418) this).anAbstractQueue_Sub1_4676.remove(class432);
	    if (method5124((short) -7544)
		&& !((Class418) this).anAbstractQueue_Sub1_4677
			.remove(class432))
		throw new IllegalStateException("");
	}
	((Class432) class432).aLong5019
	    = System.currentTimeMillis() * -4197151188341382891L;
	if (method5124((short) 25761)) {
	    switch (-1269736819
		    * (((Class437) ((Class418) this).aClass437_4679)
		       .anInt5036)) {
	    case 0:
		((Class432) class432).aLong5021
		    = ((Class432) class432).aLong5019 * 6101099837416700211L;
		break;
	    case 1:
		((Class432) class432).aLong5021 += -722778120682470353L;
		break;
	    }
	    ((Class418) this).anAbstractQueue_Sub1_4677.add(class432);
	}
	((Class418) this).anAbstractQueue_Sub1_4676.add(class432);
    }
    
    boolean method5120() {
	return 751663669 * ((Class418) this).anInt4680 != -1;
    }
    
    boolean method5121() {
	return 751663669 * ((Class418) this).anInt4680 != -1;
    }
    
    public Object method5122(Object object, Object object_2_, int i) {
	synchronized (this) {
	    if (1883644840021489787L * ((Class418) this).aLong4674 != -1L)
		method5123(-1518528573);
	    Class432 class432
		= (Class432) ((Class418) this).aMap4675.get(object);
	    if (class432 != null) {
		Object object_3_ = ((Class432) class432).anObject5018;
		((Class432) class432).anObject5018 = object_2_;
		method5119(class432, false, (byte) -94);
		Object object_4_ = object_3_;
		return object_4_;
	    }
	    if (method5124((short) -11520)
		&& (((Class418) this).aMap4675.size()
		    == 751663669 * ((Class418) this).anInt4680)) {
		Class432 class432_5_
		    = ((Class432)
		       ((Class418) this).anAbstractQueue_Sub1_4677.remove());
		((Class418) this).aMap4675
		    .remove(((Class432) class432_5_).anObject5020);
		((Class418) this).anAbstractQueue_Sub1_4676
		    .remove(class432_5_);
	    }
	    Class432 class432_6_ = new Class432(object_2_, object);
	    ((Class418) this).aMap4675.put(object, class432_6_);
	    method5119(class432_6_, true, (byte) 17);
	    Object object_7_ = null;
	    return object_7_;
	}
    }
    
    void method5123(int i) {
	if (-1L == 1883644840021489787L * ((Class418) this).aLong4674)
	    throw new IllegalStateException("");
	long l = (System.currentTimeMillis()
		  - 1883644840021489787L * ((Class418) this).aLong4674);
	while (!((Class418) this).anAbstractQueue_Sub1_4676.isEmpty()) {
	    Class432 class432
		= ((Class432)
		   ((Class418) this).anAbstractQueue_Sub1_4676.peek());
	    if (1527088247922599485L * ((Class432) class432).aLong5019 < l) {
		((Class418) this).aMap4675
		    .remove(((Class432) class432).anObject5020);
		((Class418) this).anAbstractQueue_Sub1_4676.remove(class432);
		if (method5124((short) 26308))
		    ((Class418) this).anAbstractQueue_Sub1_4677
			.remove(class432);
	    } else
		break;
	}
    }
    
    boolean method5124(short i) {
	return 751663669 * ((Class418) this).anInt4680 != -1;
    }
    
    void method5125() {
	if (-1L == 1883644840021489787L * ((Class418) this).aLong4674)
	    throw new IllegalStateException("");
	long l = (System.currentTimeMillis()
		  - 1883644840021489787L * ((Class418) this).aLong4674);
	while (!((Class418) this).anAbstractQueue_Sub1_4676.isEmpty()) {
	    Class432 class432
		= ((Class432)
		   ((Class418) this).anAbstractQueue_Sub1_4676.peek());
	    if (1527088247922599485L * ((Class432) class432).aLong5019 < l) {
		((Class418) this).aMap4675
		    .remove(((Class432) class432).anObject5020);
		((Class418) this).anAbstractQueue_Sub1_4676.remove(class432);
		if (method5124((short) -30913))
		    ((Class418) this).anAbstractQueue_Sub1_4677
			.remove(class432);
	    } else
		break;
	}
    }
    
    void method5126() {
	if (-1L == 1883644840021489787L * ((Class418) this).aLong4674)
	    throw new IllegalStateException("");
	long l = (System.currentTimeMillis()
		  - 1883644840021489787L * ((Class418) this).aLong4674);
	while (!((Class418) this).anAbstractQueue_Sub1_4676.isEmpty()) {
	    Class432 class432
		= ((Class432)
		   ((Class418) this).anAbstractQueue_Sub1_4676.peek());
	    if (1527088247922599485L * ((Class432) class432).aLong5019 < l) {
		((Class418) this).aMap4675
		    .remove(((Class432) class432).anObject5020);
		((Class418) this).anAbstractQueue_Sub1_4676.remove(class432);
		if (method5124((short) 19184))
		    ((Class418) this).anAbstractQueue_Sub1_4677
			.remove(class432);
	    } else
		break;
	}
    }
    
    void method5127() {
	if (-1L == 1883644840021489787L * ((Class418) this).aLong4674)
	    throw new IllegalStateException("");
	long l = (System.currentTimeMillis()
		  - 1883644840021489787L * ((Class418) this).aLong4674);
	while (!((Class418) this).anAbstractQueue_Sub1_4676.isEmpty()) {
	    Class432 class432
		= ((Class432)
		   ((Class418) this).anAbstractQueue_Sub1_4676.peek());
	    if (1527088247922599485L * ((Class432) class432).aLong5019 < l) {
		((Class418) this).aMap4675
		    .remove(((Class432) class432).anObject5020);
		((Class418) this).anAbstractQueue_Sub1_4676.remove(class432);
		if (method5124((short) -13220))
		    ((Class418) this).anAbstractQueue_Sub1_4677
			.remove(class432);
	    } else
		break;
	}
    }
    
    static Class542 method5128(int i, int i_8_) {
	Class542[] class542s = Class243.method3482(-1123039319);
	for (int i_9_ = 0; i_9_ < class542s.length; i_9_++) {
	    Class542 class542 = class542s[i_9_];
	    if (i == 1395758267 * ((Class542) class542).anInt7354)
		return class542;
	}
	return null;
    }
    
    static final void method5129(Class612 class612, byte i) {
	int i_10_
	    = (((Class612) class612).anIntArray8021
	       [(((Class612) class612).anInt8022 -= 201091009) * -40654783]);
	Class211 class211 = Class156.method2513(i_10_, (short) -20309);
	((Class612) class612).anIntArray8021
	    [(((Class612) class612).anInt8022 += 201091009) * -40654783 - 1]
	    = class211.anInt2271 * -2016080461;
    }
    
    public static Class537[] method5130(int i) {
	return (new Class537[]
		{ Class537.aClass537_7312, Class537.aClass537_7306,
		  Class537.aClass537_7314, Class537.aClass537_7326,
		  Class537.aClass537_7305, Class537.aClass537_7311,
		  Class537.aClass537_7322, Class537.aClass537_7307,
		  Class537.aClass537_7315, Class537.aClass537_7325,
		  Class537.aClass537_7304, Class537.aClass537_7308,
		  Class537.aClass537_7317, Class537.aClass537_7310,
		  Class537.aClass537_7318, Class537.aClass537_7309,
		  Class537.aClass537_7319, Class537.aClass537_7313,
		  Class537.aClass537_7321, Class537.aClass537_7320,
		  Class537.aClass537_7323, Class537.aClass537_7316,
		  Class537.aClass537_7324 });
    }
}
