/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */


void script_7144() {
	cs2method_20486(new function<script_7148>(int a0) {
		if (client_configs['cfg312'].bitcfg1002 == 0) {
			return;
		}
		int v1 = client_configs['cfg312'].bitcfg1003;
		switch (a0) {
			case 0:
				client_configs['cfg312'].bitcfg1003 = cs2method_10872(client_configs['cfg312'].bitcfg1002, cs2method_10060(client_configs['cfg312'].bitcfg1003, 1));
				break;
			case 1:
				client_configs['cfg312'].bitcfg1003 = cs2method_11048(1, cs2method_10461(client_configs['cfg312'].bitcfg1003, 1));
		}
		int v0 = -1;
		if (v1 != client_configs['cfg312'].bitcfg1003) {
			script_7147();
			script_7152();
			script_7153(89849860, 10);
			script_7153(89849861, 30);
			switch (cs2method_10877(3)) {
				case 0:
					v0 = 21248;
					break;
				case 1:
					v0 = 21256;
					break;
				case 2:
					v0 = 21256;
			}
			int v3 = v0;
			int v2 = 1;
			int v5 = 0;
			int v4 = 20;
			special6(5, 10);
			/* 
				java.lang.RuntimeException: Stack underflow
					at mgi.tools.jagdecs2.CS2Stack.pop(CS2Stack.java:46)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.analyzeCall(FlowBlocksGenerator.java:278)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:235)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
					at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.cast(FlowBlocksGenerator.java:546)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.analyzeCall(FlowBlocksGenerator.java:278)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:235)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
					at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
					at tests.Main.main(Main.java:69)
				
			 */
		}
		return;
	}, 0, "i", new WidgetPointer(1371,29));
	cs2method_20486(new function<script_7148>(int a0) {
		if (client_configs['cfg312'].bitcfg1002 == 0) {
			return;
		}
		int v0 = client_configs['cfg312'].bitcfg1003;
		switch (a0) {
			case 0:
				client_configs['cfg312'].bitcfg1003 = cs2method_10872(client_configs['cfg312'].bitcfg1002, cs2method_10060(client_configs['cfg312'].bitcfg1003, 1));
				break;
			case 1:
				client_configs['cfg312'].bitcfg1003 = cs2method_11048(1, cs2method_10461(client_configs['cfg312'].bitcfg1003, 1));
		}
		int v1 = -1;
		if (v0 != client_configs['cfg312'].bitcfg1003) {
			script_7147();
			script_7152();
			script_7153(89849860, 10);
			script_7153(89849861, 30);
			switch (cs2method_10877(3)) {
				case 0:
					v1 = 21248;
					break;
				case 1:
					v1 = 21256;
					break;
				case 2:
					v1 = 21256;
			}
			int v2 = v1;
			int v5 = 1;
			int v4 = 0;
			int v3 = 20;
			special6(5, 10);
			/* 
				java.lang.RuntimeException: Stack underflow
					at mgi.tools.jagdecs2.CS2Stack.pop(CS2Stack.java:46)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.analyzeCall(FlowBlocksGenerator.java:278)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:235)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
					at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.cast(FlowBlocksGenerator.java:546)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.analyzeCall(FlowBlocksGenerator.java:278)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:235)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
					at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
					at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
					at tests.Main.main(Main.java:69)
				
			 */
		}
		return;
	}, 1, "i", new WidgetPointer(1371,31));
	cs2method_20243(new function<script_7202>(int a0,int a1,int a2,int a3,int a4) {
		if (a2 == -1 || (int)cs2_configs['cfg2235'] == -1) {
			return;
		}
		if (a2 != (int)cs2_configs['cfg2235']) {
			script_7207(a0, a4, a1, cs2method_10744(a1), a3);
			return;
		}
		script_8841(11, 1);
		cs2_configs['cfg2250'] = "";
		cs2method_10467(1, a1);
		cs2method_10467(0, a0);
		cs2method_20380(new function<script_7211>(int a0,int a1,int a2,int a3,int a4,int a5,int a6) {
			if (cs2_configs['cfg2873'] != 11) {
				return;
			}
			if (cs2method_10609(a5) == 1) {
				return;
			}
			switch (a3) {
				case 84:
					if (cs2method_10265(cs2_configs['cfg2250']) > 0) {
						if (cs2_configs['cfg2236'] == 7) {
							cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "K", "000");
							cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "k", "000");
							cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "M", "000000");
							cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "m", "000000");
							if (cs2method_10262() == 1) {
								cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "T", "000");
								cs2_configs['cfg2250'] = (string)script_2332(cs2_configs['cfg2250'], "t", "000");
							}
						}
						script_7207(a5, a2, a6, cs2_configs['cfg2250'], a0);
						script_7208(cs2_configs['cfg2250']);
						return;
					}
					if (cs2_configs['cfg2236'] == 7) {
						script_7206(a1, a5, a2, a6, a0);
						return;
					}
					break;
				case 13:
					if (script_9666() == 1) {
						return;
					}
					if (cs2_configs['cfg2236'] == 7) {
						script_7206(a1, a5, a2, a6, a0);
					}
					return;
				case 102:
				case 103:
				case 98:
				case 99:
				case 96:
				case 97:
					if (cs2method_10862() == 0) {
						return;
					}
					cs2_configs['cfg1029'] = script_1553(a3, cs2_configs['cfg2250'], cs2_configs['cfg1029']);
					break;
				default:
					if (cs2_configs['cfg2236'] == 7) {
						int v4 = cs2_configs['cfg1029'];
						int v6 = 6;
						int v7 = a3;
						int v5 = a4;
						int v1 = cs2_configs['cfg2237'];
						object v0 = cs2_configs['cfg2250'];
						script_7170_struct(1,1,0) v3 = script_7170(v4, v6, v0, v7, v5, v1);
						object v2 = v3.objectpart_0;
						cs2_configs['cfg1029'] = v3.intpart_0;
						cs2_configs['cfg2250'] = (string)v2;
					}
			}
			cs2method_10026(a5, cs2method_11053(cs2_configs['cfg2250']));
			script_7213(a5, a2);
			return;
		}, -2147483640, false, new WidgetPointer(a2), new WidgetPointer(a0), new WidgetPointer(a4), new WidgetPointer(a1), new WidgetPointer(a3), "izIIIII", new WidgetPointer(a0));
		cs2method_20390(new function<script_7212>(int a0,int a1,int a2) {
			script_8841(11, 1);
			cs2_configs['cfg1029'] = script_1504(a1, cs2_configs['cfg2250'], 4040, a0, -1);
			script_7213(a0, a2);
			return;
		}, -2147483647, new WidgetPointer(a0), new WidgetPointer(a4), "iII", new WidgetPointer(a0));
		script_7213(a0, a4);
		cs2method_20638(new function<script_7205>(int a0,int a1,int a2,int a3,int a4) {
			script_7206(a2, a4, a1, a0, a3);
			return;
		}, new WidgetPointer(a2), new WidgetPointer(a0), new WidgetPointer(a4), new WidgetPointer(a1), new WidgetPointer(a3), "IIIII", new WidgetPointer(a0));
		cs2method_10467(0, a3);
		cs2method_20390(new function<script_7205>(int a0,int a1,int a2,int a3,int a4) {
			script_7206(a3, a1, a2, a4, a0);
			return;
		}, new WidgetPointer(a2), new WidgetPointer(a0), new WidgetPointer(a4), new WidgetPointer(a1), new WidgetPointer(a3), "IIIII", new WidgetPointer(a3));
		return;
	}, new WidgetPointer(-32768,3), new WidgetPointer(1370,72), new WidgetPointer(1370,73), new WidgetPointer(1370,74), new WidgetPointer(1371,9), 2235, 2236, 2, "IIIIIY", new WidgetPointer(1370,1));
	cs2method_20390(new function<script_7203>(int a0,int a1) {
		int v0 = 0;
		if (cs2method_10609(a1) == 1) {
			cs2method_10467(0, a0);
			int v1 = cs2method_10060(cs2method_10133(), 30);
			cs2method_20162(new function<script_7204>(int a0,int a1,int a2) {
				if (a2 <= cs2method_10133() || cs2method_10609(a1) == 0) {
					cs2method_10467(1, a0);
				}
				return;
			}, new WidgetPointer(a0), new WidgetPointer(a1), v1, "IIi", new WidgetPointer(a0));
		}
		return;
	}, new WidgetPointer(1370,75), new WidgetPointer(1371,9), "II", new WidgetPointer(1370,74));
	script_7123();
	script_8841(40, 1);
	return;
}
