// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/hex/agentmcts.cpp
// Function: Morat::Hex::AgentMCTS::move_stats[abi:cxx11](std::vector<Morat::Move, std::allocator<Morat::Move>> const&) const
std::string AgentMCTS::move_stats(const vecmove& moves) const {
	std::string s;
	const Node * node = & root;

	s += "root:\n";
	s += node->to_s() + "\n";

	if(moves.size()){
		s += "path:\n";
		for(const 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
leaq 0x10(%rdi), %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movq %rax, 0x40(%rsp)
movb $0x0, 0x10(%rdi)
leaq 0x2212c(%rip), %rsi     # 0x32610
callq 0x56e0
addq $0x40e0, %r14           # imm = 0x40E0
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0xbfe8
leaq 0x21402(%rip), %rsi     # 0x31906
leaq 0x20(%rsp), %rdi
callq 0x56e0
leaq 0x10(%rsp), %rbp
movq %rax, %rcx
addq $0x10, %rcx
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x10534
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1053d
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x10574
callq 0x52e0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10587
callq 0x52e0
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x106ab
leaq 0x2207c(%rip), %rsi     # 0x32617
movq %rbx, %rdi
callq 0x56e0
movq (%r15), %r12
movq 0x8(%r15), %r13
cmpq %r13, %r12
je 0x106ab
leaq 0x20(%rsp), %r15
testq %r14, %r14
je 0x1063c
movq 0x28(%r14), %rax
movb (%r12), %cl
movb 0x1(%r12), %dl
movl $0x0, %esi
leaq 0x10(%rax), %r14
cmpq $0x2, %rax
cmovaeq %r14, %rsi
cmpb %cl, 0x24(%rsi)
jne 0x105e5
cmpb %dl, 0x25(%rsi)
je 0x10601
addq $0x40, %rax
movq %rax, %rsi
addq $0x30, %rax
cmpb %cl, 0x24(%rsi)
jne 0x105e9
cmpb %dl, 0x25(%rsi)
jne 0x105e9
addq $-0x30, %rax
movq %rax, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xbfe8
leaq 0x212f3(%rip), %rsi     # 0x31906
movq %r15, %rdi
callq 0x56e0
movq %rbp, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x10641
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1064a
xorl %r14d, %r14d
jmp 0x10695
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x10681
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10695
callq 0x52e0
addq $0x2, %r12
cmpq %r13, %r12
jne 0x105b8
testq %r14, %r14
je 0x10793
leaq 0x21f6c(%rip), %rsi     # 0x3261e
movq %rbx, %rdi
callq 0x56e0
movq 0x28(%r14), %rcx
xorl %r13d, %r13d
movl $0x0, %r14d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x106e6
movzwl 0x6(%rcx), %ecx
leaq (%rcx,%rcx,2), %rcx
shll $0x4, %ecx
addq %rcx, %rax
movq %rax, %r13
cmpq %r13, %r14
je 0x10793
leaq 0x20(%rsp), %r15
leaq 0x2120b(%rip), %r12     # 0x31906
movq %r15, %rdi
movq %r14, %rsi
callq 0xbfe8
movq %r15, %rdi
movq %r12, %rsi
callq 0x56e0
movq %rbp, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x10732
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1073b
vmovups (%rcx), %xmm0
vmovups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x10772
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10786
callq 0x52e0
addq $0x30, %r14
cmpq %r13, %r14
jne 0x106fb
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0x107bb
callq 0x52e0
jmp 0x107bb
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x107f5
jmp 0x107d0
jmp 0x107d0
jmp 0x107da
jmp 0x107d0
jmp 0x107d5
movq %rax, %r14
jmp 0x107ff
movq %rax, %r14
jmp 0x107eb
movq (%rsp), %rdi
movq %rax, %r14
cmpq %rbp, %rdi
je 0x107eb
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x107ff
callq 0x52e0
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1080e
callq 0x52e0
movq %r14, %rdi
callq 0x5670