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


void script_10020(int a0,int a1) {
	cs2method_10606(a0, 6, 0);
	cs2method_10013(0, 0, 1, 1);
	cs2method_10063(0, 0, 1, 1);
	cs2method_10755();
	cs2method_10304(0, 100, 0, 0, 0, 380);
	cs2method_21135(new function<script_8483>(int a0,int a1) {
		script_8484(a1, a0);
		return;
	}, new WidgetPointer(-32768,3), -2147483643, 779, 1, "IiY");
	cs2method_10644(a0, -1, a1);
	cs2method_21073(new function<script_8479>(int a0,int a1,int a2) {
		if (cs2method_11038(a0, a2) == 1 || a2 == -1 && cs2method_10324(a0) == 1) {
			cs2method_21073(new function<script_8482>(int a0,int a1,int a2,int a3,int a4,int a5,int a6,int a7,int a8) {
				script_3852(a8, a2, a1, a0, a6, a5, a3, a7, a4);
				return;
			}, new WidgetPointer(a1), new WidgetPointer(a0), a2, -1, 1, 0, 0, 0, 0, "IIiiiiiii", new WidgetPointer(a1));
			cs2method_21110(new function<script_3851>(int a0,int a1,int a2,int a3) {
				script_8481(a1, a0, a2, a3);
				return;
			}, new WidgetPointer(a1), new WidgetPointer(a0), a2, -1, "IIii", new WidgetPointer(a1));
			if (cs2method_10580() == 1) {
				cs2method_10896(186, 186);
			} else {
				cs2method_10896(188, 188);
			}
			cs2method_11159(-1, a1);
		}
		return;
	}, new WidgetPointer(a1), new WidgetPointer(a0), 0, "IIi", new WidgetPointer(a1));
	cs2method_21110(new function<script_8480>(int a0,int a1,int a2) {
		script_8481(a2, a0, a1, -1);
		return;
	}, new WidgetPointer(a1), new WidgetPointer(a0), 0, "IIi", new WidgetPointer(a1));
	script_8484(a0, 0);
	if (cs2method_10580() == 1) {
		cs2method_11159(187, a1);
	} else {
		cs2method_11159(189, a1);
	}
	return;
}
