LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/lbdist.h
// Function: Morat::Hex::LBDists::init_player(bool, Morat::Side)
void init_player(bool crossvcs, Side player){
		int m = board->lines();
		int m1 = m-1;

		if (player == Side::P1) {
			for(int y = 0; y < m; y++) { init(0,  y, 0,  player, 2); } flood(0,  player, crossvcs);  // p1 edge 0
			for(int y = 0; y < m; y++) { init(m1, y, 1,  player, 5); } flood(1,  player, crossvcs);  // p1 edge 1
		} else {
			for(int x = 0; x < m; x++) { init(x,  0, 0,  player, 3); } flood(0,  player, crossvcs);  // p2 edge 0
			for(int x = 0; x < m; x++) { init(x, m1, 1,  player, 0); } flood(1,  player, crossvcs);  // p2 edge 1
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x9c58(%rdi), %rax
leaq 0x13e83(%rip), %rcx     # 0x26eaa
movq %rdi, %rbx
movzbl %dl, %r14d
movsbl (%rax), %eax
movl %eax, %edi
sarl $0x1f, %edi
leal -0x1(%rax), %ebp
andnl %eax, %edi, %r13d
movzbl %sil, %eax
movl %eax, 0x4(%rsp)
cmpb %dl, (%rcx)
jne 0x13070
xorl %r15d, %r15d
pushq $0x2
popq %r12
cmpl %r15d, %r13d
je 0x13096
movq %rbx, %rdi
xorl %esi, %esi
movl %r15d, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
movl %r12d, %r9d
callq 0x13126
incl %r15d
jmp 0x13051
xorl %r12d, %r12d
pushq $0x3
popq %r15
cmpl %r12d, %r13d
je 0x130ce
movq %rbx, %rdi
movl %r12d, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl %r14d, %r8d
movl %r15d, %r9d
callq 0x13126
incl %r12d
jmp 0x13077
movl 0x4(%rsp), %ecx
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x131da
pushq $0x5
popq %r15
cmpl %r12d, %r13d
je 0x13106
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
pushq $0x1
popq %rcx
movl %r14d, %r8d
movl %r15d, %r9d
callq 0x13126
incl %r12d
jmp 0x130ae
movl 0x4(%rsp), %ecx
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
movl %r14d, %edx
callq 0x131da
pushq $0x1
popq %r15
cmpl %r12d, %r13d
je 0x13106
movq %rbx, %rdi
movl %r12d, %esi
movl %ebp, %edx
movl %r15d, %ecx
movl %r14d, %r8d
xorl %r9d, %r9d
callq 0x13126
incl %r12d
jmp 0x130e6
pushq $0x1
popq %rsi
movl 0x4(%rsp), %ecx
movq %rbx, %rdi
movl %r14d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x131da
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/../lib/lbdist.h
// Function: Morat::LBDistsBase<Morat::Hex::LBDists, Morat::Hex::Board>::init(int, int, int, Morat::Side, int)
void init(int x, int y, int edge, Side player, int dir){
		Side val = board->get(x, y);
		if(val != ~player){
			bool empty = (val == Side::NONE);
			MoveValid move(x, y, board->xy(x, y));
			Q.push(MoveDist(move, empty, dir));
			dist(edge, player, move) = empty;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x9c58(%rdi), %rax
movl %ecx, %r14d
movl %r8d, %ebp
movsbl (%rax), %r15d
movq 0x10(%rax), %rax
imull %edx, %r15d
addl %esi, %r15d
movslq %r15d, %rcx
shlq $0x4, %rcx
movb (%rax,%rcx), %al
movb $0x3, %cl
subb %bpl, %cl
cmpb %cl, %al
je 0x131cc
leaq 0x13d41(%rip), %rcx     # 0x26ea9
xorl %r12d, %r12d
movzbl %dl, %r8d
movq %rdi, %rbx
addq $0x2710, %rdi           # imm = 0x2710
cmpb (%rcx), %al
movl %r15d, %eax
sete %r12b
shll $0x8, %esi
shll $0x10, %eax
movzwl %si, %ecx
leaq 0x4(%rsp), %rsi
orl %eax, %ecx
orl %ecx, %r8d
movl %r8d, (%rsi)
movl %r12d, 0x4(%rsi)
movl %r9d, 0x8(%rsi)
callq 0x1333a
movslq %r14d, %rax
movsbq %bpl, %rcx
movswq %r15w, %rdx
imulq $0x1388, %rax, %rax     # imm = 0x1388
imulq $0x9c4, %rcx, %rcx      # imm = 0x9C4
addq %rbx, %rax
addq %rcx, %rax
movl %r12d, -0x9c4(%rax,%rdx,4)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/../lib/lbdist.h
// Function: Morat::LBDistsBase<Morat::Hex::LBDists, Morat::Hex::Board>::flood(int, Morat::Side, bool)
void flood(int edge, Side player, bool crossvcs){
		Side otherplayer = ~player;

		MoveDist cur;
		while(Q.pop(cur)){
			const MoveValid* neighbors = board->neighbors(cur.pos);
			for(int i = 5; i <= 7; i++){
				int nd = (cur.dir + i) % 6;
				MoveDist next(neighbors[nd], cur.dist, nd);

				if(board->on_board(next.pos)){
					Side colour = board->get(next.pos);

					if(colour == otherplayer)
						continue;

					if(colour == Side::NONE){
						if(!crossvcs && //forms a vc
						   board->get(neighbors[(nd + 5) % 6]) == otherplayer &&
						   board->get(neighbors[(nd + 7) % 6]) == otherplayer)
							continue;

						next.dist++;
					}

					if( dist(edge, player, next.pos) > next.dist){
						dist(edge, player, next.pos) = next.dist;
						Q.push(next);
					}
				}
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, 0x4(%rsp)
leaq 0x2710(%rdi), %rcx
movb $0x3, %bpl
leaq 0x14(%rsp), %rax
movq %rdi, %r14
subb %dl, %bpl
movq %rcx, 0x20(%rsp)
movsbq %dl, %rcx
movl $0xffff78fc, (%rax)     # imm = 0xFFFF78FC
movslq %esi, %rax
decq %rcx
pushq $0x6
popq %r15
imulq $0x1388, %rax, %rax     # imm = 0x1388
imulq $0x9c4, %rcx, %rbx      # imm = 0x9C4
addq %rdi, %rax
addq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x1337c
testb %al, %al
je 0x1332b
movswq 0x16(%rsp), %rcx
movq 0x9c58(%r14), %rax
imulq $0x48, %rcx, %r13
addq 0x38(%rax), %r13
pushq $0x5
popq %r12
cmpl $0x8, %r12d
je 0x1322e
movl 0x1c(%rsp), %eax
movl 0x18(%rsp), %ecx
addl %r12d, %eax
cltd
idivl %r15d
movslq %edx, %rax
movl (%r13,%rax,4), %eax
movl %eax, 0x8(%rsp)
shrl $0x10, %eax
movl %ecx, 0xc(%rsp)
movl %edx, 0x10(%rsp)
cmpl $0xffff, %eax           # imm = 0xFFFF
je 0x13323
movq 0x9c58(%r14), %rdi
movswq %ax, %rsi
movq %rsi, %rax
shlq $0x4, %rax
movq 0x10(%rdi), %rdi
movb (%rdi,%rax), %al
cmpb %bpl, %al
je 0x13323
leaq 0x13bef(%rip), %r8      # 0x26ea9
cmpb (%r8), %al
jne 0x13309
cmpb $0x0, 0x4(%rsp)
jne 0x13303
leal 0x5(%rdx), %eax
leal -0x1(%rdx), %r8d
cmpl $0x6, %eax
cmovbl %eax, %r8d
movswq 0x2(%r13,%r8,4), %rax
shlq $0x4, %rax
cmpb %bpl, (%rdi,%rax)
jne 0x13303
addb $0x7, %dl
movb $0x6, %r8b
movzbl %dl, %eax
divb %r8b
movzbl %ah, %eax
movswq 0x2(%r13,%rax,4), %rax
shlq $0x4, %rax
cmpb %bpl, (%rdi,%rax)
je 0x13323
incl %ecx
movl %ecx, 0xc(%rsp)
cmpl %ecx, (%rbx,%rsi,4)
jle 0x13323
movq 0x20(%rsp), %rdi
leaq (%rbx,%rsi,4), %rax
leaq 0x8(%rsp), %rsi
movl %ecx, (%rax)
callq 0x1333a
incl %r12d
jmp 0x1325e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/../lib/lbdist.h
// Function: Morat::LBDistsBase<Morat::Hex::LBDists, Morat::Hex::Board>::IntPQueue::pop(Morat::LBDistsBase<Morat::Hex::LBDists, Morat::Hex::Board>::MoveDist&)
bool pop(MoveDist & ret){
			if(num == 0){
				current = 0;
				return false;
			}

			while(counts[current] == 0)
				current = (current+1) % maxvals;

			ret = vals[current][--counts[current]];
			num--;

			return true;
		}

// Assembly:
movl 0x7544(%rdi), %ecx
testl %ecx, %ecx
je 0x133e1
movl 0x7540(%rdi), %eax
pushq $0x4
popq %r8
movslq %eax, %r9
movslq 0x7530(%rdi,%r9,4), %rdx
testq %rdx, %rdx
jne 0x133b0
incl %eax
cltd
idivl %r8d
movl %edx, %eax
movl %edx, 0x7540(%rdi)
jmp 0x13390
imulq $0x1d4c, %r9, %rax      # imm = 0x1D4C
decq %rdx
movl %edx, 0x7530(%rdi,%r9,4)
imulq $0xc, %rdx, %rdx
addq %rdi, %rax
movl 0x8(%rdx,%rax), %r8d
movl %r8d, 0x8(%rsi)
movq (%rdx,%rax), %rax
movq %rax, (%rsi)
decl 0x7544(%rdi)
jmp 0x133e8
andl $0x0, 0x7540(%rdi)
testl %ecx, %ecx
setne %al
retq
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::Node::to_s[abi:cxx11]() const
std::string AgentPNS::Node::to_s() const {
	return "AgentPNS::Node"
	       ", move " + move.to_s() +
	       ", phi " + to_str(phi) +
	       ", delta " + to_str(delta) +
	       ", work " + to_str(work) +
	       ", children " + to_str(children.num());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rsi, %r14
addq $0x12, %rsi
leaq 0x180(%rsp), %r15
movq %rdi, %rbx
movq %r15, %rdi
callq 0xcfb0
leaq 0x10b43(%rip), %rsi     # 0x2474c
leaq 0x80(%rsp), %rdi
movq %r15, %rdx
callq 0xcf8b
leaq 0x10b42(%rip), %rdx     # 0x24762
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x8051
movl (%r14), %esi
leaq 0x60(%rsp), %rdi
callq 0xd215
leaq 0xc0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0xcf24
leaq 0x10b06(%rip), %rdx     # 0x24769
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x8051
movl 0x4(%r14), %esi
leaq 0x40(%rsp), %rdi
callq 0xd215
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0xcf24
leaq 0x10acb(%rip), %rdx     # 0x24772
leaq 0x120(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x8051
movq 0x8(%r14), %rsi
leaq 0x20(%rsp), %rdi
callq 0xd463
leaq 0x140(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0xcf24
leaq 0xf637(%rip), %rdx      # 0x23322
leaq 0x160(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x8051
movq 0x18(%r14), %rax
xorl %esi, %esi
cmpq $0x2, %rax
jb 0x13d10
movzwl 0x6(%rax), %esi
movq %rsp, %rdi
callq 0xd215
leaq 0x160(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0xcf24
movq %rsp, %rdi
callq 0x5150
leaq 0x160(%rsp), %rdi
callq 0x5150
leaq 0x140(%rsp), %rdi
callq 0x5150
leaq 0x20(%rsp), %rdi
callq 0x5150
leaq 0x120(%rsp), %rdi
callq 0x5150
leaq 0x100(%rsp), %rdi
callq 0x5150
leaq 0x40(%rsp), %rdi
callq 0x5150
leaq 0xe0(%rsp), %rdi
callq 0x5150
leaq 0xc0(%rsp), %rdi
callq 0x5150
leaq 0x60(%rsp), %rdi
callq 0x5150
leaq 0xa0(%rsp), %rdi
callq 0x5150
leaq 0x80(%rsp), %rdi
callq 0x5150
leaq 0x180(%rsp), %rdi
callq 0x5150
movq %rbx, %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
movq %rsp, %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x13de6
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x5150
jmp 0x13df8
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x5150
jmp 0x13e0a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5150
jmp 0x13e19
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x5150
leaq 0x100(%rsp), %rdi
callq 0x5150
leaq 0x40(%rsp), %rdi
callq 0x5150
leaq 0xe0(%rsp), %rdi
callq 0x5150
leaq 0xc0(%rsp), %rdi
callq 0x5150
leaq 0x60(%rsp), %rdi
callq 0x5150
leaq 0xa0(%rsp), %rdi
callq 0x5150
leaq 0x80(%rsp), %rdi
callq 0x5150
leaq 0x180(%rsp), %rdi
callq 0x5150
movq %rbx, %rdi
callq 0x5650
movq %rax, %rbx
jmp 0x13e26
movq %rax, %rbx
jmp 0x13e33
movq %rax, %rbx
jmp 0x13e3d
movq %rax, %rbx
jmp 0x13e4a
movq %rax, %rbx
jmp 0x13e57
movq %rax, %rbx
jmp 0x13e61
movq %rax, %rbx
jmp 0x13e6e
movq %rax, %rbx
jmp 0x13e7b
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::Node::from_s(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool AgentPNS::Node::from_s(std::string s) {
	auto dict = parse_dict(s, ", ", " ");

	if(dict.size() == 6){
		move = Move(dict["move"]);
		phi = from_str<uint32_t>(dict["phi"]);
		delta = from_str<uint32_t>(dict["delta"]);
		work = from_str<uint64_t>(dict["work"]);
		// ignore children
		return true;
	}
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1023d(%rip), %rsi     # 0x2410e
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5110
leaq 0x12a5c(%rip), %rsi     # 0x26943
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5110
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
leaq 0x28(%rsp), %rcx
movq %r14, %rsi
callq 0x21179
leaq 0x28(%rsp), %rdi
callq 0x5150
leaq 0x8(%rsp), %rdi
callq 0x5150
movq 0x60(%rsp), %r15
cmpq $0x6, %r15
jne 0x14025
leaq 0x126c7(%rip), %rsi     # 0x265fe
leaq 0x8(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x5110
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf636
leaq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0xd26c
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %rdi
movzwl (%r14), %eax
movw %ax, 0x12(%rbx)
callq 0x5150
leaq 0x107fa(%rip), %rsi     # 0x2477a
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x5110
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf636
movq %rax, %rdi
callq 0x15762
leaq 0x8(%rsp), %rdi
movl %eax, (%rbx)
callq 0x5150
leaq 0x107c7(%rip), %rsi     # 0x2477e
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x5110
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf636
movq %rax, %rdi
callq 0x15762
leaq 0x8(%rsp), %rdi
movl %eax, 0x4(%rbx)
callq 0x5150
leaq 0x10793(%rip), %rsi     # 0x24784
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x5110
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf636
movq %rax, %rdi
callq 0xea68
leaq 0x8(%rsp), %rdi
movq %rax, 0x8(%rbx)
callq 0x5150
cmpq $0x6, %r15
leaq 0x48(%rsp), %rdi
sete %bl
callq 0xeb22
movl %ebx, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x1404b
jmp 0x1404b
jmp 0x1404b
movq %rax, %rbx
jmp 0x14063
jmp 0x14056
jmp 0x14056
jmp 0x14056
leaq 0x8(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
leaq 0x48(%rsp), %rdi
callq 0xeb22
jmp 0x14090
leaq 0x28(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x14081
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5150
jmp 0x14090
movq %rax, %rbx
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::test()
void AgentPNS::test() {
	Node n(Move("a1"));
	auto s = n.to_s();
	Node k;
	assert(k.from_s(s));
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
leaq 0x106e2(%rip), %rsi     # 0x24789
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5110
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xd26c
movzwl 0x30(%rsp), %ecx
movabsq $0x100000001, %rax      # imm = 0x100000001
leaq 0x70(%rsp), %rbx
leaq 0x10(%rsp), %rdi
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
andw $0x0, 0x10(%rbx)
movw %cx, 0x12(%rbx)
andq $0x0, 0x18(%rbx)
callq 0x5150
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x13bdc
movw $0x78fc, 0x42(%rsp)     # imm = 0x78FC
andq $0x0, 0x48(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5490
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x13eb8
testb %al, %al
je 0x14166
leaq 0x50(%rsp), %rdi
callq 0x5150
leaq 0x30(%rsp), %rdi
callq 0x157b8
leaq 0x10(%rsp), %rdi
callq 0x5150
leaq 0x70(%rsp), %rdi
callq 0x157b8
addq $0x90, %rsp
popq %rbx
retq
leaq 0x1061f(%rip), %rdi     # 0x2478c
leaq 0x10624(%rip), %rsi     # 0x24798
leaq 0x1062e(%rip), %rcx     # 0x247a9
pushq $0x27
popq %rdx
callq 0x51f0
leaq 0x50(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x14195
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x157b8
leaq 0x10(%rsp), %rdi
callq 0x5150
jmp 0x141ae
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x157b8
jmp 0x141cc
leaq 0x10(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x141cc
movq %rax, %rbx
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::return_move(Morat::Hex::AgentPNS::Node const*, Morat::Side, int) const
Move AgentPNS::return_move(const Node * node, Side to_play, int verbose) const {
	double val, maxval = -1000000000000.0; //1 trillion

	Node * ret = NULL,
		 * child = node->children.begin(),
		 * end = node->children.end();

	for( ; child != end; child++){
		Outcome outcome = child->to_outcome(to_play);
		if(outcome >= Outcome::DRAW){
			if(     outcome == +to_play)       val =  800000000000.0 - (double)child->work; //shortest win
			else if(outcome == Outcome::DRAW) val = -400000000000.0 + (double)child->work; //longest tie
			else                              val = -800000000000.0 + (double)child->work; //longest loss
		}else{ //not proven
			val = child->work;
		}

		if(maxval < val){
			maxval = val;
			ret = child;
		}
	}

	assert(ret);

	if(verbose)
		logerr(ret->to_s() + "\n");

	return ret->move;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, 0xc(%rsp)
movq 0x18(%rsi), %rcx
movl %edx, %r14d
xorl %r13d, %r13d
movl $0x0, %r15d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r15
jb 0x14fa7
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %r13
vmovsd 0xe231(%rip), %xmm1     # 0x231e0
leaq 0x11efb(%rip), %rbp     # 0x26eb1
movzbl %r14b, %r12d
xorl %ebx, %ebx
cmpq %r13, %r15
je 0x15037
vmovsd %xmm1, 0x10(%rsp)
movq %r15, %rdi
movl %r12d, %esi
callq 0x15970
movb (%rbp), %cl
cmpb %cl, %al
jge 0x14fe8
vcvtusi2sdq 0x8(%r15), %xmm3, %xmm0
vmovsd 0x10(%rsp), %xmm1
jmp 0x15025
vmovsd 0x10(%rsp), %xmm1
cmpb %r14b, %al
jne 0x15008
vcvtusi2sdq 0x8(%r15), %xmm3, %xmm0
vmovsd 0xe1f6(%rip), %xmm2     # 0x231f8
vsubsd %xmm0, %xmm2, %xmm0
jmp 0x15025
vcvtusi2sdq 0x8(%r15), %xmm3, %xmm0
cmpb %cl, %al
jne 0x1501d
vaddsd 0xe1d5(%rip), %xmm0, %xmm0 # 0x231f0
jmp 0x15025
vaddsd 0xe1c3(%rip), %xmm0, %xmm0 # 0x231e8
vucomisd %xmm1, %xmm0
vmaxsd %xmm1, %xmm0, %xmm1
cmovaq %r15, %rbx
addq $0x20, %r15
jmp 0x14fbc
testq %rbx, %rbx
je 0x15099
cmpl $0x0, 0xc(%rsp)
je 0x15086
leaq 0x18(%rsp), %r14
movq %rbx, %rsi
movq %r14, %rdi
callq 0x13bdc
leaq 0xd882(%rip), %rdx      # 0x228dc
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x8051
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0xd451
movq %r14, %rdi
callq 0x5150
leaq 0x18(%rsp), %rdi
callq 0x5150
movzwl 0x12(%rbx), %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe444(%rip), %rdi      # 0x234e4
leaq 0xf6f1(%rip), %rsi      # 0x24798
leaq 0xf7ab(%rip), %rcx      # 0x24859
movl $0x123, %edx            # imm = 0x123
callq 0x51f0
leaq 0x18(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
movq %rbx, %rdi
callq 0x5650
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::move_stats[abi:cxx11](std::vector<Morat::Move, std::allocator<Morat::Move>> const&) const
std::string AgentPNS::move_stats(const vecmove& moves) const {
	std::string s = "";
	const Node * node = & root;

	if(moves.size()){
		s += "path:\n";
		for(auto m : moves){
			if(node){
				node = find_child(node, m);
				s += node->to_s() + "\n";
			}
		}
	}

	if(node){
		s += "children:\n";
		for(auto & n : node->children)
			s += n.to_s() + "\n";
	}
	return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r14
leaq 0xd7ae(%rip), %rsi      # 0x228dd
leaq 0x8(%rsp), %rdx
movq %rdi, %rbx
callq 0x5110
addq $0x1540, %r14           # imm = 0x1540
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x151e0
leaq 0xe31c(%rip), %rsi      # 0x23473
movq %rbx, %rdi
callq 0x56b0
movq (%r15), %r13
movq 0x8(%r15), %r15
leaq 0x28(%rsp), %r12
leaq 0x8(%rsp), %rbp
cmpq %r15, %r13
je 0x151d7
movzwl (%r13), %eax
movw %ax, 0x6(%rsp)
testq %r14, %r14
je 0x151ce
leaq 0x6(%rsp), %rdx
movq %r14, %rsi
callq 0x150ce
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
callq 0x13bdc
leaq 0xd736(%rip), %rdx      # 0x228dc
movq %rbp, %rdi
movq %r12, %rsi
callq 0x8051
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x5700
movq %rbp, %rdi
callq 0x5150
movq %r12, %rdi
callq 0x5150
jmp 0x151d1
xorl %r14d, %r14d
addq $0x2, %r13
jmp 0x15170
testq %r14, %r14
je 0x15266
leaq 0xe293(%rip), %rsi      # 0x2347a
movq %rbx, %rdi
callq 0x56b0
movq 0x18(%r14), %rcx
xorl %ebp, %ebp
movl $0x0, %r14d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x15216
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %rbp
leaq 0x28(%rsp), %r15
leaq 0xd6ba(%rip), %r12      # 0x228dc
leaq 0x8(%rsp), %r13
cmpq %rbp, %r14
je 0x15266
movq %r15, %rdi
movq %r14, %rsi
callq 0x13bdc
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8051
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5700
movq %r13, %rdi
callq 0x5150
movq %r15, %rdi
callq 0x5150
addq $0x20, %r14
jmp 0x15227
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15280
jmp 0x1528a
jmp 0x15280
jmp 0x15285
movq %rax, %r14
jmp 0x152a1
movq %rax, %r14
jmp 0x15297
leaq 0x8(%rsp), %rdi
movq %rax, %r14
callq 0x5150
leaq 0x28(%rsp), %rdi
callq 0x5150
movq %rbx, %rdi
callq 0x5150
movq %r14, %rdi
callq 0x5650
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::garbage_collect(Morat::Hex::AgentPNS::Node*)
void AgentPNS::garbage_collect(Node * node){
	Node * child = node->children.begin();
	Node * end = node->children.end();

	for( ; child != end; child++){
		if(child->terminal() || child->work < gclimit){ //solved or low work, ignore solvedness since it's trivial to re-solve
			nodes -= child->dealloc(ctmem);
		}else if(child->children.num() > 0){
			garbage_collect(child);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rsi), %rcx
movq %rdi, %rbx
xorl %r12d, %r12d
movl $0x0, %r14d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x152e5
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %r12
leaq 0x70(%rbx), %r15
cmpq %r12, %r14
je 0x15339
cmpl $0x0, (%r14)
je 0x15304
cmpl $0x0, 0x4(%r14)
je 0x15304
movl 0x68(%rbx), %eax
cmpq %rax, 0x8(%r14)
jae 0x1531b
movq %r14, %rdi
movq %r15, %rsi
callq 0x15d4c
movl %eax, %eax
subq %rax, 0x58(%rbx)
addq $0x20, %r14
jmp 0x152e9
movq 0x18(%r14), %rax
cmpq $0x2, %rax
jb 0x15315
cmpw $0x0, 0x6(%rax)
je 0x15315
movq %rbx, %rdi
movq %r14, %rsi
callq 0x152b2
jmp 0x15315
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::create_children_simple(Morat::Hex::Board const&, Morat::Hex::AgentPNS::Node*)
void AgentPNS::create_children_simple(const Board & board, Node * node){
	assert(node->children.empty());
	node->children.alloc(board.moves_avail(), ctmem);
	unsigned int i = 0;
	for (auto move : board) {
		Outcome outcome = board.test_outcome(move);
		node->children[i] = Node(move).outcome(outcome, board.to_play(), ties, 1);
		i++;
	}
	PLUS(nodes, i);
	node->children.shrink(i); //if symmetry, there may be extra moves to ignore
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdx), %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
cmpq $0x2, %rax
jb 0x15372
cmpw $0x0, 0x6(%rax)
jne 0x1547f
leaq 0x11b38(%rip), %rcx     # 0x26eb1
movswl 0x2(%r15), %esi
movswl 0x4(%r15), %edx
movb 0x9(%r15), %al
addq $0x18, %rbx
xorl %ebp, %ebp
movq %rbx, %rdi
subl %edx, %esi
cmpb (%rcx), %al
leaq 0x70(%r14), %rdx
cmovgel %ebp, %esi
callq 0x159c8
movq %r15, %rdi
callq 0xe78e
leaq 0x8(%rsp), %rcx
leaq 0x18(%rsp), %r12
movq %rax, (%rcx)
movq %rdx, %rax
shrq $0x20, %rax
movl %edx, 0x8(%rcx)
shrl $0x10, %edx
movb %al, 0xc(%rcx)
cmpw $-0x1, %dx
je 0x1545f
movl 0x10(%rsp), %eax
leaq 0x4(%rsp), %rsi
movq %r15, %rdi
movl %eax, 0x4(%rsp)
callq 0x12774
movabsq $0x100000001, %rcx      # imm = 0x100000001
movzbl %al, %esi
movq %rcx, 0x18(%rsp)
movzwl 0x4(%rsp), %ecx
andq $0x0, 0x20(%rsp)
andw $0x0, 0x28(%rsp)
movw %cx, 0x2a(%rsp)
andq $0x0, 0x30(%rsp)
movl 0x8(%r15), %edx
movl 0x1534(%r14), %ecx
movq %r12, %rdi
pushq $0x1
popq %r8
callq 0x15bee
movq %rax, %r13
movq %rbx, %rdi
movl %ebp, %esi
callq 0x15c4a
movq %rax, %rdi
movq %r13, %rsi
callq 0x15ca8
movq %r12, %rdi
callq 0x157b8
leaq 0x8(%rsp), %rdi
incl %ebp
callq 0xe7ae
movzwl 0x12(%rsp), %edx
jmp 0x153c5
movl %ebp, %eax
lock
addq %rax, 0x58(%r14)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x15cf6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe000(%rip), %rdi      # 0x23486
leaq 0xf30b(%rip), %rsi      # 0x24798
leaq 0xf40b(%rip), %rcx      # 0x2489f
movl $0x142, %edx            # imm = 0x142
callq 0x51f0
leaq 0x18(%rsp), %rdi
movq %rax, %rbx
callq 0x157b8
movq %rbx, %rdi
callq 0x5650
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.cpp
// Function: Morat::Hex::AgentPNS::gen_sgf(Morat::SGFPrinter<Morat::Move>&, unsigned int, Morat::Hex::AgentPNS::Node const&, Morat::Side) const
void AgentPNS::gen_sgf(SGFPrinter<Move> & sgf, unsigned int limit, const Node & node, Side side) const {
	for(auto & child : node.children){
		if(child.work >= limit && (side != node.to_outcome(~side) || child.to_outcome(side) == node.to_outcome(~side))){
			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 $0x58, %rsp
movq %rcx, 0x18(%rsp)
movq 0x18(%rcx), %rcx
movl %r8d, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movq %rsi, %r15
movq %rdi, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x0, %r13d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r13
jb 0x15508
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movl 0x10(%rsp), %ecx
movl 0xc(%rsp), %ebp
movb $0x3, %al
leaq 0x38(%rsp), %r14
movq %r15, 0x28(%rsp)
subb %cl, %al
movzbl %cl, %edx
movzbl %al, %r12d
movl %edx, 0x14(%rsp)
cmpq 0x20(%rsp), %r13
je 0x155d7
cmpq %rbp, 0x8(%r13)
jb 0x155ce
movq 0x18(%rsp), %rdi
movl %r12d, %esi
callq 0x15970
cmpb 0x10(%rsp), %al
jne 0x15575
movl 0x14(%rsp), %esi
movq %r13, %rdi
callq 0x15970
movq 0x18(%rsp), %rdi
movl %r12d, %esi
movl %eax, %ebx
callq 0x15970
movq 0x28(%rsp), %r15
cmpb %al, %bl
jne 0x155ce
movq %r15, %rdi
callq 0xe38a
movzwl 0x12(%r13), %edx
movl 0x14(%rsp), %esi
movq %r15, %rdi
callq 0xe492
movq %r14, %rbx
movq %r14, %rdi
movq %r13, %rsi
callq 0x13bdc
movq %r15, %rdi
movq %r14, %rsi
callq 0xe592
movq %rbx, %rdi
callq 0x5150
movq 0x30(%rsp), %rdi
movl 0xc(%rsp), %edx
movq %r15, %rsi
movq %r13, %rcx
movl %r12d, %r8d
callq 0x154b4
movq %r15, %rdi
callq 0xe638
addq $0x20, %r13
jmp 0x15529
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x38(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
movq %rbx, %rdi
callq 0x5650
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::Node::to_outcome(Morat::Side) const
Outcome to_outcome(Side to_play) const {
			if(phi   == LOSS) return +to_play;
			if(delta == LOSS) return +~to_play;
			if(delta == DRAW) return Outcome::DRAW;
			return Outcome::UNKNOWN;
		}

// Assembly:
cmpl $0x3fffffff, (%rdi)     # imm = 0x3FFFFFFF
movl %esi, %eax
je 0x15993
movl 0x4(%rdi), %ecx
cmpl $0x3ffffffe, %ecx       # imm = 0x3FFFFFFE
je 0x15994
cmpl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
jne 0x1599d
movb $0x3, %cl
subb %al, %cl
movl %ecx, %eax
retq
leaq 0x11516(%rip), %rax     # 0x26eb1
jmp 0x159a4
leaq 0x1150a(%rip), %rax     # 0x26eae
movb (%rax), %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agent.h
// Function: Morat::Hex::Agent::solve1ply(Morat::Hex::Board const&, unsigned int&)
static Outcome solve1ply(const Board & board, unsigned int & nodes) {
		Outcome outcome = Outcome::UNKNOWN;
		Side turn = board.to_play();
		for (auto move : board) {
			++nodes;
			Outcome won = board.test_outcome(move, turn);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x1148b(%rip), %rax     # 0x26eae
movb 0x8(%rdi), %bpl
movq %rsi, %r14
movq %rdi, %r15
movb (%rax), %bl
callq 0xe78e
leaq 0x11476(%rip), %r12     # 0x26eb1
leaq 0x8(%rsp), %rcx
movb %bpl, 0x3(%rsp)
movzbl %bpl, %ebp
leaq 0x4(%rsp), %r13
movq %rax, (%rcx)
movq %rdx, %rax
shrq $0x20, %rax
movl %edx, 0x8(%rcx)
shrl $0x10, %edx
movb %al, 0xc(%rcx)
cmpw $-0x1, %dx
je 0x15aa2
movl 0x10(%rsp), %eax
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movl %eax, 0x4(%rsp)
incl (%r14)
callq 0x1277c
cmpb %bpl, %al
je 0x15aa6
movzbl (%r12), %ecx
leaq 0x8(%rsp), %rdi
movzbl %bl, %ebx
cmpb %cl, %al
cmovel %ecx, %ebx
callq 0xe7ae
movzwl 0x12(%rsp), %edx
jmp 0x15a61
movl %ebx, %eax
jmp 0x15aaa
movb 0x3(%rsp), %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x113df(%rip), %rax     # 0x26eae
movb 0x8(%rdi), %bl
movb $0x3, %bpl
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
movb (%rax), %r12b
subb %bl, %bpl
callq 0xe78e
leaq 0x18(%rsp), %rcx
movb %bl, 0xb(%rsp)
movzbl %bl, %r13d
leaq 0xc(%rsp), %rbx
movzbl %bpl, %ebp
xorl %r14d, %r14d
movq %rax, (%rcx)
movq %rdx, %rax
shrq $0x20, %rax
movl %edx, 0x8(%rcx)
shrl $0x10, %edx
movb %al, 0xc(%rcx)
movzbl %r12b, %r12d
cmpw $-0x1, %dx
je 0x15b79
movl 0x20(%rsp), %eax
movq %r15, %rdi
movq %rbx, %rsi
movl %r13d, %edx
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rax
incl (%rax)
callq 0x1277c
cmpb %r13b, %al
je 0x15b86
leaq 0x1136a(%rip), %rcx     # 0x26eb1
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movzbl (%rcx), %ecx
cmpb %cl, %al
cmovel %ecx, %r12d
callq 0x1277c
xorl %ecx, %ecx
cmpb %bpl, %al
leaq 0x18(%rsp), %rdi
sete %cl
addl %ecx, %r14d
callq 0xe7ae
movzwl 0x22(%rsp), %edx
jmp 0x15b14
cmpl $0x2, %r14d
cmovael %ebp, %r12d
movl %r12d, %eax
jmp 0x15b8a
movb 0xb(%rsp), %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/agentpns.h
// Function: Morat::Hex::AgentPNS::Node::outcome(Morat::Outcome, Morat::Side, Morat::Side, int)
Node & outcome(Outcome outcome, Side to_play, Side assign, int value = 1){
			if(assign != Side::NONE && outcome == Outcome::DRAW)
				outcome = +assign;

			if(     outcome == Outcome::UNKNOWN) { phi = value; delta = value; }
			else if(outcome == +to_play)          { phi = LOSS;  delta = 0;     }
			else if(outcome == +~to_play)         { phi = 0;     delta = LOSS; }
			else /*(outcome == Outcome::DRAW)*/  { phi = 0;     delta = DRAW; }
			return *this;
		}

// Assembly:
movq %rdi, %rax
leaq 0x112b9(%rip), %rdi     # 0x26eb1
leaq 0x112aa(%rip), %r9      # 0x26ea9
cmpb %sil, (%rdi)
movl %ecx, %edi
cmovnel %esi, %edi
cmpb %cl, (%r9)
leaq 0x1129d(%rip), %rcx     # 0x26eae
cmovel %esi, %edi
cmpb (%rcx), %dil
jne 0x15c21
movl %r8d, (%rax)
movl %r8d, 0x4(%rax)
retq
cmpb %dl, %dil
jne 0x15c2e
movq $0x3fffffff, (%rax)     # imm = 0x3FFFFFFF
retq
andl $0x0, (%rax)
movb $0x3, %cl
subb %dl, %cl
cmpb %cl, %dil
jne 0x15c42
movl $0x3fffffff, 0x4(%rax)  # imm = 0x3FFFFFFF
retq
movl $0x3ffffffe, 0x4(%rax)  # imm = 0x3FFFFFFE
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x15cd4
movq 0x18(%rdi), %rax
cmpq $0x2, %rax
jb 0x15cbe
cmpw $0x0, 0x6(%rax)
jne 0x15cd8
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 0xd7ac(%rip), %rdi      # 0x2348c
leaq 0xec4f(%rip), %rsi      # 0x24936
leaq 0xec7b(%rip), %rcx      # 0x24969
pushq $0x2d
popq %rdx
callq 0x51f0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x25d75(%rip), %rax     # 0x3bb60
leaq 0x1430(%rdi), %r14
movq %rdi, %rbx
movq %rax, (%rdi)
movq %r14, %rdi
callq 0x164b8
movq %r14, %rdi
xorl %esi, %esi
callq 0x16524
leaq 0x1540(%rbx), %r12
leaq 0x70(%rbx), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x15d4c
vxorps %xmm0, %xmm0, %xmm0
vxorps %xmm1, %xmm1, %xmm1
movq %r15, %rdi
callq 0x16690
movq %r12, %rdi
callq 0x157b8
movq %r14, %rdi
callq 0x16a42
movq %r15, %rdi
callq 0x16a80
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xec22
movq %rax, %rdi
callq 0x8cf5
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
movl %edx, %ebp
callq 0xe148
andq $0x0, 0x1518(%rbx)
movb $0x0, 0x8(%rbx)
testl %ebp, %ebp
je 0x15eb8
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x38(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x20, %rsp
andq $0x0, 0x1518(%rdi)
leaq 0x70(%rdi), %r15
leaq 0x1540(%rdi), %r14
movq %rdi, %rbx
movb $0x0, 0x8(%rdi)
movq %r14, %rdi
movq %r15, %rsi
callq 0x15d4c
vxorps %xmm0, %xmm0, %xmm0
vxorps %xmm1, %xmm1, %xmm1
movq %r15, %rdi
callq 0x16690
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rsp, %rsi
movq %rax, (%rsi)
andq $0x0, 0x18(%rsi)
andq $0x0, 0x8(%rsi)
andl $0x0, 0x10(%rsi)
movq %r14, %rdi
callq 0x15ca8
movq %rsp, %rdi
callq 0x157b8
andq $0x0, 0x58(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rsp, %rdi
movq %rax, %rbx
callq 0x157b8
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/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 0x16339
movq 0x1558(%rdi), %r9
xorl %eax, %eax
movl $0x0, %ecx
movl $0x0, %edx
leaq 0x10(%r9), %r8
cmpq $0x2, %r9
cmovaeq %r8, %rcx
jb 0x1632a
movzwl 0x6(%r9), %edx
shll $0x5, %edx
addq %rdx, %r8
movq %r8, %rdx
jmp 0x1632a
addl 0x8(%rcx), %eax
addq $0x20, %rcx
cmpq %rdx, %rcx
jne 0x16323
movl $0x3e8, %ecx            # imm = 0x3E8
cltd
idivl %ecx
movl %eax, %edx
movl 0x18(%rdi), %r8d
leaq 0x1540(%rdi), %rcx
jmp 0x154b4
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x17479
movzwl 0x6(%rax), %ebp
xorl %ecx, %ecx
leaq 0x10(%rax), %r14
cmpq $0x2, %rax
cmovbq %rcx, %r14
cmpq $0x2, %rax
jb 0x1749b
movzwl 0x6(%rax), %ecx
shll $0x5, %ecx
leaq 0x10(%rax,%rcx), %rax
jmp 0x1749d
xorl %eax, %eax
cmpq %rax, %r14
je 0x174b6
movq %r14, %rdi
callq 0x17462
addl %eax, %ebp
movq 0x18(%rbx), %rax
addq $0x20, %r14
jmp 0x17487
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1787e
movzwl 0x4(%rdi), %eax
movl %esi, %ebx
movq %rdi, %r14
cmpl %esi, %eax
jb 0x1787e
movzwl 0x6(%r14), %r12d
cmpl %ebx, %r12d
jb 0x1787e
movl %ebx, %eax
shlq $0x5, %rax
shll $0x5, %r12d
leaq 0x10(%r14,%rax), %r15
subq %rax, %r12
testq %r12, %r12
je 0x17866
movq %r15, %rdi
callq 0x157b8
addq $0x20, %r15
addq $-0x20, %r12
jmp 0x1784f
movzwl 0x6(%r14), %eax
movw %bx, 0x6(%r14)
subl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xd832(%rip), %rdi      # 0x250b7
leaq 0xbe15(%rip), %rsi      # 0x236a1
leaq 0xd848(%rip), %rcx      # 0x250db
pushq $0x4e
popq %rdx
callq 0x51f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/board.cpp
// Function: Morat::Hex::Board::edges(int, int) const
int Board::edges(int x, int y) const {
	return (y == 0       ? 1 : 0) |
	       (y == sizem1_ ? 2 : 0) |
	       (x == 0       ? 4 : 0) |
	       (x == sizem1_ ? 8 : 0);
}

// Assembly:
movsbl 0x1(%rdi), %ecx
xorl %eax, %eax
testl %edx, %edx
sete %al
xorl %edi, %edi
cmpl %edx, %ecx
sete %dil
xorl %edx, %edx
testl %esi, %esi
sete %dl
xorl %r8d, %r8d
cmpl %esi, %ecx
leal (%rax,%rdx,4), %eax
sete %r8b
leal (%rax,%rdi,2), %eax
leal (%rax,%r8,8), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %ebp, %eax
imull $0x12, %eax, %r15d
leaq (,%r15,4), %rdi
callq 0x5030
testl %ebp, %ebp
je 0x1856a
leaq (%rax,%r15,4), %rcx
movq %rax, %rdx
movl $0xffff78fc, (%rdx)     # imm = 0xFFFF78FC
addq $0x4, %rdx
cmpq %rcx, %rdx
jne 0x1855b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x18720
movq (%rbx), %rax
movb (%r14), %r8b
leaq 0xcdee(%rip), %rdx      # 0x25370
xorl %ecx, %ecx
movsbl %r8b, %esi
cmpl %esi, %ecx
jge 0x18601
xorl %esi, %esi
movsbl %r8b, %edi
cmpl %edi, %esi
jge 0x185fd
xorl %edi, %edi
cmpq $0x48, %rdi
je 0x185f3
movb 0x1(%rdi,%rdx), %bpl
movb (%rdi,%rdx), %r11b
movl $0xffff0000, %r9d       # imm = 0xFFFF0000
addb %sil, %bpl
addb %cl, %r11b
movzbl %bpl, %r8d
movl %r8d, %r10d
orb %r11b, %r10b
movzbl %r11b, %r10d
js 0x185df
movb (%r14), %r15b
cmpb %r15b, %bpl
jge 0x185df
cmpb %r15b, %r11b
jae 0x185df
movzbl %r15b, %r9d
imull %r10d, %r9d
addl %r8d, %r9d
shll $0x10, %r9d
shll $0x8, %r8d
orl %r10d, %r8d
orl %r9d, %r8d
movl %r8d, (%rax,%rdi)
addq $0x4, %rdi
jmp 0x18598
movb (%r14), %r8b
incl %esi
addq %rdi, %rax
jmp 0x1858e
incl %ecx
jmp 0x18584
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x68, %rsp
leaq 0x10(%rsp), %r15
vxorps %xmm0, %xmm0, %xmm0
leaq 0x48(%rsp), %r13
leaq 0x6(%rsp), %rbp
movq %rsi, 0x8(%rsp)
movq %rdi, %rbx
vmovaps %xmm0, (%r15)
andq $0x0, 0x10(%r15)
movq (%rdx), %r12
movq 0x8(%rdx), %r14
cmpq %r14, %r12
je 0x18822
movq %r13, %rdi
movq %r12, %rsi
callq 0x5490
movq %rbp, %rdi
movq %r13, %rsi
callq 0xd26c
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10c98
movq %r13, %rdi
callq 0x5150
addq $0x20, %r12
jmp 0x187ee
movq 0x8(%rsp), %rax
movq 0xd8(%rax), %rsi
movq (%rsi), %rax
leaq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq *0x48(%rax)
pushq $0x1
popq %rsi
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
callq 0x8d00
leaq 0x28(%rsp), %rdi
callq 0x5150
leaq 0x10(%rsp), %rdi
callq 0x9a04
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %rdi
movq %rax, %rbx
jmp 0x1888d
jmp 0x18880
movq %rax, %rbx
jmp 0x18892
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5150
leaq 0x10(%rsp), %rdi
callq 0x9a04
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/gtpagent.cpp
// Function: Morat::Hex::GTP::gtp_pv(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_pv(vecstr args){
	vector<Move> moves;
	for(auto s : args)
		moves.push_back(Move(s));
	string pvstr = "";
	vector<Move> pv = agent->get_pv(moves);
	for(unsigned int i = 0; i < pv.size(); i++)
		pvstr += pv[i].to_s() + " ";
	return GTPResponse(true, pvstr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
leaq 0x40(%rsp), %r15
vxorps %xmm0, %xmm0, %xmm0
leaq 0x8(%rsp), %r13
leaq 0x78(%rsp), %rbp
movq %rsi, %r14
movq %rdi, (%rsp)
vmovaps %xmm0, (%r15)
andq $0x0, 0x10(%r15)
movq (%rdx), %r12
movq 0x8(%rdx), %rbx
cmpq %rbx, %r12
je 0x190d6
movq %r13, %rdi
movq %r12, %rsi
callq 0x5490
movq %rbp, %rdi
movq %r13, %rsi
callq 0xd26c
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10c98
movq %r13, %rdi
callq 0x5150
addq $0x20, %r12
jmp 0x190a2
leaq 0x9800(%rip), %rsi      # 0x228dd
leaq 0x8(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x5110
movq 0xd8(%r14), %rsi
movq (%rsi), %rax
leaq 0x28(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq *0x40(%rax)
leaq 0x98(%rsp), %r14
leaq 0xd831(%rip), %r15      # 0x26943
leaq 0x78(%rsp), %r12
leaq 0x8(%rsp), %r13
xorl %ebp, %ebp
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movl %ebp, %ebp
subq %rax, %rcx
sarq %rcx
cmpq %rbp, %rcx
jbe 0x1916e
leaq (%rax,%rbp,2), %rsi
movq %r14, %rdi
callq 0xcfb0
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x8051
movq %r13, %rdi
movq %r12, %rsi
callq 0x5700
movq %r12, %rdi
callq 0x5150
movq %r14, %rdi
callq 0x5150
incl %ebp
jmp 0x1911e
leaq 0x58(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x5490
pushq $0x1
popq %rsi
movq (%rsp), %rbx
leaq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x8d00
leaq 0x58(%rsp), %rdi
callq 0x5150
leaq 0x28(%rsp), %rdi
callq 0x9a04
leaq 0x8(%rsp), %rdi
callq 0x5150
leaq 0x40(%rsp), %rdi
callq 0x9a04
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58(%rsp), %rdi
movq %rax, %rbx
jmp 0x191f8
jmp 0x191ff
jmp 0x19213
jmp 0x1920e
leaq 0x78(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x191f0
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x5150
jmp 0x19202
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x9a04
jmp 0x19216
movq %rax, %rbx
jmp 0x19220
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5150
leaq 0x40(%rsp), %rdi
callq 0x9a04
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/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 0x192df
movq %rdx, %r15
leaq 0x226b6(%rip), %rdx     # 0x3b910
movq %rsi, %r14
leaq 0x226c4(%rip), %rsi     # 0x3b928
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x53a0
testq %rax, %rax
je 0x19298
leaq 0x40(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdi
callq 0xa134
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x19350
leaq 0x40(%rsp), %rdi
jmp 0x192d8
leaq 0x22931(%rip), %rdx     # 0x3bbd0
leaq 0x22682(%rip), %rsi     # 0x3b928
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x53a0
testq %rax, %rax
je 0x192df
leaq 0x28(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdi
callq 0xa134
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1bfee
leaq 0x28(%rsp), %rdi
callq 0x8e84
jmp 0x1930e
leaq 0xc3ab(%rip), %rsi      # 0x25691
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x5110
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8d00
leaq 0x8(%rsp), %rdi
callq 0x5150
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x1932f
leaq 0x40(%rsp), %rdi
movq %rax, %rbx
callq 0x8e84
jmp 0x19348
leaq 0x8(%rsp), %rdi
movq %rax, %rbx
callq 0x5150
jmp 0x19348
movq %rax, %rbx
movq %rbx, %rdi
callq 0x5650
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1c93e
cmpl $0x1, %eax
je 0x1c922
cmpl $0x2, %eax
jne 0x1c95a
testl %ecx, %ecx
jle 0x1c922
vmovsd 0x8(%rdi), %xmm1
vmovsd 0x30(%rdi), %xmm0
vaddsd %xmm1, %xmm1, %xmm1
vcvtsi2sd %ecx, %xmm2, %xmm2
jmp 0x1c934
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 0x1c950
vmovsd 0x30(%rdi), %xmm0
vmulsd 0x8(%rdi), %xmm0, %xmm1
vdivsd 0x6888(%rip), %xmm1, %xmm1 # 0x231d8
vxorpd %xmm2, %xmm2, %xmm2
vaddsd %xmm2, %xmm1, %xmm1
jmp 0x1c963
vmovsd 0x30(%rdi), %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vminsd %xmm1, %xmm0, %xmm0
vaddsd 0x18(%rdi), %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O2/tewalds[P]morat/hex/../lib/timecontrol.h
// Function: Morat::TimeControl::use(double)
void use(double used){
		if(flexible)
			remain += move - used;
		else
			remain += std::min(0.0, move - used);

		if(remain < 0)
			remain = 0;
	}

// Assembly:
kmovb 0x20(%rdi), %k1
vmovsd 0x18(%rdi), %xmm1
vsubsd %xmm0, %xmm1, %xmm0
vxorpd %xmm1, %xmm1, %xmm1
vminsd %xmm1, %xmm0, %xmm2
vmovsd %xmm0, %xmm2, %xmm2 {%k1}
vaddsd 0x30(%rdi), %xmm2, %xmm0
vucomisd %xmm0, %xmm1
vmovsd %xmm0, 0x30(%rdi)
jbe 0x1c9f9
andq $0x0, 0x30(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1cbd6
movl %eax, %ebp
testb %al, %al
je 0x1cbc8
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %rbx, %rsi
movl %ecx, %edx
callq 0xe1ea
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe216
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop