/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */
// Beautifier was aborted, because this function contains unsolved flow blocks.


void script_4545(int a0,int a1,int a2,int a3,int a4,int a5) {
	flow_0:
		IF (a3 == 0) 
			GOTO	flow_1
		IF (a3 == 1 && cs2method_10060(cs2method_10236(a1), a0) >= a5) 
			GOTO	flow_2
		GOTO	flow_5
	flow_1:
	flow_2:
		cs2method_10283(a5, cs2method_10823(a1), 0, 0, a1);
		if (a4 != -1) {
			cs2method_10758(a4, a2);
		}
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a1));
		return;
	flow_5:
		IF (a3 == 2) 
			GOTO	flow_6
		IF (a3 == 3 && cs2method_10060(cs2method_10823(a1), a0) >= a5) 
			GOTO	flow_7
		GOTO	flow_10
	flow_6:
	flow_7:
		cs2method_10283(cs2method_10236(a1), a5, 0, 0, a1);
		if (a4 != -1) {
			cs2method_10758(a4, a2);
		}
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a1));
		return;
	flow_10:
		switch (a3) {
			case 0:
			case 1:
				cs2method_10283(cs2method_10060(cs2method_10236(a1), a0), cs2method_10823(a1), 0, 0, a1);
				break;
			case 2:
			case 3:
				cs2method_10283(cs2method_10236(a1), cs2method_10060(cs2method_10823(a1), a0), 0, 0, a1);
		}
		return;
}
