// File: canzarlab[P]Trajan/src/newick.cpp
// Function: load_dag_internal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, newick_node*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, newick_node*>>>&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>>&)
static newick_node* load_dag_internal(const string& r, msn& M, msvs& C)
{
    if (newick_node* node = M[r])
        return node;

    newick_child* child = nullptr;
    newick_child** childptr = &child;
    for (const string& i : C[r])
    {
        *childptr = new newick_child(load_dag_internal(i, M, C));
        childptr = &(*childptr)->next;
    }
    return M[r] = new newick_node(r, 0, child);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8460
movq (%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x797f
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x7ab1
movq $0x0, -0x30(%rbp)
leaq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8130
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x8b90
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x8bc0
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x8bf0
testb $0x1, %al
jne 0x79d0
jmp 0x7a52
leaq -0x48(%rbp), %rdi
callq 0x8c30
movq %rax, -0x58(%rbp)
movl $0x10, %edi
callq 0x32a0
movq %rax, -0x78(%rbp)
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x7940
movq %rax, -0x70(%rbp)
jmp 0x7a02
movq -0x70(%rbp), %rsi
movq -0x78(%rbp), %rdi
callq 0x6b20
jmp 0x7a11
movq -0x78(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
addq $0x8, %rax
movq %rax, -0x38(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x8c50
jmp 0x79ba
movq -0x78(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
movl $0x10, %esi
callq 0x32b0
jmp 0x7abe
movl $0x38, %edi
callq 0x32a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
xorps %xmm0, %xmm0
callq 0x6b90
jmp 0x7a78
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x8460
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rax, (%rcx)
movq %rax, -0x8(%rbp)
jmp 0x7ab1
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
movl $0x38, %esi
callq 0x32b0
jmp 0x7abe
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x3450
nopw (%rax,%rax)