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


int script_8982(int a0,int a1) {
	int v1 = 0;
	int v0 = 0;
	while (v0 <= a1 && v1 < a0) {
		v0 = cs2method_10060(v0, script_8981(v1));
		if (v0 <= a1) {
			v1 = cs2method_10060(v1, 1);
		}
	}
	return v1;
}
