package jagex;

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

public class Class489 {
	int anInt5457;
	int anInt5458;
	boolean aBool5459;
	int anInt5460;
	int anInt5461;
	static int[] anIntArray5462 = new int[120];
	public static Class248 aClass248_5463;

	public int method5812() {
		return ((Class489) this).anInt5457 * -819897537;
	}

	public int method5813(int i) {
		return ((Class489) this).anInt5457 * -819897537;
	}

	public boolean method5814(byte i) {
		return ((Class489) this).aBool5459;
	}

	int method5815(int i) {
		if (i < 0)
			i = 0;
		if (i > -264475355 * ((Class489) this).anInt5458)
			i = ((Class489) this).anInt5458 * -264475355;
		if (i < 2)
			return 0;
		return anIntArray5462[i - 2];
	}

	int method5816(int i) {
		return 351278885 * ((Class489) this).anInt5460;
	}

	public boolean method5817(int i) {
		return -1 != ((Class489) this).anInt5457 * -819897537;
	}

	public int method5818(int i, int i_0_) {
		int i_1_ = 1;
		int i_2_ = -264475355 * ((Class489) this).anInt5458 - 1;
		for (int i_3_ = 0; i_3_ < i_2_ && i >= anIntArray5462[i_3_]; i_3_++)
			i_1_ = i_3_ + 2;
		return i_1_;
	}

	public int method5819(int i, int i_4_) {
		int i_5_ = i / 10;
		return method5818(i_5_, -659718967);
	}

	int method5820(int i, int i_6_) {
		if (i < 0)
			i = 0;
		if (i > -264475355 * ((Class489) this).anInt5458)
			i = ((Class489) this).anInt5458 * -264475355;
		if (i < 2)
			return 0;
		return anIntArray5462[i - 2];
	}

	int method5821(int i, byte i_7_) {
		return method5820(i, 465800016) * 10;
	}

	static {
		int i = 0;
		for (int i_8_ = 0; i_8_ < 120; i_8_++) {
			int i_9_ = i_8_ + 1;
			int i_10_ = (int) ((double) i_9_ + 300.0 * Math.pow(2.0, (double) i_9_ / 7.0));
			i += i_10_;
			anIntArray5462[i_8_] = i / 4;
		}
	}

	int method5822() {
		return 351278885 * ((Class489) this).anInt5460;
	}

	int method5823() {
		return 351278885 * ((Class489) this).anInt5460;
	}

	public boolean method5824() {
		return ((Class489) this).aBool5459;
	}

	public int method5825(byte i) {
		return -82599981 * ((Class489) this).anInt5461;
	}

	public boolean method5826() {
		return ((Class489) this).aBool5459;
	}

	Class489(int i, int i_11_, boolean bool, boolean bool_12_, int i_13_) {
		((Class489) this).anInt5460 = i * 1053699245;
		((Class489) this).anInt5458 = i_11_ * 759162541;
		((Class489) this).aBool5459 = bool;
		if (bool) {
			((Class489) this).anInt5461 = 892538971 * i_13_;
			((Class489) this).anInt5457 = method5821(i_13_, (byte) 84) * 302257343;
		} else {
			((Class489) this).anInt5461 = -892538971;
			((Class489) this).anInt5457 = -302257343;
		}
	}

	public int method5827() {
		return ((Class489) this).anInt5457 * -819897537;
	}

	public boolean method5828() {
		return ((Class489) this).aBool5459;
	}

	public boolean method5829() {
		return ((Class489) this).aBool5459;
	}

	public int method5830() {
		return ((Class489) this).anInt5457 * -819897537;
	}

	public boolean method5831() {
		return -1 != ((Class489) this).anInt5457 * -819897537;
	}

	public boolean method5832() {
		return -1 != ((Class489) this).anInt5457 * -819897537;
	}

	public int method5833(int i) {
		int i_14_ = 1;
		int i_15_ = -264475355 * ((Class489) this).anInt5458 - 1;
		for (int i_16_ = 0; i_16_ < i_15_ && i >= anIntArray5462[i_16_]; i_16_++)
			i_14_ = i_16_ + 2;
		return i_14_;
	}

	public int method5834(int i) {
		int i_17_ = 1;
		int i_18_ = -264475355 * ((Class489) this).anInt5458 - 1;
		for (int i_19_ = 0; i_19_ < i_18_ && i >= anIntArray5462[i_19_]; i_19_++)
			i_17_ = i_19_ + 2;
		return i_17_;
	}

	public int method5835(int i) {
		int i_20_ = i / 10;
		return method5818(i_20_, 288107453);
	}

	public int method5836(int i) {
		int i_21_ = i / 10;
		return method5818(i_21_, -1200597074);
	}

	int method5837(int i) {
		if (i < 0)
			i = 0;
		if (i > -264475355 * ((Class489) this).anInt5458)
			i = ((Class489) this).anInt5458 * -264475355;
		if (i < 2)
			return 0;
		return anIntArray5462[i - 2];
	}

	public int method5838() {
		return ((Class489) this).anInt5457 * -819897537;
	}

	int method5839(int i) {
		if (i < 0)
			i = 0;
		if (i > -264475355 * ((Class489) this).anInt5458)
			i = ((Class489) this).anInt5458 * -264475355;
		if (i < 2)
			return 0;
		return anIntArray5462[i - 2];
	}

	int method5840(int i) {
		return method5820(i, 465800016) * 10;
	}

	int method5841(int i) {
		return method5820(i, 465800016) * 10;
	}

	static final void method5842(Cs2Executor class441, int i) {
		UnderlayDefinition underlayDefinition = (((Cs2Executor) class441).aBool5128 ? ((Cs2Executor) class441).aClass443_5112 : ((Cs2Executor) class441).aClass443_5126);
		InterfaceDefinitions class73 = ((UnderlayDefinition) underlayDefinition).aClass73_5135;
		Class83 class83 = ((UnderlayDefinition) underlayDefinition).aClass83_5134;
		Class474.method5621(class73, class83, class441, (byte) 6);
	}

	public static void method5843(int i, int i_22_) {
		Class425.anInt4994 = 1843731585 * i;
		Class572_Sub13_Sub1.aClass572_Sub13_Sub1Array11364 = new Class572_Sub13_Sub1[i];
		Class133_Sub3.anInt9832 = 0;
	}

	public static Class378 method5844(RSByteBuffer class572_sub15, byte i) {
		int i_23_ = class572_sub15.readUnsignedByte(706053580);
		Class320 class320 = (Class133_Sub20.method9537(272383510)[class572_sub15.readUnsignedByte(393418400)]);
		Class300 class300 = (Class480.method5718(-944836116)[class572_sub15.readUnsignedByte(1617891826)]);
		int i_24_ = class572_sub15.readShort(-710976385);
		int i_25_ = class572_sub15.readShort(-710976385);
		int i_26_ = class572_sub15.readUnsignedShort(647518597);
		int i_27_ = class572_sub15.readUnsignedShort(647518597);
		int i_28_ = class572_sub15.readInt(1332267806);
		int i_29_ = class572_sub15.readInt(1275346660);
		int i_30_ = class572_sub15.readInt(1790782844);
		boolean bool = class572_sub15.readUnsignedByte(806158169) == 1;
		return new Class378(i_23_, class320, class300, i_24_, i_25_, i_26_, i_27_, i_28_, i_29_, i_30_, bool);
	}
}
