// File: /workspace/github_cpp_makefile_star2_O3/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 0x18c9(%rip), %rsi      # 0x4004
leaq 0x18c5(%rip), %rdx      # 0x4007
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x31da
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2779
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x187c(%rip), %rsi      # 0x4008
leaq 0x1879(%rip), %rdx      # 0x400c
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0x31da
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x27ca
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1830(%rip), %rsi      # 0x400d
leaq 0x182e(%rip), %rdx      # 0x4012
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x31da
movq %rbx, %rdi
xorl %esi, %esi
callq 0x232c
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x2815
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x17ee(%rip), %rsi      # 0x4013
leaq 0x17eb(%rip), %rdx      # 0x4017
leaq 0x40(%rsp), %rdi
callq 0x31da
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1859(%rip), %rdx      # 0x409f
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x31da
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x20(%rsp), %rdx
callq 0x2491
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x287e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x2895
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2120
movq 0x60(%rsp), %r12
movq 0x68(%rsp), %rbp
cmpq %rbp, %r12
je 0x2929
leaq 0x10(%rsp), %r13
movq %rsp, %rbx
movq 0x3721(%rip), %r14      # 0x5fd8
movq %r13, (%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2aac
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 0x2920
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
addq $0x20, %r12
cmpq %rbp, %r12
jne 0x28b7
leaq 0x60(%rsp), %rdi
callq 0x2a42
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 0x2966
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x2966
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x29fb
movq 0x50(%rsp), %rsi
jmp 0x29c9
movq %rax, %rbx
jmp 0x29fb
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x29fb
movq 0x88(%rsp), %rsi
jmp 0x29c9
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x29fb
movq 0xa8(%rsp), %rsi
jmp 0x29c9
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r14, %rdi
je 0x29fb
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x2120
jmp 0x29fb
movq %rax, %rbx
jmp 0x29f1
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x29f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2120
leaq 0x60(%rsp), %rdi
callq 0x2a42
movq %rbx, %rdi
callq 0x2190
nop