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


void script_2847(int a0) {
	int v1 = 308;
	int v3 = 55;
	int v2 = 0;
	int v0 = cs2method_10924(903);
	globalarray_0 = new int[v0];
	globalarray_0[0] = 5;
	globalarray_0[1] = 8;
	globalarray_0[2] = 2;
	globalarray_0[3] = 0;
	globalarray_0[4] = 4;
	globalarray_0[5] = 1;
	globalarray_0[6] = 3;
	globalarray_0[7] = 7;
	globalarray_0[8] = 6;
	while (v2 < v0) {
		if (cs2method_11038(a0, globalarray_0[v2]) == 1) {
			cs2method_10063(v1, v3, 0, 0);
		}
		v2 = cs2method_10060(v2, 1);
		if (v2 == 3) {
			v1 = cs2method_10060(308, 48);
			v3 = 55;
		} else if (v2 == 6) {
			v1 = cs2method_10060(308, 96);
			v3 = 55;
		} else {
			v3 = cs2method_10060(48, v3);
		}
	}
	return;
}
