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


int script_6782(int a0,int a1) {
	int v0 = idx22mapAttribute(idx17mapData('i', 'J', 5528, a1), 2236);
	if (cs2method_10338(13) < v0) {
		return 0;
	}
	if (cs2method_10771() == 0 && a0 == 0) {
		switch (a1) {
			case 8:
			case 1:
			case 3:
			case 13:
			case 5:
				return 1;
		}
		return 0;
	}
	return 1;
}
