LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agent.h
// Function: Morat::Hex::Agent::solve2ply(Morat::Hex::Board const&, unsigned int&)
static Outcome solve2ply(const Board & board, unsigned int & nodes) {
		int losses = 0;
		Outcome outcome = Outcome::UNKNOWN;
		Side turn = board.to_play();
		Side op = ~turn;
		for (auto move : board) {
			++nodes;
			Outcome won = board.test_outcome(move, turn);

			if(won == +turn)
				return won;
			if(won == Outcome::DRAW)
				outcome = Outcome::DRAW;

			if(board.test_outcome(move, op) == +op)
				losses++;
		}
		if(losses >= 2)
			return (Outcome)op;
		return outcome;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x1a09f(%rip), %rax     # 0x363ae
movb 0x8(%rdi), %bpl
movq %rsi, 0x20(%rsp)
movq %rdi, %r15
movb (%rax), %bl
callq 0x13114
movq %rax, 0x10(%rsp)
movq %rdx, %rax
shrq $0x20, %rax
movl %edx, 0x18(%rsp)
notl %edx
movb %al, 0x1c(%rsp)
testl $0xffff0000, %edx       # imm = 0xFFFF0000
je 0x1c3c5
movb $0x3, %al
movb %bpl, 0xb(%rsp)
movzbl %bpl, %r12d
leaq 0xc(%rsp), %r13
xorl %r14d, %r14d
subb %bpl, %al
movzbl %al, %ebp
movl 0x18(%rsp), %eax
movq %r15, %rdi
movq %r13, %rsi
movl %r12d, %edx
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %rax
incl (%rax)
callq 0x17b80
cmpb %r12b, %al
je 0x1c3c9
leaq 0x1a02b(%rip), %rcx     # 0x363b1
movzbl %bl, %ebx
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movzbl (%rcx), %ecx
cmpb %cl, %al
cmovel %ecx, %ebx
callq 0x17b80
xorl %ecx, %ecx
cmpb %bpl, %al
leaq 0x10(%rsp), %rdi
sete %cl
addl %ecx, %r14d
callq 0x1315e
cmpw $-0x1, 0x1a(%rsp)
jne 0x1c35d
cmpl $0x2, %r14d
movzbl %bl, %ebx
cmovael %ebp, %ebx
movl %ebx, %eax
jmp 0x1c3cd
movb 0xb(%rsp), %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::Node::operator=(Morat::Hex::AgentPNS::Node const&)
Node & operator = (const Node & n){
			if(this != & n){ //don't copy to self
				//don't copy to a node that already has children
				assert(children.empty());

				phi = n.phi;
				delta = n.delta;
				work = n.work;
				move = n.move;
				//don't copy the children
			}
			return *this;
		}

// Assembly:
cmpq %rsi, %rdi
je 0x1c466
movq 0x18(%rdi), %rax
cmpq $0x2, %rax
jb 0x1c450
cmpw $0x0, 0x6(%rax)
jne 0x1c46a
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movzwl 0x12(%rsi), %eax
movw %ax, 0x12(%rdi)
movq %rdi, %rax
retq
pushq %rax
leaq 0x161be(%rip), %rdi     # 0x32630
leaq 0x1788d(%rip), %rsi     # 0x33d06
leaq 0x178b9(%rip), %rcx     # 0x33d39
movl $0x2d, %edx
callq 0x51d0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::~AgentPNS()
~AgentPNS(){
		pool.pause();
		pool.set_num_threads(0);

		root.dealloc(ctmem);
		ctmem.compact();
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x2c5fb(%rip), %rax     # 0x48b48
leaq 0x1430(%rdi), %r14
movq %rdi, %rbx
movq %rax, (%rdi)
movq %r14, %rdi
callq 0x1d0dc
movq %r14, %rdi
xorl %esi, %esi
callq 0x1d150
leaq 0x1540(%rbx), %r12
leaq 0x70(%rbx), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1c48a
vxorps %xmm0, %xmm0, %xmm0
vxorps %xmm1, %xmm1, %xmm1
movq %r15, %rdi
callq 0x1d2e8
movq %r12, %rdi
callq 0x1bfd4
movq %r14, %rdi
callq 0x1d72e
movq %r15, %rdi
callq 0x1d770
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13612
movq %rax, %rdi
callq 0xa8ae
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::set_board(Morat::Hex::Board const&, bool)
void set_board(const Board & board, bool clear = true){
		rootboard = board;
		reset();
		if(clear)
			clear_mem();
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movzwl 0x8(%rsi), %eax
movq %rsi, %r14
movq %rdi, %rbx
movl %edx, %ebp
movw %ax, 0x18(%rdi)
movq (%rsi), %rax
addq $0x10, %rsi
movq %rax, 0x10(%rdi)
addq $0x20, %rdi
callq 0x13756
vmovups 0x28(%r14), %xmm0
leaq 0x50(%rbx), %rdi
vmovups %xmm0, 0x38(%rbx)
movq 0x38(%r14), %rax
addq $0x40, %r14
movq %r14, %rsi
movq %rax, 0x48(%rbx)
callq 0x13842
movq $0x0, 0x1518(%rbx)
movb $0x0, 0x8(%rbx)
testl %ebp, %ebp
je 0x1c655
movq (%rbx), %rax
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmpq *0x38(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::clear_mem()
void clear_mem(){
		reset();
		root.dealloc(ctmem);
		ctmem.compact();
		root = Node(0, 0, 1);
		nodes = 0;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x70(%rdi), %r15
leaq 0x1540(%rdi), %r14
xorl %r12d, %r12d
movq %r12, 0x1518(%rdi)
movq %rdi, %rbx
movb $0x0, 0x8(%rdi)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1c48a
vxorps %xmm0, %xmm0, %xmm0
vxorps %xmm1, %xmm1, %xmm1
movq %r15, %rdi
callq 0x1d2e8
movabsq $0x100000001, %rax      # imm = 0x100000001
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r12, 0x18(%rsi)
movq %r12, 0x8(%rsi)
movl $0x0, 0x10(%rsi)
movq %r14, %rdi
callq 0x1c43a
leaq 0x8(%rsp), %rdi
callq 0x1bfd4
movq $0x0, 0x58(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x8(%rsp), %rdi
movq %rax, %rbx
callq 0x1bfd4
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::gen_sgf(Morat::SGFPrinter<Morat::Move>&, int) const
void gen_sgf(SGFPrinter<Move> & sgf, int limit) const {
		if(limit < 0){
			limit = 0;
			//TODO: Set the root.work properly
			for(auto & child : root.children)
				limit += child.work;
			limit /= 1000;
		}
		gen_sgf(sgf, limit, root, rootboard.to_play());
	}

// Assembly:
testl %edx, %edx
jns 0x1cf95
movq 0x1558(%rdi), %r9
xorl %edx, %edx
movl $0x0, %eax
movl $0x0, %ecx
leaq 0x10(%r9), %r8
cmpq $0x2, %r9
cmovaeq %r8, %rax
jb 0x1cedd
movzwl 0x6(%r9), %ecx
shll $0x5, %ecx
addq %rcx, %r8
movq %r8, %rcx
cmpq %rcx, %rax
je 0x1cf95
vpmovsxbq 0x15338(%rip), %zmm1 # 0x32228
vpmovzxbd 0x16a7f(%rip), %ymm2 # 0x33978
subq %rax, %rcx
vpxor %xmm4, %xmm4, %xmm4
xorl %edx, %edx
addq $-0x20, %rcx
vpbroadcastq %rcx, %zmm0
shrq $0x5, %rcx
addq $0x8, %rcx
vpsrlq $0x5, %zmm0, %zmm0
andq $-0x8, %rcx
vmovdqa %ymm4, %ymm3
vpbroadcastq %rdx, %zmm4
addq $0x8, %rdx
vporq %zmm1, %zmm4, %zmm4
vpcmpleuq %zmm0, %zmm4, %k1
vpxor %xmm4, %xmm4, %xmm4
kmovq %k1, %k2
vpgatherdq 0x8(%rax,%ymm2), %zmm4 {%k2}
addq $0x100, %rax            # imm = 0x100
vpmovqd %zmm4, %ymm4
vpaddd %ymm4, %ymm3, %ymm4
cmpq %rdx, %rcx
jne 0x1cf1f
vmovdqa32 %ymm4, %ymm3 {%k1}
vextracti128 $0x1, %ymm3, %xmm0
vphaddd %xmm3, %xmm0, %xmm0
vphaddd %xmm0, %xmm0, %xmm0
vphaddd %xmm0, %xmm0, %xmm0
vmovd %xmm0, %eax
cltq
imulq $0x10624dd3, %rax, %rdx # imm = 0x10624DD3
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x26, %rdx
addl %eax, %edx
movl 0x18(%rdi), %r8d
leaq 0x1540(%rdi), %rcx
vzeroupper
jmp 0x1bb0a
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::Node::size() const
unsigned int size() const {
			unsigned int num = children.num();

			for(Node * i = children.begin(); i != children.end(); i++)
				num += i->size();

			return num;
		}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x18(%rdi), %rax
movq %rdi, %rbx
xorl %ebp, %ebp
cmpq $0x2, %rax
jb 0x1e503
movzwl 0x6(%rax), %ebp
xorl %ecx, %ecx
leaq 0x10(%rax), %r14
cmpq $0x2, %rax
cmovbq %rcx, %r14
cmpq $0x2, %rax
jb 0x1e525
movzwl 0x6(%rax), %ecx
shll $0x5, %ecx
leaq 0x10(%rax,%rcx), %rax
jmp 0x1e527
xorl %eax, %eax
cmpq %rax, %r14
je 0x1e540
movq %r14, %rdi
callq 0x1e4ec
addl %eax, %ebp
movq 0x18(%rbx), %rax
addq $0x20, %r14
jmp 0x1e511
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/compacttree.h
// Function: Morat::CompactTree<Morat::Hex::AgentPNS::Node>::Data::Data(unsigned int, Morat::CompactTree<Morat::Hex::AgentPNS::Node>::Data**)
Data(unsigned int n, Data ** p) : capacity(n), used(n), parent(p) {
			header = (((unsigned long)this >> 2) & 0xFFFF) | (0xBEEF << 16);
			if(empty()) header += 0xABCD;

			for(Node * i = begin(), * e = end(); i != e; ++i)
				new(i) Node(); //call the constructors
		}

// Assembly:
movl $0xf03, %eax            # imm = 0xF03
movw %si, 0x4(%rdi)
movw %si, 0x6(%rdi)
movq %rdx, 0x8(%rdi)
movw $0x78fc, 0x22(%rdi)     # imm = 0x78FC
movq $0x0, 0x28(%rdi)
bextrl %eax, %edi, %eax
leal -0x41110000(%rax,%rax), %eax
movl %eax, (%rdi)
testw %si, %si
je 0x1e743
movzwl %si, %eax
xorl %ecx, %ecx
shll $0x5, %eax
movw $0x78fc, 0x22(%rdi,%rcx) # imm = 0x78FC
movq $0x0, 0x28(%rdi,%rcx)
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x1e72a
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/compacttree.h
// Function: Morat::CompactTree<Morat::Hex::AgentPNS::Node>::Data::shrink(int)
int shrink(int n){
			assert(n > 0 && n <= capacity && n <= used);
			for(Node * i = children + n, * e = children + used; i != e; ++i)
				i->~Node();
			int diff = used - n;
			used = n;
			return diff;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
jle 0x1e852
movzwl 0x4(%rdi), %eax
movl %esi, %ebx
movq %rdi, %r14
cmpl %esi, %eax
jb 0x1e852
movzwl 0x6(%r14), %eax
cmpl %ebx, %eax
jb 0x1e852
movl %ebx, %ecx
movl %eax, %r12d
cmpq %r12, %rcx
je 0x1e83f
leaq 0x10(%r14), %r15
shlq $0x5, %rcx
shll $0x5, %r12d
addq %rcx, %r15
subq %rcx, %r12
movq %r15, %rdi
callq 0x1bfd4
addq $0x20, %r15
addq $-0x20, %r12
jne 0x1e828
movzwl 0x6(%r14), %eax
subl %ebx, %eax
movw %bx, 0x6(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x15c2e(%rip), %rdi     # 0x34487
leaq 0x13fe5(%rip), %rsi     # 0x32845
leaq 0x15c44(%rip), %rcx     # 0x344ab
movl $0x4e, %edx
callq 0x51d0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/board.cpp
// Function: Morat::Hex::Board::gen_neighbor_list() const
std::shared_ptr<MoveValid> Board::gen_neighbor_list() const {
	std::shared_ptr<MoveValid> list(new MoveValid[vec_size()*18]);
	MoveValid * a = list.get();
	for(int y = 0; y < size_; y++){
		for(int x = 0; x < size_; x++){
			Move pos(x,y);

			for(int i = 0; i < 18; i++){
				Move loc = pos + neighbor_offsets[i];
				*a = MoveValid(loc, (on_board(loc) ? xy(loc) : -1) );
				++a;
			}
		}
	}

	return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movsbl (%rsi), %ebp
movq %rdi, %rbx
movq %rsi, %r14
movl %ebp, %eax
imull %eax, %eax
addl %eax, %eax
leal (%rax,%rax,8), %r15d
leaq (,%r15,4), %rdi
callq 0x5030
testl %ebp, %ebp
je 0x201f2
leaq (%rax,%r15,4), %rcx
movq %rax, %rdx
movl $0xffff78fc, (%rdx)     # imm = 0xFFFF78FC
addq $0x4, %rdx
cmpq %rcx, %rdx
jne 0x201e3
leaq 0x8(%rbx), %rdi
movq %rax, %rsi
movq %rax, (%rbx)
callq 0x203ce
movb (%r14), %r8b
testb %r8b, %r8b
jle 0x202a7
movq (%rbx), %r9
leaq 0x144f9(%rip), %rcx     # 0x34710
xorl %eax, %eax
testb %r8b, %r8b
jle 0x20298
xorl %esi, %esi
movq %r9, %rdx
xorl %edi, %edi
movb 0x1(%rdi,%rcx), %bpl
movb (%rdi,%rcx), %r11b
movl $0xffff0000, %r9d       # imm = 0xFFFF0000
addb %sil, %bpl
addb %al, %r11b
movzbl %bpl, %r8d
movl %r8d, %r10d
orb %r11b, %r10b
movzbl %r11b, %r10d
js 0x20266
movb (%r14), %r15b
cmpb %r15b, %bpl
jge 0x20266
cmpb %r15b, %r11b
jae 0x20266
movzbl %r15b, %r9d
imull %r10d, %r9d
addl %r8d, %r9d
shll $0x10, %r9d
shll $0x8, %r8d
orl %r10d, %r8d
orl %r9d, %r8d
movl %r8d, (%rdx,%rdi)
addq $0x4, %rdi
cmpq $0x48, %rdi
jne 0x20225
movb (%r14), %r8b
incl %esi
leaq (%rdx,%rdi), %r9
movsbl %r8b, %r10d
cmpl %r10d, %esi
jl 0x20220
addq %rdi, %rdx
movq %rdx, %r9
jmp 0x2029c
movsbl %r8b, %r10d
incl %eax
cmpl %r10d, %eax
jl 0x20219
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/gtpagent.cpp
// Function: Morat::Hex::GTP::gtp_move_stats(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_move_stats(vecstr args){
	vector<Move> moves;
	for(auto s : args)
		moves.push_back(Move(s));
	return GTPResponse(true, agent->move_stats(moves));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
vxorps %xmm0, %xmm0, %xmm0
movq $0x0, 0x20(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, 0x28(%rsp)
vmovaps %xmm0, 0x10(%rsp)
movq (%rdx), %rbp
movq 0x8(%rdx), %rbx
cmpq %rbx, %rbp
je 0x20509
leaq 0x48(%rsp), %r14
leaq 0x38(%rsp), %r15
leaq 0xe(%rsp), %r12
leaq 0x10(%rsp), %r13
movq %r14, 0x38(%rsp)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xa930
movq %r12, %rdi
movq %r15, %rsi
callq 0x11418
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x204e6
movzwl 0xe(%rsp), %eax
movw %ax, (%rsi)
addq $0x2, 0x18(%rsp)
jmp 0x204f1
movq %r13, %rdi
movq %r12, %rdx
callq 0x15948
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x20500
callq 0x52e0
addq $0x20, %rbp
cmpq %rbx, %rbp
jne 0x204a7
movq 0x30(%rsp), %rax
movq 0xd8(%rax), %rsi
movq (%rsi), %rax
leaq 0x58(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq *0x48(%rax)
movq 0x28(%rsp), %rbx
leaq 0x58(%rsp), %rdx
movl $0x1, %esi
movq %rbx, %rdi
callq 0xa8ba
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2054f
callq 0x52e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2055e
callq 0x52e0
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x68(%rsp), %rcx
movq %rax, %rbx
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
jne 0x20597
jmp 0x2059c
jmp 0x20585
movq %rax, %rbx
jmp 0x2059c
movq 0x38(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x2059c
callq 0x52e0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x205ab
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0xd8(%rsi), %r12
movq %rdi, %rbx
testq %r12, %r12
je 0x21801
movq %rdx, %r15
leaq 0x2717c(%rip), %rdx     # 0x488f8
movq %rsi, %r14
leaq 0x2718a(%rip), %rsi     # 0x48910
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x5390
testq %rax, %rax
je 0x217ba
leaq 0x40(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdi
callq 0xbbfc
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21884
leaq 0x40(%rsp), %rdi
jmp 0x217fa
leaq 0x273f7(%rip), %rdx     # 0x48bb8
leaq 0x27148(%rip), %rsi     # 0x48910
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x5390
testq %rax, %rax
je 0x21801
leaq 0x28(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdi
callq 0xbbfc
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x27c5e
leaq 0x28(%rsp), %rdi
callq 0xaa7e
jmp 0x21841
leaq 0x18(%rsp), %r15
leaq 0x8(%rsp), %r14
leaq 0x1332e(%rip), %rsi     # 0x34b40
leaq 0x13339(%rip), %rdx     # 0x34b52
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xb1dc
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa8ba
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x21841
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 0x21862
leaq 0x40(%rsp), %rdi
movq %rax, %rbx
callq 0xaa7e
jmp 0x2187b
movq 0x8(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x2187b
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
testl %eax, %eax
je 0x28e18
cmpl $0x1, %eax
je 0x28dfc
cmpl $0x2, %eax
jne 0x28e34
testl %ecx, %ecx
jle 0x28dfc
vmovsd 0x8(%rdi), %xmm1
vmovsd 0x30(%rdi), %xmm0
vaddsd %xmm1, %xmm1, %xmm1
vcvtsi2sd %ecx, %xmm2, %xmm2
jmp 0x28e0e
vmovsd 0x8(%rdi), %xmm1
vmovsd 0x30(%rdi), %xmm0
vaddsd %xmm1, %xmm1, %xmm1
vcvtsi2sd %edx, %xmm2, %xmm2
vmulsd %xmm0, %xmm1, %xmm1
vdivsd %xmm2, %xmm1, %xmm1
jmp 0x28e2a
vmovsd 0x30(%rdi), %xmm0
vmulsd 0x8(%rdi), %xmm0, %xmm1
vdivsd 0x93f6(%rip), %xmm1, %xmm1 # 0x32220
vxorpd %xmm2, %xmm2, %xmm2
vaddsd %xmm2, %xmm1, %xmm1
jmp 0x28e3d
vmovsd 0x30(%rdi), %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vminsd %xmm1, %xmm0, %xmm0
vaddsd 0x18(%rdi), %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x18(%rdi), %r15
movq %rdi, %r14
movq %rsi, %rbx
movq %r15, %rdi
callq 0x29154
movl %eax, %ebp
testb %al, %al
je 0x29147
movsbl (%rbx), %eax
movsbl 0x18(%r14), %ecx
leaq 0x4(%rsp), %rsi
movl $0x1, %edx
movq %r15, %rdi
imull %eax, %ecx
movsbl 0x1(%rbx), %eax
addl %ecx, %eax
movzwl (%rbx), %ecx
movw %cx, (%rsi)
movl $0x1, %ecx
movw %ax, 0x2(%rsi)
callq 0x1388c
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x2913c
movzwl (%rbx), %eax
movw %ax, (%rsi)
addq $0x2, 0x8(%r14)
jmp 0x29147
movq %r14, %rdi
movq %rbx, %rdx
callq 0x15814
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
movzwl 0x88(%rsi), %eax
leaq 0x70(%rsp), %rbx
movq %rsi, %r12
movq %rdi, %r14
movq %rdx, %r15
movq %rbx, %rdi
movw %ax, -0x8(%rbx)
movq 0x80(%rsi), %rax
addq $0x90, %rsi
movq %rax, -0x10(%rbx)
callq 0xb44a
vmovups 0xa8(%r12), %xmm0
movq %r12, 0x38(%rsp)
vmovups %xmm0, 0x18(%rbx)
vmovups 0xb8(%r12), %xmm0
movq 0xc0(%r12), %rax
vmovups %xmm0, 0x28(%rbx)
testq %rax, %rax
je 0x29391
movq 0x1fc45(%rip), %rcx     # 0x48fc8
cmpb $0x0, (%rcx)
je 0x2938d
incl 0x8(%rax)
jmp 0x29391
lock
incl 0x8(%rax)
movq %r14, 0x30(%rsp)
movq (%r15), %r14
movq 0x8(%r15), %r13
cmpq %r13, %r14
je 0x29432
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 0xa930
leaq 0xa(%rsp), %rdi
movq %r15, %rsi
callq 0x11418
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
movl $0x1, %edx
movl $0x1, %ecx
movq %rbp, %rsi
callq 0x1388c
movq 0x10(%rsp), %rdi
movl %eax, %ebx
cmpq %r12, %rdi
je 0x29424
callq 0x52e0
addq $0x20, %r14
cmpq %r13, %r14
setne %al
testb %al, %bl
jne 0x293b5
movq 0x38(%rsp), %rax
movzbl 0xcd(%rax), %edx
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x1f644
leaq 0x84b2(%rip), %rcx      # 0x31906
leaq 0x10(%rsp), %rdi
movl $0x1, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x50(%rsp), %r14
movq 0x30(%rsp), %rbx
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, -0x10(%r14)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x29494
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x2949d
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)
movl $0x1, %esi
movq %rbx, %rdi
callq 0xa8ba
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x294d5
callq 0x52e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x294e8
callq 0x52e0
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x294fa
callq 0xb272
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x29509
callq 0x52e0
movq %rbx, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x29535
callq 0x52e0
jmp 0x29535
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x29559
jmp 0x2955e
jmp 0x29547
movq %rax, %rbx
jmp 0x2955e
movq 0x10(%rsp), %rdi
movq %rax, %rbx
cmpq %r12, %rdi
je 0x2955e
callq 0x52e0
leaq 0x60(%rsp), %rdi
callq 0x9d96
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/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 0x68(%rsi), %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq %rax, 0x70(%rsi)
je 0x29969
movq %rax, 0x70(%r14)
leaq 0x80(%r14), %r15
movq %r15, %rdi
callq 0xb052
movq 0xd8(%r14), %rdi
movl $0x1, %edx
movq %r15, %rsi
movq (%rdi), %rax
callq *0x20(%rax)
vmovsd 0x40(%r14), %xmm0
leaq 0x7f6d(%rip), %rdx      # 0x31907
leaq 0x10(%rsp), %r15
movq %rdx, %rsi
vmovsd %xmm0, 0x60(%r14)
movq %rsp, %r14
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xb1dc
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0xa8ba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x299d5
callq 0x52e0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x299f3
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %rdi, %rbx
movq (%rdx), %rdi
movq %rsi, %r14
cmpq %rdi, 0x8(%rdx)
je 0x29a22
callq 0xaf9d
movl %eax, %ebp
testl %eax, %eax
jne 0x29a27
jmp 0x29a37
movl $0x1, %ebp
leaq 0x68(%r14), %r15
movq %r15, %rdi
callq 0x2c8ce
decl %ebp
jne 0x29a2b
movq 0xd8(%r14), %rdi
leaq 0x80(%r14), %r15
movl $0x1, %edx
movq %r15, %rsi
movq (%rdi), %rax
callq *0x20(%rax)
cmpl $0x2, 0xc8(%r14)
jge 0x29aaa
leaq 0x18(%rsp), %r15
leaq 0x7e9e(%rip), %rdx      # 0x31907
leaq 0x8(%rsp), %r14
movq %r15, -0x10(%r15)
movq %r14, %rdi
movq %rdx, %rsi
callq 0xb1dc
movl $0x1, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0xa8ba
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x29a9c
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 %r15, %rsi
movq %r14, %rdi
callq 0x1f644
leaq 0x7e3d(%rip), %rsi      # 0x31906
movq %r14, %rdi
callq 0x56e0
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %rax, %rsi
callq 0x5bde
jmp 0x29a5d
leaq 0x38(%rsp), %rcx
movq %rax, %rbx
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
jne 0x29b08
jmp 0x29b0d
movq 0x8(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x29b0d
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x48(%rsp), %rax
movq %rdi, 0x30(%rsp)
leaq 0x80(%rsi), %rdi
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
callq 0x13114
leaq 0x58(%rsp), %r14
leaq 0x20(%rsp), %rbx
leaq 0x88(%rsp), %r15
leaq 0xc(%rsp), %r12
leaq 0xc03f(%rip), %r13      # 0x35e43
leaq 0x38(%rsp), %rbp
movq %rax, (%r14)
movl %edx, 0x8(%r14)
shrq $0x20, %rdx
movb %dl, 0xc(%r14)
cmpw $-0x1, 0x62(%rsp)
je 0x29ecd
movl 0x60(%rsp), %eax
movl %eax, 0xc(%rsp)
movq %r15, %rdi
movq %r12, %rsi
callq 0x10e7e
movq %r15, %rdi
movq %r13, %rsi
callq 0x56e0
movq %rbx, 0x10(%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x29e65
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x29e6d
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 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x50c0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x29ea6
callq 0x52e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x29ec0
callq 0x52e0
movq %r14, %rdi
callq 0x1315e
jmp 0x29e18
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0xa930
movq 0x30(%rsp), %r14
leaq 0x68(%rsp), %rdx
movl $0x1, %esi
movq %r14, %rdi
callq 0xa8ba
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x29f13
callq 0x52e0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x29f27
callq 0x52e0
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x68(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
jne 0x29f7d
jmp 0x29f87
jmp 0x29f84
jmp 0x29f84
jmp 0x29f84
movq %rax, %r14
jmp 0x29f68
movq 0x10(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
je 0x29f68
callq 0x52e0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x29f87
callq 0x52e0
jmp 0x29f87
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x29f9b
callq 0x52e0
movq %r14, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x48(%rsp), %r14
movq %rdi, %r12
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0x68(%rsi), %rbp
movq 0x70(%rsi), %r15
cmpq %r15, %rbp
je 0x2a0b8
movq %r12, 0x30(%rsp)
leaq 0x20(%rsp), %rbx
leaq 0x78(%rsp), %r14
leaq 0xbe4f(%rip), %r12      # 0x35e43
leaq 0x38(%rsp), %r13
movzwl (%rbp), %eax
movw %ax, 0xe(%rsp)
leaq 0xe(%rsp), %rsi
movq %r14, %rdi
callq 0x10e7e
movq %r14, %rdi
movq %r12, %rsi
callq 0x56e0
movq %rbx, 0x10(%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x2a03d
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x2a045
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 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq %r13, %rdi
callq 0x50c0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2a07e
callq 0x52e0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2a095
callq 0x52e0
addq $0x2, %rbp
cmpq %r15, %rbp
jne 0x29ff9
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x30(%rsp), %r12
leaq 0x48(%rsp), %r14
jmp 0x2a0bd
xorl %edx, %edx
movq %r14, %rsi
leaq 0x68(%rsp), %rbx
addq %rsi, %rdx
movq %rbx, -0x10(%rbx)
leaq 0x58(%rsp), %rdi
callq 0xa930
leaq 0x58(%rsp), %rdx
movl $0x1, %esi
movq %r12, %rdi
callq 0xa8ba
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2a0f4
callq 0x52e0
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a103
callq 0x52e0
movq %r12, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x58(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
jne 0x2a157
jmp 0x2a15c
jmp 0x2a129
movq %rax, %r14
jmp 0x2a15c
movq %rax, %r14
jmp 0x2a145
movq 0x10(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
je 0x2a145
callq 0x52e0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2a15c
callq 0x52e0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x2a170
callq 0x52e0
movq %r14, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x10(%rsp), %r13
leaq 0x713c(%rip), %rdx      # 0x31907
movq %rsi, %r15
movq %rdi, %rbx
movq %rsp, %r12
movq %r12, %rdi
movq %rdx, %rsi
movq %r13, -0x10(%r13)
callq 0xb1dc
movl $0x1, %esi
movq %rbx, %rdi
movq %r12, %rdx
callq 0xa8ba
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2a801
callq 0x52e0
cmpb $0x1, (%rbx)
jne 0x2a89d
leaq 0x8(%rbx), %r12
leaq 0x28(%rbx), %rbp
xorl %r13d, %r13d
movq (%r14), %rdx
movq 0x8(%r14), %rax
movl %r13d, %r13d
subq %rdx, %rax
sarq $0x5, %rax
cmpq %r13, %rax
jbe 0x2a89d
movl 0x88(%r15), %ecx
movq %r13, %rax
shlq $0x5, %rax
addq %rax, %rdx
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x2a178
movb 0x20(%rsp), %al
leaq 0x28(%rsp), %rsi
movq %r12, %rdi
movb %al, (%rbx)
callq 0x5430
leaq 0x48(%rsp), %rsi
movq %rbp, %rdi
callq 0x5430
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2a87d
callq 0x52e0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2a891
callq 0x52e0
incl %r13d
cmpb $0x0, (%rbx)
jne 0x2a815
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rdi
movq %rax, %r14
cmpq %r13, %rdi
je 0x2a8cd
callq 0x52e0
jmp 0x2a8cd
movq %rbx, %rdi
movq %rax, %r14
callq 0x96d6
movq %r14, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 (%rdx), %r15
movq 0x8(%rdx), %rax
movq %rdi, %rbx
subq %r15, %rax
cmpq $0x40, %rax
jne 0x2a913
movq (%r15), %rax
movq %rsi, %r14
movsbl (%rax), %edi
callq 0x54a0
cmpl $0x62, %eax
je 0x2a94b
cmpl $0x77, %eax
jne 0x2a969
leaq 0xba99(%rip), %rax      # 0x363aa
jmp 0x2a952
leaq 0x30(%rsp), %r15
leaq 0x20(%rsp), %r14
leaq 0xb1f7(%rip), %rsi      # 0x35b1b
leaq 0xb209(%rip), %rdx      # 0x35b34
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xb1dc
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa8ba
movq 0x20(%rsp), %rdi
jmp 0x2a99c
leaq 0xba59(%rip), %rax      # 0x363ab
addq $0x20, %r15
movzbl (%rax), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2a178
jmp 0x2a9a6
leaq 0x10(%rsp), %r15
leaq 0xb1c0(%rip), %rsi      # 0x35b35
leaq 0xb1d1(%rip), %rdx      # 0x35b4d
movq %rsp, %r14
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0xb1dc
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0xa8ba
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x2a9a6
callq 0x52e0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq (%rsp), %rdi
jmp 0x2a9be
movq 0x20(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x2a9cb
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %rdi, %rbx
movq (%rdx), %rdi
movq %rsi, %r14
cmpq %rdi, 0x8(%rdx)
je 0x2acf4
callq 0xaf9d
movl %eax, %esi
movl %eax, 0xc8(%r14)
jmp 0x2ad09
xorl %esi, %esi
cmpl $0x0, 0xc8(%r14)
sete %sil
movl %esi, 0xc8(%r14)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x1131a
leaq 0xae40(%rip), %rcx      # 0x35b5d
movl $0x8, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, -0x10(%r14)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x2ad56
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2ad5f
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)
movl $0x1, %esi
movq %rbx, %rdi
callq 0xa8ba
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2ad97
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2adaa
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x2adcc
callq 0x52e0
jmp 0x2adcc
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2addf
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %rdi, %rbx
movq (%rdx), %rdi
movq %rsi, %r14
cmpq %rdi, 0x8(%rdx)
je 0x2ae12
callq 0xaf9d
testl %eax, %eax
setne %al
setne 0xcd(%r14)
jmp 0x2ae2a
movb 0xcd(%r14), %al
movl %eax, %ecx
xorb $0x1, %cl
testb %al, %al
sete %al
movb %cl, 0xcd(%r14)
leaq 0x28(%rsp), %r14
movzbl %al, %esi
movq %r14, %rdi
callq 0x28eca
leaq 0xad25(%rip), %rcx      # 0x35b66
movl $0x6, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, -0x10(%r14)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x2ae7a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2ae83
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)
movl $0x1, %esi
movq %rbx, %rdi
callq 0xa8ba
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2aebb
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2aece
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x2aef0
callq 0x52e0
jmp 0x2aef0
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2af03
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %rdi, %rbx
movq (%rdx), %rdi
movq %rsi, %r14
cmpq %rdi, 0x8(%rdx)
je 0x2af30
callq 0x28fd4
movb %al, 0xcc(%r14)
jmp 0x2af48
movb 0xcc(%r14), %al
movl %eax, %ecx
xorb $0x1, %cl
testb %al, %al
sete %al
movb %cl, 0xcc(%r14)
leaq 0x28(%rsp), %r14
movzbl %al, %esi
movq %r14, %rdi
callq 0x28eca
leaq 0xac0e(%rip), %rcx      # 0x35b6d
movl $0x9, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %rax, %rcx
addq $0x10, %rcx
movq %r14, -0x10(%r14)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x2af98
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2afa1
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)
movl $0x1, %esi
movq %rbx, %rdi
callq 0xa8ba
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2afd9
callq 0x52e0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2afec
callq 0x52e0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq 0x8(%rsp), %rdi
movq %rax, %rbx
cmpq %r14, %rdi
je 0x2b00e
callq 0x52e0
jmp 0x2b00e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b021
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x1209a
leaq 0x1c358(%rip), %rax     # 0x48b38
leaq 0x70(%rbx), %r14
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x2d294
leaq 0x1430(%rbx), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2d326
leaq 0x9b9d(%rip), %rax      # 0x363a9
leaq 0x1540(%rbx), %r12
movb (%rax), %al
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 %al, 0x1534(%rbx)
movb $0x0, 0x1535(%rbx)
movl $0x1, 0x1538(%rbx)
movl $0x1, %esi
movq %r15, %rdi
callq 0x1d150
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 0x2c8b5
movq %rax, %r13
jmp 0x2c8bd
movq %r12, %rdi
movq %rax, %r13
callq 0x1bfd4
movq %r15, %rdi
callq 0x1d72e
movq %r14, %rdi
callq 0x1d770
movq %rbx, %rdi
callq 0x13612
movq %r13, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x9c58(%rsi), %r14
movq %rdi, %rbx
testq %r14, %r14
je 0x2cb79
movl $0x20, %edi
leaq 0x8(%rsp), %r12
xorl %r13d, %r13d
movl %edx, %ebp
movq %rsi, %r15
movq %r13, 0x8(%r12)
callq 0x5320
leaq 0x99a(%rip), %rcx       # 0x2d4ba
leaq 0xa87(%rip), %r9        # 0x2d5ae
leaq 0xab0(%rip), %r8        # 0x2d5de
movq %rax, (%r12)
movq %rcx, (%rax)
movq %r13, 0x8(%rax)
movb %bpl, 0x10(%rax)
movq %r9, 0x18(%r12)
movq %r15, 0x18(%rax)
movq %r8, 0x10(%r12)
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rcx
callq 0x1f6c8
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x2cb96
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0x2cb96
leaq 0x10(%rbx), %rax
leaq 0x9153(%rip), %rsi      # 0x35cd7
leaq 0x916a(%rip), %rdx      # 0x35cf5
movq %rbx, %rdi
movq %rax, (%rbx)
callq 0xb1dc
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cbce
movq %rax, %rbx
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x2cbc6
leaq 0x8(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
movq %rbx, %rdi
callq 0x5670
movq %rax, %rdi
callq 0xa8ae
// File: /workspace/github_cpp_makefile_star2_O3/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:
vpmovsxbq 0x8538(%rip), %zmm1 # 0x35938
vpbroadcastq %rdi, %zmm0
movb $-0x56, %al
movq %rdi, %rcx
shlq $0x2, %rcx
movabsq $0x300000000, %rdx      # imm = 0x300000000
kmovd %eax, %k1
vpbroadcastq %rcx, %ymm3
movl %edi, %eax
shrl $0x2, %eax
andl $0xc30000c3, %edi       # imm = 0xC30000C3
andl $0x30000, %eax          # imm = 0x30000
vpsrlvq %zmm1, %zmm0, %zmm2
vpsllvq %zmm1, %zmm0, %zmm0
vmovdqa64 %zmm0, %zmm2 {%k1}
vpandq 0x85b1(%rip), %zmm2, %zmm1 # 0x35a00
vpblendd $0xc0, %ymm3, %ymm2, %ymm2 # ymm2 = ymm2[0,1,2,3,4,5],ymm3[6,7]
vpand 0x8603(%rip), %ymm2, %ymm2 # 0x35a60
vextracti128 $0x1, %ymm0, %xmm0
vpextrq $0x1, %xmm0, %rcx
andq %rcx, %rdx
orq %rax, %rdx
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_O3/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
movabsq $0x100000600, %r14      # imm = 0x100000600
movq %rdi, %rbx
movq %rbx, %rdi
callq 0x5110
cmpl $0x20, %eax
ja 0x2d6eb
movl %eax, %eax
btq %rax, %r14
jae 0x2d6eb
movq %rbx, %rdi
callq 0x5400
jmp 0x2d6cc
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d711
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_O3/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 0x2d737
movq %r14, %rdi
callq 0x5400
cmpl %ebx, %ebp
sete %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x10(%rdi), %r12
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x5560
movsbl %al, %ecx
cmpl %ebp, %ecx
je 0x2d786
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5290
movq %r14, %rdi
jmp 0x2d76a
testb %r15b, %r15b
jne 0x2d795
movl %ebp, %edi
movq %r14, %rsi
callq 0x5050
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rdi
movq %rax, %r14
cmpq %r12, %rdi
je 0x2d7b1
callq 0x52e0
movq %r14, %rdi
callq 0x5670
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/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
movl (%rsi), %eax
leaq 0x10(%rdi), %rcx
movq %rdi, %rbx
movq %rcx, (%rdi)
cmpl $0x2, %eax
je 0x2f2c7
cmpl $0x1, %eax
je 0x2f2b7
testl %eax, %eax
jne 0x2f2d7
leaq 0x7062(%rip), %rsi      # 0x36310
leaq 0x7062(%rip), %rdx      # 0x36317
jmp 0x2f2e5
leaq 0x705c(%rip), %rsi      # 0x3631a
leaq 0x7059(%rip), %rdx      # 0x3631e
jmp 0x2f2e5
leaq 0x7053(%rip), %rsi      # 0x36321
leaq 0x7051(%rip), %rdx      # 0x36326
jmp 0x2f2e5
leaq 0x7078(%rip), %rsi      # 0x36356
leaq 0x7091(%rip), %rdx      # 0x36376
movq %rbx, %rdi
callq 0xb1dc
movq %rbx, %rax
popq %rbx
retq