// File: /workspace/github_cpp_makefile_star2_O1/Kyle-Alvares[P]SQA1/request.cpp
// Function: req::askAccountNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int req::askAccountNumber(string errMsg)
{
    bool validAccount = false;
    int accountNumber;
    while (!validAccount)
    {
        validAccount = true;
        cin >> accountNumber;
        ifstream ifs("./users/" + to_string(accountNumber) + ".txt");
        if (ifs.fail())
        {
            cerr << "Error: Invalid account number!\n";
            cerr << errMsg;
            validAccount = false;
        }
    }
    return accountNumber;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rdi, %rbx
movl $0xd1b71759, %r15d      # imm = 0xD1B71759
movq 0x528b(%rip), %rdi      # 0xdfd8
leaq 0xc(%rsp), %rsi
callq 0x2160
movl 0xc(%rsp), %r12d
movl %r12d, %r14d
negl %r14d
cmovsl %r12d, %r14d
movl $0x1, %r13d
cmpl $0xa, %r14d
jb 0x8db4
movl $0x4, %r13d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x8dab
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x8db1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x8db4
movl %eax, %ecx
imulq %r15, %rcx
shrq $0x2d, %rcx
addl $0x4, %r13d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x8d7b
addl $-0x3, %r13d
jmp 0x8db4
addl $-0x2, %r13d
jmp 0x8db4
decl %r13d
shrl $0x1f, %r12d
movl %r12d, %esi
addl %r13d, %esi
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x30(%rsp), %rbp
movq %rbp, %rdi
movl $0x2d, %edx
callq 0x2280
movq 0x30(%rsp), %rdi
addq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0x4d25
movl $0x8, %r8d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x1339(%rip), %rcx      # 0xa13a
callq 0x2260
leaq 0x20(%rsp), %r14
movq %r14, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x60(%rsp), %r12
je 0x8e33
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x8e3a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10(%rsp), %rdi
leaq 0x12e5(%rip), %rsi      # 0xa143
callq 0x23d0
movq %r12, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x8e86
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x8e8e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x8, %edx
callq 0x2360
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x8ed1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x8ee8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
movq 0x50f4(%rip), %r14      # 0xdff0
je 0x8f0b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x90(%rsp,%rax)
je 0x8f50
movl $0x1f, %edx
movq %r14, %rdi
leaq 0x17e2(%rip), %rsi      # 0xa70f
callq 0x2270
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x2270
leaq 0x70(%rsp), %rdi
callq 0x2080
jmp 0x8d46
leaq 0x70(%rsp), %rdi
callq 0x2080
movl 0xc(%rsp), %eax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x8fb0
movq %rax, %rbx
jmp 0x8f94
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x8f94
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x8fb0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x8fdb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x8fdb
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x23b0