// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq 0x8bd6(%rip), %r14      # 0xcfd0
leaq 0x4309(%rip), %rsi      # 0x870a
movl $0x23, %edx
movq %r14, %rdi
callq 0x2180
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20e0
movq 0x30(%rbx), %rax
cmpq 0x38(%rbx), %rax
je 0x45ad
xorl %r15d, %r15d
movq 0x8b83(%rip), %r14      # 0xcfd0
leaq 0x8(%rsp), %rbp
leaq 0x1(%r15), %r12
movq %r14, %rdi
movl %r12d, %esi
callq 0x2230
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x4445(%rip), %rsi      # 0x88b8
callq 0x2180
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x4607
movq (%rax,%r15,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x40e2
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %r13
movl $0x3, %edx
movq %rax, %rdi
leaq 0x4275(%rip), %rsi      # 0x8737
callq 0x2180
movq 0x30(%rbx), %rax
movq 0x38(%rbx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x45f6
movq (%rax,%r15,8), %rsi
movq %rbp, %rdi
callq 0x4104
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 0x4543
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x455f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x38(%rbx), %rax
subq 0x30(%rbx), %rax
sarq $0x3, %rax
movq %r12, %r15
cmpq %r12, %rax
ja 0x4452
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %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 0x417a(%rip), %rsi      # 0x872e
movl $0x8, %edx
movq %r14, %rdi
callq 0x2180
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2140
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20e0
leaq 0x4158(%rip), %rdi      # 0x8755
movq %r15, %rsi
xorl %eax, %eax
callq 0x21d0
leaq 0x4147(%rip), %rdi      # 0x8755
movq %r15, %rsi
xorl %eax, %eax
callq 0x21d0
jmp 0x461c
jmp 0x461c
movq %rax, %rbx
jmp 0x4640
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4640
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x465c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240