// File: /workspace/github_cpp_makefile_star2_O1/eschwabe[P]interview-practice/src/stringpermutations.cpp
// Function: main
int main()
{
    perm("hat", 0);
    perm("tire", 0);
    perm("sweat", 0);

    vector<string> results = GenerateStrings("abcd", "");
    for(auto s : results) {
        cout << s << endl;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
leaq 0xc8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x18be(%rip), %rsi      # 0x4004
leaq 0x18ba(%rip), %rdx      # 0x4007
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x321e
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2784
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1871(%rip), %rsi      # 0x4008
leaq 0x186e(%rip), %rdx      # 0x400c
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x321e
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x27d5
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1825(%rip), %rsi      # 0x400d
leaq 0x1823(%rip), %rdx      # 0x4012
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x321e
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x2820
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x17e3(%rip), %rsi      # 0x4013
leaq 0x17e0(%rip), %rdx      # 0x4017
leaq 0x40(%rsp), %rdi
callq 0x321e
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x184e(%rip), %rdx      # 0x409f
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x321e
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x249e
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2889
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x28a0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x60(%rsp), %r12
movq 0x68(%rsp), %rbp
cmpq %rbp, %r12
je 0x2934
leaq 0x10(%rsp), %r13
movq %rsp, %rbx
movq 0x3716(%rip), %r14      # 0x5fd8
movq %r13, (%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2ab2
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x2130
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20a0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x292b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
addq $0x20, %r12
cmpq %rbp, %r12
jne 0x28c2
leaq 0x60(%rsp), %rdi
callq 0x2a4c
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x2971
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2971
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a06
movq 0x50(%rsp), %rsi
jmp 0x29d4
movq %rax, %rbx
jmp 0x2a06
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a06
movq 0x88(%rsp), %rsi
jmp 0x29d4
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a06
movq 0xa8(%rsp), %rsi
jmp 0x29d4
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a06
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2a06
movq %rax, %rbx
jmp 0x29fc
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29fc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x60(%rsp), %rdi
callq 0x2a4c
movq %rbx, %rdi
callq 0x2190