// File: /workspace/github_cpp_makefile_star2_O3/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 0x4488(%rip), %rsi      # 0xa3ca
leaq 0x44a1(%rip), %rdx      # 0xa3ea
leaq 0x50(%rsp), %rdi
callq 0x3534
movq 0x806e(%rip), %rdi      # 0xdfc8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq 0x8053(%rip), %rdi      # 0xdfc8
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq %rax, %r14
leaq 0x445f(%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 0x7ff7(%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 0x3440
leaq 0xd0(%rsp), %rdi
callq 0x8ce4
movl %eax, %ebp
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6028
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 0x4148(%rip), %rsi      # 0xa192
leaq 0x414a(%rip), %rdx      # 0xa19b
leaq 0xb0(%rsp), %rdi
callq 0x3534
leaq 0xf0(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x4abc
movl %eax, %ebp
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6092
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2230
testb %bpl, %bpl
je 0x60e2
movq 0x7f2a(%rip), %rbx      # 0xdfc8
leaq 0x4369(%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 0x7ef8(%rip), %rdi      # 0xdfc8
callq 0x2030
movq %rax, %rdi
callq 0x2180
jmp 0x62a9
movsd 0x420e(%rip), %xmm0     # 0xa2f8
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5884
movsd %xmm0, 0x28(%rsp)
leaq 0xa0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4085(%rip), %rsi      # 0xa192
leaq 0x4087(%rip), %rdx      # 0xa19b
leaq 0x90(%rsp), %rdi
callq 0x3534
leaq 0xf0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movsd 0x28(%rsp), %xmm0
callq 0x4716
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x6159
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xa8(%rbx), %rdx
leaq 0x42a4(%rip), %rsi      # 0xa40b
leaq 0x70(%rsp), %rdi
callq 0x8553
movq 0x7e38(%rip), %rsi      # 0xdfb0
leaq 0x4562(%rip), %rcx      # 0xa6e1
leaq 0x30(%rsp), %rdi
movl $0x148, %edx            # imm = 0x148
movsd 0x28(%rsp), %xmm0
movb $0x1, %al
callq 0x88f6
leaq 0x80(%rsp), %r14
movq -0x10(%r14), %rcx
movq -0x8(%r14), %r8
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x61c1
movq 0x80(%rsp), %rdi
movq 0x30(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x61e4
leaq 0x40(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x61df
movq 0x40(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x61f0
leaq 0x70(%rsp), %rdi
callq 0x20c0
jmp 0x61fe
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 0x6222
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6228
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 0x89a8
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6274
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x628f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x62a9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xf0(%rsp), %rdi
callq 0x41f8
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62d7
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x160(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62f8
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x140(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6319
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x120(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x633a
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xf0(%rsp), %rdi
callq 0x32d4
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x635e
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 0x638f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x638f
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x63af
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x63af
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6437
movq 0x80(%rsp), %rsi
jmp 0x6402
jmp 0x6434
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r14, %rdi
je 0x6437
movq 0xa0(%rsp), %rsi
jmp 0x6402
jmp 0x6434
jmp 0x6434
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6437
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x6437
jmp 0x6434
jmp 0x6446
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r14, %rdi
je 0x6449
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x6449
jmp 0x6446
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x3126
jmp 0x6449
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x6460
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23b0