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


int script_3794(int a0,int a1) {
	int v0 = -1;
	if (client_configs['cfg3680'].bitcfg22315 == 1) {
		int v1 = idx22mapAttribute(a0, 4317);
		if (v1 != -1) {
			return v1;
		}
	}
	if (a1 == 0) {
		return idx22mapAttribute(a0, 3497);
	}
	return idx22mapAttribute(a0, 3496);
}
