// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
movq %rax, (%rdi)
leaq 0x1a343(%rip), %rdx     # 0x2c843
movq %rdx, %rsi
callq 0xaffc
addq $0xa8, %r14
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x1261f
leaq 0x1b286(%rip), %rsi     # 0x2d7a9
movq %rbx, %rdi
callq 0x5720
movq (%r15), %rbp
movq 0x8(%r15), %r12
cmpq %r12, %rbp
je 0x1261f
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
testq %r14, %r14
je 0x125b8
movzwl (%rbp), %eax
movl %eax, %ecx
shrl $0x8, %ecx
movq 0x18(%r14), %rdx
leaq 0x10(%rdx), %r14
cmpq $0x2, %rdx
movl $0x0, %edx
cmovbq %rdx, %r14
movq %r14, %rdx
addq $0x20, %r14
cmpb %al, 0x14(%rdx)
jne 0x12568
cmpb %cl, 0x15(%rdx)
jne 0x12568
addq $-0x20, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xec60
movq %r15, %rdi
leaq 0x1a2b0(%rip), %rsi     # 0x2c842
callq 0x5720
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x125bd
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x125c7
xorl %r14d, %r14d
jmp 0x12612
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 (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x50e0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x125fe
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x12612
callq 0x5310
addq $0x2, %rbp
cmpq %r12, %rbp
jne 0x12545
testq %r14, %r14
je 0x12711
leaq 0x1b181(%rip), %rsi     # 0x2d7b0
movq %rbx, %rdi
callq 0x5720
movq 0x18(%r14), %rcx
leaq 0x10(%rcx), %rax
xorl %ebp, %ebp
movl $0x0, %r14d
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x1265e
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %rbp
cmpq %rbp, %r14
je 0x12711
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
leaq 0x1a1ca(%rip), %r12     # 0x2c842
movq %r15, %rdi
movq %r14, %rsi
callq 0xec60
movq %r15, %rdi
movq %r12, %rsi
callq 0x5720
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x126af
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x126b9
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 (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x50e0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x126f0
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x12704
callq 0x5310
addq $0x20, %r14
cmpq %rbp, %r14
jne 0x12678
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1272b
jmp 0x12735
jmp 0x1272b
jmp 0x12730
movq %rax, %r14
jmp 0x1275a
movq %rax, %r14
jmp 0x12746
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x12746
callq 0x5310
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1275a
callq 0x5310
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x12769
callq 0x5310
movq %r14, %rdi
callq 0x56c0
nop