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


int script_4789(int a0) {
	int v2 = 4;
	int v0 = 0;
	int v1 = 0;
	while (v2 <= 15) {
		int v3 = script_4949(v2);
		if (v3 == a0) {
			return script_4959(v2);
		}
		v2 = cs2method_10060(v2, 1);
	}
	return 0;
}
