// File: /workspace/github_cpp_makefile_star2_O1/XDragonSl[P]git-switcher/src/main.cpp
// Function: swap(int)
void swap(int number) {
    Store store;
    if (number <= 0 || number > store.size()) {
        cout << NONEXISTENT_INDEX_MESSAGE << endl;
        cout << RUN_HELP_MESSAGE;
        return;
    }
    Profile chosen = store.get(number - 1);
    string swapName(SWAP_NAME_GIT_CMD + QUOTE + chosen.getName() + QUOTE);
    string swapEmail(SWAP_EMAIL_GIT_CMD + QUOTE + chosen.getEmail() + QUOTE);
    system(swapName.c_str());
    system(swapEmail.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2f8, %rsp            # imm = 0x2F8
movl %edi, %ebx
leaq -0x318(%rbp), %rdi
callq 0x55e8
testl %ebx, %ebx
jle 0x4403
leaq -0x318(%rbp), %rdi
callq 0x5970
cmpl %ebx, %eax
jge 0x4466
movq 0x501e(%rip), %rsi      # 0x9428
movq 0x501f(%rip), %rdx      # 0x9430
movq 0x4bb0(%rip), %rdi      # 0x8fc8
callq 0x2230
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2170
movq 0x4f3a(%rip), %rsi      # 0x9388
movq 0x4f3b(%rip), %rdx      # 0x9390
movq 0x4b6c(%rip), %rdi      # 0x8fc8
callq 0x2230
jmp 0x46f5
decl %ebx
leaq -0x318(%rbp), %rdi
movl %ebx, %esi
callq 0x58bc
movq %rax, %rbx
leaq -0xb8(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0x4ce6
leaq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
callq 0x4ce6
leaq 0x4fc5(%rip), %rsi      # 0x9488
leaq 0x4ffe(%rip), %rdx      # 0x94c8
leaq -0x68(%rbp), %rdi
callq 0x4c39
leaq -0xc8(%rbp), %rdi
callq 0x54fc
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
callq 0x20a0
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4513
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x451b
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq -0x48(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x4f8b(%rip), %rsi      # 0x94c8
movq 0x4f8c(%rip), %rdx      # 0x94d0
callq 0x20a0
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4571
movq %rdx, -0x88(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x78(%rbp)
jmp 0x4579
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x80(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x459e
callq 0x21f0
leaq -0x58(%rbp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0x45b0
callq 0x21f0
leaq 0x4ef1(%rip), %rsi      # 0x94a8
leaq 0x4f0a(%rip), %rdx      # 0x94c8
leaq -0xe8(%rbp), %rdi
callq 0x4c39
leaq -0xc8(%rbp), %rdi
callq 0x5506
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq -0xe8(%rbp), %rdi
callq 0x20a0
movq %rbx, -0x68(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4609
movq %rdx, -0x68(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x58(%rbp)
jmp 0x460f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x4e97(%rip), %rsi      # 0x94c8
movq 0x4e98(%rip), %rdx      # 0x94d0
callq 0x20a0
movq %r13, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x465d
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4665
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x468a
callq 0x21f0
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x469f
callq 0x21f0
movq -0x88(%rbp), %rdi
callq 0x21c0
movq -0x48(%rbp), %rdi
callq 0x21c0
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x46c2
callq 0x21f0
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x46d3
callq 0x21f0
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x46e4
callq 0x21f0
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x46f5
callq 0x21f0
leaq -0x318(%rbp), %rdi
callq 0x5988
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq -0x68(%rbp), %rdi
cmpq %rbx, %rdi
je 0x476a
callq 0x21f0
jmp 0x476a
movq %rax, %r15
jmp 0x477f
movq %rax, %r15
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x47a1
callq 0x21f0
jmp 0x47a1
movq %rax, %r15
jmp 0x4790
movq %rax, %r15
movq -0xc8(%rbp), %rdi
cmpq %r14, %rdi
je 0x47b5
callq 0x21f0
jmp 0x47b5
movq %rax, %r15
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
jne 0x477a
jmp 0x477f
movq %rax, %r15
leaq -0xd8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x477f
callq 0x21f0
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x4790
callq 0x21f0
leaq -0xc8(%rbp), %rdi
callq 0x4c04
jmp 0x47b5
movq %rax, %r15
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x478b
jmp 0x4790
jmp 0x47b2
movq %rax, %r15
leaq -0x318(%rbp), %rdi
callq 0x5988
movq %r15, %rdi
callq 0x2340