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


void script_5657(int a0,int a1,int a2) {
	if (cs2method_11038(a2, a0) == 1) {
		if (a1 < 10) {
			int v0 = cs2method_10060(a1, 1);
			cs2method_20061(load function<5657>, new WidgetPointer(a2), a0, v0, "Iii");
			return;
		}
		if (cs2method_10699() < 255) {
			cs2method_10002(cs2method_10872(cs2method_10060(cs2method_10699(), 2), 255));
			cs2method_10063(0, cs2method_11048(cs2method_10461(cs2method_10406(), 4), 0), 1, 0);
		}
		if (cs2method_10699() >= 255) {
			cs2method_10526();
		} else {
			cs2method_20061(load function<5657>, new WidgetPointer(a2), a0, a1, "Iii");
		}
	}
	return;
}
