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


void script_3806(int a0) {
	int v0;
	int v3 = -1;
	int v4 = 0;
	int v5 = 0;
	if (a0 == 97452033) {
		v0 = 8823;
	} else {
		v0 = 8824;
	}
	int v1 = cs2method_10924(v0);
	int v2 = cs2method_10872(cs2method_10060(cs2method_10690((int)idx17mapData('i', 'I', v0, 0)), 20), 255);
	while (v5 < v1) {
		cs2method_10704(v2, (int)idx17mapData('i', 'I', v0, v5));
		v5 = cs2method_10060(v5, 1);
	}
	if (v2 >= 255) {
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a0));
		cs2method_10467(1, a0);
		return;
	}
	return;
}
