// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/EditDist.cpp
// Function: GenTables(newick_node*, int, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&)
void GenTables(newick_node* root, int n, vvi& L, vvi& T, vvi& D)
{
    map<newick_node*, int> S, R;
    CalcSubtreeSizes(root, S);
    for (int i = n; i >= 0; --i)
        for (int j = 0; j <= n; ++j)
            if (newick_node* node = (i + j && i + j <= n ? GetLastRemoved(root, R, i, j) : nullptr))
                L[i][j] = stoi(node->taxon), T[i][j] = S[node], D[i][j] = R[node];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, 0x20(%rsp)
movq %rcx, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movl %esi, %ebx
leaq 0x80(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x50(%rsp), %rax
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x78(%rsp), %rsi
movq %rdi, 0x38(%rsp)
callq 0x551c9
testl %ebx, %ebx
js 0x5582b
leal 0x1(%rbx), %ebp
movl %ebx, %r12d
leaq 0x48(%rsp), %r13
leaq (%r12,%r12,2), %rax
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
movq %r12, %rax
addq %r15, %rax
sete %cl
cmpl %ebx, %eax
setg %al
orb %cl, %al
jne 0x5580e
movq 0x38(%rsp), %rdi
movq %r13, %rsi
movl %r12d, %edx
movl %r15d, %ecx
callq 0x554f1
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x5580e
movq %r12, %r13
movq %rbx, %r12
movq 0x8(%rax), %rbx
callq 0x9060
movq %rax, %r14
movl (%rax), %eax
movl %eax, 0xc(%rsp)
movl $0x0, (%r14)
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
movl $0xa, %edx
callq 0x94a0
cmpq %rbx, 0x40(%rsp)
je 0x5585d
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x55851
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0x55851
testl %ecx, %ecx
jne 0x557a4
movl 0xc(%rsp), %ecx
movl %ecx, (%r14)
movq 0x30(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %eax, (%rcx,%r15,4)
leaq 0x78(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x577d0
movq %r12, %rbx
movq %r13, %r12
leaq 0x48(%rsp), %r13
movl (%rax), %eax
movq 0x28(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %eax, (%rcx,%r15,4)
movq %r13, %rdi
leaq 0x18(%rsp), %rsi
callq 0x577d0
movl (%rax), %eax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movl %eax, (%rcx,%r15,4)
incq %r15
cmpq %r15, %rbp
jne 0x5570e
leaq -0x1(%r12), %rax
testq %r12, %r12
movq %rax, %r12
jg 0x55702
leaq 0x48(%rsp), %rdi
callq 0x57b0a
leaq 0x78(%rsp), %rdi
callq 0x57b0a
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6a3a(%rip), %rdi      # 0x5c292
callq 0x94d0
leaq 0x6a2e(%rip), %rdi      # 0x5c292
callq 0x91d0
jmp 0x5587d
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x55880
movl 0xc(%rsp), %eax
movl %eax, (%r14)
jmp 0x55880
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x57b0a
leaq 0x78(%rsp), %rdi
callq 0x57b0a
movq %rbx, %rdi
callq 0x9680