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


int script_6766(int a0,int a1) {
	int v0 = idx22mapAttribute(idx17mapData('i', 'J', 5524, a1), 2236);
	if (cs2method_10338(10) < v0) {
		return 0;
	}
	if (cs2method_10771() == 0 && a0 == 0) {
		switch (a1) {
			case 1:
			case 3:
			case 4:
			case 5:
			case 6:
			case 7:
			case 8:
			case 9:
			case 10:
			case 11:
			case 12:
			case 15:
			case 16:
			case 19:
				return 1;
		}
		return 0;
	}
	switch (a1) {
		case 23:
			if (script_2153(613) == 0) {
				return 0;
			}
			break;
		case 25:
			if (cs2method_10338(16) < 45 || cs2method_10338(2) < 45 || client_configs['cfg607'].bitcfg1617 < 0) {
				return 0;
			}
			break;
		case 22:
			if (cs2method_10338(16) < 30 || cs2method_10338(2) < 30 || client_configs['cfg607'].bitcfg1617 < 0) {
				return 0;
			}
			break;
		case 18:
			if (cs2method_10338(16) < 15 || cs2method_10338(2) < 15 || client_configs['cfg607'].bitcfg1617 < 0) {
				return 0;
			}
			break;
		case 21:
		case 24:
		case 30:
			if (cs2method_10338(2) < cs2method_10461(v0, 20) || client_configs['cfg607'].bitcfg1616 < 0) {
				return 0;
			}
			break;
		case 3:
			if (cs2method_10338(12) < 2) {
				return 0;
			}
			break;
		case 6:
			if (cs2method_10338(12) < 15) {
				return 0;
			}
			break;
		case 16:
			if (cs2method_10338(12) < 41) {
				return 0;
			}
			break;
		case 20:
			if (cs2method_10338(12) < 53) {
				return 0;
			}
			break;
		case 26:
			if (cs2method_10338(12) < 76) {
				return 0;
			}
			break;
		default:
			return 1;
	}
	return 1;
}
