public class Class109_Sub20 extends Class109 {
	static Class104 aClass104_1140;
	public static Class109_Sub20[][] aClass109_Sub20ArrayArray1150;
	public Object[] anObjectArray1173;
	public Object[] anObjectArray1178;
	public Object[] anObjectArray1197;
	public Object[] anObjectArray1247;
	public Object[] anObjectArray1249;
	public Object[] anObjectArray1251;
	public Object[] anObjectArray1252;
	public Object[] anObjectArray1254;
	public Object[] anObjectArray1256;
	static Class104 aClass104_1269;
	public Object[] anObjectArray1270;
	public Class109_Sub20[] aClass109_Sub20Array1272;
	public boolean aBool1146 = false;
	public int anInt1229;
	public int anInt1263 = 0;
	public int anInt1151 = 0;
	public int anInt1210 = 0;
	public int anInt1157 = 0;
	public int anInt1274 = 0;
	public int anInt1241 = 0;
	public int anInt1177 = 0;
	public int anInt1166 = -1;
	public int anInt1260 = -1;
	public int[] anIntArray1258;
	public int[] anIntArray1259;
	public int[][] anIntArrayArray1224;
	public int anInt1171 = 0;
	public boolean aBool1167 = false;
	public int[] anIntArray1149;
	public int[] anIntArray1264;
	public int anInt1253 = 0;
	public int anInt1208 = 0;
	public int anInt1209 = 0;
	public int anInt1207 = 0;
	public int anInt1204 = -1;
	public boolean aBool1176 = false;
	public int anInt1234 = 0;
	public int anInt1212 = 0;
	public int[] anIntArray1213;
	public int[] anIntArray1214;
	public int[] anIntArray1215;
	public String aString1205 = "";
	public String aString1206 = "";
	public int anInt1220 = 0;
	public boolean aBool1250 = false;
	public String[] aStringArray1155;
	public int anInt1180 = 0;
	public int anInt1174 = 0;
	public int anInt1175 = 0;
	public int anInt1164 = -1;
	public int anInt1181 = -1;
	public int anInt1188 = 1;
	public int anInt1189 = -1;
	int anInt1190 = 1;
	int anInt1191 = -1;
	public int anInt1192 = -1;
	public int anInt1158 = -1;
	public String aString1276 = "";
	public String aString1261 = "";
	public int anInt1199 = 100;
	public int anInt1273 = 0;
	public int anInt1193 = 0;
	public String aString1262 = "Ok";
	public static boolean aBool1145 = false;
	public String[] aStringArray1219;
	public boolean aBool1255 = false;
	public int anInt1148 = -1;
	public int anInt1147 = -1;
	public int anInt1152 = 0;
	public int anInt1153 = 0;
	public int anInt1154 = 0;
	public int anInt1225 = 0;
	public int anInt1160 = 0;
	public int anInt1161 = 0;
	public int anInt1162 = 0;
	public int anInt1163 = 0;
	public int anInt1159 = 1;
	public int anInt1248 = 1;
	public int anInt1168 = 0;
	public int anInt1169 = 0;
	public int anInt1170 = 0;
	public int anInt1257 = 1;
	public boolean aBool1179 = false;
	public int anInt1182 = 0;
	public boolean aBool1183 = false;
	public int anInt1184 = 0;
	public int anInt1185 = 0;
	public int anInt1194 = 0;
	public int anInt1244 = 0;
	public int anInt1198 = 0;
	public int anInt1240 = 0;
	public int anInt1201 = 0;
	public boolean aBool1271 = false;
	public int anInt1203 = 2;
	public String aString1218 = "";
	public Class109_Sub20 aClass109_Sub20_1139 = null;
	public int anInt1221 = 0;
	public int anInt1222 = 0;
	public boolean aBool1275 = false;
	public int anInt1265 = -1;
	public int anInt1266 = 0;
	public int anInt1267 = 0;
	public int anInt1268 = 0;
	public boolean aBool1156 = false;
	public boolean aBool1200 = false;
	public int anInt1217 = -1;
	public int anInt1239 = 0;
	public int anInt1278 = 0;
	public int anInt1165 = 0;
	public int anInt1172 = -1;
	public int anInt1246 = -1;
	public boolean aBool1223 = false;
	public boolean aBool1186;
	public boolean aBool1187;
	public Object[] anObjectArray1226;
	public Object[] anObjectArray1277;
	public Object[] anObjectArray1233;
	public Object[] anObjectArray1237;
	public Object[] anObjectArray1236;
	public Object[] anObjectArray1238;
	public Object[] anObjectArray1196;
	public Object[] anObjectArray1242;
	public Object[] anObjectArray1138;
	public Object[] anObjectArray1245;
	public Object[] anObjectArray1232;
	public Object[] anObjectArray1227;
	public Object[] anObjectArray1228;
	public Object[] anObjectArray1195;
	public Object[] anObjectArray1230;
	public Object[] anObjectArray1202;
	public Object[] anObjectArray1235;
	public Object[] anObjectArray1216;
	public int[] anIntArray1231;
	public int[] anIntArray1211;
	public int[] anIntArray1243;
	static Class120 aClass120_1141 = new Class120(200);
	static Class120 aClass120_1142 = new Class120(50);
	static Class120 aClass120_1143 = new Class120(20);
	static Class120 aClass120_1144 = new Class120(8);

	void method645(final Class109_Sub14 var1) {
		aBool1146 = false;
		anInt1229 = var1.method564();
		anInt1263 = var1.method564();
		anInt1151 = var1.method566();
		anInt1210 = var1.method575();
		anInt1157 = var1.method575();
		anInt1274 = var1.method566();
		anInt1241 = var1.method566();
		anInt1177 = var1.method564();
		anInt1166 = var1.method566();
		if (anInt1166 == '\uffff')
			anInt1166 = -1;
		else
			anInt1166 += anInt1148 & -65536;

		anInt1260 = var1.method566();
		if (anInt1260 == '\uffff')
			anInt1260 = -1;

		final int var5 = var1.method564();
		int var6;
		if (var5 > 0) {
			anIntArray1258 = new int[var5];
			anIntArray1259 = new int[var5];

			for (var6 = 0; var6 < var5; ++var6) {
				anIntArray1258[var6] = var1.method564();
				anIntArray1259[var6] = var1.method566();
			}
		}

		var6 = var1.method564();
		int var2;
		int var3;
		int var4;
		if (var6 > 0) {
			anIntArrayArray1224 = new int[var6][];

			for (var4 = 0; var4 < var6; ++var4) {
				var3 = var1.method566();
				anIntArrayArray1224[var4] = new int[var3];

				for (var2 = 0; var2 < var3; ++var2) {
					anIntArrayArray1224[var4][var2] = var1.method566();
					if (anIntArrayArray1224[var4][var2] == '\uffff')
						anIntArrayArray1224[var4][var2] = -1;
				}
			}
		}

		if (anInt1229 == 0) {
			anInt1171 = var1.method566();
			aBool1167 = var1.method564() == 1;
		}

		if (anInt1229 == 1) {
			var1.method566();
			var1.method564();
		}

		if (anInt1229 == 2) {
			anIntArray1149 = new int[anInt1274 * anInt1241];
			anIntArray1264 = new int[anInt1274 * anInt1241];
			var4 = var1.method564();
			if (var4 == 1)
				anInt1253 |= 268435456;

			var3 = var1.method564();
			if (var3 == 1)
				anInt1253 |= 1073741824;

			var2 = var1.method564();
			if (var2 == 1)
				anInt1253 |= Integer.MIN_VALUE;

			final int var7 = var1.method564();
			if (var7 == 1)
				anInt1253 |= 536870912;

			anInt1234 = var1.method564();
			anInt1212 = var1.method564();
			anIntArray1213 = new int[20];
			anIntArray1214 = new int[20];
			anIntArray1215 = new int[20];

			int var8;
			for (var8 = 0; var8 < 20; ++var8) {
				final int var10 = var1.method564();
				if (var10 == 1) {
					anIntArray1213[var8] = var1.method575();
					anIntArray1214[var8] = var1.method575();
					anIntArray1215[var8] = var1.method568();
				} else
					anIntArray1215[var8] = -1;
			}

			aStringArray1155 = new String[5];

			for (var8 = 0; var8 < 5; ++var8) {
				final String var9 = var1.method602();
				if (var9.length() > 0) {
					aStringArray1155[var8] = var9;
					anInt1253 |= 1 << (23 + var8);
				}
			}
		}

		if (anInt1229 == 3)
			aBool1176 = var1.method564() == 1;

		if ((anInt1229 == 4) || (anInt1229 == 1)) {
			anInt1208 = var1.method564();
			anInt1209 = var1.method564();
			anInt1207 = var1.method564();
			anInt1204 = var1.method566();
			if (anInt1204 == '\uffff')
				anInt1204 = -1;

			aBool1250 = var1.method564() == 1;
		}

		if (anInt1229 == 4) {
			aString1205 = var1.method602();
			aString1206 = var1.method602();
		}

		if ((anInt1229 == 1) || (anInt1229 == 3) || (anInt1229 == 4))
			anInt1220 = var1.method568();

		if ((anInt1229 == 3) || (anInt1229 == 4)) {
			anInt1180 = var1.method568();
			anInt1174 = var1.method568();
			anInt1175 = var1.method568();
		}

		if (anInt1229 == 5) {
			anInt1164 = var1.method568();
			anInt1181 = var1.method568();
		}

		if (anInt1229 == 6) {
			anInt1188 = 1;
			anInt1189 = var1.method566();
			if (anInt1189 == '\uffff')
				anInt1189 = -1;

			anInt1190 = 1;
			anInt1191 = var1.method566();
			if (anInt1191 == '\uffff')
				anInt1191 = -1;

			anInt1192 = var1.method566();
			if (anInt1192 == '\uffff')
				anInt1192 = -1;

			anInt1158 = var1.method566();
			if (anInt1158 == '\uffff')
				anInt1158 = -1;

			anInt1199 = var1.method566();
			anInt1273 = var1.method566();
			anInt1193 = var1.method566();
		}

		if (anInt1229 == 7) {
			anIntArray1149 = new int[anInt1274 * anInt1241];
			anIntArray1264 = new int[anInt1274 * anInt1241];
			anInt1208 = var1.method564();
			anInt1204 = var1.method566();
			if (anInt1204 == '\uffff')
				anInt1204 = -1;

			aBool1250 = var1.method564() == 1;
			anInt1220 = var1.method568();
			anInt1234 = var1.method575();
			anInt1212 = var1.method575();
			var4 = var1.method564();
			if (var4 == 1)
				anInt1253 |= 1073741824;

			aStringArray1155 = new String[5];

			for (var3 = 0; var3 < 5; ++var3) {
				final String var11 = var1.method602();
				if (var11.length() > 0) {
					aStringArray1155[var3] = var11;
					anInt1253 |= 1 << (23 + var3);
				}
			}
		}

		if (anInt1229 == 8)
			aString1205 = var1.method602();

		if ((anInt1263 == 2) || (anInt1229 == 2)) {
			aString1276 = var1.method602();
			aString1261 = var1.method602();
			var4 = var1.method566() & 63;
			anInt1253 |= var4 << 11;
		}

		if ((anInt1263 == 1) || (anInt1263 == 4) || (anInt1263 == 5) || (anInt1263 == 6)) {
			aString1262 = var1.method602();
			if (aString1262.length() == 0) {
				if (anInt1263 == 1)
					aString1262 = "Ok";

				if (anInt1263 == 4)
					aString1262 = "Select";

				if (anInt1263 == 5)
					aString1262 = "Select";

				if (anInt1263 == 6)
					aString1262 = "Continue";
			}
		}

		if ((anInt1263 == 1) || (anInt1263 == 4) || (anInt1263 == 5))
			anInt1253 |= 4194304;

		if (anInt1263 == 6)
			anInt1253 |= 1;

	}

	int[] method646(final Class109_Sub14 var1) {
		final int var2 = var1.method564();
		if (var2 == 0)
			return null;
		else {
			final int[] var3 = new int[var2];

			for (int var4 = 0; var4 < var2; ++var4)
				var3[var4] = var1.method568();

			return var3;
		}
	}

	public void method647(final int var1, final int var2) {
		int var3 = anIntArray1149[var2];
		anIntArray1149[var2] = anIntArray1149[var1];
		anIntArray1149[var1] = var3;
		var3 = anIntArray1264[var2];
		anIntArray1264[var2] = anIntArray1264[var1];
		anIntArray1264[var1] = var3;
	}

	public Class109_Sub21_Sub14_Sub2 method648(final boolean var1) {
		aBool1145 = false;
		int var5;
		if (var1)
			var5 = anInt1181;
		else
			var5 = anInt1164;

		if (var5 == -1)
			return null;
		else {
			final long var7 = ((aBool1186 ? 1L : 0L) << 38) + var5 + ((long) anInt1184 << 36)
					+ ((aBool1187 ? 1L : 0L) << 39) + ((long) anInt1185 << 40);
			final Class109_Sub21_Sub14_Sub2 var9 = (Class109_Sub21_Sub14_Sub2) aClass120_1141.method438(var7);
			if (null != var9)
				return var9;
			else {
				final Class104 var10 = Class109_Sub21_Sub2.aClass104_1306;
				Class109_Sub21_Sub14_Sub2 var11;
				if (!Class27.method121(var10, var5, 0))
					var11 = null;
				else {
					final Class109_Sub21_Sub14_Sub2 var2 = new Class109_Sub21_Sub14_Sub2();
					var2.anInt1724 = Canvas_Sub1.anInt1594;
					var2.anInt1719 = Class9.anInt96;
					var2.anInt1723 = Class9.anIntArray92[0];
					var2.anInt1721 = Class9.anIntArray93[0];
					var2.anInt1720 = Class106.anIntArray799[0];
					var2.anInt1725 = Class9.anIntArray94[0];
					final int var12 = var2.anInt1725 * var2.anInt1720;
					final byte[] var4 = Class9.aByteArrayArray97[0];
					var2.anIntArray1722 = new int[var12];

					for (int var3 = 0; var3 < var12; ++var3)
						var2.anIntArray1722[var3] = Class35.anIntArray336[var4[var3] & 255];

					Class109_Sub21_Sub5.method696();
					var11 = var2;
				}

				if (null == var11) {
					aBool1145 = true;
					return null;
				} else {
					if (aBool1186)
						var11.method912();

					if (aBool1187)
						var11.method911();

					if (anInt1184 > 0)
						var11.method931(anInt1184);

					if (anInt1184 >= 1)
						var11.method926(1);

					if (anInt1184 >= 2)
						var11.method926(16777215);

					if (anInt1185 != 0)
						var11.method913(anInt1185);

					aClass120_1141.method440(var11, var7);
					return var11;
				}
			}
		}
	}

	public Class109_Sub21_Sub14_Sub4_Sub1 method649() {
		aBool1145 = false;
		if (anInt1204 == -1)
			return null;
		else {
			Class109_Sub21_Sub14_Sub4_Sub1 var1 = (Class109_Sub21_Sub14_Sub4_Sub1) aClass120_1143.method438(anInt1204);
			if (var1 != null)
				return var1;
			else {
				var1 = Class7.method45(Class109_Sub21_Sub2.aClass104_1306, Class52.aClass104_527, anInt1204, 0);
				if (null != var1)
					aClass120_1143.method440(var1, anInt1204);
				else
					aBool1145 = true;

				return var1;
			}
		}
	}

	public Class109_Sub21_Sub14_Sub2 method650(final int var1) {
		aBool1145 = false;
		if ((var1 >= 0) && (var1 < anIntArray1215.length)) {
			final int var3 = anIntArray1215[var1];
			if (var3 == -1)
				return null;
			else {
				final Class109_Sub21_Sub14_Sub2 var5 = (Class109_Sub21_Sub14_Sub2) aClass120_1141.method438(var3);
				if (var5 != null)
					return var5;
				else {
					final Class104 var6 = Class109_Sub21_Sub2.aClass104_1306;
					Class109_Sub21_Sub14_Sub2 var7;
					if (!Class27.method121(var6, var3, 0))
						var7 = null;
					else {
						final Class109_Sub21_Sub14_Sub2 var2 = new Class109_Sub21_Sub14_Sub2();
						var2.anInt1724 = Canvas_Sub1.anInt1594;
						var2.anInt1719 = Class9.anInt96;
						var2.anInt1723 = Class9.anIntArray92[0];
						var2.anInt1721 = Class9.anIntArray93[0];
						var2.anInt1720 = Class106.anIntArray799[0];
						var2.anInt1725 = Class9.anIntArray94[0];
						final int var8 = var2.anInt1725 * var2.anInt1720;
						final byte[] var9 = Class9.aByteArrayArray97[0];
						var2.anIntArray1722 = new int[var8];

						for (int var4 = 0; var4 < var8; ++var4)
							var2.anIntArray1722[var4] = Class35.anIntArray336[var9[var4] & 255];

						Class109_Sub21_Sub5.method696();
						var7 = var2;
					}

					aBool1145 = true;
					return var7;
				}
			}
		} else
			return null;
	}

	public Class109_Sub21_Sub19 method651() {
		final long var1 = ((long) anInt1148 << 32) | (anInt1147 & 4294967295L);
		Class109_Sub21_Sub19 var5 = (Class109_Sub21_Sub19) aClass120_1144.method438(var1);
		if ((null != var5) && (var5.anInt1634 != anInt1164)) {
			aClass120_1144.method441(var1);
			var5 = null;
		}

		final Class109_Sub21_Sub14_Sub2 var6 = method648(false);
		if (null == var6)
			return null;
		else {
			final int[] var9 = new int[var6.anInt1725];
			final int[] var8 = new int[var6.anInt1725];

			for (int var7 = 0; var7 < var6.anInt1725; ++var7) {
				int var4 = 0;
				int var10 = var6.anInt1720;

				int var3;
				for (var3 = 0; var3 < var6.anInt1720; ++var3)
					if (var6.anIntArray1722[var3 + (var6.anInt1720 * var7)] == 0) {
						var4 = var3;
						break;
					}

				for (var3 = var6.anInt1720 - 1; var3 >= var4; --var3)
					if (var6.anIntArray1722[var3 + (var7 * var6.anInt1720)] == 0) {
						var10 = 1 + var3;
						break;
					}

				var9[var7] = var4;
				var8[var7] = var10 - var4;
			}

			var5 = new Class109_Sub21_Sub19(var6.anInt1720, var6.anInt1725, var8, var9, anInt1164);
			aClass120_1144.method440(var5, var1);
			return var5;
		}
	}

	public void method652(final int var1, final String var2) {
		if ((aStringArray1219 == null) || (aStringArray1219.length <= var1)) {
			final String[] var3 = new String[1 + var1];
			if (aStringArray1219 != null)
				for (int var4 = 0; var4 < aStringArray1219.length; ++var4)
					var3[var4] = aStringArray1219[var4];

			aStringArray1219 = var3;
		}

		aStringArray1219[var1] = var2;
	}

	Object[] method653(final Class109_Sub14 var1) {
		final int var2 = var1.method564();
		if (var2 == 0)
			return null;
		else {
			final Object[] var3 = new Object[var2];

			for (int var4 = 0; var4 < var2; ++var4) {
				final int var5 = var1.method564();
				if (var5 == 0)
					var3[var4] = new Integer(var1.method568());
				else if (var5 == 1)
					var3[var4] = var1.method602();
			}

			aBool1255 = true;
			return var3;
		}
	}

	void method654(final Class109_Sub14 var1) {
		var1.method564();
		aBool1146 = true;
		anInt1229 = var1.method564();
		anInt1151 = var1.method566();
		anInt1210 = var1.method575();
		anInt1157 = var1.method575();
		anInt1274 = var1.method566();
		if (anInt1229 == 9)
			anInt1241 = var1.method575();
		else
			anInt1241 = var1.method566();

		anInt1154 = var1.method612();
		anInt1225 = var1.method612();
		anInt1152 = var1.method612();
		anInt1153 = var1.method612();
		anInt1166 = var1.method566();
		if (anInt1166 == '\uffff')
			anInt1166 = -1;
		else
			anInt1166 += anInt1148 & -65536;

		aBool1167 = var1.method564() == 1;
		if (anInt1229 == 0) {
			anInt1170 = var1.method566();
			anInt1171 = var1.method566();
			aBool1223 = var1.method564() == 1;
		}

		if (anInt1229 == 5) {
			anInt1164 = var1.method568();
			anInt1182 = var1.method566();
			aBool1183 = var1.method564() == 1;
			anInt1177 = var1.method564();
			anInt1184 = var1.method564();
			anInt1185 = var1.method568();
			aBool1186 = var1.method564() == 1;
			aBool1187 = var1.method564() == 1;
		}

		if (anInt1229 == 6) {
			anInt1188 = 1;
			anInt1189 = var1.method566();
			if (anInt1189 == '\uffff')
				anInt1189 = -1;

			anInt1194 = var1.method575();
			anInt1244 = var1.method575();
			anInt1273 = var1.method566();
			anInt1193 = var1.method566();
			anInt1198 = var1.method566();
			anInt1199 = var1.method566();
			anInt1192 = var1.method566();
			if (anInt1192 == '\uffff')
				anInt1192 = -1;

			aBool1271 = var1.method564() == 1;
			var1.method566();
			if (anInt1154 != 0)
				anInt1240 = var1.method566();

			if (anInt1225 != 0)
				var1.method566();
		}

		if (anInt1229 == 4) {
			anInt1204 = var1.method566();
			if (anInt1204 == '\uffff')
				anInt1204 = -1;

			aString1205 = var1.method602();
			anInt1207 = var1.method564();
			anInt1208 = var1.method564();
			anInt1209 = var1.method564();
			aBool1250 = var1.method564() == 1;
			anInt1220 = var1.method568();
		}

		if (anInt1229 == 3) {
			anInt1220 = var1.method568();
			aBool1176 = var1.method564() == 1;
			anInt1177 = var1.method564();
		}

		if (anInt1229 == 9) {
			anInt1257 = var1.method564();
			anInt1220 = var1.method568();
			aBool1179 = var1.method564() == 1;
		}

		anInt1253 = var1.method567();
		aString1218 = var1.method602();
		final int var2 = var1.method564();
		if (var2 > 0) {
			aStringArray1219 = new String[var2];

			for (int var3 = 0; var3 < var2; ++var3)
				aStringArray1219[var3] = var1.method602();
		}

		anInt1221 = var1.method564();
		anInt1222 = var1.method564();
		aBool1275 = var1.method564() == 1;
		aString1276 = var1.method602();
		anObjectArray1226 = method653(var1);
		anObjectArray1277 = method653(var1);
		anObjectArray1233 = method653(var1);
		anObjectArray1237 = method653(var1);
		anObjectArray1236 = method653(var1);
		anObjectArray1238 = method653(var1);
		anObjectArray1196 = method653(var1);
		anObjectArray1242 = method653(var1);
		anObjectArray1138 = method653(var1);
		anObjectArray1245 = method653(var1);
		anObjectArray1232 = method653(var1);
		anObjectArray1227 = method653(var1);
		anObjectArray1228 = method653(var1);
		anObjectArray1195 = method653(var1);
		anObjectArray1230 = method653(var1);
		anObjectArray1202 = method653(var1);
		anObjectArray1235 = method653(var1);
		anObjectArray1216 = method653(var1);
		anIntArray1231 = method646(var1);
		anIntArray1211 = method646(var1);
		anIntArray1243 = method646(var1);
	}

	public Class109_Sub21_Sub15_Sub4 method655(final Class109_Sub21_Sub7 var1, final int var2, final boolean var3,
			final Class96 var4) {
		aBool1145 = false;
		int var6;
		int var7;
		if (var3) {
			var6 = anInt1190;
			var7 = anInt1191;
		} else {
			var6 = anInt1188;
			var7 = anInt1189;
		}

		if (var6 == 0)
			return null;
		else if ((var6 == 1) && (var7 == -1))
			return null;
		else {
			Class109_Sub21_Sub15_Sub4 var9 = (Class109_Sub21_Sub15_Sub4) aClass120_1142.method438(var7 + (var6 << 16));
			if (var9 == null) {
				Class109_Sub21_Sub15_Sub7 var5;
				if (var6 == 1) {
					var5 = Class109_Sub21_Sub15_Sub7.method984(aClass104_1140, var7, 0);
					if (var5 == null) {
						aBool1145 = true;
						return null;
					}

					var9 = var5.method1000(64, 768, -50, -10, -50);
				}

				if (var6 == 2) {
					var5 = Class122.method444(var7).method762();
					if (null == var5) {
						aBool1145 = true;
						return null;
					}

					var9 = var5.method1000(64, 768, -50, -10, -50);
				}

				if (var6 == 3) {
					if (var4 == null)
						return null;

					var5 = var4.method363();
					if (var5 == null) {
						aBool1145 = true;
						return null;
					}

					var9 = var5.method1000(64, 768, -50, -10, -50);
				}

				if (var6 == 4) {
					final Class109_Sub21_Sub5 var8 = Class109_Sub23.method660(var7);
					var5 = var8.method688(10);
					if (null == var5) {
						aBool1145 = true;
						return null;
					}

					var9 = var5.method1000(64 + var8.anInt1363, var8.anInt1357 + 768, -50, -10, -50);
				}

				aClass120_1142.method440(var9, (var6 << 16) + var7);
			}

			if (var1 != null)
				var9 = var1.method709(var9, var2);

			return var9;
		}
	}

	static final int method656(final int var0, final int var1) {
		int var2 = (var1 * 57) + var0;
		var2 ^= var2 << 13;
		final int var3 = ((((var2 * var2 * 15731) + 789221) * var2) + 1376312589) & Integer.MAX_VALUE;
		return (var3 >> 19) & 255;
	}

	static int method657(final Class46 var0, final Class46 var1, final int var2, final boolean var3) {
		if (var2 == 1) {
			int var5 = var0.anInt479;
			int var4 = var1.anInt479;
			if (!var3) {
				if (var5 == -1)
					var5 = 2001;

				if (var4 == -1)
					var4 = 2001;
			}

			return var5 - var4;
		} else
			return var2 == 2 ? var0.anInt489 - var1.anInt489
					: (var2 == 3
							? (var0.aString488.equals("-") ? (var1.aString488.equals("-") ? 0 : (var3 ? -1 : 1))
									: (var1.aString488.equals("-") ? (var3 ? 1 : -1)
											: var0.aString488.compareTo(var1.aString488)))
							: (var2 == 4 ? (var0.method232() ? (var1.method232() ? 0 : 1) : (var1.method232() ? -1 : 0))
									: (var2 == 5
											? (var0.method235() ? (var1.method235() ? 0 : 1)
													: (var1.method235() ? -1 : 0))
											: (var2 == 6
													? (var0.method236() ? (var1.method236() ? 0 : 1)
															: (var1.method236() ? -1 : 0))
													: (var2 == 7
															? (var0.method234() ? (var1.method234() ? 0 : 1)
																	: (var1.method234() ? -1 : 0))
															: var0.anInt492 - var1.anInt492)))));
	}
}
