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


void script_3298(int a0,int a1,int a2,int a3) {
	int v3;
	int v4 = cs2method_10970(a0);
	int v0 = cs2method_10823(a2);
	int v1 = cs2method_10461(v0, 32);
	int v2 = 0;
	if (v4 > 0) {
		v3 = cs2method_10968(cs2method_10051(v1, v0), v4);
	} else {
		v3 = v1;
	}
	if (v3 < 10) {
		v3 = 10;
	}
	if (cs2method_11038(a2, 1) == 1) {
		cs2method_10013(16, v3, 0, 0);
		script_3296(a2, a0, a1, a3, 1);
	}
	return;
}
