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


void script_9750(int a0,int a1,int a2,int a3) {
	int v1 = cs2method_10060(a0, 1);
	if (a2 == 1) {
		cs2method_10067(22681, a1);
	}
	if (a0 == 25) {
		switch (a1) {
			case 82117037:
				cs2method_10067(22691, a1);
				break;
			case 82116766:
				cs2method_10067(22691, a1);
				break;
			case 82117039:
				cs2method_10067(22691, a1);
				break;
			case 82117034:
				cs2method_10067(22691, a1);
				break;
			case 82117032:
				cs2method_10067(22691, a1);
		}
	}
	int v0 = 0;
	if (a0 == cs2method_10060(25, cs2method_10527(22691))) {
		cs2method_10067(-1, a1);
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a3));
		int v2 = cs2method_10877(100);
		cs2method_20162(new function<script_9746>(int a0,int a1) {
			if (a1 <= 0) {
				cs2method_10067(-1, a0);
				cs2method_10067(22683, a0);
				cs2method_20162(new function<none>() {
				}, "", new WidgetPointer(a0));
			} else {
				int v0 = cs2method_10461(a1, 1);
				cs2method_20162(load function<9746>, new WidgetPointer(a0), v0, "Ii", new WidgetPointer(a0));
			}
			return;
		}, new WidgetPointer(a1), v2, "Ii", new WidgetPointer(a1));
		cs2method_20680(new function<script_9748>(int a0) {
			cs2method_10067(22682, a0);
			switch (cs2method_10877(5)) {
				case 0:
					cs2method_10670(43560, 1, 0, 100);
					break;
				case 1:
					cs2method_10670(43548, 1, 0, 100);
					break;
				case 2:
					cs2method_10670(43554, 1, 0, 100);
					break;
				case 3:
					cs2method_10670(43547, 1, 0, 100);
					break;
				case 4:
					cs2method_10670(43562, 1, 0, 100);
			}
			return;
		}, new WidgetPointer(a1), "I", new WidgetPointer(a3));
		cs2method_20750(new function<script_9749>(int a0) {
			cs2method_10067(22683, a0);
			return;
		}, new WidgetPointer(a1), "I", new WidgetPointer(a3));
		return;
	}
	cs2method_20162(load function<9750>, new WidgetPointer(a3), new WidgetPointer(a1), v1, 0, "IIii", new WidgetPointer(a3));
	return;
}
