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


int script_9673(int a0,int a1,int a2) {
	if (a2 == -1 || a1 == -1) {
		return -1;
	}
	for (int v0 = a0; cs2method_11038(a2, v0) == 1; v0 = cs2method_10060(v0, 1)) {
		if (cs2method_10487() == a1 && cs2method_11089() > 0) {
			return v0;
		}
	}
	return -1;
}
