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


void script_8257(int a0) {
	int v0 = 0;
	int v1 = 0;
	if (a0 != -1) {
		int v2 = cs2method_10163(a0);
		while (v0 < v2) {
			if (cs2method_11038(a0, v0) == 1) {
				switch (interfaceDefsAttribute(3540)) {
					case 2:
						cs2method_10002(cs2method_10968(cs2_configs['cfg3465'].bitcfg19930, 2));
						break;
					case 3:
						cs2method_10002(cs2method_10872(cs2method_10968(cs2method_10051(cs2_configs['cfg3465'].bitcfg19930, 3), 2), 127));
						break;
					case 1:
						cs2method_10002(cs2_configs['cfg3465'].bitcfg19930);
						break;
					case 4:
						if (client_configs['cfg3814'].bitcfg19928 == 1 && cs2_configs['cfg3465'].bitcfg19930 > 226 && script_1186() == 1) {
							cs2method_10002(cs2method_10461(255, cs2method_10051(5, cs2method_10461(255, cs2_configs['cfg3465'].bitcfg19930))));
						} else {
							cs2method_10002(cs2method_10968(cs2_configs['cfg3465'].bitcfg19930, 2));
						}
				}
			}
			v0 = cs2method_10060(v0, 1);
		}
	}
	return;
}
