// File: /workspace/github_cpp_makefile_star2_O3/tewalds[P]morat/pentago/agentmcts.cpp
// Function: Morat::Pentago::AgentMCTS::move_stats[abi:cxx11](std::vector<Morat::Pentago::Move, std::allocator<Morat::Pentago::Move>>) const
std::string AgentMCTS::move_stats(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
leaq 0x10(%rdi), %rax
movq %rdx, %r15
leaq 0x1a49b(%rip), %rdx     # 0x2c843
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
movq %rax, 0x40(%rsp)
movq %rax, (%rdi)
callq 0xb026
addq $0xa8, %r14
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x124de
leaq 0x1b3d0(%rip), %rsi     # 0x2d7a9
movq %rbx, %rdi
callq 0x5720
movq (%r15), %rbp
movq 0x8(%r15), %r12
cmpq %r12, %rbp
je 0x124de
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
testq %r14, %r14
je 0x1246e
movq 0x18(%r14), %rdx
movzwl (%rbp), %eax
movl %eax, %ecx
shrl $0x8, %ecx
leaq 0x10(%rdx), %r14
cmpq $0x2, %rdx
movl $0x0, %edx
cmovbq %rdx, %r14
movq %r14, %rdx
addq $0x20, %r14
cmpb %al, 0x14(%rdx)
jne 0x1241e
cmpb %cl, 0x15(%rdx)
jne 0x1241e
addq $-0x20, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xeb9c
leaq 0x1a3fd(%rip), %rsi     # 0x2c842
movq %r15, %rdi
callq 0x5720
movq %r13, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x12473
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1247d
xorl %r14d, %r14d
jmp 0x124c8
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r13)
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 0x50e0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x124b4
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x124c8
callq 0x5310
addq $0x2, %rbp
cmpq %r12, %rbp
jne 0x123fb
testq %r14, %r14
je 0x125c7
leaq 0x1b2cb(%rip), %rsi     # 0x2d7b0
movq %rbx, %rdi
callq 0x5720
movq 0x18(%r14), %rcx
xorl %ebp, %ebp
movl $0x0, %r14d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x12514
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %rbp
cmpq %rbp, %r14
je 0x125c7
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
leaq 0x1a314(%rip), %r12     # 0x2c842
movq %r15, %rdi
movq %r14, %rsi
callq 0xeb9c
movq %r15, %rdi
movq %r12, %rsi
callq 0x5720
movq %r13, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x12565
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1256f
vmovups (%rcx), %xmm0
vmovups %xmm0, (%r13)
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 0x50e0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x125a6
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x125ba
callq 0x5310
addq $0x20, %r14
cmpq %rbp, %r14
jne 0x1252e
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x125e1
jmp 0x125eb
jmp 0x125e1
jmp 0x125e6
movq %rax, %r14
jmp 0x12610
movq %rax, %r14
jmp 0x125fc
movq (%rsp), %rdi
movq %rax, %r14
cmpq %r13, %rdi
je 0x125fc
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x12610
callq 0x5310
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1261f
callq 0x5310
movq %r14, %rdi
callq 0x56c0
nop