// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x222ae(%rip), %rsi     # 0x32610
callq 0x56e0
addq $0x40e0, %r14           # imm = 0x40E0
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0xbef0
leaq 0x21584(%rip), %rsi     # 0x31906
leaq 0x20(%rsp), %rdi
callq 0x56e0
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x103b2
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x103bb
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 (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x103f2
callq 0x52e0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10405
callq 0x52e0
movq 0x8(%r12), %rax
cmpq (%r12), %rax
je 0x104ee
leaq 0x221fc(%rip), %rsi     # 0x32617
movq %rbx, %rdi
callq 0x56e0
movq (%r12), %r15
movq 0x8(%r12), %r13
cmpq %r13, %r15
je 0x104ee
leaq 0x20(%rsp), %r12
testq %r14, %r14
je 0x10488
movq %r14, %rsi
movq %r15, %rdx
callq 0x102d4
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
callq 0xbef0
movq %r12, %rdi
leaq 0x214a4(%rip), %rsi     # 0x31906
callq 0x56e0
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1048d
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x10496
xorl %r14d, %r14d
jmp 0x104e1
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 (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x104cd
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x104e1
callq 0x52e0
addq $0x2, %r15
cmpq %r13, %r15
jne 0x1043a
testq %r14, %r14
je 0x105df
leaq 0x22120(%rip), %rsi     # 0x3261e
movq %rbx, %rdi
callq 0x56e0
movq 0x28(%r14), %rcx
leaq 0x10(%rcx), %rax
xorl %r13d, %r13d
movl $0x0, %r14d
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x10532
movzwl 0x6(%rcx), %ecx
leaq (%rcx,%rcx,2), %rcx
shll $0x4, %ecx
addq %rcx, %rax
movq %rax, %r13
cmpq %r13, %r14
je 0x105df
leaq 0x20(%rsp), %r15
leaq 0x213bf(%rip), %r12     # 0x31906
movq %r15, %rdi
movq %r14, %rsi
callq 0xbef0
movq %r15, %rdi
movq %r12, %rsi
callq 0x56e0
movq %rbp, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1057e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x10587
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 (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x50c0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x105be
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x105d2
callq 0x52e0
addq $0x30, %r14
cmpq %r13, %r14
jne 0x10547
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x10607
callq 0x52e0
jmp 0x10607
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x10641
jmp 0x1061c
jmp 0x1061c
jmp 0x10626
jmp 0x1061c
jmp 0x10621
movq %rax, %r14
jmp 0x1064b
movq %rax, %r14
jmp 0x10637
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x10637
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1064b
callq 0x52e0
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1065a
callq 0x52e0
movq %r14, %rdi
callq 0x5670