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


void script_7562(int a0,int a1) {
	int v1 = -1;
	int v0 = -1;
	switch (a1) {
		case 0:
			switch (a0) {
				case 0:
					v1 = 91619386;
					v0 = 16512;
					break;
				case 1:
					v1 = 91619387;
					v0 = 16515;
					break;
				case 2:
					v1 = 91619388;
					v0 = 16518;
			}
			break;
		case 1:
			switch (a0) {
				case 0:
					v1 = 91619386;
					v0 = 16513;
					break;
				case 1:
					v1 = 91619387;
					v0 = 16516;
					break;
				case 2:
					v1 = 91619388;
					v0 = 16519;
			}
			break;
		case 2:
			switch (a0) {
				default:
					break;
				case 0:
					v1 = 91619386;
					v0 = 16511;
					break;
				case 1:
					v1 = 91619387;
					v0 = 16514;
					break;
				case 2:
					v1 = 91619388;
					v0 = 16517;
			}
	}
	cs2method_10758(v0, v1);
	cs2method_10704(255, v1);
	cs2method_10467(0, v1);
	cs2method_20162(new function<script_7563>(int a0) {
		int v0 = cs2method_10690(a0);
		if (v0 > 5) {
			int v1 = cs2method_10461(v0, 5);
			cs2method_10704(v1, a0);
		} else {
			int v1 = 0;
			cs2method_10704(v1, a0);
			cs2method_20162(new function<script_7564>(int a0) {
				int v0 = cs2method_10690(a0);
				if (v0 < 250) {
					int v1 = cs2method_10060(v0, 5);
					cs2method_10704(v1, a0);
				} else {
					int v1 = 255;
					cs2method_10704(v1, a0);
					cs2method_20162(new function<none>() {
					}, "", new WidgetPointer(a0));
				}
				return;
			}, new WidgetPointer(a0), "I", new WidgetPointer(a0));
		}
		return;
	}, new WidgetPointer(v1), "I", new WidgetPointer(v1));
	return;
}
