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


int script_9945(int a0,int a1,int a2) {
	if (a1 == -1) {
		return -1;
	}
	int v1 = script_8403(a1);
	int v0 = cs2method_11048(0, cs2method_10872(v1, cs2method_10236(a1)));
	int v3 = cs2method_10968(cs2method_10060(cs2method_10060(cs2method_10060(v0, a2), cs2method_10134(a1)), cs2method_10968(a0, 2)), a0);
	int v2 = cs2method_11048(0, cs2method_10872(v3, script_8374(a1)));
	return v2;
}
