package jagex;

/* Class515 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */

public class Class515 {
	int anInt5715;
	int anInt5716;
	Class676 aClass676_5717;
	Class664 aClass664_5718 = new Class664();

	public final void method6094(int i) {
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7848(-1042067865)); class572_sub12_sub12 != null; class572_sub12_sub12 = (Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7845(-1965350108)) {
			if (class572_sub12_sub12.method10400()) {
				if (class572_sub12_sub12.method10399() == null) {
					class572_sub12_sub12.method6794((byte) 30);
					class572_sub12_sub12.method8412(724585842);
					((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
				}
			} else if ((class572_sub12_sub12.aLong9093 += -6500281269670471539L) * -1521258394346526139L > (long) i) {
				Class572_Sub12_Sub12_Sub2 class572_sub12_sub12_sub2 = (new Class572_Sub12_Sub12_Sub2((((Class572_Sub12_Sub12) class572_sub12_sub12).anInterface55_11442), class572_sub12_sub12.method10399(), (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443)));
				((Class515) this).aClass676_5717.put(class572_sub12_sub12_sub2, class572_sub12_sub12.hash * 381237825124074065L);
				Class551.method6539(class572_sub12_sub12_sub2, class572_sub12_sub12, 1179466163);
				class572_sub12_sub12.method6794((byte) 69);
				class572_sub12_sub12.method8412(724585842);
			}
		}
	}

	public final Object method6095(Interface55 interface55) {
		long l = interface55.method312();
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass676_5717.get(l)); class572_sub12_sub12 != null; class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass676_5717.method7971((byte) 110))) {
			if (((Class572_Sub12_Sub12) class572_sub12_sub12).anInterface55_11442.method315(interface55)) {
				Object object = class572_sub12_sub12.method10399();
				if (object == null) {
					class572_sub12_sub12.method6794((byte) 7);
					class572_sub12_sub12.method8412(724585842);
					((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
				} else {
					if (class572_sub12_sub12.method10400()) {
						Class572_Sub12_Sub12_Sub1 class572_sub12_sub12_sub1 = (new Class572_Sub12_Sub12_Sub1(interface55, object, (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443)));
						((Class515) this).aClass676_5717.put(class572_sub12_sub12_sub1, (class572_sub12_sub12.hash * 381237825124074065L));
						((Class515) this).aClass664_5718.method7842(class572_sub12_sub12_sub1, 1468906401);
						class572_sub12_sub12_sub1.aLong9093 = 0L;
						class572_sub12_sub12.method6794((byte) 19);
						class572_sub12_sub12.method8412(724585842);
					} else {
						((Class515) this).aClass664_5718.method7842(class572_sub12_sub12, 1955247074);
						class572_sub12_sub12.aLong9093 = 0L;
					}
					return object;
				}
			}
		}
		return null;
	}

	final void method6096(Interface55 interface55) {
		long l = interface55.method312();
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass676_5717.get(l)); class572_sub12_sub12 != null; class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass676_5717.method7971((byte) 38))) {
			if (((Class572_Sub12_Sub12) class572_sub12_sub12).anInterface55_11442.method315(interface55)) {
				method6102(class572_sub12_sub12);
				break;
			}
		}
	}

	public final void method6097(Object object, Interface55 interface55) {
		method6103(object, interface55, 1);
	}

	public final void method6098(int i) {
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7848(-1042067865)); class572_sub12_sub12 != null; class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7845(-988332990))) {
			if (class572_sub12_sub12.method10400()) {
				if (class572_sub12_sub12.method10399() == null) {
					class572_sub12_sub12.method6794((byte) -57);
					class572_sub12_sub12.method8412(724585842);
					((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
				}
			} else if ((class572_sub12_sub12.aLong9093 += -6500281269670471539L) * -1521258394346526139L > (long) i) {
				Class572_Sub12_Sub12_Sub2 class572_sub12_sub12_sub2 = (new Class572_Sub12_Sub12_Sub2((((Class572_Sub12_Sub12) class572_sub12_sub12).anInterface55_11442), class572_sub12_sub12.method10399(), (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443)));
				((Class515) this).aClass676_5717.put(class572_sub12_sub12_sub2, class572_sub12_sub12.hash * 381237825124074065L);
				Class551.method6539(class572_sub12_sub12_sub2, class572_sub12_sub12, 1179466163);
				class572_sub12_sub12.method6794((byte) -70);
				class572_sub12_sub12.method8412(724585842);
			}
		}
	}

	public final void method6099() {
		((Class515) this).aClass664_5718.method7841((short) -14716);
		((Class515) this).aClass676_5717.method7964((byte) 45);
		((Class515) this).anInt5715 = ((Class515) this).anInt5716;
	}

	public final void method6100() {
		((Class515) this).aClass664_5718.method7841((short) -14800);
		((Class515) this).aClass676_5717.method7964((byte) 26);
		((Class515) this).anInt5715 = ((Class515) this).anInt5716;
	}

	public final void method6101() {
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7848(-1042067865)); class572_sub12_sub12 != null; class572_sub12_sub12 = (Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7845(-1667300192)) {
			if (class572_sub12_sub12.method10400()) {
				class572_sub12_sub12.method6794((byte) 16);
				class572_sub12_sub12.method8412(724585842);
				((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
			}
		}
	}

	public Class515(int i) {
		((Class515) this).anInt5716 = i;
		((Class515) this).anInt5715 = i;
		int i_0_;
		for (i_0_ = 1; i_0_ + i_0_ < i; i_0_ += i_0_) {
			/* empty */
		}
		((Class515) this).aClass676_5717 = new Class676(i_0_);
	}

	final void method6102(Class572_Sub12_Sub12 class572_sub12_sub12) {
		if (class572_sub12_sub12 != null) {
			class572_sub12_sub12.method6794((byte) 6);
			class572_sub12_sub12.method8412(724585842);
			((Class515) this).anInt5715 += ((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443;
		}
	}

	final void method6103(Object object, Interface55 interface55, int i) {
		if (i > ((Class515) this).anInt5716)
			throw new IllegalStateException();
		method6096(interface55);
		((Class515) this).anInt5715 -= i;
		while (((Class515) this).anInt5715 < 0) {
			Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7843(372569171));
			method6102(class572_sub12_sub12);
		}
		Class572_Sub12_Sub12_Sub1 class572_sub12_sub12_sub1 = new Class572_Sub12_Sub12_Sub1(interface55, object, i);
		((Class515) this).aClass676_5717.put(class572_sub12_sub12_sub1, interface55.method312());
		((Class515) this).aClass664_5718.method7842(class572_sub12_sub12_sub1, 1209538880);
		class572_sub12_sub12_sub1.aLong9093 = 0L;
	}

	public final void method6104() {
		((Class515) this).aClass664_5718.method7841((short) -25890);
		((Class515) this).aClass676_5717.method7964((byte) 25);
		((Class515) this).anInt5715 = ((Class515) this).anInt5716;
	}

	public final void method6105() {
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7848(-1042067865)); class572_sub12_sub12 != null; class572_sub12_sub12 = (Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7845(-1295345054)) {
			if (class572_sub12_sub12.method10400()) {
				class572_sub12_sub12.method6794((byte) 32);
				class572_sub12_sub12.method8412(724585842);
				((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
			}
		}
	}

	public final void method6106() {
		for (Class572_Sub12_Sub12 class572_sub12_sub12 = ((Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7848(-1042067865)); class572_sub12_sub12 != null; class572_sub12_sub12 = (Class572_Sub12_Sub12) ((Class515) this).aClass664_5718.method7845(-1624358306)) {
			if (class572_sub12_sub12.method10400()) {
				class572_sub12_sub12.method6794((byte) -8);
				class572_sub12_sub12.method8412(724585842);
				((Class515) this).anInt5715 += (((Class572_Sub12_Sub12) class572_sub12_sub12).anInt11443);
			}
		}
	}
}
