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


void script_6141(int a0,int a1,int a2,int a3,int a4,int a5,int a6,int a7,int a8,int a9,int a10) {
	int v1 = cs2method_10122(a3, 18, 45);
	int v2 = 0;
	int v0 = cs2method_10060(a10, 1);
	if (cs2method_11038(a4, 0) == 1) {
		if (v0 >= a8) {
			int v3;
			cs2method_10063(cs2method_10060(a9, a7), cs2method_10060(a0, a5), 1, 1);
			if (a2 == 1) {
				v3 = cs2method_10060(25, cs2method_10877(50));
			} else {
				v3 = cs2method_10060(25, cs2method_10877(300));
			}
			cs2method_20162(load function<6141>, new WidgetPointer(-32768,3), a3, a9, a0, a7, a5, cs2method_10461(cs2method_10877(cs2method_10060(v1, v1)), v1), cs2method_10461(cs2method_10877(cs2method_10060(v1, v1)), v1), v3, 0, a2, "Iiiiiiiiiii", new WidgetPointer(a4));
			return;
		}
		cs2method_10063(cs2method_10060(cs2method_10060(a9, a1), cs2method_10122(v0, a8, cs2method_10461(a7, a1))), cs2method_10060(cs2method_10060(a0, a6), cs2method_10122(v0, a8, cs2method_10461(a5, a6))), 1, 1);
	}
	cs2method_20162(load function<6141>, new WidgetPointer(-32768,3), a3, a9, a0, a1, a6, a7, a5, a8, v0, a2, "Iiiiiiiiiii", new WidgetPointer(a4));
	return;
}
