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


script_5175_struct(2,0,0) script_5175(int a0) {
	int v0 = 0;
	int v2 = 0;
	int v1 = 0;
	int v4 = -1;
	int v3 = script_9340();
	while (v0 <= v3) {
		int v5 = idx17mapData('i', 'J', 3483, v0);
		if (idx22mapAttribute(v5, 1267) == a0 && idx22mapAttribute(v5, 1322) == 0) {
			v1 = cs2method_10060(v1, 1);
			if (script_3227(v0) == 2) {
				v2 = cs2method_10060(v2, 1);
			}
		}
		v0 = cs2method_10060(v0, 1);
	}
	return new script_5175_struct(v2, v1);
}
