LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/gtpbase.h
// Function: Morat::GTPBase::gtp_list_commands(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>>>>, bool)
GTPResponse gtp_list_commands(vecstr args, bool showdesc){
		std::string ret = "\n";
		for(unsigned int i = 0; i < callbacks.size(); i++){
			ret += callbacks[i].name;
			if(showdesc && callbacks[i].desc.length() > 0){
				ret += std::string(longest_cmd + 2 - callbacks[i].name.length(), ' ');
				ret += callbacks[i].desc;
			}
			ret += "\n";
		}
		return GTPResponse(true, ret);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, 0x40(%rsp)
leaq 0x30(%rsp), %rax
leaq 0x27312(%rip), %rsi     # 0x31906
leaq 0x2730c(%rip), %rdx     # 0x31907
leaq 0x20(%rsp), %rdi
movl %ecx, %ebp
movq %rax, -0x10(%rax)
callq 0xb1dc
movq 0x10(%r14), %rax
cmpq %rax, 0x18(%r14)
je 0xa6ec
movl $0x1, %r12d
leaq 0x20(%rsp), %r15
leaq 0x272db(%rip), %r13     # 0x31906
xorl %ecx, %ecx
leaq (%rcx,%rcx,2), %rbx
shlq $0x5, %rbx
movq 0x8(%rax,%rbx), %rdx
movq (%rax,%rbx), %rsi
movq %r15, %rdi
callq 0x50c0
testb %bpl, %bpl
je 0xa6b5
movq 0x10(%r14), %rax
cmpq $0x0, 0x28(%rax,%rbx)
je 0xa6b5
movl 0x28(%r14), %esi
addq %rbx, %rax
addl $0x2, %esi
subq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movl $0x20, %edx
movq %rsp, %rdi
callq 0x53b0
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %r15, %rdi
callq 0x50c0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xa69f
callq 0x52e0
movq 0x10(%r14), %rax
movq 0x28(%rax,%rbx), %rdx
movq 0x20(%rax,%rbx), %rsi
movq %r15, %rdi
callq 0x50c0
movq %r15, %rdi
movq %r13, %rsi
callq 0x56e0
movq 0x10(%r14), %rax
movq 0x18(%r14), %rdx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
movl %r12d, %ecx
incl %r12d
subq %rax, %rdx
sarq $0x5, %rdx
imulq %rsi, %rdx
cmpq %rcx, %rdx
ja 0xa62d
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xa930
movq 0x40(%rsp), %r14
leaq 0x48(%rsp), %rdx
movl $0x1, %esi
movq %r14, %rdi
callq 0xa8ba
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa732
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xa746
callq 0x52e0
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rsp), %rdi
movq %rax, %r14
cmpq %rbx, %rdi
jne 0xa77a
jmp 0xa786
jmp 0xa783
movq (%rsp), %rdi
movq %rax, %r14
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xa786
callq 0x52e0
jmp 0xa786
jmp 0xa783
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xa79a
callq 0x52e0
movq %r14, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/board.h
// Function: Morat::Hex::Board::size(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool size(std::string s) {
		if (!valid_size(s))
			return false;
		size_ = from_str<int>(s);
		sizem1_ = size_ - 1;
		neighbor_list_ = gen_neighbor_list();
		num_cells_ = vec_size();
		cells_.resize(vec_size());
		clear();
		return true;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
movq %rsi, %r14
callq 0xaf9d
movl %eax, %ebp
addl $-0x3, %ebp
cmpl $0x16, %ebp
ja 0xaf8e
movq %r14, %rdi
callq 0xaf9d
movb %al, (%rbx)
decb %al
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
movb %al, 0x1(%rbx)
callq 0x201b0
vmovaps (%r14), %xmm0
vxorps %xmm1, %xmm1, %xmm1
vmovaps %xmm1, (%r14)
movq 0x40(%rbx), %rdi
vmovups %xmm0, 0x38(%rbx)
testq %rdi, %rdi
je 0xaf73
callq 0xb272
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xaf73
callq 0xb272
movsbl (%rbx), %esi
leaq 0x10(%rbx), %rdi
imull %esi, %esi
movw %si, 0x2(%rbx)
callq 0xb01e
movq %rbx, %rdi
callq 0xb052
cmpl $0x17, %ebp
setb %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/string.h
// Function: int Morat::from_str<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
T from_str(const std::string & str){
	std::istringstream sin(str);
	T ret;
	sin >> ret;
	return ret;
}

// Assembly:
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
leaq 0x10(%rsp), %rbx
movl $0x8, %edx
movq %rdi, %rsi
movq %rbx, %rdi
callq 0x5600
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x51b0
movq 0x3dff2(%rip), %rsi     # 0x48fc0
movl 0xc(%rsp), %ebx
leaq 0x10(%rsp), %rdi
callq 0x5490
leaq 0x88(%rsp), %rdi
callq 0x50d0
movl %ebx, %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
retq
movq 0x3dfc5(%rip), %rsi     # 0x48fc0
leaq 0x10(%rsp), %rdi
movq %rax, %rbx
callq 0x5490
leaq 0x88(%rsp), %rdi
callq 0x50d0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/board.h
// Function: Morat::Hex::Board::clear()
void clear() {
		last_move_ = M_NONE;
		num_moves_ = 0;
		to_play_ = Side::P1;
		outcome_ = Outcome::UNKNOWN;
		hash.clear();

		for(int y = 0; y < size_; y++){
			for(int x = 0; x < size_; x++){
				MoveValid pos = move_valid(x, y);
				Side s = (on_board(x, y) ? Side::NONE : Side::UNDEF);
				cells_[pos.xy] = Cell(s, pos.xy, 1, edges(x, y), init_pattern(pos));
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x2b343(%rip), %rax     # 0x363aa
movl $0x78fd0000, 0x4(%rdi)  # imm = 0x78FD0000
vxorps %xmm0, %xmm0, %xmm0
movb (%rax), %al
movb %al, 0x8(%rdi)
leaq 0x2b330(%rip), %rax     # 0x363ae
movb (%rax), %al
movb %al, 0x9(%rdi)
vmovups %xmm0, 0x28(%rdi)
movb (%rdi), %al
testb %al, %al
jle 0xb1cd
movq %rdi, %r13
movq $0x0, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
testb %al, %al
jle 0xb1aa
movsbl 0x4(%rsp), %ecx
movzbl %al, %r15d
xorl %r14d, %r14d
movl %ecx, 0x14(%rsp)
movl %r15d, %eax
imull 0x14(%rsp), %eax
movsbl %r14b, %r12d
leaq 0x2b2d8(%rip), %rcx     # 0x363a9
movl 0x4(%rsp), %edx
movq %r13, %rdi
movl %r14d, %esi
movb (%rcx), %bpl
addl %eax, %r12d
leaq 0x2b2c0(%rip), %rax     # 0x363a8
cmpl %r15d, %edx
setl 0x3(%rsp)
movb (%rax), %bl
callq 0x20182
imull 0x8(%rsp), %r15d
movl $0x3, %r10d
xorl %edx, %edx
xorl %r8d, %r8d
addl %r14d, %r15d
movswq %r15w, %rcx
leaq (%rcx,%rcx,8), %rsi
movswq %r12w, %rcx
shlq $0x3, %rsi
addq 0x38(%r13), %rsi
cmpl $0xffff0000, (%rsi,%r8) # imm = 0xFFFF0000
movl $0x0, %r9d
cmovaeq %r10, %r9
shlq $0x2, %r10
addq $0x4, %r8
orq %r9, %rdx
cmpq $0x48, %r8
jne 0xb11f
cmpb $0x0, 0x3(%rsp)
movq 0x10(%r13), %rdi
movzbl %bpl, %esi
movzbl %bl, %r8d
movl $0x3f03f03f, %r9d       # imm = 0x3F03F03F
cmovnel %esi, %r8d
movq %rdx, %rsi
andq %r9, %rsi
shrq $0x6, %rdx
shlq $0x4, %rcx
incl %r14d
shlq $0x6, %rsi
andq %r9, %rdx
movb %r8b, (%rdi,%rcx)
movw $0x1, 0x2(%rdi,%rcx)
movw %r12w, 0x4(%rdi,%rcx)
movb %al, 0x6(%rdi,%rcx)
movb $0x0, 0x7(%rdi,%rcx)
orq %rsi, %rdx
movq %rdx, 0x8(%rdi,%rcx)
movb (%r13), %al
movsbl %al, %r15d
cmpl %r15d, %r14d
jl 0xb0be
jmp 0xb1ae
movsbl %al, %r15d
movq 0x8(%rsp), %rcx
movl 0x4(%rsp), %edx
incl %edx
incl %ecx
movq %rcx, 0x8(%rsp)
movl %edx, 0x4(%rsp)
cmpl %r15d, %edx
jl 0xb0a6
addq $0x18, %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/../lib/gtpbase.h
// Function: Morat::GTPBase::find_callback(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int find_callback(const std::string & name){
		for(unsigned int i = 0; i < callbacks.size(); i++)
			if(callbacks[i].name == name)
				return i;
		return -1;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r12
movq 0x18(%rdi), %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
subq %r12, %rax
je 0xbbeb
movq (%rsi), %r14
movq 0x8(%rsi), %r15
sarq $0x5, %rax
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
xorl %ebp, %ebp
imulq %rax, %r13
leaq (%rbp,%rbp,2), %rax
shlq $0x5, %rax
cmpq %r15, 0x8(%r12,%rax)
jne 0xbbe0
testq %r15, %r15
je 0xbbe9
addq %r12, %rax
movq %r14, %rsi
movq %r15, %rdx
movq (%rax), %rdi
callq 0x5330
testl %eax, %eax
je 0xbbe9
incl %ebp
cmpq %rbp, %r13
ja 0xbbb6
jmp 0xbbeb
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %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/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::AgentMCTS(Morat::Hex::Board const&)
AgentMCTS::AgentMCTS(const Board & b) : Agent(b), pool(this) {
	nodes = 0;
	runs = 0;
	gclimit = 5;

	profile     = false;
	ponder      = false;
//#ifdef SINGLE_THREAD ... make sure only 1 thread
	numthreads  = 1;
	pool.set_num_threads(numthreads);
	maxmem      = 1000*1024*1024;

	msrave      = -2;
	msexplore   = 0;

	explore     = 0;
	parentexplore = false;
	ravefactor  = 500;
	decrrave    = 0;
	knowledge   = true;
	userave     = 1;
	useexplore  = 1;
	fpurgency   = 1;
	rollouts    = 5;
	dynwiden    = 0;
	logdynwiden = (dynwiden ? std::log(dynwiden) : 0);

	shortrave   = false;
	keeptree    = true;
	minimax     = 2;
	visitexpand = 1;
	gcsolved    = 100000;
	longestloss = false;

	localreply  = 5;
	locality    = 5;
	connect     = 20;
	size        = 0;
	bridge      = 100;
	dists       = 0;

	weightedrandom = false;
	rolloutpattern = true;
	lastgoodreply  = false;
	instantwin     = 0;

	for(int i = 0; i < 4096; i++)
		gammas[i] = 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1209a
leaq 0x397e5(%rip), %rax     # 0x48888
vxorps %xmm0, %xmm0, %xmm0
leaq 0x4130(%rbx), %r14
movq %rax, (%rbx)
leaq 0x272f6(%rip), %rax     # 0x363ae
vmovups %ymm0, 0x40e0(%rbx)
movw $0x0, 0x4100(%rbx)
movb (%rax), %al
movb %al, 0x4102(%rbx)
movl $0xfc78fd00, 0x4103(%rbx) # imm = 0xFC78FD00
movb $0x78, 0x4107(%rbx)
movq $0x0, 0x4108(%rbx)
movq %r14, %rdi
vzeroupper
callq 0x12106
leaq 0x54f0(%rbx), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12198
xorl %r15d, %r15d
movq %r15, 0x4110(%rbx)
movq %r15, 0x4120(%rbx)
movl $0x5, 0x4118(%rbx)
movb %r15b, 0x68(%rbx)
movb %r15b, 0x58(%rbx)
movl $0x1, 0x5c(%rbx)
movl $0x1, %esi
movq %r12, %rdi
callq 0x12224
vmovss 0x230b3(%rip), %xmm0    # 0x321fc
vmovsd 0x2313f(%rip), %xmm1    # 0x32290
vbroadcastss 0x230a6(%rip), %xmm2 # 0x32200
movq $0x3e800000, 0x60(%rbx) # imm = 0x3E800000
movb $0x1, %al
movabsq $0x53f800000, %rcx      # imm = 0x53F800000
vmovlps %xmm0, 0x6c(%rbx)
vbroadcastss 0x23083(%rip), %zmm0 # 0x32200
movb %r15b, 0x74(%rbx)
vmovsd %xmm1, 0x78(%rbx)
vmovaps 0x23112(%rip), %xmm1    # 0x322a0
movl %r15d, 0x80(%rbx)
movb %al, 0x84(%rbx)
vmovlps %xmm2, 0x88(%rbx)
movq %rcx, 0x90(%rbx)
movabsq $0x100000002, %rcx      # imm = 0x100000002
movq %r15, 0x98(%rbx)
movw $0x100, 0xa0(%rbx)      # imm = 0x100
movq %rcx, 0xa4(%rbx)
movl $0x186a0, 0xac(%rbx)    # imm = 0x186A0
movb %r15b, 0xb0(%rbx)
vmovups %xmm1, 0xb4(%rbx)
movq $0x64, 0xc4(%rbx)
movl %r15d, 0xcc(%rbx)
movb %al, 0xd0(%rbx)
movq %r15, 0xd4(%rbx)
vmovups %zmm0, 0xdc(%rbx,%r15,4)
addq $0x10, %r15
cmpq $0x1000, %r15           # imm = 0x1000
jne 0xf203
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
vzeroupper
retq
movq %r12, %rdi
movq %rax, %r15
callq 0x123bc
jmp 0xf23a
movq %rax, %r15
movq %r14, %rdi
callq 0x123fe
jmp 0xf247
movq %rax, %r15
leaq 0x40e0(%rbx), %rdi
callq 0x12448
movq %rbx, %rdi
callq 0x13612
movq %r15, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::~AgentMCTS()
AgentMCTS::~AgentMCTS(){
	pool.pause();
	pool.set_num_threads(0);

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x39615(%rip), %rax     # 0x48888
leaq 0x54f0(%rdi), %r14
movq %rdi, %rbx
movq %rax, (%rdi)
movq %r14, %rdi
callq 0x115ac
movq %r14, %rdi
xorl %esi, %esi
callq 0x12224
leaq 0x40e0(%rbx), %r15
leaq 0x4130(%rbx), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x124a0
vxorps %xmm0, %xmm0, %xmm0
vxorps %xmm1, %xmm1, %xmm1
movq %r12, %rdi
callq 0x12534
movq %r14, %rdi
callq 0x123bc
movq %r12, %rdi
callq 0x123fe
movq %r15, %rdi
callq 0x12448
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13612
movq %rax, %rdi
callq 0xa8ae
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::set_ponder(bool)
void AgentMCTS::set_ponder(bool p){
	if(ponder != p){
		ponder = p;
		pool.pause();

		if(ponder)
			pool.resume();
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpb %sil, 0x58(%rdi)
je 0xf335
leaq 0x54f0(%rdi), %r14
movq %rdi, %rbx
movb %sil, 0x58(%rdi)
movq %r14, %rdi
callq 0x115ac
cmpb $0x1, 0x58(%rbx)
jne 0xf335
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x11718
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::set_board(Morat::Hex::Board const&, bool)
void AgentMCTS::set_board(const Board & board, bool clear){
	pool.pause();

	nodes -= root.dealloc(ctmem);
	root = Node();
	root.exp.addwins(visitexpand+1);

	rootboard = board;

	if(ponder)
		pool.resume();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x54f0(%rdi), %rbx
movq %rdi, %r14
movq %rsi, %r15
movq %rbx, %rdi
callq 0x115ac
leaq 0x40e0(%r14), %r12
leaq 0x4130(%r14), %rsi
movq %r12, %rdi
callq 0x124a0
movl %eax, %eax
subq %rax, 0x4110(%r14)
leaq 0x2702a(%rip), %rax     # 0x363ae
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %rsi
movw $0x0, 0x20(%rsi)
vmovups %ymm0, (%rsi)
movb (%rax), %al
movb %al, 0x22(%rsi)
movl $0xfc78fd00, 0x23(%rsi) # imm = 0xFC78FD00
movb $0x78, 0x27(%rsi)
movq $0x0, 0x28(%rsi)
movq %r12, %rdi
vzeroupper
callq 0x1297c
movq %rsp, %rdi
callq 0x12448
movl 0xa8(%r14), %eax
leaq 0x20(%r14), %rdi
leaq 0x10(%r15), %rsi
incl %eax
vmovq %rax, %xmm0
addq %rax, %rax
vmovq %rax, %xmm1
vpunpcklqdq %xmm0, %xmm1, %xmm0 # xmm0 = xmm1[0],xmm0[0]
vpaddq 0x40f0(%r14), %xmm0, %xmm0
vmovdqu %xmm0, 0x40f0(%r14)
movq (%r15), %rax
movq %rax, 0x10(%r14)
movzwl 0x8(%r15), %eax
movw %ax, 0x18(%r14)
callq 0x13756
vmovups 0x28(%r15), %xmm0
leaq 0x50(%r14), %rdi
vmovups %xmm0, 0x38(%r14)
movq 0x38(%r15), %rax
addq $0x40, %r15
movq %r15, %rsi
movq %rax, 0x48(%r14)
callq 0x13842
cmpb $0x1, 0x58(%r14)
jne 0xf43d
movq %rbx, %rdi
callq 0x11718
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rsp, %rdi
movq %rax, %rbx
callq 0x12448
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::get_pv(std::vector<Morat::Move, std::allocator<Morat::Move>> const&) const
std::vector<Move> AgentMCTS::get_pv(const vecmove& moves) const {
	vecmove pv;

	const Node * n = & root;
	Side turn = rootboard.to_play();
	unsigned int i = 0;
	while(n && !n->children.empty()){
		Move m = (i < moves.size() ? moves[i++] : return_move(n, turn));
		pv.push_back(m);
		n = find_child(n, m);
		turn = ~turn;
	}

	if(pv.size() == 0)
		pv.push_back(Move(M_RESIGN));

	return pv;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
vxorps %xmm0, %xmm0, %xmm0
movq $0x0, 0x10(%rdi)
movq %rdi, %rbx
vmovups %xmm0, (%rdi)
movq 0x4108(%rsi), %rax
cmpq $0x2, %rax
jb 0xfe7d
movq %rsi, %r15
movb 0x18(%r15), %r12b
leaq 0x4108(%rsi), %rbp
addq $0x40e0, %rsi           # imm = 0x40E0
movq %rdx, %r14
xorl %r13d, %r13d
cmpw $0x0, 0x6(%rax)
je 0xfe7d
movq (%r14), %rcx
movq 0x8(%r14), %rdx
movl %r13d, %eax
subq %rcx, %rdx
sarq %rdx
cmpq %rax, %rdx
jbe 0xfdd5
movw (%rcx,%rax,2), %ax
incl %r13d
jmp 0xfde3
movzbl %r12b, %edx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0xfedc
movq 0x8(%rbx), %rsi
movw %ax, 0x4(%rsp)
cmpq 0x10(%rbx), %rsi
je 0xfdfc
movw %ax, (%rsi)
addq $0x2, 0x8(%rbx)
jmp 0xfe09
leaq 0x4(%rsp), %rdx
movq %rbx, %rdi
callq 0x15814
movq (%rbp), %rdx
movl $0x0, %ebp
movl $0x0, %eax
leaq 0x10(%rdx), %rcx
cmpq $0x2, %rdx
cmovaeq %rcx, %rbp
jb 0xfe36
movzwl 0x6(%rdx), %eax
leaq (%rax,%rax,2), %rax
shll $0x4, %eax
addq %rax, %rcx
movq %rcx, %rax
cmpq %rax, %rbp
je 0xfe7d
movb 0x4(%rsp), %cl
movb 0x5(%rsp), %dl
addq $0x28, %rbp
cmpb %cl, -0x4(%rbp)
jne 0xfe51
cmpb %dl, -0x3(%rbp)
je 0xfe63
leaq 0x30(%rbp), %rsi
addq $0x8, %rbp
cmpq %rax, %rbp
movq %rsi, %rbp
jne 0xfe47
jmp 0xfe7d
movq (%rbp), %rax
movb $0x3, %cl
leaq -0x28(%rbp), %rsi
subb %r12b, %cl
movl %ecx, %r12d
cmpq $0x1, %rax
ja 0xfdac
movq 0x8(%rbx), %rsi
cmpq (%rbx), %rsi
jne 0xfeaf
movw $0x78fe, 0x6(%rsp)      # imm = 0x78FE
cmpq 0x10(%rbx), %rsi
je 0xfea2
movzwl 0x6(%rsp), %eax
movw %ax, (%rsi)
addq $0x2, 0x8(%rbx)
jmp 0xfeaf
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x15948
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfec3
movq (%rbx), %rdi
movq %rax, %r14
testq %rdi, %rdi
je 0xfed3
callq 0x52e0
movq %r14, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::garbage_collect(Morat::Hex::AgentMCTS::Node&, Morat::Side)
void AgentMCTS::garbage_collect(Node& node, Side to_play){
	for (auto& child : node.children) {
		if (child.children.num() == 0)
			continue;

		if ((node.outcome.solved() &&       // parent is solved
		     child.exp.num() > gcsolved &&  // keep the heavy nodes
		     (node.outcome != to_play ||    // loss or draw, keep the everything
		      child.outcome == to_play)) || // found the win, keep the proof tree
		    (!node.outcome.solved() &&      // parent isn't solved,
		     child.exp.num() > (child.outcome.solved() ?
		      gcsolved :                    // only keep the heavy proof tree
		      gclimit)) ){                  // but the light area still being worked on
			garbage_collect(child, ~to_play);
		} else {
			nodes -= child.dealloc(ctmem);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x28(%rsi), %rcx
movl %edx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movl $0x0, %r12d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r12
jb 0x10859
movzwl 0x6(%rcx), %ecx
leaq (%rcx,%rcx,2), %rcx
shll $0x4, %ecx
addq %rcx, %rax
movq %rax, %rbx
cmpq %rbx, %r12
je 0x10917
movb $0x3, %al
subb 0x8(%rsp), %al
leaq 0xac(%r15), %rcx
leaq 0x4130(%r15), %r13
leaq 0x4118(%r15), %rbp
movq %rcx, 0x10(%rsp)
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movq 0x28(%r12), %rax
cmpq $0x2, %rax
jb 0x1090a
cmpw $0x0, 0x6(%rax)
je 0x1090a
leaq 0x25b0f(%rip), %rcx     # 0x363b1
movb 0x22(%r14), %al
movb (%rcx), %dl
movq 0x18(%r12), %rcx
cmpb %dl, %al
jge 0x108c8
cmpb %dl, 0x22(%r12)
movq 0x10(%rsp), %rax
cmovlq %rbp, %rax
movl (%rax), %eax
cmpq %rax, %rcx
ja 0x108e5
jmp 0x108f6
movl 0xac(%r15), %edx
cmpq %rdx, %rcx
jbe 0x108f6
cmpb 0x8(%rsp), %al
jne 0x108e5
movl 0x8(%rsp), %eax
cmpb %al, 0x22(%r12)
jne 0x108f6
movl 0xc(%rsp), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x10816
jmp 0x1090a
movq %r12, %rdi
movq %r13, %rsi
callq 0x124a0
movl %eax, %eax
subq %rax, 0x4110(%r15)
addq $0x30, %r12
cmpq %rbx, %r12
jne 0x10889
addq $0x18, %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/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::gen_sgf(Morat::SGFPrinter<Morat::Move>&, unsigned int, Morat::Hex::AgentMCTS::Node const&, Morat::Side) const
void AgentMCTS::gen_sgf(SGFPrinter<Move> & sgf, unsigned int limit, const Node & node, Side side) const {
	for(auto & child : node.children){
		if(child.exp.num() >= limit && (side != node.outcome || child.outcome == node.outcome)){
			sgf.child_start();
			sgf.move(side, child.move);
			sgf.comment(child.to_s());
			gen_sgf(sgf, limit, child, ~side);
			sgf.child_end();
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, 0x20(%rsp)
movq 0x28(%rcx), %rcx
movl %r8d, %ebx
movl %edx, 0xc(%rsp)
movq %rsi, %r15
movq %rdi, 0x18(%rsp)
xorl %r12d, %r12d
movl $0x0, %r13d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r13
jb 0x10974
movzwl 0x6(%rcx), %ecx
leaq (%rcx,%rcx,2), %rcx
shll $0x4, %ecx
addq %rcx, %rax
movq %rax, %r12
cmpq %r12, %r13
je 0x10a1e
movl 0xc(%rsp), %ebp
movb $0x3, %al
movzbl %bl, %ecx
subb %bl, %al
movl %ecx, 0x14(%rsp)
movzbl %al, %eax
movl %eax, 0x10(%rsp)
cmpq %rbp, 0x18(%r13)
jb 0x10a11
movq 0x20(%rsp), %rax
cmpb %bl, 0x22(%rax)
jne 0x109a9
cmpb %bl, 0x22(%r13)
jne 0x10a11
movq %r15, %rdi
callq 0x12b38
movl 0x24(%r13), %edx
movl 0x14(%rsp), %esi
movq %r15, %rdi
callq 0x12d00
leaq 0x28(%rsp), %r14
movq %r13, %rsi
movq %r14, %rdi
callq 0xbfe8
movq %r15, %rdi
movq %r14, %rsi
callq 0x12e4c
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x109f0
callq 0x52e0
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %edx
movl 0x10(%rsp), %r8d
movq %r15, %rsi
movq %r13, %rcx
callq 0x10926
movq %r15, %rdi
callq 0x12f30
addq $0x30, %r13
cmpq %r12, %r13
jne 0x10993
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%rsp), %rdi
movq %rax, %rbx
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x10a44
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::create_children_simple(Morat::Hex::Board const&, Morat::Hex::AgentMCTS::Node*)
void AgentMCTS::create_children_simple(const Board & board, Node * node){
	assert(node->children.empty());

	node->children.alloc(board.moves_avail(), ctmem);

	Node * child = node->children.begin();
	for (auto move : board) {
		*child++ = Node(move);
	}
	assert(child == node->children.end());
	PLUS(nodes, node->children.num());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x28(%rdx), %rax
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
cmpq $0x2, %rax
jb 0x10a78
cmpw $0x0, 0x6(%rax)
jne 0x10baf
leaq 0x25932(%rip), %rcx     # 0x363b1
movswl 0x2(%r12), %esi
movswl 0x4(%r12), %edx
movb 0x9(%r12), %al
addq $0x28, %r14
xorl %r15d, %r15d
movq %r14, %rdi
subl %edx, %esi
cmpb (%rcx), %al
leaq 0x4130(%rbx), %rdx
cmovgel %r15d, %esi
callq 0x130ce
movq (%r14), %rax
movq %r12, %rdi
leaq 0x10(%rax), %rcx
cmpq $0x2, %rax
cmovaeq %rcx, %r15
callq 0x13114
movq %rax, (%rsp)
movq %rdx, %rax
shrq $0x20, %rax
movl %edx, 0x8(%rsp)
notl %edx
movb %al, 0xc(%rsp)
testl $0xffff0000, %edx       # imm = 0xFFFF0000
je 0x10b52
leaq 0x258c5(%rip), %rbp     # 0x363ae
leaq 0x10(%rsp), %r12
movq %rsp, %r13
movzwl 0x8(%rsp), %eax
movb (%rbp), %cl
vxorps %xmm0, %xmm0, %xmm0
movw $0x0, 0x30(%rsp)
vmovups %ymm0, 0x10(%rsp)
movb %cl, 0x32(%rsp)
movb $0x0, 0x33(%rsp)
movw %ax, 0x34(%rsp)
movw $0x78fc, 0x36(%rsp)     # imm = 0x78FC
movq $0x0, 0x38(%rsp)
movq %r15, %rdi
movq %r12, %rsi
vzeroupper
callq 0x1297c
movq %r12, %rdi
addq $0x30, %r15
callq 0x12448
movq %r13, %rdi
callq 0x1315e
cmpw $-0x1, 0xa(%rsp)
jne 0x10af1
movq (%r14), %rcx
cmpq $0x2, %rcx
jb 0x10b72
movzwl 0x6(%rcx), %eax
leaq (%rax,%rax,2), %rdx
shll $0x4, %edx
leaq 0x10(%rcx,%rdx), %rcx
cmpq %rcx, %r15
je 0x10b79
jmp 0x10b90
testq %r15, %r15
jne 0x10b90
xorl %eax, %eax
lock
addq %rax, 0x4110(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21b52(%rip), %rdi     # 0x326e9
leaq 0x21a29(%rip), %rsi     # 0x325c7
leaq 0x21afa(%rip), %rcx     # 0x3269f
movl $0x191, %edx            # imm = 0x191
callq 0x51d0
leaq 0x21a74(%rip), %rdi     # 0x3262a
leaq 0x21a0a(%rip), %rsi     # 0x325c7
leaq 0x21adb(%rip), %rcx     # 0x3269f
movl $0x189, %edx            # imm = 0x189
callq 0x51d0
leaq 0x10(%rsp), %rdi
movq %rax, %rbx
callq 0x12448
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/move.h
// Function: Morat::Move::to_s[abi:cxx11]() const
std::string to_s() const {
		if(y == M_UNKNOWN) return "unknown";
		if(y == M_NONE)    return "none";
		if(y == M_SWAP)    return "swap";
		if(y == M_RESIGN)  return "resign";

		return std::string() + char(x + 'a') + to_str(y + 1);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movzbl (%rsi), %eax
movq %rdi, %rbx
addl $0xffffff04, %eax       # imm = 0xFFFFFF04
cmpl $0x3, %eax
ja 0x10f11
leaq 0x21348(%rip), %rcx     # 0x321e8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
leaq 0x218c6(%rip), %rsi     # 0x3277a
leaq 0x218c6(%rip), %rdx     # 0x32781
jmp 0x10ef7
leaq 0x10(%rbx), %rax
leaq 0x218c4(%rip), %rsi     # 0x3278c
leaq 0x218c3(%rip), %rdx     # 0x32792
jmp 0x10ef7
leaq 0x10(%rbx), %rax
leaq 0x218ab(%rip), %rsi     # 0x32787
leaq 0x218a8(%rip), %rdx     # 0x3278b
jmp 0x10ef7
leaq 0x10(%rbx), %rax
leaq 0x21892(%rip), %rsi     # 0x32782
leaq 0x2188f(%rip), %rdx     # 0x32786
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0xb1dc
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x58(%rsp), %r15
movq %rsi, %r14
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movb 0x1(%rsi), %al
addb $0x61, %al
movsbl %al, %r8d
leaq 0x48(%rsp), %rdi
movl $0x1, %ecx
xorl %esi, %esi
xorl %edx, %edx
callq 0x56c0
leaq 0x18(%rsp), %r12
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, -0x10(%r12)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x10f6d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x10f77
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movsbl (%r14), %esi
incl %esi
leaq 0x28(%rsp), %rdi
callq 0x1131a
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
movq 0x8(%rsp), %rcx
movl $0xf, %edi
leaq (%rdx,%r8), %rax
cmpq %r12, %rcx
je 0x10fc1
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x10fe4
leaq 0x38(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x10fdf
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x10ff0
leaq 0x8(%rsp), %rdi
callq 0x50c0
jmp 0x10ffe
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x10(%rbx), %rdx
leaq 0x10(%rax), %rcx
movq %rdx, (%rbx)
movq (%rax), %rsi
cmpq %rcx, %rsi
je 0x1101d
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x11025
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rdx)
movq 0x8(%rax), %rsi
movq %rax, %rdx
addq $0x8, %rdx
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x38(%rsp), %rcx
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x11054
callq 0x52e0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x11063
callq 0x52e0
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x10f02
callq 0x52e0
jmp 0x10f02
leaq 0x38(%rsp), %rcx
movq %rax, %rbx
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x11096
callq 0x52e0
jmp 0x11096
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x110aa
callq 0x52e0
jmp 0x110aa
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x110b9
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/move.h
// Function: Morat::Move::Move(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Move(const std::string & str){
		if(     str == "swap"   ){ y = M_SWAP;    x = 120; }
		else if(str == "resign" ){ y = M_RESIGN;  x = 120; }
		else if(str == "none"   ){ y = M_NONE;    x = 120; }
		else if(str == "unknown"){ y = M_UNKNOWN; x = 120; }
		else{
			x = tolower(str[0]) - 'a';
			y = atoi(str.c_str() + 1) - 1;
		}
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
leaq 0x21361(%rip), %rsi     # 0x32787
movq %rdi, %rbx
movq %r14, %rdi
callq 0x50b0
testl %eax, %eax
je 0x11490
leaq 0x21350(%rip), %rsi     # 0x3278c
movq %r14, %rdi
callq 0x50b0
testl %eax, %eax
je 0x11497
leaq 0x21333(%rip), %rsi     # 0x32782
movq %r14, %rdi
callq 0x50b0
testl %eax, %eax
je 0x1149e
leaq 0x21318(%rip), %rsi     # 0x3277a
movq %r14, %rdi
callq 0x50b0
testl %eax, %eax
je 0x114a5
movq (%r14), %r14
movsbl (%r14), %edi
callq 0x54a0
addb $-0x61, %al
incq %r14
movq %r14, %rdi
movb %al, 0x1(%rbx)
callq 0x5550
decb %al
movb %al, (%rbx)
jmp 0x114aa
movw $0x78ff, (%rbx)         # imm = 0x78FF
jmp 0x114aa
movw $0x78fe, (%rbx)         # imm = 0x78FE
jmp 0x114aa
movw $0x78fd, (%rbx)         # imm = 0x78FD
jmp 0x114aa
movw $0x78fc, (%rbx)         # imm = 0x78FC
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/exppair.h
// Function: Morat::ExpPair::ExpPair(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
ExpPair(std::string str) {
		auto parts = explode(str, "/");
		assert(parts.size() == 2);
		n = from_str<uword>(parts[1]);
		s = 2.0*from_str<float>(parts[0])*n;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
leaq 0x30(%rsp), %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %r15, -0x10(%r15)
leaq 0x212c2(%rip), %rsi     # 0x32793
leaq 0x212bc(%rip), %rdx     # 0x32794
leaq 0x20(%rsp), %rdi
callq 0xb1dc
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x2f90c
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x11505
callq 0x52e0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
subq %rdi, %rax
cmpq $0x40, %rax
jne 0x1155f
addq $0x20, %rdi
callq 0x13446
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
callq 0x134c8
vcvtss2sd %xmm0, %xmm0, %xmm0
leaq 0x8(%rsp), %rdi
vaddsd %xmm0, %xmm0, %xmm0
vcvtusi2sdq 0x8(%rbx), %xmm1, %xmm1
vmulsd %xmm1, %xmm0, %xmm0
vcvttsd2usi %xmm0, %rax
movq %rax, (%rbx)
callq 0xaa7e
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2122f(%rip), %rdi     # 0x32795
leaq 0x2123a(%rip), %rsi     # 0x327a7
leaq 0x21248(%rip), %rcx     # 0x327bc
movl $0x19, %edx
callq 0x51d0
movq 0x20(%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x115a4
callq 0x52e0
jmp 0x115a4
movq %rax, %rbx
jmp 0x115a4
leaq 0x8(%rsp), %rdi
movq %rax, %rbx
callq 0xaa7e
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/agentpool.h
// Function: Morat::AgentThreadPool<Morat::Hex::AgentMCTS>::pause()
void pause() { // pause the threads so they're waiting to be resumed
		if(thread_state != Thread_Wait_Start){
			timed_out();
			run_barrier.wait();
			CAS(thread_state, Thread_Wait_End, Thread_Wait_Start);
			assert(thread_state == Thread_Wait_Start);
		}
	}

// Assembly:
pushq %rbx
movl (%rdi), %eax
cmpl $0x1, %eax
je 0x115fe
movl $0x6, %ecx
movl $0x3, %eax
movq %rdi, %rbx
lock
cmpxchgl %ecx, (%rdi)
movl $0x5, %ecx
movl $0x4, %eax
lock
cmpxchgl %ecx, (%rdi)
movq 0xe0(%rdi), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
leaq 0x20(%rbx), %rdi
callq 0x143a2
movl $0x1, %ecx
movl $0x6, %eax
lock
cmpxchgl %ecx, (%rbx)
movl (%rbx), %eax
cmpl $0x1, %eax
jne 0x11600
popq %rbx
retq
leaq 0x218e1(%rip), %rdi     # 0x32ee8
leaq 0x218fc(%rip), %rsi     # 0x32f0a
leaq 0x2190c(%rip), %rcx     # 0x32f21
movl $0x67, %edx
callq 0x51d0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/agentpool.h
// Function: Morat::AgentThreadPool<Morat::Hex::AgentMCTS>::reset()
void reset() { // call the reset method on each thread
		//start and end with thread_state = Thread_Wait_Start
		assert(thread_state == Thread_Wait_Start);

		for(auto & t : threads)
			t->reset();

		assert(thread_state == Thread_Wait_Start);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl (%rdi), %eax
cmpl $0x1, %eax
jne 0x116da
movq 0x8(%rdi), %r14
movq 0x10(%rdi), %r15
movq %rdi, %rbx
cmpq %r15, %r14
je 0x116cd
movq (%r14), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x8, %r14
jmp 0x116b9
movl (%rbx), %eax
cmpl $0x1, %eax
jne 0x116f9
popq %rbx
popq %r14
popq %r15
retq
leaq 0x21807(%rip), %rdi     # 0x32ee8
leaq 0x21822(%rip), %rsi     # 0x32f0a
leaq 0x21892(%rip), %rcx     # 0x32f81
movl $0x9c, %edx
callq 0x51d0
leaq 0x217e8(%rip), %rdi     # 0x32ee8
leaq 0x21803(%rip), %rsi     # 0x32f0a
leaq 0x21873(%rip), %rcx     # 0x32f81
movl $0xa1, %edx
callq 0x51d0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/agentpool.h
// Function: Morat::AgentThreadPool<Morat::Hex::AgentMCTS>::resume()
void resume() { // let the threads run
		assert(thread_state == Thread_Wait_Start);
		run_barrier.wait();
		CAS(thread_state, Thread_Wait_Start, Thread_Running);
	}

// Assembly:
pushq %rbx
movl (%rdi), %eax
cmpl $0x1, %eax
jne 0x1173c
movq %rdi, %rbx
addq $0x20, %rdi
callq 0x143a2
movl $0x3, %ecx
movl $0x1, %eax
lock
cmpxchgl %ecx, (%rbx)
popq %rbx
retq
leaq 0x217a5(%rip), %rdi     # 0x32ee8
leaq 0x217c0(%rip), %rsi     # 0x32f0a
leaq 0x21890(%rip), %rcx     # 0x32fe1
movl $0x6c, %edx
callq 0x51d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/agentpool.h
// Function: Morat::AgentThreadPool<Morat::Hex::AgentMCTS>::wait_pause(double)
void wait_pause(double time) { // wait until they run out of time or otherwise finish
		Alarm timer;
		if(time > 0)
			timer(time, std::bind(&AgentThreadPool::timed_out, this));

		//wait for the timer to stop them or for them to hit the other stop conditions
		run_barrier.wait();
		CAS(thread_state, Thread_Wait_End, Thread_Wait_Start);
		assert(thread_state == Thread_Wait_Start);
	}

// Assembly:
pushq %rbx
subq $0x30, %rsp
vxorpd %xmm1, %xmm1, %xmm1
movq %rdi, %rbx
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
vucomisd %xmm1, %xmm0
jbe 0x117f0
vmovsd %xmm0, 0x8(%rsp)
vxorpd %xmm0, %xmm0, %xmm0
vmovupd %ymm0, 0x10(%rsp)
movl $0x18, %edi
vzeroupper
callq 0x5320
leaq 0x2bde(%rip), %rcx      # 0x14378
leaq 0x10(%rsp), %rsi
leaq 0x2e9c(%rip), %rdx      # 0x14642
movq %rcx, (%rax)
leaq 0x2eae(%rip), %rcx      # 0x1465e
movq $0x0, 0x8(%rax)
movq %rax, (%rsi)
movq %rdx, 0x18(%rsi)
movq %rbx, 0x10(%rax)
movq %rcx, 0x10(%rsi)
vmovsd 0x8(%rsp), %xmm0
leaq 0x4(%rsp), %rdi
callq 0x14458
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x117f0
leaq 0x10(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
leaq 0x20(%rbx), %rdi
callq 0x143a2
movl $0x1, %ecx
movl $0x6, %eax
lock
cmpxchgl %ecx, (%rbx)
movl (%rbx), %eax
cmpl $0x1, %eax
jne 0x1181e
leaq 0x4(%rsp), %rdi
callq 0x14512
addq $0x30, %rsp
popq %rbx
retq
leaq 0x216c3(%rip), %rdi     # 0x32ee8
leaq 0x216de(%rip), %rsi     # 0x32f0a
leaq 0x2180f(%rip), %rcx     # 0x33042
movl $0x79, %edx
callq 0x51d0
jmp 0x1185d
movq %rax, %rbx
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x1186a
leaq 0x10(%rsp), %rdi
movl $0x3, %edx
movq %rdi, %rsi
callq *%rax
jmp 0x1186a
movq %rax, %rdi
callq 0xa8ae
jmp 0x11867
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x14512
movq %rbx, %rdi
callq 0x5670
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/depthstats.h
// Function: Morat::DepthStats::operator+=(Morat::DepthStats const&)
DepthStats & operator += (const DepthStats & o){
		num += o.num;
		sumdepth += o.sumdepth;
		sumdepthsq += o.sumdepthsq;
		if(mindepth > o.mindepth) mindepth = o.mindepth;
		if(maxdepth < o.maxdepth) maxdepth = o.maxdepth;
		return *this;
	}

// Assembly:
movl 0x8(%rsi), %ecx
movq %rdi, %rax
addl %ecx, 0x8(%rdi)
vmovdqu 0x10(%rdi), %xmm0
vpaddq 0x10(%rsi), %xmm0, %xmm0
vmovdqu %xmm0, 0x10(%rdi)
movl (%rsi), %ecx
cmpl %ecx, (%rdi)
jbe 0x1189c
movl %ecx, (%rax)
movl 0x4(%rsi), %ecx
cmpl %ecx, 0x4(%rax)
jae 0x118a7
movl %ecx, 0x4(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/compacttree.h
// Function: Morat::CompactTree<Morat::Hex::AgentMCTS::Node>::CompactTree()
CompactTree() {
		//allocate the first chunk
		head = current = last = new Chunk(CHUNK_SIZE);
		numchunks = 1;
		memused = 0;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x20, %rdi
movl $0x1394, %edx           # imm = 0x1394
xorl %esi, %esi
callq 0x51a0
movl $0x20, %edi
callq 0x5320
vxorps %xmm0, %xmm0, %xmm0
movq $0x0, 0x18(%rax)
movq %rax, %rdi
movq %rax, %r14
movl $0x0, 0x10(%rax)
vmovups %xmm0, (%rax)
callq 0x13d88
movq $0x1000000, 0xc(%r14)   # imm = 0x1000000
movl $0x1000000, %edi        # imm = 0x1000000
callq 0x5030
movq %rax, 0x18(%r14)
movq %r14, 0x10(%rbx)
movq %r14, 0x8(%rbx)
movq %r14, (%rbx)
movl $0x1, 0x18(%rbx)
movq $0x0, 0x13b8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
movq %rax, %rbx
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/agentpool.h
// Function: Morat::AgentThreadPool<Morat::Hex::AgentMCTS>::set_num_threads(unsigned int)
void set_num_threads(unsigned int new_num_threads) { // destroys the existing threads and creates the specified number of new ones
		//start and end with thread_state = Thread_Wait_Start
		assert(thread_state == Thread_Wait_Start);

		//wait for them to all get to the barrier
		assert(CAS(thread_state, Thread_Wait_Start, Thread_Wait_Start_Cancelled));
		run_barrier.wait();

		//make sure they exited cleanly
		for(unsigned int i = 0; i < threads.size(); i++){
			threads[i]->join();
			delete threads[i];
		}

		threads.clear();

		thread_state = Thread_Wait_Start;

		num_threads = new_num_threads;

		run_barrier.reset(num_threads + 1);
		gc_barrier.reset(num_threads);

		//start new threads
		for(unsigned int i = 0; i < num_threads; i++)
			threads.push_back(new typename AgentType::AgentThread(this, agent));

		assert(thread_state == Thread_Wait_Start);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rdi), %eax
cmpl $0x1, %eax
jne 0x1234b
movl $0x2, %ecx
movl $0x1, %eax
movq %rdi, %rbx
lock
cmpxchgl %ecx, (%rdi)
jne 0x1236a
leaq 0x20(%rbx), %r15
movl %esi, %ebp
movq %r15, %rdi
callq 0x143a2
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x8(%rbx), %r14
cmpq %rax, %rcx
je 0x122b4
movl $0x1, %r12d
xorl %r13d, %r13d
movq (%rax,%r13,8), %rdi
addq $0x8, %rdi
callq 0x14a3a
movq (%r14), %rax
movq (%rax,%r13,8), %rdi
testq %rdi, %rdi
je 0x1229b
movq (%rdi), %rax
callq *0x8(%rax)
movq (%r14), %rax
movq 0x10(%rbx), %rcx
movl %r12d, %r13d
incl %r12d
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
ja 0x12279
cmpq %rax, %rcx
je 0x122bd
movq %rax, 0x10(%rbx)
movl $0x1, (%rbx)
movl %ebp, 0x4(%rbx)
incl %ebp
movq %r15, %rdi
movl %ebp, %esi
callq 0x14772
movl 0x4(%rbx), %esi
leaq 0x80(%rbx), %rdi
callq 0x14772
cmpl $0x0, 0x4(%rbx)
je 0x12335
xorl %ebp, %ebp
movq %rsp, %r15
movl $0x121e8, %edi          # imm = 0x121E8
callq 0x5320
movq 0xe0(%rbx), %rdx
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x147b6
movq %r12, (%rsp)
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
je 0x12323
movq %r12, (%rsi)
addq $0x8, 0x10(%rbx)
jmp 0x1232e
movq %r14, %rdi
movq %r15, %rdx
callq 0x14a6e
incl %ebp
cmpl 0x4(%rbx), %ebp
jb 0x122ec
movl (%rbx), %eax
cmpl $0x1, %eax
jne 0x12389
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20b96(%rip), %rdi     # 0x32ee8
leaq 0x20bb1(%rip), %rsi     # 0x32f0a
leaq 0x20d4d(%rip), %rcx     # 0x330ad
movl $0x7e, %edx
callq 0x51d0
leaq 0x20db2(%rip), %rdi     # 0x33123
leaq 0x20b92(%rip), %rsi     # 0x32f0a
leaq 0x20d2e(%rip), %rcx     # 0x330ad
movl $0x81, %edx
callq 0x51d0
leaq 0x20b58(%rip), %rdi     # 0x32ee8
leaq 0x20b73(%rip), %rsi     # 0x32f0a
leaq 0x20d0f(%rip), %rcx     # 0x330ad
movl $0x97, %edx
callq 0x51d0
movq %r12, %rdi
movq %rax, %rbx
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/compacttree.h
// Function: Morat::CompactTree<Morat::Hex::AgentMCTS::Node>::~CompactTree()
~CompactTree(){
		head->dealloc(true);
		delete head;
		head = current = last = NULL;
		numchunks = 0;
	}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movl $0x1, %esi
callq 0x13ea2
movq (%rbx), %r14
testq %r14, %r14
je 0x12422
movq %r14, %rdi
callq 0x13d88
movq %r14, %rdi
callq 0x52e0
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0xc(%rbx)
vmovups %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rdi
callq 0xa8ae
nop
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.h
// Function: Morat::Hex::AgentMCTS::Node::dealloc(Morat::CompactTree<Morat::Hex::AgentMCTS::Node>&)
unsigned int dealloc(CompactTree<Node> & ct){
			unsigned int num = 0;

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

			return num;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq 0x28(%rdi), %rsi
movq %rdi, %r15
xorl %r13d, %r13d
cmpq $0x2, %rsi
jb 0x124ff
cmpw $0x0, 0x6(%rsi)
je 0x12508
leaq 0x10(%rsi), %r12
xorl %ebx, %ebx
cmpq $0x2, %rsi
jb 0x124e1
movzwl 0x6(%rsi), %eax
leaq (%rax,%rax,2), %rax
shll $0x4, %eax
leaq 0x10(%rsi,%rax), %rax
jmp 0x124e3
xorl %eax, %eax
cmpq %rax, %r12
je 0x12501
movq %r12, %rdi
movq %r14, %rsi
callq 0x124a0
movq 0x28(%r15), %rsi
addl %eax, %ebx
addq $0x30, %r12
jmp 0x124c9
xorl %ebx, %ebx
testq %rsi, %rsi
jne 0x1250a
jmp 0x12525
xorl %ebx, %ebx
xorl %r13d, %r13d
movq %rsi, %rax
lock
cmpxchgq %r13, 0x28(%r15)
jne 0x12525
movzwl 0x6(%rsi), %r13d
movq %r14, %rdi
callq 0x13640
addl %r13d, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.h
// Function: Morat::Hex::AgentMCTS::Node::operator=(Morat::Hex::AgentMCTS::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());

				rave = n.rave;
				exp  = n.exp;
				know = n.know;
				move = n.move;
				bestmove = n.bestmove;
				outcome = n.outcome;
				proofdepth = n.proofdepth;
				//children = n.children; ignore the children, they need to be swap_tree'd in
			}
			return *this;
		}

// Assembly:
cmpq %rsi, %rdi
je 0x129c8
movq 0x28(%rdi), %rax
cmpq $0x2, %rax
jb 0x12992
cmpw $0x0, 0x6(%rax)
jne 0x129cc
vmovups (%rsi), %xmm0
vmovups %xmm0, (%rdi)
vmovups 0x10(%rsi), %xmm0
vmovups %xmm0, 0x10(%rdi)
movzwl 0x20(%rsi), %eax
movw %ax, 0x20(%rdi)
movzwl 0x24(%rsi), %eax
movw %ax, 0x24(%rdi)
movzwl 0x26(%rsi), %eax
movw %ax, 0x26(%rdi)
movb 0x22(%rsi), %al
movb %al, 0x22(%rdi)
movb 0x23(%rsi), %al
movb %al, 0x23(%rdi)
movq %rdi, %rax
retq
pushq %rax
leaq 0x1fc5c(%rip), %rdi     # 0x32630
leaq 0x1fe28(%rip), %rsi     # 0x32803
leaq 0x20008(%rip), %rcx     # 0x329ea
movl $0x38, %edx
callq 0x51d0
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.h
// Function: Morat::Hex::AgentMCTS::Node::value(float, bool, float) const
float value(float ravefactor, bool knowledge, float fpurgency) const {
			float val = fpurgency;
			float expnum = exp.num();
			float ravenum = rave.num();

			if(ravefactor <= min_rave){
				if(expnum > 0)
					val = exp.avg();
			}else if(ravenum > 0 || expnum > 0){
				float alpha = ravefactor/(ravefactor + expnum);
//				float alpha = sqrt(ravefactor/(ravefactor + 3.0f*expnum));
//				float alpha = ravenum/(expnum + ravenum + expnum*ravenum*ravefactor);

				val = 0;
				if(ravenum > 0) val += alpha*rave.avg();
				if(expnum  > 0) val += (1.0f-alpha)*exp.avg();
			}

			if(knowledge && know > 0){
				if(expnum <= 1)
					val += 0.01f * know;
				else if(expnum < 1000) //knowledge is only useful with little experience
					val += 0.01f * know / sqrt(expnum);
			}

			return val;
		}

// Assembly:
vmovss 0x1f7ba(%rip), %xmm3    # 0x32208
movq 0x18(%rdi), %rax
vcvtusi2ss %rax, %xmm2, %xmm2
vucomiss %xmm0, %xmm3
jae 0x12a9a
movq 0x8(%rdi), %rcx
movq %rcx, %rdx
orq %rax, %rdx
je 0x12ae1
vaddss %xmm0, %xmm2, %xmm1
vdivss %xmm1, %xmm0, %xmm0
testq %rcx, %rcx
je 0x12ab4
vcvtusi2ssq (%rdi), %xmm4, %xmm1
vcvtusi2ss %rcx, %xmm4, %xmm3
vmulss 0x1f76d(%rip), %xmm1, %xmm1 # 0x321f8
vdivss %xmm3, %xmm1, %xmm3
vxorps %xmm1, %xmm1, %xmm1
vfmadd231ss %xmm3, %xmm0, %xmm1 # xmm1 = (xmm0 * xmm3) + xmm1
jmp 0x12ab8
testq %rax, %rax
je 0x12ae1
vcvtusi2ssq 0x10(%rdi), %xmm4, %xmm0
vmulss 0x1f74a(%rip), %xmm0, %xmm0 # 0x321f8
vdivss %xmm2, %xmm0, %xmm1
jmp 0x12ae1
vxorps %xmm1, %xmm1, %xmm1
testq %rax, %rax
je 0x12ae1
vmovss 0x1f73b(%rip), %xmm3    # 0x32200
vsubss %xmm0, %xmm3, %xmm0
vcvtusi2ssq 0x10(%rdi), %xmm4, %xmm3
vmulss 0x1f720(%rip), %xmm3, %xmm3 # 0x321f8
vdivss %xmm2, %xmm3, %xmm3
vfmadd231ss %xmm3, %xmm0, %xmm1 # xmm1 = (xmm0 * xmm3) + xmm1
testb %sil, %sil
je 0x12b33
movswl 0x20(%rdi), %ecx
testl %ecx, %ecx
jle 0x12b33
cmpq $0x1, %rax
ja 0x12b03
vcvtsi2ss %ecx, %xmm4, %xmm0
vfmadd231ss 0x1f70b(%rip), %xmm0, %xmm1 # xmm1 = (xmm0 * mem) + xmm1
jmp 0x12b33
cmpq $0x3e7, %rax            # imm = 0x3E7
ja 0x12b33
vcvtsi2ss %ecx, %xmm4, %xmm0
vmulss 0x1f6f5(%rip), %xmm0, %xmm0 # 0x3220c
vcvtss2sd %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm2, %xmm2, %xmm2
vsqrtsd %xmm2, %xmm2, %xmm2
vdivsd %xmm2, %xmm0, %xmm0
vcvtss2sd %xmm1, %xmm1, %xmm1
vaddsd %xmm1, %xmm0, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm1
vmovaps %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/../lib/sgf.h
// Function: Morat::SGFPrinter<Morat::Move>::child_start()
void child_start() {
		assert(!_root);
		assert(_depth >= 1);
		print("\n" + std::string(_depth, ' ') + "(");
		_depth++;
		_indent = false;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
cmpb $0x1, 0x8(%rdi)
je 0x12c7f
movslq 0xc(%rdi), %rsi
movq %rdi, %rbx
testq %rsi, %rsi
jle 0x12c9e
leaq 0x58(%rsp), %r15
leaq 0x48(%rsp), %r14
movl $0x20, %edx
movq %r14, %rdi
movq %r15, -0x10(%r15)
callq 0x53b0
leaq 0x1ed87(%rip), %rcx     # 0x31906
movl $0x1, %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 0x12bb8
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x12bc1
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20768(%rip), %rsi     # 0x3334c
callq 0x56e0
leaq 0x38(%rsp), %r12
movq %rax, %rcx
addq $0x10, %rcx
movq %r12, -0x10(%r12)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x12c11
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x12c1b
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x15a20
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x12c4e
callq 0x52e0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x12c5d
callq 0x52e0
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x12c6c
callq 0x52e0
incl 0xc(%rbx)
movb $0x0, 0x10(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2065a(%rip), %rdi     # 0x332e0
leaq 0x2065a(%rip), %rsi     # 0x332e7
leaq 0x20664(%rip), %rcx     # 0x332f8
movl $0x3f, %edx
callq 0x51d0
leaq 0x2069b(%rip), %rdi     # 0x33340
leaq 0x2063b(%rip), %rsi     # 0x332e7
leaq 0x20645(%rip), %rcx     # 0x332f8
movl $0x40, %edx
callq 0x51d0
movq 0x28(%rsp), %rdi
movq %rax, %rbx
cmpq %r12, %rdi
je 0x12cd4
callq 0x52e0
jmp 0x12cd4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x12ce8
callq 0x52e0
jmp 0x12ce8
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x12cf7
callq 0x52e0
movq %rbx, %rdi
callq 0x5670
nop