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


void script_7194(int a0,int a1,int a2,int a3,int a4,int a5,int a6,int a7,int a8) {
	int v27;
	if (cs2method_10862() == 1 || cs2method_10473() != 1) {
		return;
	}
	int v14 = cs2method_11048(cs2method_10872(cs2_configs['cfg1272'], 50), 1);
	switch (a2) {
		case 1:
			int v8 = v14;
			int v25 = a6;
			int v1 = a4;
			int v13 = a0;
			int v24 = cs2method_10461(a5, cs2method_10968(16284, 4));
			int v3 = 0;
			script_7193_struct(3,0,0) v18 = script_7193(v8, v25, v1, v13, v24, v3);
			a0 = v18.intpart_2;
			v27 = v18.intpart_1;
			a6 = v18.intpart_0;
			break;
		case 2:
			int v11 = v14;
			int v10 = a6;
			int v16 = a4;
			int v19 = a0;
			int v21 = cs2method_10060(a5, cs2method_10968(16284, 4));
			int v6 = 0;
			script_7193_struct(3,0,0) v20 = script_7193(v11, v10, v16, v19, v21, v6);
			a0 = v20.intpart_2;
			v27 = v20.intpart_1;
			a6 = v20.intpart_0;
			break;
		case 3:
			v27 = cs2method_10060(a4, v14);
			break;
		case 4:
			v27 = cs2method_10461(a4, v14);
			break;
		case 5:
			int v5 = v14;
			int v12 = a6;
			int v2 = a4;
			int v15 = a0;
			int v28 = a5;
			int v29 = a1;
			script_7193_struct(3,0,0) v23 = script_7193(v5, v12, v2, v15, v28, v29);
			a0 = v23.intpart_2;
			v27 = v23.intpart_1;
			a6 = v23.intpart_0;
			break;
		case 6:
			int v4 = cs2method_10461(0, v14);
			int v22 = a6;
			int v26 = a4;
			int v9 = a0;
			int v17 = a5;
			int v7 = a1;
			script_7193_struct(3,0,0) v0 = script_7193(v4, v22, v26, v9, v17, v7);
			a0 = v0.intpart_2;
			v27 = v0.intpart_1;
			a6 = v0.intpart_0;
			break;
		default:
			return;
	}
	script_7192(a6, v27, a0, a5, a1, a3, a8, a7);
	return;
}
