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


void script_8810() {
	script_8812();
	cs2method_20348(new function<script_8811>() {
		script_8812();
		return;
	}, 3906, 3905, 2, "Y", new WidgetPointer(248,8));
	script_8857();
	cs2method_20348(new function<script_8821>() {
		script_8857();
		return;
	}, 3900, 1, "Y", new WidgetPointer(248,22));
	cs2method_10121(29492, 1, 16253052);
	script_8859();
	cs2method_20348(new function<script_8858>() {
		script_8859();
		return;
	}, 3901, 1, "Y", new WidgetPointer(248,125));
	script_9109();
	cs2method_20348(new function<script_9068>() {
		script_9109();
		return;
	}, 3908, 1, "Y", new WidgetPointer(248,58));
	cs2method_20486(new function<script_9127>(int a0) {
		if (client_configs['cfg3905'] == 0) {
			return;
		}
		int v0 = client_configs['cfg3908'];
		switch (a0) {
			case 0:
				if (client_configs['cfg3908'] != client_configs['cfg3905']) {
					cs2method_10670(36961, 1, 0, 255);
				} else {
					cs2method_10670(10046, 1, 0, 255);
				}
				client_configs['cfg3908'] = cs2method_10872(client_configs['cfg3905'], cs2method_10060(client_configs['cfg3908'], 1));
				break;
			case 1:
				if (client_configs['cfg3908'] != 1) {
					cs2method_10670(36961, 1, 0, 255);
				} else {
					cs2method_10670(10046, 1, 0, 255);
				}
				client_configs['cfg3908'] = cs2method_11048(1, cs2method_10461(client_configs['cfg3908'], 1));
		}
		if (v0 != client_configs['cfg3908']) {
			script_9126();
			script_9131();
			script_8860();
		}
		return;
	}, 0, "i", new WidgetPointer(248,84));
	cs2method_20486(new function<script_9127>(int a0) {
		if (client_configs['cfg3905'] == 0) {
			return;
		}
		int v0 = client_configs['cfg3908'];
		switch (a0) {
			case 0:
				if (client_configs['cfg3908'] != client_configs['cfg3905']) {
					cs2method_10670(36961, 1, 0, 255);
				} else {
					cs2method_10670(10046, 1, 0, 255);
				}
				client_configs['cfg3908'] = cs2method_10872(client_configs['cfg3905'], cs2method_10060(client_configs['cfg3908'], 1));
				break;
			case 1:
				if (client_configs['cfg3908'] != 1) {
					cs2method_10670(36961, 1, 0, 255);
				} else {
					cs2method_10670(10046, 1, 0, 255);
				}
				client_configs['cfg3908'] = cs2method_11048(1, cs2method_10461(client_configs['cfg3908'], 1));
		}
		if (v0 != client_configs['cfg3908']) {
			script_9126();
			script_9131();
			script_8860();
		}
		return;
	}, 1, "i", new WidgetPointer(248,79));
	cs2method_20348(new function<script_9125>() {
		script_9126();
		return;
	}, 3908, 1, "Y", new WidgetPointer(248,86));
	cs2method_20243(new function<script_7202>(int a0,int a1,int a2,int a3,int a4) {
		if (a0 == -1 || (int)cs2_configs['cfg2235'] == -1) {
			return;
		}
		if (a0 != (int)cs2_configs['cfg2235']) {
			script_7207(a1, a3, a4, cs2method_10744(a4), a2);
			return;
		}
		script_8841(11, 1);
		cs2_configs['cfg2250'] = "";
		cs2method_10467(1, a4);
		cs2method_10467(0, a1);
		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 (a0) {
				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, a4, cs2_configs['cfg2250'], a6);
						script_7208(cs2_configs['cfg2250']);
						return;
					}
					if (cs2_configs['cfg2236'] == 7) {
						script_7206(a1, a5, a2, a4, a6);
						return;
					}
					break;
				case 13:
					if (script_9666() == 1) {
						return;
					}
					if (cs2_configs['cfg2236'] == 7) {
						script_7206(a1, a5, a2, a4, a6);
					}
					return;
				case 102:
				case 103:
				case 98:
				case 99:
				case 96:
				case 97:
					if (cs2method_10862() == 0) {
						return;
					}
					cs2_configs['cfg1029'] = script_1553(a0, cs2_configs['cfg2250'], cs2_configs['cfg1029']);
					break;
				default:
					if (cs2_configs['cfg2236'] == 7) {
						int v2 = cs2_configs['cfg1029'];
						int v3 = 6;
						int v0 = a0;
						int v5 = a3;
						int v6 = cs2_configs['cfg2237'];
						object v1 = cs2_configs['cfg2250'];
						script_7170_struct(1,1,0) v7 = script_7170(v2, v3, v1, v0, v5, v6);
						object v4 = v7.objectpart_0;
						cs2_configs['cfg1029'] = v7.intpart_0;
						cs2_configs['cfg2250'] = (string)v4;
					}
			}
			cs2method_10026(a5, cs2method_11053(cs2_configs['cfg2250']));
			script_7213(a5, a2);
			return;
		}, -2147483640, false, new WidgetPointer(a0), new WidgetPointer(a1), new WidgetPointer(a3), new WidgetPointer(a4), new WidgetPointer(a2), "izIIIII", new WidgetPointer(a1));
		cs2method_20390(new function<script_7212>(int a0,int a1,int a2) {
			script_8841(11, 1);
			cs2_configs['cfg1029'] = script_1504(a0, cs2_configs['cfg2250'], 4040, a1, -1);
			script_7213(a1, a2);
			return;
		}, -2147483647, new WidgetPointer(a1), new WidgetPointer(a3), "iII", new WidgetPointer(a1));
		script_7213(a1, a3);
		cs2method_20638(new function<script_7205>(int a0,int a1,int a2,int a3,int a4) {
			script_7206(a4, a1, a3, a0, a2);
			return;
		}, new WidgetPointer(a0), new WidgetPointer(a1), new WidgetPointer(a3), new WidgetPointer(a4), new WidgetPointer(a2), "IIIII", new WidgetPointer(a1));
		cs2method_10467(0, a2);
		cs2method_20390(new function<script_7205>(int a0,int a1,int a2,int a3,int a4) {
			script_7206(a3, a0, a4, a2, a1);
			return;
		}, new WidgetPointer(a0), new WidgetPointer(a1), new WidgetPointer(a3), new WidgetPointer(a4), new WidgetPointer(a2), "IIIII", new WidgetPointer(a2));
		return;
	}, new WidgetPointer(-32768,3), new WidgetPointer(248,98), new WidgetPointer(248,99), new WidgetPointer(248,100), new WidgetPointer(248,61), 2235, 2236, 2, "IIIIIY", new WidgetPointer(248,97));
	cs2method_20390(new function<script_7203>(int a0,int a1) {
		int v0 = 0;
		if (cs2method_10609(a0) == 1) {
			cs2method_10467(0, a1);
			int v1 = cs2method_10060(cs2method_10133(), 30);
			cs2method_20162(new function<script_7204>(int a0,int a1,int a2) {
				if (a1 <= cs2method_10133() || cs2method_10609(a2) == 0) {
					cs2method_10467(1, a0);
				}
				return;
			}, new WidgetPointer(a1), new WidgetPointer(a0), v1, "IIi", new WidgetPointer(a1));
		}
		return;
	}, new WidgetPointer(248,101), new WidgetPointer(248,61), "II", new WidgetPointer(248,100));
	script_9131();
	cs2method_20348(new function<script_9130>() {
		script_9131();
		return;
	}, 3908, 1, "Y", new WidgetPointer(248,87));
	return;
}
