// File: tewalds[P]pentagod/gtpagent.cpp
// Function: PentagoGTP::gtp_time(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
GTPResponse PentagoGTP::gtp_time(vecstr args){
	if(args.size() == 0)
		return GTPResponse(true, string("\n") +
			"Update the time settings, eg: time -s 2.5 -m 10 -g 600 -f 1\n" +
			"Method for distributing remaining time, current: " + time.method_name() + " " + to_str(time.param) + "\n" +
			"  -p --percent  Percentage of the remaining time every move            [10.0]\n" +
			"  -e --even     Multiple of even split of the maximum  remaining moves [2.0]\n" +
			"  -s --stats    Multiple of even split of the expected remaining moves [2.0]\n" +
			"Time allocation\n" +
			"  -m --move     Time per move                                          [" + to_str(time.move) + "]\n" +
			"  -g --game     Time per game                                          [" + to_str(time.game) + "]\n" +
			"  -f --flexible Add remaining time per move to remaining time          [" + to_str(time.flexible) + "]\n" +
			"  -i --maxsims  Maximum number of simulations per move                 [" + to_str(time.max_sims) + "]\n" +
			"Current game\n" +
			"  -r --remain   Remaining time for this game                           [" + to_str(time_remain) + "]\n");

	for(unsigned int i = 0; i < args.size(); i++) {
		string arg = args[i];

		if(arg == "-p" || arg == "--percent"){
			time.method = TimeControl::PERCENT;
			time.param = 10;
			if(i+1 < args.size() && from_str<double>(args[i+1]) > 0) time.param = from_str<double>(args[++i]);
		}else if(arg == "-e" || arg == "--even"){
			time.method = TimeControl::EVEN;
			time.param = 2;
			if(i+1 < args.size() && from_str<double>(args[i+1]) > 0) time.param = from_str<double>(args[++i]);
		}else if(arg == "-s" || arg == "--stats"){
			time.method = TimeControl::STATS;
			time.param = 2;
			if(i+1 < args.size() && from_str<double>(args[i+1]) > 0) time.param = from_str<double>(args[++i]);
		}else if((arg == "-m" || arg == "--move") && i+1 < args.size()){
			time.move = from_str<double>(args[++i]);
		}else if((arg == "-g" || arg == "--game") && i+1 < args.size()){
			time.game = from_str<float>(args[++i]);
		}else if((arg == "-f" || arg == "--flexible") && i+1 < args.size()){
			time.flexible = from_str<bool>(args[++i]);
		}else if((arg == "-i" || arg == "--maxsims") && i+1 < args.size()){
			time.max_sims = from_str<int>(args[++i]);
		}else if((arg == "-r" || arg == "--remain") && i+1 < args.size()){
			time_remain = from_str<double>(args[++i]);
		}else{
			return GTPResponse(false, "Missing or unknown parameter");
		}
	}

	return GTPResponse(true);
}

// Assembly:
subq $0x5f8, %rsp            # imm = 0x5F8
movq %rdx, 0xf0(%rsp)
movq %rdi, %rax
movq 0xf0(%rsp), %rdi
movq %rax, 0xf8(%rsp)
movq %rax, %rcx
movq %rcx, 0x100(%rsp)
movq %rax, 0x5f0(%rsp)
movq %rsi, 0x5e8(%rsp)
movq %rdi, 0x5e0(%rsp)
movq 0x5e8(%rsp), %rax
movq %rax, 0x108(%rsp)
callq 0xcbe0
cmpq $0x0, %rax
jne 0x18a81
leaq 0x27f(%rsp), %rdi
movq %rdi, 0xe8(%rsp)
callq 0x4670
movq 0xe8(%rsp), %rdx
leaq 0x25b28(%rip), %rsi     # 0x3dab0
leaq 0x280(%rsp), %rdi
callq 0x44d0
jmp 0x17f97
leaq 0x26302(%rip), %rdx     # 0x3e2a0
leaq 0x2a0(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x93b0
jmp 0x17fb5
leaq 0x26321(%rip), %rdx     # 0x3e2dd
leaq 0x2c0(%rsp), %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x93b0
jmp 0x17fd3
movq 0x108(%rsp), %rsi
addq $0x58, %rsi
leaq 0x248(%rsp), %rdi
callq 0x1e200
jmp 0x17fee
leaq 0x2e0(%rsp), %rdi
leaq 0x2c0(%rsp), %rsi
leaq 0x248(%rsp), %rdx
callq 0xe470
jmp 0x1800d
leaq 0x287a9(%rip), %rdx     # 0x407bd
leaq 0x300(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
callq 0x93b0
jmp 0x1802b
movq 0x108(%rsp), %rax
vmovsd 0x60(%rax), %xmm0
leaq 0x228(%rsp), %rdi
callq 0x1e3a0
jmp 0x18047
leaq 0x320(%rsp), %rdi
leaq 0x300(%rsp), %rsi
leaq 0x228(%rsp), %rdx
callq 0xe470
jmp 0x18066
leaq 0x25a43(%rip), %rdx     # 0x3dab0
leaq 0x340(%rsp), %rdi
leaq 0x320(%rsp), %rsi
callq 0x93b0
jmp 0x18084
leaq 0x26284(%rip), %rdx     # 0x3e30f
leaq 0x360(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x93b0
jmp 0x180a2
leaq 0x262b5(%rip), %rdx     # 0x3e35e
leaq 0x380(%rsp), %rdi
leaq 0x360(%rsp), %rsi
callq 0x93b0
jmp 0x180c0
leaq 0x262e5(%rip), %rdx     # 0x3e3ac
leaq 0x3a0(%rsp), %rdi
leaq 0x380(%rsp), %rsi
callq 0x93b0
jmp 0x180de
leaq 0x26315(%rip), %rdx     # 0x3e3fa
leaq 0x3c0(%rsp), %rdi
leaq 0x3a0(%rsp), %rsi
callq 0x93b0
jmp 0x180fc
leaq 0x26308(%rip), %rdx     # 0x3e40b
leaq 0x3e0(%rsp), %rdi
leaq 0x3c0(%rsp), %rsi
callq 0x93b0
jmp 0x1811a
movq 0x108(%rsp), %rax
vmovsd 0x70(%rax), %xmm0
leaq 0x208(%rsp), %rdi
callq 0x1e3a0
jmp 0x18136
leaq 0x400(%rsp), %rdi
leaq 0x3e0(%rsp), %rsi
leaq 0x208(%rsp), %rdx
callq 0xe470
jmp 0x18155
leaq 0x261ff(%rip), %rdx     # 0x3e35b
leaq 0x420(%rsp), %rdi
leaq 0x400(%rsp), %rsi
callq 0x93b0
jmp 0x18173
leaq 0x262da(%rip), %rdx     # 0x3e454
leaq 0x440(%rsp), %rdi
leaq 0x420(%rsp), %rsi
callq 0x93b0
jmp 0x18191
movq 0x108(%rsp), %rax
vmovsd 0x68(%rax), %xmm0
leaq 0x1e8(%rsp), %rdi
callq 0x1e3a0
jmp 0x181ad
leaq 0x460(%rsp), %rdi
leaq 0x440(%rsp), %rsi
leaq 0x1e8(%rsp), %rdx
callq 0xe470
jmp 0x181cc
leaq 0x26188(%rip), %rdx     # 0x3e35b
leaq 0x480(%rsp), %rdi
leaq 0x460(%rsp), %rsi
callq 0x93b0
jmp 0x181ea
leaq 0x262ac(%rip), %rdx     # 0x3e49d
leaq 0x4a0(%rsp), %rdi
leaq 0x480(%rsp), %rsi
callq 0x93b0
jmp 0x18208
movq 0x108(%rsp), %rax
movzbl 0x78(%rax), %esi
andl $0x1, %esi
leaq 0x1c8(%rsp), %rdi
callq 0x16100
jmp 0x18226
leaq 0x4c0(%rsp), %rdi
leaq 0x4a0(%rsp), %rsi
leaq 0x1c8(%rsp), %rdx
callq 0xe470
jmp 0x18245
leaq 0x2610f(%rip), %rdx     # 0x3e35b
leaq 0x4e0(%rsp), %rdi
leaq 0x4c0(%rsp), %rsi
callq 0x93b0
jmp 0x18263
leaq 0x2627c(%rip), %rdx     # 0x3e4e6
leaq 0x500(%rsp), %rdi
leaq 0x4e0(%rsp), %rsi
callq 0x93b0
jmp 0x18281
movq 0x108(%rsp), %rax
movl 0x7c(%rax), %esi
leaq 0x1a8(%rsp), %rdi
callq 0x16070
jmp 0x1829b
leaq 0x520(%rsp), %rdi
leaq 0x500(%rsp), %rsi
leaq 0x1a8(%rsp), %rdx
callq 0xe470
jmp 0x182ba
leaq 0x2609a(%rip), %rdx     # 0x3e35b
leaq 0x540(%rsp), %rdi
leaq 0x520(%rsp), %rsi
callq 0x93b0
jmp 0x182d8
leaq 0x26250(%rip), %rdx     # 0x3e52f
leaq 0x560(%rsp), %rdi
leaq 0x540(%rsp), %rsi
callq 0x93b0
jmp 0x182f6
leaq 0x26240(%rip), %rdx     # 0x3e53d
leaq 0x580(%rsp), %rdi
leaq 0x560(%rsp), %rsi
callq 0x93b0
jmp 0x18314
movq 0x108(%rsp), %rax
vmovsd 0x80(%rax), %xmm0
leaq 0x188(%rsp), %rdi
callq 0x1e3a0
jmp 0x18333
leaq 0x5a0(%rsp), %rdi
leaq 0x580(%rsp), %rsi
leaq 0x188(%rsp), %rdx
callq 0xe470
jmp 0x18352
leaq 0x26002(%rip), %rdx     # 0x3e35b
leaq 0x5c0(%rsp), %rdi
leaq 0x5a0(%rsp), %rsi
callq 0x93b0
jmp 0x18370
movq 0xf8(%rsp), %rdi
movl $0x1, %esi
leaq 0x5c0(%rsp), %rdx
callq 0xb680
jmp 0x1838c
leaq 0x5c0(%rsp), %rdi
callq 0x4210
leaq 0x5a0(%rsp), %rdi
callq 0x4210
leaq 0x188(%rsp), %rdi
callq 0x4210
leaq 0x580(%rsp), %rdi
callq 0x4210
leaq 0x560(%rsp), %rdi
callq 0x4210
leaq 0x540(%rsp), %rdi
callq 0x4210
leaq 0x520(%rsp), %rdi
callq 0x4210
leaq 0x1a8(%rsp), %rdi
callq 0x4210
leaq 0x500(%rsp), %rdi
callq 0x4210
leaq 0x4e0(%rsp), %rdi
callq 0x4210
leaq 0x4c0(%rsp), %rdi
callq 0x4210
leaq 0x1c8(%rsp), %rdi
callq 0x4210
leaq 0x4a0(%rsp), %rdi
callq 0x4210
leaq 0x480(%rsp), %rdi
callq 0x4210
leaq 0x460(%rsp), %rdi
callq 0x4210
leaq 0x1e8(%rsp), %rdi
callq 0x4210
leaq 0x440(%rsp), %rdi
callq 0x4210
leaq 0x420(%rsp), %rdi
callq 0x4210
leaq 0x400(%rsp), %rdi
callq 0x4210
leaq 0x208(%rsp), %rdi
callq 0x4210
leaq 0x3e0(%rsp), %rdi
callq 0x4210
leaq 0x3c0(%rsp), %rdi
callq 0x4210
leaq 0x3a0(%rsp), %rdi
callq 0x4210
leaq 0x380(%rsp), %rdi
callq 0x4210
leaq 0x360(%rsp), %rdi
callq 0x4210
leaq 0x340(%rsp), %rdi
callq 0x4210
leaq 0x320(%rsp), %rdi
callq 0x4210
leaq 0x228(%rsp), %rdi
callq 0x4210
leaq 0x300(%rsp), %rdi
callq 0x4210
leaq 0x2e0(%rsp), %rdi
callq 0x4210
leaq 0x248(%rsp), %rdi
callq 0x4210
leaq 0x2c0(%rsp), %rdi
callq 0x4210
leaq 0x2a0(%rsp), %rdi
callq 0x4210
leaq 0x280(%rsp), %rdi
callq 0x4210
leaq 0x27f(%rsp), %rdi
callq 0x43f0
jmp 0x193ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a48
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a3b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a2e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18a07
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189ed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x189ac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x1899f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18992
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18985
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18978
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x1896b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x1895e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18951
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18944
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18937
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x1892a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x1891d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18910
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x18903
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x188f6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x188e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x188dc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x188cf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x188c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
leaq 0x5c0(%rsp), %rdi
callq 0x4210
leaq 0x5a0(%rsp), %rdi
callq 0x4210
leaq 0x188(%rsp), %rdi
callq 0x4210
leaq 0x580(%rsp), %rdi
callq 0x4210
leaq 0x560(%rsp), %rdi
callq 0x4210
leaq 0x540(%rsp), %rdi
callq 0x4210
leaq 0x520(%rsp), %rdi
callq 0x4210
leaq 0x1a8(%rsp), %rdi
callq 0x4210
leaq 0x500(%rsp), %rdi
callq 0x4210
leaq 0x4e0(%rsp), %rdi
callq 0x4210
leaq 0x4c0(%rsp), %rdi
callq 0x4210
leaq 0x1c8(%rsp), %rdi
callq 0x4210
leaq 0x4a0(%rsp), %rdi
callq 0x4210
leaq 0x480(%rsp), %rdi
callq 0x4210
leaq 0x460(%rsp), %rdi
callq 0x4210
leaq 0x1e8(%rsp), %rdi
callq 0x4210
leaq 0x440(%rsp), %rdi
callq 0x4210
leaq 0x420(%rsp), %rdi
callq 0x4210
leaq 0x400(%rsp), %rdi
callq 0x4210
leaq 0x208(%rsp), %rdi
callq 0x4210
leaq 0x3e0(%rsp), %rdi
callq 0x4210
leaq 0x3c0(%rsp), %rdi
callq 0x4210
leaq 0x3a0(%rsp), %rdi
callq 0x4210
leaq 0x380(%rsp), %rdi
callq 0x4210
leaq 0x360(%rsp), %rdi
callq 0x4210
leaq 0x340(%rsp), %rdi
callq 0x4210
leaq 0x320(%rsp), %rdi
callq 0x4210
leaq 0x228(%rsp), %rdi
callq 0x4210
leaq 0x300(%rsp), %rdi
callq 0x4210
leaq 0x2e0(%rsp), %rdi
callq 0x4210
leaq 0x248(%rsp), %rdi
callq 0x4210
leaq 0x2c0(%rsp), %rdi
callq 0x4210
leaq 0x2a0(%rsp), %rdi
callq 0x4210
leaq 0x280(%rsp), %rdi
callq 0x4210
leaq 0x27f(%rsp), %rdi
callq 0x43f0
jmp 0x193fc
movl $0x0, 0x184(%rsp)
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
movq %rax, 0xe0(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0xe0(%rsp), %rax
cmpq %rcx, %rax
jae 0x19343
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
movl %eax, %esi
callq 0xcc00
movq %rax, %rsi
leaq 0x160(%rsp), %rdi
movq %rdi, 0xd0(%rsp)
callq 0x4170
movq 0xd0(%rsp), %rdi
leaq 0x25a8d(%rip), %rsi     # 0x3e586
callq 0x8b90
movb %al, 0xdf(%rsp)
jmp 0x18b07
movb 0xdf(%rsp), %al
testb $0x1, %al
jne 0x18b41
jmp 0x18b14
leaq 0x25a6e(%rip), %rsi     # 0x3e589
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0xcf(%rsp)
jmp 0x18b31
movb 0xcf(%rsp), %al
testb $0x1, %al
jne 0x18b41
jmp 0x18c38
movq 0xf0(%rsp), %rdi
movq 0x108(%rsp), %rax
movl $0x0, 0x58(%rax)
vmovsd 0x25730(%rip), %xmm0    # 0x3e290
vmovsd %xmm0, 0x60(%rax)
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0xc0(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0xc0(%rsp), %rax
cmpq %rcx, %rax
jae 0x18c33
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0xb8(%rsp)
jmp 0x18bbd
vmovsd 0xb8(%rsp), %xmm0
vpxor %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jbe 0x18c33
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0xb0(%rsp)
jmp 0x18c02
movq 0x108(%rsp), %rax
vmovsd 0xb0(%rsp), %xmm0
vmovsd %xmm0, 0x60(%rax)
jmp 0x18c33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x19331
jmp 0x192ef
leaq 0x25954(%rip), %rsi     # 0x3e593
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0xaf(%rsp)
jmp 0x18c55
movb 0xaf(%rsp), %al
testb $0x1, %al
jne 0x18c8f
jmp 0x18c62
leaq 0x2592d(%rip), %rsi     # 0x3e596
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0xae(%rsp)
jmp 0x18c7f
movb 0xae(%rsp), %al
testb $0x1, %al
jne 0x18c8f
jmp 0x18d6b
movq 0xf0(%rsp), %rdi
movq 0x108(%rsp), %rax
movl $0x1, 0x58(%rax)
vmovsd 0x24372(%rip), %xmm0    # 0x3d020
vmovsd %xmm0, 0x60(%rax)
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0xa0(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0xa0(%rsp), %rax
cmpq %rcx, %rax
jae 0x18d66
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x98(%rsp)
jmp 0x18d0b
vmovsd 0x98(%rsp), %xmm0
vpxor %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jbe 0x18d66
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x90(%rsp)
jmp 0x18d50
movq 0x108(%rsp), %rax
vmovsd 0x90(%rsp), %xmm0
vmovsd %xmm0, 0x60(%rax)
jmp 0x192ed
leaq 0x2582b(%rip), %rsi     # 0x3e59d
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x8f(%rsp)
jmp 0x18d88
movb 0x8f(%rsp), %al
testb $0x1, %al
jne 0x18dc2
jmp 0x18d95
leaq 0x25804(%rip), %rsi     # 0x3e5a0
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x8e(%rsp)
jmp 0x18db2
movb 0x8e(%rsp), %al
testb $0x1, %al
jne 0x18dc2
jmp 0x18e8e
movq 0xf0(%rsp), %rdi
movq 0x108(%rsp), %rax
movl $0x2, 0x58(%rax)
vmovsd 0x2423f(%rip), %xmm0    # 0x3d020
vmovsd %xmm0, 0x60(%rax)
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x80(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x80(%rsp), %rax
cmpq %rcx, %rax
jae 0x18e89
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x78(%rsp)
jmp 0x18e37
vmovsd 0x78(%rsp), %xmm0
vpxor %xmm1, %xmm1, %xmm1
vucomisd %xmm1, %xmm0
jbe 0x18e89
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x70(%rsp)
jmp 0x18e76
movq 0x108(%rsp), %rax
vmovsd 0x70(%rsp), %xmm0
vmovsd %xmm0, 0x60(%rax)
jmp 0x192eb
leaq 0x25713(%rip), %rsi     # 0x3e5a8
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x6f(%rsp)
jmp 0x18ea8
movb 0x6f(%rsp), %al
testb $0x1, %al
jne 0x18ed6
jmp 0x18eb2
leaq 0x256f2(%rip), %rsi     # 0x3e5ab
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x6e(%rsp)
jmp 0x18ecc
movb 0x6e(%rsp), %al
testb $0x1, %al
jne 0x18ed6
jmp 0x18f48
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x60(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x60(%rsp), %rax
cmpq %rcx, %rax
jae 0x18f48
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x58(%rsp)
jmp 0x18f30
movq 0x108(%rsp), %rax
vmovsd 0x58(%rsp), %xmm0
vmovsd %xmm0, 0x70(%rax)
jmp 0x192e9
leaq 0x25663(%rip), %rsi     # 0x3e5b2
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x57(%rsp)
jmp 0x18f62
movb 0x57(%rsp), %al
testb $0x1, %al
jne 0x18f90
jmp 0x18f6c
leaq 0x25642(%rip), %rsi     # 0x3e5b5
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x56(%rsp)
jmp 0x18f86
movb 0x56(%rsp), %al
testb $0x1, %al
jne 0x18f90
jmp 0x19006
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x48(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x48(%rsp), %rax
cmpq %rcx, %rax
jae 0x19006
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e4c0
vmovss %xmm0, 0x44(%rsp)
jmp 0x18fea
movq 0x108(%rsp), %rax
vmovss 0x44(%rsp), %xmm1
vcvtss2sd %xmm1, %xmm0, %xmm0
vmovsd %xmm0, 0x68(%rax)
jmp 0x192e7
leaq 0x242b8(%rip), %rsi     # 0x3d2c5
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x43(%rsp)
jmp 0x19020
movb 0x43(%rsp), %al
testb $0x1, %al
jne 0x1904e
jmp 0x1902a
leaq 0x2558b(%rip), %rsi     # 0x3e5bc
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x42(%rsp)
jmp 0x19044
movb 0x42(%rsp), %al
testb $0x1, %al
jne 0x1904e
jmp 0x190bd
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x38(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x38(%rsp), %rax
cmpq %rcx, %rax
jae 0x190bd
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e550
movb %al, 0x37(%rsp)
jmp 0x190a6
movq 0x108(%rsp), %rax
movb 0x37(%rsp), %cl
andb $0x1, %cl
movb %cl, 0x78(%rax)
jmp 0x192e5
leaq 0x25503(%rip), %rsi     # 0x3e5c7
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x36(%rsp)
jmp 0x190d7
movb 0x36(%rsp), %al
testb $0x1, %al
jne 0x19105
jmp 0x190e1
leaq 0x254e2(%rip), %rsi     # 0x3e5ca
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x35(%rsp)
jmp 0x190fb
movb 0x35(%rsp), %al
testb $0x1, %al
jne 0x19105
jmp 0x19171
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x28(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
jae 0x19171
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x15a10
movl %eax, 0x24(%rsp)
jmp 0x1915d
movq 0x108(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, 0x7c(%rax)
jmp 0x192e3
leaq 0x2545c(%rip), %rsi     # 0x3e5d4
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x23(%rsp)
jmp 0x1918b
movb 0x23(%rsp), %al
testb $0x1, %al
jne 0x191b9
jmp 0x19195
leaq 0x2543b(%rip), %rsi     # 0x3e5d7
leaq 0x160(%rsp), %rdi
callq 0x8b90
movb %al, 0x22(%rsp)
jmp 0x191af
movb 0x22(%rsp), %al
testb $0x1, %al
jne 0x191b9
jmp 0x1922e
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, 0x18(%rsp)
callq 0xcbe0
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jae 0x1922e
movq 0xf0(%rsp), %rdi
movl 0x184(%rsp), %eax
incl %eax
movl %eax, 0x184(%rsp)
movl %eax, %esi
callq 0xcc00
movq %rax, %rdi
callq 0x1e430
vmovsd %xmm0, 0x10(%rsp)
jmp 0x19213
movq 0x108(%rsp), %rax
vmovsd 0x10(%rsp), %xmm0
vmovsd %xmm0, 0x80(%rax)
jmp 0x192e1
leaq 0x13f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x4670
movq 0x8(%rsp), %rdx
leaq 0x25394(%rip), %rsi     # 0x3e5e0
leaq 0x140(%rsp), %rdi
callq 0x44d0
jmp 0x1925b
movq 0xf8(%rsp), %rdi
xorl %esi, %esi
leaq 0x140(%rsp), %rdx
callq 0xb680
jmp 0x19274
leaq 0x140(%rsp), %rdi
callq 0x4210
leaq 0x13f(%rsp), %rdi
callq 0x43f0
movl $0x1, 0x138(%rsp)
jmp 0x192fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x192d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
leaq 0x140(%rsp), %rdi
callq 0x4210
leaq 0x13f(%rsp), %rdi
callq 0x43f0
jmp 0x19331
jmp 0x192e3
jmp 0x192e5
jmp 0x192e7
jmp 0x192e9
jmp 0x192eb
jmp 0x192ed
jmp 0x192ef
movl $0x0, 0x138(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x4210
movl 0x138(%rsp), %eax
testl %eax, %eax
je 0x19319
jmp 0x19314
jmp 0x193ec
jmp 0x1931b
movl 0x184(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x184(%rsp)
jmp 0x18a8c
leaq 0x160(%rsp), %rdi
callq 0x4210
jmp 0x193fc
leaq 0x117(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x4670
movq (%rsp), %rdx
leaq 0x24752(%rip), %rsi     # 0x3dab1
leaq 0x118(%rsp), %rdi
callq 0x44d0
jmp 0x1936e
movq 0xf8(%rsp), %rdi
movl $0x1, %esi
leaq 0x118(%rsp), %rdx
callq 0xb680
jmp 0x1938a
leaq 0x118(%rsp), %rdi
callq 0x4210
leaq 0x117(%rsp), %rdi
callq 0x43f0
jmp 0x193ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
jmp 0x193dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x270(%rsp)
movl %eax, 0x26c(%rsp)
leaq 0x118(%rsp), %rdi
callq 0x4210
leaq 0x117(%rsp), %rdi
callq 0x43f0
jmp 0x193fc
movq 0x100(%rsp), %rax
addq $0x5f8, %rsp            # imm = 0x5F8
retq
movq 0x270(%rsp), %rdi
callq 0x4660
nopl (%rax)