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


script_4618_struct(2,0,0) script_4618(int a0,int a1) {
	if (a1 == 0) {
		return new script_4618_struct(0, 0);
	}
	int v2 = a1;
	int v3 = a0;
	int v0 = 0;
	if (clan_configs['cfg3'].bitcfg8804 == 1) {
		v0 = cs2method_11048(clan_configs['cfg0'], cs2method_10461(0, clan_configs['cfg0']));
	}
	int v1 = cs2method_10060(cs2method_10051(cs2method_10968(a0, 10), 60), cs2method_10051(cs2method_10038(a0, 10), 10));
	if (clan_configs['cfg3'].bitcfg8804 == 1) {
		if (clan_configs['cfg0'] < 0) {
			if (cs2method_10060(v1, v0) >= 1440) {
				v2 = cs2method_10060(v2, 1);
				v1 = cs2method_10461(cs2method_10060(v1, v0), 1440);
			} else {
				v1 = cs2method_10060(v1, v0);
			}
		} else if (cs2method_10461(v1, v0) < 0) {
			v2 = cs2method_10461(v2, 1);
			v1 = cs2method_10461(cs2method_10060(1440, a0), v0);
		} else {
			v1 = cs2method_10461(v1, v0);
		}
	}
	return new script_4618_struct(v2, v1);
}
