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


void script_9888(int a0) {
	if (cs2_configs['cfg4127'] != 1) {
		if (cs2_configs['cfg4126'] < 25) {
			if (cs2method_10038(cs2_configs['cfg4126'], 1) == 0) {
				cs2method_10112(cs2method_10191(a0), cs2method_10060(5, cs2method_10152(a0)), 0, 0, a0);
			}
			cs2_configs['cfg4126'] = cs2method_10060(cs2_configs['cfg4126'], 1);
		} else {
			cs2_configs['cfg4127'] = 1;
			cs2_configs['cfg4126'] = 0;
		}
	} else if (cs2_configs['cfg4126'] < 25) {
		if (cs2method_10038(cs2_configs['cfg4126'], 1) == 0) {
			cs2method_10112(cs2method_10191(a0), cs2method_10461(cs2method_10152(a0), 5), 0, 0, a0);
		}
		cs2_configs['cfg4126'] = cs2method_10060(cs2_configs['cfg4126'], 1);
	} else {
		cs2_configs['cfg4127'] = 0;
		cs2_configs['cfg4126'] = 0;
	}
	return;
}
