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

public class Class133 {
	static Class133 aClass133_1509;
	static Class133 aClass133_1510 = new Class133();
	static Class133 aClass133_1511 = new Class133();
	public static Class243 aClass243_1512;

	public int method1482(int i, int i_0_, int i_1_) {
		try {
			int i_2_ = (Class298_Sub40_Sub9.anInt9716 * -1111710645 > i_0_ ? -1111710645
					* Class298_Sub40_Sub9.anInt9716
					: i_0_);
			if (this == aClass133_1510)
				return 0;
			if (aClass133_1509 == this)
				return i_2_ - i;
			if (aClass133_1511 == this)
				return (i_2_ - i) / 2;
			return 0;
		} catch (RuntimeException runtimeexception) {
			throw Class346.method4175(runtimeexception, new StringBuilder()
					.append("fj.f(").append(')').toString());
		}
	}

	Class133() {
		/* empty */
	}

	static {
		aClass133_1509 = new Class133();
	}

	static final void method1483(Class403 class403, int i) {
		try {
			NPC class365_sub1_sub1_sub2_sub1 = ((NPC) ((Class403) class403).aClass365_Sub1_Sub1_Sub2_5242);
			boolean bool = false;
			Class503 class503 = class365_sub1_sub1_sub2_sub1.aClass503_10190;
			if (class503.anIntArray6188 != null)
				class503 = class503.method6240(Class128.aClass148_6331,
						1885989341);
			if (null != class503)
				bool = class503.aBoolean6163;
			((Class403) class403).anIntArray5244[((((Class403) class403).anInt5239 += -391880689) * 681479919 - 1)] = bool ? 1
					: 0;
		} catch (RuntimeException runtimeexception) {
			throw Class346.method4175(runtimeexception, new StringBuilder()
					.append("fj.apz(").append(')').toString());
		}
	}

	static final void method1484(Class403 class403, int i) {
		try {
			Class390 class390 = (((Class403) class403).aBoolean5261 ? ((Class403) class403).aClass390_5247
					: ((Class403) class403).aClass390_5246);
			IComponentDefinition class105 = ((Class390) class390).aClass105_4168;
			Class119 class119 = ((Class390) class390).aClass119_4167;
			Class372_Sub3.method4602(class105, class119, class403, 1567634168);
		} catch (RuntimeException runtimeexception) {
			throw Class346.method4175(runtimeexception, new StringBuilder()
					.append("fj.hr(").append(')').toString());
		}
	}

	static final void method1485(Class403 class403, byte i) {
		try {
			Class390 class390 = (((Class403) class403).aBoolean5261 ? ((Class403) class403).aClass390_5247
					: ((Class403) class403).aClass390_5246);
			IComponentDefinition class105 = ((Class390) class390).aClass105_4168;
			Class119 class119 = ((Class390) class390).aClass119_4167;
			Class128.method1436(class105, class119, class403, -588058138);
		} catch (RuntimeException runtimeexception) {
			throw Class346.method4175(runtimeexception, new StringBuilder()
					.append("fj.hz(").append(')').toString());
		}
	}

	static final void method1486(Class403 class403, byte i) {
		try {
			int i_3_ = (((Class403) class403).anIntArray5244[((((Class403) class403).anInt5239 -= -391880689) * 681479919)]);
			int i_4_ = i_3_ >> 14 & 0x3fff;
			int i_5_ = i_3_ & 0x3fff;
			Class341 class341 = client.aClass283_8716.method2628(681479919);
			i_4_ -= -1760580017 * class341.gameSceneBaseX;
			if (i_4_ < 0)
				i_4_ = 0;
			else if (i_4_ >= client.aClass283_8716.method2629(-1870653657))
				i_4_ = client.aClass283_8716.method2629(-2106000427);
			i_5_ -= class341.gameSceneBaseY * 283514611;
			if (i_5_ < 0)
				i_5_ = 0;
			else if (i_5_ >= client.aClass283_8716.method2630(787275205))
				i_5_ = client.aClass283_8716.method2630(11403406);
			client.anInt8753 = 672497503 * ((i_4_ << 9) + 256);
			client.anInt8755 = 957476733 * ((i_5_ << 9) + 256);
			Class298_Sub1.anInt7164 = -1469516446;
			Class418.anInt5339 = -1001372047;
			Class100.anInt1081 = 178575833;
		} catch (RuntimeException runtimeexception) {
			throw Class346.method4175(runtimeexception, new StringBuilder()
					.append("fj.agl(").append(')').toString());
		}
	}
}
