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


int script_5888(int a0) {
	int v2 = 0;
	int v1 = -1;
	int v0 = 1;
	while (idx17mapData('i', 'i', 8559, v2) != -1 && v0 == 1) {
		int v3 = idx17mapData('i', 'J', 8560, v2);
		if (v3 != -1 && idx22mapAttribute(v3, 4156) == a0 && script_5886(v2) == 0) {
			v0 = 0;
		}
		v2 = cs2method_10060(v2, 1);
	}
	return v0;
}
