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


void script_3388(int a0,int a1,int a2) {
	int v2;
	int v1 = 4;
	int v0 = -1;
	switch (a1) {
		case 1:
			v2 = -1;
			break;
		case 4:
			v2 = 93061672;
			break;
		case 2:
			v2 = 59375761;
			break;
		default:
			v2 = 48758845;
	}
	if (v2 != -1) {
		cs2method_10026(v2, "Your display has been changed. Do you want to keep this setting?");
	}
	if (cs2method_10580() == 1) {
		switch (a2) {
			case 2:
				int v4 = script_2582(19589, 0, a1);
				/* 
					java.lang.RuntimeException: Stack underflow
						at mgi.tools.jagdecs2.CS2Stack.pop(CS2Stack.java:46)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:191)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
						at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
						at tests.Main.main(Main.java:69)
					
				 */
			case 3:
				int v5 = script_2582(19589, 0, a1);
				/* 
					java.lang.RuntimeException: Stack underflow
						at mgi.tools.jagdecs2.CS2Stack.pop(CS2Stack.java:46)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:191)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
						at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
						at tests.Main.main(Main.java:69)
					
				 */
			case 4:
				if (v2 != -1) {
					cs2method_10026(v2, "Anti-aliasing have been increased. Do you wish to keep this setting?");
				}
				int v6 = script_2582(19589, 1, a1);
				/* 
					java.lang.RuntimeException: Stack underflow
						at mgi.tools.jagdecs2.CS2Stack.pop(CS2Stack.java:46)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processFlowBlock(FlowBlocksGenerator.java:191)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.processGeneration(FlowBlocksGenerator.java:52)
						at mgi.tools.jagdecs2.FlowBlocksGenerator.generate(FlowBlocksGenerator.java:35)
						at mgi.tools.jagdecs2.CS2Decompiler.decompile(CS2Decompiler.java:77)
						at tests.Main.main(Main.java:69)
					
				 */
			case 0:
				if (a0 == 1) {
					if (cs2method_10440() != 0) {
						cs2method_10650();
					} else {
						return;
					}
				}
				break;
			case -1:
				script_3384(a1);
		}
	} else {
		switch (a2) {
			case 1:
				if (cs2method_10440() != 1) {
					cs2method_10052();
				} else {
					return;
				}
				break;
			case 2:
				if (v1 >= 2) {
					if (cs2method_10440() != 2) {
						cs2method_10855();
					} else {
						return;
					}
				} else {
					script_3413(a1);
				}
				break;
			case 3:
				if (v1 >= 3) {
					if (cs2method_10440() != 3) {
						cs2method_11151();
					} else {
						return;
					}
				} else {
					script_3413(a1);
				}
				break;
			case 4:
				if (v1 >= 4) {
					if (cs2method_10440() != 4) {
						cs2method_10581();
					} else {
						return;
					}
				} else {
					script_3413(a1);
				}
				break;
			case 0:
				if (a0 == 1) {
					if (cs2method_10440() != 0) {
						cs2method_10650();
					} else {
						return;
					}
				}
				break;
			case -1:
				script_3384(a1);
		}
		if (cs2method_10440() == 1 || cs2method_10440() == 2) {
			cs2method_11027(0);
			script_1159(0);
			cs2method_11093(0);
			script_1165(0);
			cs2method_10150(0);
			script_1162(0);
			cs2method_10187(0);
			script_5873(0);
		}
	}
	int v3 = cs2method_10085();
	if (a2 == 0 || a0 == 1) {
		int v4 = v3;
		int v7 = cs2method_11055();
		int v6 = v3;
		script_2692_struct(2,0,0) v5 = script_2692(v6);
		script_3387(v4, v7, v5.intpart_0, v5.intpart_1, a1);
	} else {
		int v4 = v3;
		int v6 = cs2method_11055();
		int v5 = v3;
		script_2692_struct(2,0,0) v7 = script_2692(v5);
		script_2596(v4, v6, v7.intpart_0, v7.intpart_1, a1);
	}
	return;
}
