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


void script_5656(int a0,int a1,int a2) {
	if (a2 == 1) {
		cs2method_10704(0, a0);
	}
	if (a1 < 500) {
		int v0 = cs2method_10060(a1, 1);
		cs2method_20162(load function<5656>, 0, new WidgetPointer(a0), v0, "1Ii", new WidgetPointer(a0));
		return;
	}
	if (cs2method_10690(a0) < 255) {
		cs2method_10704(cs2method_10872(cs2method_10060(cs2method_10690(a0), 5), 255), a0);
	}
	if (cs2method_10690(a0) >= 255) {
		cs2method_10467(1, a0);
		cs2method_10704(0, a0);
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a0));
	} else {
		cs2method_20162(load function<5656>, 0, new WidgetPointer(a0), a1, "1Ii", new WidgetPointer(a0));
	}
	return;
}
