// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, 0x40(%rsp)
movq %rax, (%rdi)
leaq 0x162cb(%rip), %rdx     # 0x31907
movq %rdx, %rsi
callq 0xb0e0
addq $0x1540, %r14           # imm = 0x1540
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x1b77e
leaq 0x16fb8(%rip), %rsi     # 0x32617
movq %rbx, %rdi
callq 0x56e0
movq (%r15), %rbp
movq 0x8(%r15), %r12
cmpq %r12, %rbp
je 0x1b77e
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
testq %r14, %r14
je 0x1b717
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
movb 0x12(%r14), %dl
xorb %al, %dl
movb 0x13(%r14), %sil
xorb %cl, %sil
orb %dl, %sil
je 0x1b6dc
movq %r14, %rdx
addq $0x20, %rdx
movb 0x12(%rdx), %sil
xorb %al, %sil
movb 0x13(%rdx), %dil
xorb %cl, %dil
orb %sil, %dil
cmoveq %rdx, %r14
leaq 0x20(%rdx), %rdx
jne 0x1b6c1
movq %r15, %rdi
movq %r14, %rsi
callq 0x18fd0
movq %r15, %rdi
leaq 0x16215(%rip), %rsi     # 0x31906
callq 0x56e0
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b71c
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b726
xorl %r14d, %r14d
jmp 0x1b771
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 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1b75d
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b771
callq 0x52e0
addq $0x2, %rbp
cmpq %r12, %rbp
jne 0x1b681
testq %r14, %r14
je 0x1b870
leaq 0x16e90(%rip), %rsi     # 0x3261e
movq %rbx, %rdi
callq 0x56e0
movq 0x18(%r14), %rcx
leaq 0x10(%rcx), %rax
xorl %ebp, %ebp
movl $0x0, %r14d
cmpq $0x2, %rcx
cmovaeq %rax, %r14
jb 0x1b7bd
movzwl 0x6(%rcx), %ecx
shll $0x5, %ecx
addq %rcx, %rax
movq %rax, %rbp
cmpq %rbp, %r14
je 0x1b870
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %r15
leaq 0x1612f(%rip), %r12     # 0x31906
movq %r15, %rdi
movq %r14, %rsi
callq 0x18fd0
movq %r15, %rdi
movq %r12, %rsi
callq 0x56e0
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b80e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b818
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 0x50c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1b84f
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b863
callq 0x52e0
addq $0x20, %r14
cmpq %rbp, %r14
jne 0x1b7d7
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1b88a
jmp 0x1b894
jmp 0x1b88a
jmp 0x1b88f
movq %rax, %r14
jmp 0x1b8b9
movq %rax, %r14
jmp 0x1b8a5
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1b8a5
callq 0x52e0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1b8b9
callq 0x52e0
movq (%rbx), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1b8c8
callq 0x52e0
movq %r14, %rdi
callq 0x5670