// File: /workspace/github_cpp_makefile_star2_O1/JacobLCarter[P]2D-Portal/player.cpp
// Function: Player::displayBackpackContents()
void Player::displayBackpackContents()
{
    std::cout << "Current contents of your backpack: " << std::endl;

    if (backpack.empty())
    {
        std::cout << "Nothing!" << std::endl;
    }
    else
    {
        //for each item, print an ascending number and the name and description
        for (int i = 0; i < backpack.size(); i++)
        {
            std::cout << i + 1 << ": " << backpack.at(i)->getItemName()
                      << " - " << backpack.at(i)->getItemDescription()
                      << std::endl;
        }
        std::cout << std::endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
movq 0x8bfa(%rip), %rbx      # 0xcfd0
leaq 0x432d(%rip), %rsi      # 0x870a
movl $0x23, %edx
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x30(%r14), %rax
cmpq 0x38(%r14), %rax
je 0x4563
movq 0x38(%r14), %rax
cmpq 0x30(%r14), %rax
je 0x457b
xorl %r15d, %r15d
leaq 0x4300(%rip), %rbp      # 0x8737
leaq 0x8(%rsp), %rbx
leaq 0x1(%r15), %r12
movq 0x8b89(%rip), %rdi      # 0xcfd0
movl %r12d, %esi
callq 0x2230
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x4457(%rip), %rsi      # 0x88b8
callq 0x2180
movq 0x30(%r14), %rax
movq 0x38(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x45c9
movq (%rax,%r15,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x40b2
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2180
movq 0x30(%r14), %rax
movq 0x38(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x45b8
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x40d4
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x452d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4549
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x38(%r14), %rax
subq 0x30(%r14), %rax
sarq $0x3, %rax
movq %r12, %r15
cmpq %r12, %rax
ja 0x443c
jmp 0x457b
movq 0x8a66(%rip), %rdi      # 0xcfd0
leaq 0x41bd(%rip), %rsi      # 0x872e
movl $0x8, %edx
callq 0x2180
movq 0x8a4e(%rip), %rbx      # 0xcfd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4196(%rip), %rdi      # 0x8755
movq %r15, %rsi
xorl %eax, %eax
callq 0x21d0
leaq 0x4185(%rip), %rdi      # 0x8755
movq %r15, %rsi
xorl %eax, %eax
callq 0x21d0
jmp 0x45de
jmp 0x45de
movq %rax, %rbx
jmp 0x4602
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4602
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x461e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240