/* 
 * 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_4546(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(a0), a2) <= a4) 
			GOTO	flow_2
		GOTO	flow_5
	flow_1:
	flow_2:
		cs2method_10283(a4, cs2method_10823(a0), 0, 0, a0);
		if (a1 != -1) {
			cs2method_10758(a1, a5);
		}
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a0));
		return;
	flow_5:
		IF (a3 == 2) 
			GOTO	flow_6
		IF (a3 == 3 && cs2method_10060(cs2method_10823(a0), a2) <= a4) 
			GOTO	flow_7
		GOTO	flow_10
	flow_6:
	flow_7:
		cs2method_10283(cs2method_10236(a0), a4, 0, 0, a0);
		if (a1 != -1) {
			cs2method_10758(a1, a5);
		}
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a0));
		return;
	flow_10:
		switch (a3) {
			case 0:
			case 1:
				cs2method_10283(cs2method_10461(cs2method_10236(a0), a2), cs2method_10823(a0), 0, 0, a0);
				break;
			case 2:
			case 3:
				cs2method_10283(cs2method_10236(a0), cs2method_10461(cs2method_10823(a0), a2), 0, 0, a0);
		}
		return;
}
