// File: /workspace/github_cpp_makefile_star2_O3/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
leaq 0x10(%rdi), %rax
movq %rdx, %r15
leaq 0x162df(%rip), %rdx     # 0x31907
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
movq %rax, 0x40(%rsp)
movq %rax, (%rdi)
callq 0xb1dc
addq $0x1540, %r14           # imm = 0x1540
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x1b76f
leaq 0x16fbe(%rip), %rsi     # 0x32617
movq %rbx, %rdi
callq 0x56e0
movq (%r15), %rbp
movq 0x8(%r15), %r12
cmpq %r12, %rbp
je 0x1b76f
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
testq %r14, %r14
je 0x1b6ff
movq 0x18(%r14), %rdx
movzwl (%rbp), %eax
movl $0x0, %esi
movl %eax, %ecx
shrl $0x8, %ecx
leaq 0x10(%rdx), %r14
cmpq $0x2, %rdx
cmovaeq %r14, %rsi
cmpb %al, 0x12(%rsi)
jne 0x1b6a8
cmpb %cl, 0x13(%rsi)
je 0x1b6c4
addq $0x30, %rdx
movq %rdx, %rsi
addq $0x20, %rdx
cmpb %al, 0x12(%rsi)
jne 0x1b6ac
cmpb %cl, 0x13(%rsi)
jne 0x1b6ac
addq $-0x20, %rdx
movq %rdx, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x1904c
leaq 0x16230(%rip), %rsi     # 0x31906
movq %r15, %rdi
callq 0x56e0
movq %r13, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x1b704
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b70e
xorl %r14d, %r14d
jmp 0x1b759
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 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1b745
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b759
callq 0x52e0
addq $0x2, %rbp
cmpq %r12, %rbp
jne 0x1b67b
testq %r14, %r14
je 0x1b858
leaq 0x16ea8(%rip), %rsi     # 0x3261e
movq %rbx, %rdi
callq 0x56e0
movq 0x18(%r14), %rcx
xorl %ebp, %ebp
movl $0x0, %r14d
leaq 0x10(%rcx), %rax
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x1b7a5
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %rbp
cmpq %rbp, %r14
je 0x1b858
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
leaq 0x16147(%rip), %r12     # 0x31906
movq %r15, %rdi
movq %r14, %rsi
callq 0x1904c
movq %r15, %rdi
movq %r12, %rsi
callq 0x56e0
movq %r13, (%rsp)
movq %rax, %rcx
addq $0x10, %rcx
movq (%rax), %rdx
cmpq %rcx, %rdx
je 0x1b7f6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b800
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 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1b837
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b84b
callq 0x52e0
addq $0x20, %r14
cmpq %rbp, %r14
jne 0x1b7bf
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b872
jmp 0x1b87c
jmp 0x1b872
jmp 0x1b877
movq %rax, %r14
jmp 0x1b8a1
movq %rax, %r14
jmp 0x1b88d
movq (%rsp), %rdi
movq %rax, %r14
cmpq %r13, %rdi
je 0x1b88d
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b8a1
callq 0x52e0
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1b8b0
callq 0x52e0
movq %r14, %rdi
callq 0x5670