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


void script_9841(int a0,int a1,int a2) {
	if (a2 == a1) {
		return;
	}
	int v1 = -1;
	int v3 = -1;
	if (cs2method_10461(a2, a1) == 1) {
		if (cs2method_11038(a0, a2) == 1 && cs2method_11038(a0, a1) == 1) {
			int v0 = cs2method_10487();
			int v2 = cs2method_11089();
			script_6580(cs2method_10487(), cs2method_11089());
			if (cs2method_11038(a0, a1) == 1) {
				script_6580(v0, v2);
			}
		}
	} else if (cs2method_10461(a1, a2) == 1) {
	} else {
		if (a2 < a1) {
			a1 = cs2method_10461(a1, 1);
		}
		script_9824(a2, a1);
	}
	return;
}
