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


void script_1811(int a0,int a1,int a2) {
	if (cs2method_10265(cs2_configs['cfg2409']) == 0) {
		script_1812("", a2);
		return;
	}
	for (int v1 = script_1960(), int v13 = 0, int v3 = 0, int v11 = 0, int v0 = 0, object v10 = "", object v5 = "", object v12 = "", object v14 = "", int v4 = -1, object v8 = "", int v7 = cs2method_11048(0, cs2method_10461(v1, 100)), object v9 = "", int v6 = -1; v7 <= v1; v7 = cs2method_10060(v7, 1)) {
		int v15 = v7;
		opc_struct10864(4,5,0) v22 = cs2method_10864(v15);
		object v2 = v22.objectpart_4;
		int v16 = v22.intpart_3;
		object v20 = v22.objectpart_3;
		object v24 = v22.objectpart_2;
		object v17 = v22.objectpart_1;
		object v23 = v22.objectpart_0;
		int v21 = v22.intpart_2;
		int v19 = v22.intpart_1;
		int v18 = v22.intpart_0;
		switch (v18) {
			case 1:
			case 2:
			case 3:
			case 7:
			case 42:
			case 9:
			case 11:
			case 41:
			case 44:
			case 45:
			case 17:
			case 18:
			case 20:
			case 25:
			case 24:
				if (cs2method_10846(cs2method_10181(cs2method_10765(v23)), cs2_configs['cfg2409']) == 0) {
					v9 = v2;
					v6 = v7;
				}
		}
	}
	if (v6 < 0) {
		cs2_configs['cfg267'] = -1;
		script_1812("", a2);
		return;
	}
	if (cs2_configs['cfg267'] == -1 || v6 <= cs2_configs['cfg267'] || cs2method_10846(v9, cs2_configs['cfg2410']) != 0) {
		script_1812(v9, a2);
	}
	cs2_configs['cfg267'] = v6;
	return;
}
