// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/src/EditDist.cpp
// Function: GenPerms(std::vector<newick_node*, std::allocator<newick_node*>>&, int, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>, std::allocator<std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>>>&)
void GenPerms(vn& v, int k, vvi& S, vvvi& P)
{
    if (k == v.size())
    {
        P.push_back(S);
        return;
    }
    int c = 0;
    for (newick_child* child = v[k]->child; child; child = child->next)
        c++;

    vector<int> I(c);
    iota(I.begin(), I.end(), 0);
    do
    {
        S.push_back(I);
        GenPerms(v, k + 1, S, P);
        S.pop_back();
    } while (next_permutation(I.begin(), I.end()));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movslq %esi, %rax
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rax, %rdx
jne 0x54d4c
movq %r14, %rdi
movq %rbx, %rsi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x57778
movl %esi, %ebp
movq %rdi, %r15
movq (%rcx,%rax,8), %rax
movq (%rax), %rax
xorl %esi, %esi
testq %rax, %rax
je 0x54d68
movq 0x8(%rax), %rax
incq %rsi
jmp 0x54d5a
leaq 0x8(%rsp), %r12
leaq 0x7(%rsp), %rdx
movq %r12, %rdi
callq 0xf480
movq (%r12), %rax
movq 0x8(%r12), %rcx
cmpq %rcx, %rax
je 0x54e87
subq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, %xmm0
shrq $0x2, %rcx
addq $0x4, %rcx
andq $-0x4, %rcx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psrlq $0x2, %xmm0
xorl %edx, %edx
movdqa 0x19068(%rip), %xmm1    # 0x6de20
movdqa 0x8a90(%rip), %xmm2     # 0x5d850
movdqa 0x8a98(%rip), %xmm3     # 0x5d860
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rdx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x54e16
movl %edx, (%rax,%rdx,4)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x54e2c
leal 0x1(%rdx), %esi
movl %esi, 0x4(%rax,%rdx,4)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %esi
testb $0x1, %sil
je 0x54e68
leal 0x2(%rdx), %esi
movl %esi, 0x8(%rax,%rdx,4)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x54e7a
leal 0x3(%rdx), %esi
movl %esi, 0xc(%rax,%rdx,4)
addq $0x4, %rdx
cmpq %rdx, %rcx
jne 0x54dd0
incl %ebp
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x577a4
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x54d0d
movq 0x8(%rbx), %rax
leaq -0x18(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x54eca
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x9350
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x58346
testb %al, %al
jne 0x54e8e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x54ef4
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x54f1b
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x9350
movq %rbx, %rdi
callq 0x9680