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


void script_9242(int a0,int a1,int a2) {
	if (a0 == -1) {
		return;
	}
	if (script_9243(a0, a1) == 1) {
		return;
	}
	if (a2 == -1) {
		return;
	}
	if (cs2method_10982(a0) != -1) {
		a0 = cs2method_10982(a0);
	}
	int v0 = script_8404(a0);
	int v1 = cs2method_10718(a0);
	if (v0 >= 0 && v0 <= 15) {
		v1 = cs2method_10461(v1, 4);
	} else {
		if (v0 >= cs2method_10461(cs2method_10823(a0), 10) && v0 <= cs2method_10823(a0)) {
			v1 = cs2method_10060(v1, 4);
		}
	}
	cs2method_10251(0, v1, a0);
	script_7791(a2, a0);
	return;
}
