LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpagent.cpp
// Function: Morat::Hex::GTP::gtp_params(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 GTP::gtp_params(vecstr args){
//	if(dynamic_cast<AgentAB   *>(agent)) return gtp_ab_params(args);
	if(dynamic_cast<AgentMCTS *>(agent)) return gtp_mcts_params(args);
	if(dynamic_cast<AgentPNS  *>(agent)) return gtp_pns_params(args);

	return GTPResponse(false, "Unknown Agent type");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq 0xd8(%rsi), %r12
testq %r12, %r12
je 0x218a5
movq %rdx, %r15
movq %rsi, %r14
leaq 0x280bd(%rip), %rsi     # 0x498d8
leaq 0x2809e(%rip), %rdx     # 0x498c0
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x5390
testq %rax, %rax
je 0x2185e
leaq 0x40(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xbb08
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21928
leaq 0x40(%rsp), %rdi
callq 0xa9ae
jmp 0x218e5
testq %r12, %r12
je 0x218a5
leaq 0x2806e(%rip), %rsi     # 0x498d8
leaq 0x2830f(%rip), %rdx     # 0x49b80
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x5390
testq %rax, %rax
je 0x218a5
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xbb08
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x27d34
leaq 0x28(%rsp), %rdi
jmp 0x21854
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1328b(%rip), %rsi     # 0x34b40
leaq 0x13296(%rip), %rdx     # 0x34b52
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xb0e0
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa7f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x218e5
callq 0x52e0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x21906
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xa9ae
jmp 0x2191f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2191f
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/../lib/timecontrol.h
// Function: Morat::TimeControl::get_time(int, int, int) const
double get_time(int moves_made, int moves_remain_max, int moves_remain_estimate) const {
		double ret = 0;

		switch(method){
			case PERCENT:
				ret += param * remain / 100.0;
				break;
			case STATS:
				if(moves_remain_estimate > 0){
					// 2* because there are 2 players
					ret += 2 * param * remain / moves_remain_estimate;
					break;
				}  //fall back to even
			case EVEN:
				// 2* because there are 2 players
				ret += 2 * param * remain / moves_remain_max;
				break;
			// TODO: add a method that takes into account the number of moves made so
			// far. This should gives shorter time for the early moves, preferring to
			// spend it in the mid-game.
		}

		return std::min(ret, remain) + move;
	}

// Assembly:
movl (%rdi), %eax
cmpl $0x2, %eax
je 0x28ed0
cmpl $0x1, %eax
je 0x28ee8
vxorpd %xmm0, %xmm0, %xmm0
testl %eax, %eax
jne 0x28f06
vmovsd 0x8(%rdi), %xmm0
vmulsd 0x30(%rdi), %xmm0, %xmm0
vdivsd 0x9352(%rip), %xmm0, %xmm0 # 0x32220
jmp 0x28efe
testl %ecx, %ecx
jle 0x28ee8
vmovsd 0x8(%rdi), %xmm0
vaddsd %xmm0, %xmm0, %xmm0
vmulsd 0x30(%rdi), %xmm0, %xmm0
vcvtsi2sd %ecx, %xmm1, %xmm1
jmp 0x28efa
vmovsd 0x8(%rdi), %xmm0
vaddsd %xmm0, %xmm0, %xmm0
vmulsd 0x30(%rdi), %xmm0, %xmm0
vcvtsi2sd %edx, %xmm1, %xmm1
vdivsd %xmm1, %xmm0, %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vaddsd %xmm1, %xmm0, %xmm0
vmovsd 0x30(%rdi), %xmm1
vminsd %xmm0, %xmm1, %xmm0
vaddsd 0x18(%rdi), %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/../lib/timecontrol.h
// Function: Morat::TimeControl::use(double)
void use(double used){
		if(flexible)
			remain += move - used;
		else
			remain += std::min(0.0, move - used);

		if(remain < 0)
			remain = 0;
	}

// Assembly:
kmovb 0x20(%rdi), %k1
vmovsd 0x18(%rdi), %xmm1
vsubsd %xmm0, %xmm1, %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vminsd %xmm1, %xmm0, %xmm2
vmovsd %xmm0, %xmm2, %xmm2 {%k1}
vaddsd 0x30(%rdi), %xmm2, %xmm0
vmovsd %xmm0, 0x30(%rdi)
vucomisd %xmm0, %xmm1
jbe 0x28fcc
movq $0x0, 0x30(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/../lib/history.h
// Function: Morat::History<Morat::Hex::Board>::move(Morat::Move const&)
bool move(const Move & m) {
		if(board.valid_move(m)){
			board.move(m);
			hist.push_back(m);
			return true;
		}
		return false;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x29258
movl %eax, %ebp
testb %al, %al
je 0x2924b
movsbl (%rbx), %eax
movsbl 0x18(%r14), %ecx
imull %eax, %ecx
movsbl 0x1(%rbx), %eax
addl %ecx, %eax
movzwl (%rbx), %ecx
leaq 0x4(%rsp), %rsi
movw %cx, (%rsi)
movw %ax, 0x2(%rsi)
movq %r15, %rdi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x13778
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x29240
movzwl (%rbx), %eax
movw %ax, (%rsi)
addq $0x2, 0x8(%r14)
jmp 0x2924b
movq %r14, %rdi
movq %rbx, %rdx
callq 0x15716
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_print(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 GTP::gtp_print(vecstr args){
	Board board = *hist;
	for(auto arg : args)
		if (!board.move(arg))
			break;
	return GTPResponse(true, "\n" + board.to_s(colorboard));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movzwl 0x88(%rsi), %eax
leaq 0x70(%rsp), %rbx
movw %ax, -0x8(%rbx)
movq 0x80(%rsi), %rax
movq %rax, -0x10(%rbx)
addq $0x90, %rsi
movq %rbx, %rdi
callq 0xb34a
vmovups 0xa8(%r12), %xmm0
vmovups %xmm0, 0x18(%rbx)
movq 0xc0(%r12), %rax
movq %r12, 0x38(%rsp)
vmovups 0xb8(%r12), %xmm0
vmovups %xmm0, 0x28(%rbx)
testq %rax, %rax
je 0x29495
movq 0x20b41(%rip), %rcx     # 0x49fc8
cmpb $0x0, (%rcx)
je 0x29491
incl 0x8(%rax)
jmp 0x29495
lock
incl 0x8(%rax)
movq %r14, 0x30(%rsp)
movq (%r15), %r14
movq 0x8(%r15), %r13
cmpq %r13, %r14
je 0x29536
leaq 0x20(%rsp), %r12
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %rbp
movq %r12, 0x10(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa866
leaq 0xa(%rsp), %rdi
movq %r15, %rsi
callq 0x11286
movsbl 0xa(%rsp), %eax
movsbl 0x60(%rsp), %ecx
imull %eax, %ecx
movsbl 0xb(%rsp), %eax
addl %ecx, %eax
movzwl 0xa(%rsp), %ecx
movw %cx, 0xc(%rsp)
movw %ax, 0xe(%rsp)
leaq 0x60(%rsp), %rdi
movq %rbp, %rsi
movl $0x1, %edx
movl $0x1, %ecx
callq 0x13778
movl %eax, %ebx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x29528
callq 0x52e0
addq $0x20, %r14
cmpq %r13, %r14
setne %al
testb %al, %bl
jne 0x294b9
movq 0x38(%rsp), %rax
movzbl 0xcd(%rax), %edx
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1f6ee
leaq 0x83ae(%rip), %rcx      # 0x31906
leaq 0x10(%rsp), %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq 0x30(%rsp), %rbx
je 0x29598
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x295a1
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq 0x40(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x295d9
callq 0x52e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x295ec
callq 0x52e0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x295fe
callq 0xb170
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2960d
callq 0x52e0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x29639
callq 0x52e0
jmp 0x29639
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x2965d
jmp 0x29662
jmp 0x2964b
movq %rax, %rbx
jmp 0x29662
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x29662
callq 0x52e0
leaq 0x60(%rsp), %rdi
callq 0x9ce0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_clearboard(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 GTP::gtp_clearboard(vecstr args){
	hist.clear();
	set_board();
	time_control.new_game();

	return GTPResponse(true);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x68(%rsi), %rax
cmpq %rax, 0x70(%rsi)
je 0x29a6d
movq %rax, 0x70(%r14)
leaq 0x80(%r14), %r15
movq %r15, %rdi
callq 0xaf8e
movq 0xd8(%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
movl $0x1, %edx
callq *0x20(%rax)
vmovsd 0x40(%r14), %xmm0
vmovsd %xmm0, 0x60(%r14)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7e5a(%rip), %rdx      # 0x31907
movq %rsp, %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xb0e0
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0xa7f0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x29ad9
callq 0x52e0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x29af7
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_undo(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 GTP::gtp_undo(vecstr args){
	int num = (args.size() >= 1 ? from_str<int>(args[0]) : 1);

	while(num--){
		hist.undo();
	}
	set_board(false);
	if(verbose >= 2)
		logerr(hist->to_s(colorboard) + "\n");
	return GTPResponse(true);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
cmpq %rdi, 0x8(%rdx)
je 0x29b22
callq 0xaed9
movl %eax, %ebp
jmp 0x29b27
movl $0x1, %ebp
testl %ebp, %ebp
je 0x29b3b
leaq 0x68(%r14), %r15
movq %r15, %rdi
callq 0x2c9b0
decl %ebp
jne 0x29b2f
movq 0xd8(%r14), %rdi
leaq 0x80(%r14), %r15
movq (%rdi), %rax
movq %r15, %rsi
movl $0x1, %edx
callq *0x20(%rax)
cmpl $0x2, 0xc8(%r14)
jge 0x29bae
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7d96(%rip), %rdx      # 0x31907
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rdx, %rsi
callq 0xb0e0
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0xa7f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x29ba0
callq 0x52e0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movzbl 0xcd(%r14), %edx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1f6ee
leaq 0x7d39(%rip), %rsi      # 0x31906
movq %r14, %rdi
callq 0x56e0
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %rax, %rsi
callq 0x5be1
jmp 0x29b61
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x29c0c
jmp 0x29c11
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x29c11
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_all_legal(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 GTP::gtp_all_legal(vecstr args){
	std::string ret;
	for (auto move : *hist)
		ret += move.to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, 0x30(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x80(%rsi), %rdi
callq 0x13010
leaq 0x58(%rsp), %r14
movq %rax, (%r14)
movl %edx, 0x8(%r14)
shrq $0x20, %rdx
movb %dl, 0xc(%r14)
leaq 0x20(%rsp), %rbx
leaq 0x88(%rsp), %r15
leaq 0xc(%rsp), %r12
leaq 0xbf2c(%rip), %r13      # 0x35e43
leaq 0x38(%rsp), %rbp
cmpw $-0x1, 0x62(%rsp)
je 0x29fd1
movl 0x60(%rsp), %eax
movl %eax, 0xc(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x10cdc
movq %r15, %rdi
movq %r13, %rsi
callq 0x56e0
movq %rbx, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x29f69
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x29f71
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbp, %rdi
callq 0x50c0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x29faa
callq 0x52e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x29fc4
callq 0x52e0
movq %r14, %rdi
callq 0x13058
jmp 0x29f1c
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xa866
leaq 0x68(%rsp), %rdx
movq 0x30(%rsp), %r14
movq %r14, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2a017
callq 0x52e0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2a02b
callq 0x52e0
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
jne 0x2a081
jmp 0x2a08b
jmp 0x2a088
jmp 0x2a088
jmp 0x2a088
movq %rax, %r14
jmp 0x2a06c
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2a06c
callq 0x52e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2a08b
callq 0x52e0
jmp 0x2a08b
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2a09f
callq 0x52e0
movq %r14, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_history(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 GTP::gtp_history(vecstr args){
	std::string ret;
	for(auto m : hist)
		ret += m.to_s() + " ";
	return GTPResponse(true, ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, 0x30(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x68(%rsi), %rbx
movq 0x70(%rsi), %r15
cmpq %r15, %rbx
je 0x2a1a2
leaq 0x20(%rsp), %rbp
leaq 0x78(%rsp), %r14
leaq 0xbd4f(%rip), %r12      # 0x35e43
leaq 0x38(%rsp), %r13
movzwl (%rbx), %eax
movw %ax, 0xe(%rsp)
movq %r14, %rdi
leaq 0xe(%rsp), %rsi
callq 0x10cdc
movq %r14, %rdi
movq %r12, %rsi
callq 0x56e0
movq %rbp, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2a13c
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2a145
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x50c0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2a17e
callq 0x52e0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2a195
callq 0x52e0
addq $0x2, %rbx
cmpq %r15, %rbx
jne 0x2a0f9
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0xa866
leaq 0x58(%rsp), %rdx
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a1e8
callq 0x52e0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2a1fc
callq 0x52e0
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
jne 0x2a250
jmp 0x2a255
jmp 0x2a222
movq %rax, %rbx
jmp 0x2a255
movq %rax, %rbx
jmp 0x2a23e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2a23e
callq 0x52e0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2a255
callq 0x52e0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2a269
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_playgame(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 GTP::gtp_playgame(vecstr args){
	GTPResponse ret(true);

	for(unsigned int i = 0; ret.success && i < args.size(); i++)
		ret = play(args[i], hist->to_play());

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x7030(%rip), %rdx      # 0x31907
movq %rsp, %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0xb0e0
movq %rbx, %rdi
movl $0x1, %esi
movq %r12, %rdx
callq 0xa7f0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a903
callq 0x52e0
cmpb $0x1, (%rbx)
jne 0x2a99f
leaq 0x8(%rbx), %r12
leaq 0x28(%rbx), %rbp
xorl %r13d, %r13d
movl %r13d, %r13d
movq (%r14), %rdx
movq 0x8(%r14), %rax
subq %rdx, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x2a99f
movq %r13, %rax
shlq $0x5, %rax
addq %rax, %rdx
movl 0x88(%r15), %ecx
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x2a272
movb 0x20(%rsp), %al
movb %al, (%rbx)
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
callq 0x5430
movq %rbp, %rdi
leaq 0x48(%rsp), %rsi
callq 0x5430
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2a97f
callq 0x52e0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2a993
callq 0x52e0
incl %r13d
cmpb $0x0, (%rbx)
jne 0x2a917
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a9cf
callq 0x52e0
jmp 0x2a9cf
movq %rax, %r14
movq %rbx, %rdi
callq 0x9630
movq %r14, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_play(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 GTP::gtp_play(vecstr args){
	if(args.size() != 2)
		return GTPResponse(false, "Wrong number of arguments");

	switch(tolower(args[0][0])){
		case 'w': return play(args[1], Side::P1);
		case 'b': return play(args[1], Side::P2);
		default:  return GTPResponse(false, "Invalid player selection");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq (%rdx), %r15
movq 0x8(%rdx), %rax
subq %r15, %rax
cmpq $0x40, %rax
jne 0x2aa19
movq %rsi, %r14
movq (%r15), %rax
movsbl (%rax), %edi
callq 0x54a0
cmpl $0x62, %eax
je 0x2aa51
cmpl $0x77, %eax
jne 0x2aa6f
addq $0x20, %r15
leaq 0xb993(%rip), %rax      # 0x363aa
jmp 0x2aa5c
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb0f2(%rip), %rsi      # 0x35b1b
leaq 0xb104(%rip), %rdx      # 0x35b34
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0xb0e0
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa7f0
movq 0x20(%rsp), %rdi
jmp 0x2aaa2
addq $0x20, %r15
leaq 0xb94f(%rip), %rax      # 0x363ab
movzbl (%rax), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2a272
jmp 0x2aaac
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xb0b6(%rip), %rsi      # 0x35b35
leaq 0xb0c7(%rip), %rdx      # 0x35b4d
movq %rsp, %r14
movq %r14, %rdi
callq 0xb0e0
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa7f0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2aaac
callq 0x52e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
jmp 0x2aaca
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2aad4
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_verbose(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 GTP::gtp_verbose(vecstr args){
	if(args.size() >= 1)
		verbose = from_str<int>(args[0]);
	else
		verbose = !verbose;
	return GTPResponse(true, "Verbose " + to_str(verbose));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
cmpq %rdi, 0x8(%rdx)
je 0x2adf3
callq 0xaed9
jmp 0x2ae00
xorl %eax, %eax
cmpl $0x0, 0xc8(%r14)
sete %al
movl %eax, 0xc8(%r14)
movl 0xc8(%r14), %esi
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x11187
leaq 0xad3b(%rip), %rcx      # 0x35b5d
movl $0x8, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2ae5b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2ae64
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq 0x8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ae9c
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2aeaf
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2aed1
callq 0x52e0
jmp 0x2aed1
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2aee4
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_colorboard(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 GTP::gtp_colorboard(vecstr args){
	if(args.size() >= 1)
		colorboard = from_str<int>(args[0]);
	else
		colorboard = !colorboard;
	return GTPResponse(true, "Color " + to_str(colorboard));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
cmpq %rdi, 0x8(%rdx)
je 0x2af13
callq 0xaed9
testl %eax, %eax
setne 0xcd(%r14)
jmp 0x2af1b
xorb $0x1, 0xcd(%r14)
movzbl 0xcd(%r14), %esi
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x28fcd
leaq 0xac2f(%rip), %rcx      # 0x35b66
movl $0x6, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2af70
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2af79
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq 0x8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2afb1
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2afc4
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2afe6
callq 0x52e0
jmp 0x2afe6
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2aff9
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/gtpgeneral.cpp
// Function: Morat::Hex::GTP::gtp_extended(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 GTP::gtp_extended(vecstr args){
	if(args.size() >= 1)
		genmoveextended = from_str<bool>(args[0]);
	else
		genmoveextended = !genmoveextended;
	return GTPResponse(true, "extended " + to_str(genmoveextended));
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
cmpq %rdi, 0x8(%rdx)
je 0x2b026
callq 0x290d7
movb %al, 0xcc(%r14)
jmp 0x2b02e
xorb $0x1, 0xcc(%r14)
movzbl 0xcc(%r14), %esi
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x28fcd
leaq 0xab23(%rip), %rcx      # 0x35b6d
movl $0x9, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2b083
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2b08c
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r14)
movq 0x8(%rax), %rsi
leaq 0x8(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa7f0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2b0c4
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b0d7
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2b0f9
callq 0x52e0
jmp 0x2b0f9
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b10c
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::AgentPNS(Morat::Hex::Board const&)
AgentPNS(const Board & b) : Agent(b), pool(this) {
		ab = 2;
		df = true;
		epsilon = 0.25;
		ties = Side::NONE;
		lbdist = false;
		numthreads = 1;
		pool.set_num_threads(numthreads);
		gclimit = 5;

		nodes = 0;
		reset();

		set_memlimit(1000*1024*1024);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x11f0c
leaq 0x1d23e(%rip), %rax     # 0x49b00
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x70(%rbx), %r14
movq %r14, %rdi
callq 0x2d37a
leaq 0x1430(%rbx), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2d40c
leaq 0x9abb(%rip), %rax      # 0x363a9
movb (%rax), %al
movb %al, 0x1534(%rbx)
leaq 0x1540(%rbx), %r12
movw $0x78fc, 0x1552(%rbx)   # imm = 0x78FC
movq $0x0, 0x1558(%rbx)
movl $0x2, 0x1528(%rbx)
movb $0x1, 0x152c(%rbx)
movl $0x3e800000, 0x1530(%rbx) # imm = 0x3E800000
movb $0x0, 0x1535(%rbx)
movl $0x1, 0x1538(%rbx)
movq %r15, %rdi
movl $0x1, %esi
callq 0x1d1a8
movl $0x5, 0x68(%rbx)
xorl %eax, %eax
movq %rax, 0x58(%rbx)
movq %rax, 0x1518(%rbx)
movb $0x0, 0x8(%rbx)
movq (%rbx), %rax
movl $0x3e800000, %esi       # imm = 0x3E800000
movq %rbx, %rdi
callq *0x30(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r13
jmp 0x2c997
movq %rax, %r13
jmp 0x2c99f
movq %rax, %r13
movq %r12, %rdi
callq 0x1c01e
movq %r15, %rdi
callq 0x1d7ae
movq %r14, %rdi
callq 0x1d7f0
movq %rbx, %rdi
callq 0x1350c
movq %r13, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/../lib/lbdist.h
// Function: Morat::LBDistsBase<Morat::Hex::LBDists, Morat::Hex::Board>::to_s[abi:cxx11](Morat::Side)
std::string to_s(Side side = Side::NONE) {
	// Return a string representation of the whole board, with empty cells showing their distance numbers
		if (board == NULL)
			return "LBDistsBase has no board.....\n";
		return board->to_s(true, std::bind(&LBDistsBase::get_s, this, std::placeholders::_1, side));
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x9c58(%rsi), %r14
testq %r14, %r14
je 0x2cc62
movl %edx, %ebp
movq %rsi, %r15
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %r12
vmovups %ymm0, (%r12)
movl $0x20, %edi
vzeroupper
callq 0x5320
leaq 0x999(%rip), %rcx       # 0x2d5a0
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb %bpl, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %rax, (%r12)
leaq 0xa6f(%rip), %rax       # 0x2d694
movq %rax, 0x18(%r12)
leaq 0xa93(%rip), %rax       # 0x2d6c4
movq %rax, 0x10(%r12)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
movq %r12, %rcx
callq 0x1f776
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2cc7f
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2cc7f
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x9067(%rip), %rsi      # 0x35cd7
leaq 0x907e(%rip), %rdx      # 0x35cf5
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ccb3
movq %rax, %rbx
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2ccab
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x5670
movq %rax, %rdi
callq 0xa7e4
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/hex/../lib/board_grid_hex.h
// Function: Morat::BoardGridHex<Morat::Hex::Board>::pattern_mirror(unsigned long)
static Pattern pattern_mirror(Pattern p) {
		// HGFEDC BA9876 543210 -> DEFGHC 6789AB 123450
		return ((p & (3ull <<  6))      ) | ((p & (3ull <<  0))     ) | // 0,3 stay in place
		       ((p & (3ull << 10)) >>  8) | ((p & (3ull <<  2)) << 8) | // 1,5 swap
		       ((p & (3ull <<  8)) >>  4) | ((p & (3ull <<  4)) << 4) | // 2,4 swap
		       ((p & (3ull << 22)) >> 10) | ((p & (3ull << 12)) <<10) | // 6,B swap
		       ((p & (3ull << 20)) >>  6) | ((p & (3ull << 14)) << 6) | // 7,A swap
		       ((p & (3ull << 18)) >>  2) | ((p & (3ull << 16)) << 2) | // 8,9 swap
		       ((p & (3ull << 30))      ) | ((p & (3ull << 24))     ) | // F,C stay in place
		       ((p & (3ull << 34)) >>  8) | ((p & (3ull << 26)) << 8) | // H,D swap
		       ((p & (3ull << 32)) >>  4) | ((p & (3ull << 28)) << 4);  // G,E swap
	}

// Assembly:
vpbroadcastq %rdi, %zmm0
vpmovsxbq 0x844c(%rip), %zmm1 # 0x35938
vpsrlvq %zmm1, %zmm0, %zmm2
vpsllvq %zmm1, %zmm0, %zmm0
movb $-0x56, %al
kmovd %eax, %k1
vmovdqa64 %zmm0, %zmm2 {%k1}
vpandq 0x84f2(%rip), %zmm2, %zmm1 # 0x35a00
movl %edi, %eax
shrl $0x2, %eax
andl $0x30000, %eax          # imm = 0x30000
movq %rdi, %rcx
shlq $0x2, %rcx
vpbroadcastq %rcx, %ymm3
vpblendd $0xc0, %ymm3, %ymm2, %ymm2 # ymm2 = ymm2[0,1,2,3,4,5],ymm3[6,7]
vpand 0x852d(%rip), %ymm2, %ymm2 # 0x35a60
vextracti128 $0x1, %ymm0, %xmm0
vpextrq $0x1, %xmm0, %rcx
movabsq $0x300000000, %rdx      # imm = 0x300000000
andq %rcx, %rdx
orq %rax, %rdx
andl $0xc30000c3, %edi       # imm = 0xC30000C3
vextracti64x4 $0x1, %zmm1, %ymm0
vporq %zmm0, %zmm1, %zmm0
vextracti128 $0x1, %ymm0, %xmm1
vpor %xmm1, %xmm0, %xmm0
vpshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
vpor %xmm1, %xmm0, %xmm0
vmovq %xmm0, %rcx
vextracti128 $0x1, %ymm2, %xmm0
vpor %xmm0, %xmm2, %xmm0
vpshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
vpor %xmm1, %xmm0, %xmm0
vmovq %xmm0, %rax
orq %rdi, %rax
orq %rdx, %rax
orq %rcx, %rax
vzeroupper
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/fileio.cpp
// Function: Morat::eat_whitespace(std::istream&)
void eat_whitespace(std::istream & is){
	int c = is.peek();
	while(c == ' ' || c == '\n' || c == '\t'){
		is.get();
		c = is.peek();
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movabsq $0x100000600, %r14      # imm = 0x100000600
movq %rbx, %rdi
callq 0x5110
cmpl $0x20, %eax
ja 0x2d7d7
movl %eax, %eax
btq %rax, %r14
jae 0x2d7d7
movq %rbx, %rdi
callq 0x5400
jmp 0x2d7b8
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/fileio.cpp
// Function: Morat::eat_char(_IO_FILE*, int)
bool eat_char(FILE * fd, int expect){
	int c = fgetc(fd);
	if (c == expect)
		return true;
	ungetc(c, fd);
	return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x5560
movl %eax, %ebp
cmpl %ebx, %eax
je 0x2d7fd
movl %ebp, %edi
movq %r14, %rsi
callq 0x5050
cmpl %ebx, %ebp
sete %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/fileio.cpp
// Function: Morat::eat_char(std::istream&, int)
bool eat_char(std::istream & is, int expect){
	int c = is.peek();
	if (c == expect){
		is.get();
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
callq 0x5110
movl %eax, %ebp
cmpl %ebx, %eax
jne 0x2d823
movq %r14, %rdi
callq 0x5400
cmpl %ebx, %ebp
sete %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/fileio.cpp
// Function: Morat::read_until[abi:cxx11](_IO_FILE*, char, bool)
string read_until(FILE * fd, char until, bool include){
	string ret;
	char c = fgetc(fd);
	while(c != until){
		ret += c;
		c = fgetc(fd);
	}
	if(!include)
		ungetc(c, fd);
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x5560
movsbl %al, %edi
cmpl %r15d, %edi
je 0x2d873
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5290
movq %r14, %rdi
jmp 0x2d856
testb %bpl, %bpl
jne 0x2d880
movq %r14, %rsi
callq 0x5050
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x2d89c
callq 0x52e0
movq %r14, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/timecontrol.h
// Function: Morat::TimeControl::method_name[abi:cxx11]() const
std::string method_name() const {
		switch(method){
			case PERCENT: return "percent";
			case EVEN:    return "even";
			case STATS:   return "stats";
			default:      return "WTF? unknown time control method";
		}
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpl $0x2, %eax
je 0x2f3d7
cmpl $0x1, %eax
je 0x2f3c7
testl %eax, %eax
jne 0x2f3e7
leaq 0x6f52(%rip), %rsi      # 0x36310
leaq 0x6f52(%rip), %rdx      # 0x36317
jmp 0x2f3f5
leaq 0x6f4c(%rip), %rsi      # 0x3631a
leaq 0x6f49(%rip), %rdx      # 0x3631e
jmp 0x2f3f5
leaq 0x6f43(%rip), %rsi      # 0x36321
leaq 0x6f41(%rip), %rdx      # 0x36326
jmp 0x2f3f5
leaq 0x6f68(%rip), %rsi      # 0x36356
leaq 0x6f81(%rip), %rdx      # 0x36376
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/outcome.cpp
// Function: Morat::Side::to_s[abi:cxx11]() const
std::string Side::to_s() const {
	if(*this == UNDEF) return "never";
	if(*this == NONE)  return "none";
	if(*this == P1)    return "white";
	if(*this == P2)    return "black";
	if(*this == BOTH)  return "both";
	return "unknown";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpq $0x3, %rax
ja 0x2f526
leaq 0x6e6b(%rip), %rcx      # 0x36378
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3265(%rip), %rsi      # 0x32782
leaq 0x3262(%rip), %rdx      # 0x32786
jmp 0x2f57b
cmpl $0xfc, %eax
jne 0x2f53d
leaq 0x6e81(%rip), %rsi      # 0x363b5
leaq 0x6e7f(%rip), %rdx      # 0x363ba
jmp 0x2f57b
leaq 0x3236(%rip), %rsi      # 0x3277a
leaq 0x3236(%rip), %rdx      # 0x32781
jmp 0x2f57b
leaq 0x1f29(%rip), %rsi      # 0x3147d
leaq 0x1f27(%rip), %rdx      # 0x31482
jmp 0x2f57b
leaq 0x6e57(%rip), %rsi      # 0x363bb
leaq 0x6e54(%rip), %rdx      # 0x363bf
jmp 0x2f57b
leaq 0x1ed3(%rip), %rsi      # 0x31447
leaq 0x1ed1(%rip), %rdx      # 0x3144c
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/outcome.cpp
// Function: Morat::Outcome::to_s[abi:cxx11]() const
std::string Outcome::to_s() const {
	if(*this == UNDEF)   return "undefined";
	if(*this == UNKNOWN) return "unknown";
	if(*this == P2_DRAW) return "black_or_draw";
	if(*this == P1_DRAW) return "white_or_draw";
	if(*this == DRAW ||
	   *this == DRAW2)   return "draw"; // simultaneous win
	if(*this == P1)      return "white";
	if(*this == P2)      return "black";
    return "unknown";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rsi), %eax
cmpq $0x3, %rax
jbe 0x2f62f
addl $0xffffff04, %eax       # imm = 0xFFFFFF04
cmpl $0x3, %eax
ja 0x2f656
leaq 0x6d8c(%rip), %rcx      # 0x36398
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6da1(%rip), %rsi      # 0x363c4
leaq 0x6da3(%rip), %rdx      # 0x363cd
jmp 0x2f6c7
leaq 0x6d52(%rip), %rcx      # 0x36388
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6dbd(%rip), %rsi      # 0x3640a
leaq 0x6dba(%rip), %rdx      # 0x3640e
jmp 0x2f6c7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x3116(%rip), %rsi      # 0x3277a
leaq 0x3116(%rip), %rdx      # 0x32781
jmp 0x2f6c7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1dcc(%rip), %rsi      # 0x31447
leaq 0x1dca(%rip), %rdx      # 0x3144c
jmp 0x2f6c7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6d3c(%rip), %rsi      # 0x363ce
leaq 0x6d42(%rip), %rdx      # 0x363db
jmp 0x2f6c7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1dd4(%rip), %rsi      # 0x3147d
leaq 0x1dd2(%rip), %rdx      # 0x31482
jmp 0x2f6c7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6d1c(%rip), %rsi      # 0x363dc
leaq 0x6d22(%rip), %rdx      # 0x363e9
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/outcome.cpp
// Function: Morat::Side::to_s_short[abi:cxx11]() const
std::string Side::to_s_short() const {
	if(*this == NONE)  return "N";
	if(*this == P1)    return "W";
	if(*this == P2)    return "B";
	return "U";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
cmpl $0x2, %eax
je 0x2f710
cmpl $0x1, %eax
je 0x2f700
testl %eax, %eax
jne 0x2f720
leaq 0x6cc9(%rip), %rsi      # 0x363c0
leaq 0x6cc3(%rip), %rdx      # 0x363c1
jmp 0x2f72e
leaq 0x3cea(%rip), %rsi      # 0x333f1
leaq 0x3ce4(%rip), %rdx      # 0x333f2
jmp 0x2f72e
leaq 0x3cdc(%rip), %rsi      # 0x333f3
leaq 0x3cd6(%rip), %rdx      # 0x333f4
jmp 0x2f72e
leaq 0x6c9b(%rip), %rsi      # 0x363c2
leaq 0x6c95(%rip), %rdx      # 0x363c3
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/outcome.cpp
// Function: Morat::Outcome::to_s_rel[abi:cxx11](Morat::Side) const
std::string Outcome::to_s_rel(Side to_play) const {
	if(*this == Outcome::DRAW)  return "draw";
	if(*this == Outcome::DRAW2) return "draw by simultaneous win";
	if(*this == +to_play)       return "win";
	if(*this == +~to_play)      return "loss";
	if(*this == -~to_play)      return "win or draw";
	if(*this == -to_play)       return "loss or draw";
	return "unkown";
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzbl (%rsi), %eax
cmpl $0x3, %eax
je 0x2f766
testl %eax, %eax
jne 0x2f780
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6cb0(%rip), %rsi      # 0x3640a
leaq 0x6cad(%rip), %rdx      # 0x3640e
jmp 0x2f803
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6c76(%rip), %rsi      # 0x363ea
leaq 0x6c87(%rip), %rdx      # 0x36402
jmp 0x2f803
cmpb %dl, %al
jne 0x2f79b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6c6d(%rip), %rsi      # 0x363ff
leaq 0x6c69(%rip), %rdx      # 0x36402
jmp 0x2f803
movb $0x3, %cl
subb %dl, %cl
cmpb %cl, %al
jne 0x2f7ba
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x5e10(%rip), %rsi      # 0x355c1
leaq 0x5e0d(%rip), %rdx      # 0x355c5
jmp 0x2f803
movl %eax, %ecx
addb %dl, %cl
jne 0x2f7d7
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x6c35(%rip), %rsi      # 0x36403
leaq 0x6c39(%rip), %rdx      # 0x3640e
jmp 0x2f803
addb $-0x3, %dl
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
cmpb %dl, %al
jne 0x2f7f5
leaq 0x6c23(%rip), %rsi      # 0x3640f
leaq 0x6c28(%rip), %rdx      # 0x3641b
jmp 0x2f803
leaq 0x6c20(%rip), %rsi      # 0x3641c
leaq 0x6c1f(%rip), %rdx      # 0x36422
movq %rbx, %rdi
callq 0xb0e0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/string.cpp
// Function: Morat::to_str[abi:cxx11](double, int)
string to_str(double a, int prec){
	double p = pow(10.0, prec);
	a = round(a*p)/p;

	stringstream out;
	out << a;
	return out.str();
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
vmovsd %xmm0, (%rsp)
movq %rdi, %rbx
vcvtsi2sd %esi, %xmm1, %xmm1
vmovsd 0x6bf0(%rip), %xmm0     # 0x36428
callq 0x5650
vmulsd (%rsp), %xmm0, %xmm1
vpbroadcastq 0x6be5(%rip), %xmm2 # 0x36430
vpternlogq $0xf8, 0x6be2(%rip){1to2}, %xmm1, %xmm2 # 0x36438
vaddsd %xmm2, %xmm1, %xmm1
vroundsd $0xb, %xmm1, %xmm1, %xmm1
vdivsd %xmm0, %xmm1, %xmm0
vmovsd %xmm0, (%rsp)
leaq 0x8(%rsp), %rdi
callq 0x5200
leaq 0x18(%rsp), %rdi
vmovsd (%rsp), %xmm0
callq 0x55a0
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x5590
movq 0x1a702(%rip), %rsi     # 0x49f98
leaq 0x8(%rsp), %rdi
callq 0x5220
leaq 0x88(%rsp), %rdi
callq 0x50d0
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq %rax, %rbx
movq 0x1a6d5(%rip), %rsi     # 0x49f98
leaq 0x8(%rsp), %rdi
callq 0x5220
leaq 0x88(%rsp), %rdi
callq 0x50d0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/string.cpp
// Function: Morat::to_str_hex[abi:cxx11](unsigned long)
std::string to_str_hex(uint64_t a) {
	static const char hexlookup[] = "0123456789abcdef";
	char buf[19] = "0x";
	for (int i = 15; i >= 0; i--) {
		buf[i+2] = hexlookup[a & 15];
		a >>= 4;
	}
	buf[18] = '\0';
	return (char *)buf;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
vmovaps 0x6b6c(%rip), %xmm0     # 0x36460
vmovaps %xmm0, (%rsp)
movl $0x0, 0xf(%rsp)
movl $0x11, %eax
leaq 0x6b33(%rip), %rcx      # 0x36440
movl %esi, %edx
andl $0xf, %edx
movb (%rdx,%rcx), %dl
movb %dl, (%rsp,%rax)
shrq $0x4, %rsi
decq %rax
cmpq $0x1, %rax
jne 0x2f90d
movq %rsp, %r14
movb $0x0, 0x12(%r14)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x5140
leaq (%rsp,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb0e0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/string.cpp
// Function: Morat::explode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
vecstr explode(const string & str, const string & sep, int count){
	vecstr ret;
	string::size_type old = 0, pos = 0;
	while((pos = str.find(sep, old)) != string::npos && --count != 0){
		ret.push_back(str.substr(old, pos - old));
		old = pos + sep.length();
	}
	ret.push_back(str.substr(old));
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, (%rdi)
movq %rdi, (%rsp)
movq $0x0, 0x10(%rdi)
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %r12d, %r12d
movq %r14, %rdi
xorl %edx, %edx
callq 0x5630
cmpq $-0x1, %rax
je 0x2fae8
movq %rax, %rbx
xorl %r12d, %r12d
leaq 0x8(%rsp), %r13
decl %ebp
je 0x2fae8
movq %rbx, %rcx
subq %r12, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x5340
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x2fd90
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2fac7
callq 0x52e0
movq (%r15), %rsi
movq 0x8(%r15), %rcx
movq %rbx, %r12
addq %rcx, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x5630
movq %rax, %rbx
cmpq $-0x1, %rax
jne 0x2fa8f
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq $-0x1, %rcx
callq 0x5340
leaq 0x8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x2fd90
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fb20
callq 0x52e0
movq (%rsp), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x2fb50
jmp 0x2fb5c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2fb5f
callq 0x52e0
jmp 0x2fb5f
movq %rax, %rbx
movq (%rsp), %rdi
callq 0xa9ae
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/string.cpp
// Function: Morat::implode(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>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string implode(const vecstr & vec, const string & sep){
	string ret;
	if(vec.size() == 0)
		return ret;
	ret += vec[0];
	for(unsigned int i = 1; i < vec.size(); i++){
		ret += sep;
		ret += vec[i];
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%rsi), %rax
cmpq %rax, 0x8(%rsi)
je 0x2fc03
movq %rdx, %r14
movq %rsi, %r15
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x50c0
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x21, %rax
jb 0x2fc03
movl $0x1, %r13d
movl $0x2, %ebp
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x50c0
movq (%r15), %rax
shlq $0x5, %r13
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %rbx, %rdi
callq 0x50c0
movl %ebp, %r13d
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x5, %rax
incl %ebp
cmpq %r13, %rax
ja 0x2fbc7
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2fc17
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x2fc27
callq 0x52e0
movq %r14, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O1/tewalds[P]morat/lib/string.cpp
// Function: Morat::parse_dict(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
dictstr parse_dict(const std::string & str, const std::string & sep1, const std::string & sep2) {
	dictstr ret;
	auto parts = explode(str, sep1);
	for(auto & p : parts){
		auto kv = explode(p, sep2, 2);
		ret[kv[0]] = (kv.size() == 2 ? kv[1] : "");
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movq %rdi, (%rsp)
vmovups %xmm0, 0x28(%rdi)
leaq 0x20(%rsp), %rdi
xorl %ecx, %ecx
callq 0x2fa40
movq 0x20(%rsp), %r15
movq 0x28(%rsp), %rbx
cmpq %rbx, %r15
je 0x2fd2a
leaq 0x48(%rsp), %rbp
leaq 0x8(%rsp), %r12
leaq 0x38(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x2, %ecx
callq 0x2fa40
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq %rax, %rcx
cmpq $0x40, %rcx
jne 0x2fcd6
movq %rbp, 0x38(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xa866
jmp 0x2fced
movq %rbp, 0x38(%rsp)
movq %r13, %rdi
leaq 0x1c22(%rip), %rdx      # 0x31907
movq %rdx, %rsi
callq 0xb0e0
movq 0x8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x2ffdc
movq %rax, %rdi
movq %r13, %rsi
callq 0x5430
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2fd15
callq 0x52e0
movq %r12, %rdi
callq 0xa9ae
addq $0x20, %r15
cmpq %rbx, %r15
jne 0x2fc96
leaq 0x20(%rsp), %rdi
callq 0xa9ae
movq (%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x2fd7e
jmp 0x2fd4e
movq %rax, %r14
jmp 0x2fd6a
movq %rax, %r14
jmp 0x2fd74
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2fd6a
callq 0x52e0
leaq 0x8(%rsp), %rdi
callq 0xa9ae
leaq 0x20(%rsp), %rdi
callq 0xa9ae
movq (%rsp), %rdi
callq 0x1344e
movq %r14, %rdi
callq 0x5670
nop