// File: /workspace/github_cpp_makefile_star2_O1/Kyle-Alvares[P]SQA1/session.cpp
// Function: Session::transfer()
void Session::transfer() {
    string mssg = "Enter depositee account number: ";
    cout << endl << "============TRANSFER===========" << endl;
    cout << mssg;
    
    int accountNumber = askAccountNumber(mssg);
    User other(accountNumber);

    bool valid = other.isDisabled("chequings") ? false : true;
    if(valid) {
        double amount = withdraw(1000, false);
        other.deposit("chequings", amount);
        transactions.push_back("02" + username + to_string(amount));
    }
    else cout << "Error: This user has a disabled chequing account!" << endl;
    other.saveUserData();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rdi, %rbx
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x443e(%rip), %rsi      # 0xa3ca
leaq 0x4457(%rip), %rdx      # 0xa3ea
leaq 0x50(%rsp), %rdi
callq 0x353c
movq 0x8024(%rip), %rdi      # 0xdfc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq 0x8009(%rip), %rdi      # 0xdfc8
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq %rax, %r14
leaq 0x4415(%rip), %rsi      # 0xa3eb
movl $0x1f, %edx
movq %rax, %rdi
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x7fad(%rip), %rdi      # 0xdfc8
callq 0x2270
leaq 0xe0(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x3450
leaq 0xd0(%rsp), %rdi
callq 0x8d2c
movl %eax, %ebp
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6072
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xf0(%rsp), %rdi
movl %ebp, %esi
callq 0x3622
leaq 0xc0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x40fe(%rip), %rsi      # 0xa192
leaq 0x4100(%rip), %rdx      # 0xa19b
leaq 0xb0(%rsp), %rdi
callq 0x353c
leaq 0xf0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4ac6
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x60dc
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2230
testb %bpl, %bpl
je 0x612c
movq 0x7ee0(%rip), %rbx      # 0xdfc8
leaq 0x431f(%rip), %rsi      # 0xa40e
movl $0x31, %edx
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq 0x7eae(%rip), %rdi      # 0xdfc8
callq 0x2030
movq %rax, %rdi
callq 0x2180
jmp 0x62f4
movsd 0x41c4(%rip), %xmm0     # 0xa2f8
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58ca
movsd %xmm0, 0x28(%rsp)
leaq 0xa0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x403b(%rip), %rsi      # 0xa192
leaq 0x403d(%rip), %rdx      # 0xa19b
leaq 0x90(%rsp), %rdi
callq 0x353c
leaq 0xf0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movsd 0x28(%rsp), %xmm0
callq 0x471e
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x61a3
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xa8(%rbx), %rdx
leaq 0x425a(%rip), %rsi      # 0xa40b
leaq 0x70(%rsp), %rdi
callq 0x85a5
movq 0x7dee(%rip), %rsi      # 0xdfb0
leaq 0x4518(%rip), %rcx      # 0xa6e1
leaq 0x30(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movsd 0x28(%rsp), %xmm0
movb $0x1, %al
callq 0x8946
leaq 0x80(%rsp), %r14
movq -0x10(%r14), %rcx
movq -0x8(%r14), %r8
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x620b
movq 0x80(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x622a
leaq 0x40(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x6225
movq 0x40(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x623b
movq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x20c0
jmp 0x6249
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2260
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x626d
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6273
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
addq $0xc8, %rbx
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x89f8
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62da
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x62f4
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xf0(%rsp), %rdi
callq 0x4200
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6322
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x160(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6343
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6364
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6385
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xf0(%rsp), %rdi
callq 0x32e6
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x63a9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x63da
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63fa
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x63fa
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6482
movq 0x80(%rsp), %rsi
jmp 0x644d
jmp 0x647f
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x6482
movq 0xa0(%rsp), %rsi
jmp 0x644d
jmp 0x647f
jmp 0x647f
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6482
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x6482
jmp 0x647f
jmp 0x6491
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6494
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x6494
jmp 0x6491
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x3138
jmp 0x6494
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x64ab
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23b0
nop