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


void script_6622(int a0,int a1,int a2) {
	int v1 = 541;
	if (a1 == 2) {
		v1 = 539;
	}
	int v2 = 86704174;
	int v0 = 86704175;
	if (a0 == 674) {
		v2 = 86704135;
		v0 = 86704136;
	}
	if (cs2method_10324(v0) == 1 && cs2method_11038(v2, a2) == 1) {
		cs2method_10013(25, 25, 0, 0);
		cs2method_10063(cs2method_10878(), cs2method_10406(), 0, 0);
		cs2method_20061(new function<script_6623>(int a0,int a1,int a2,int a3) {
			if (cs2method_10133() < a3) {
				if (cs2method_10038(cs2method_10133(), 11) == 0) {
					if (a2 == 1) {
						cs2method_10758(a1, a0);
						a2 = 0;
					} else {
						cs2method_10758(-1, a0);
						a2 = 1;
					}
				}
				cs2method_20162(load function<6623>, a3, a2, a1, new WidgetPointer(a0), "iidI", new WidgetPointer(a0));
			} else {
				cs2method_10758(-1, a0);
				cs2method_20162(new function<none>() {
				}, "", new WidgetPointer(a0));
			}
			return;
		}, cs2method_10060(cs2method_10133(), 100), 0, v1, new WidgetPointer(v0), "iidI");
	}
	return;
}
