// File: /workspace/github_cpp_makefile_star2_O2/JacobLCarter[P]2D-Portal/worldMap.cpp
// Function: World_Map::showMap()
void World_Map::showMap()
{
    std::cout << std::endl;
    std::cout << std::string(16, '-') << std::endl; 
    for (int i = 0; i < rows; i++)
    {
        for (int j = 0; j < columns; j++)
        {
            //if there is an item in the space, prints the item's identifier
            if (!testChamberMap[i][j]->getItemInSpace() == NULL)
            {
                //if the final space, print a border after the identifier
                if (j == 4)
                {
                    std::cout << " " << testChamberMap[i][j]->getItemInSpace()->
                    getItemTypeIdentifier() << " |";
                }
                else
                {
                    std::cout << " " << testChamberMap[i][j]->getItemInSpace()->
                        getItemTypeIdentifier() << " ";
                }
            }
            //if there is no item in the space, prints the spaces's identifier
            else
            {
                //if the final space, print a border after the identifier
                if (j == 4)
                {
                    std::cout << " " << testChamberMap[i][j]->getSpaceTypeIdentifier() << " |";
                }
                else
                { 
                    std::cout << " " << testChamberMap[i][j]->getSpaceTypeIdentifier() << " ";
                }
            }
        }
        std::cout << std::endl;
    }
    std::cout << std::string(16, '-') << std::endl; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x6040(%rip), %rdi      # 0xafd0
callq 0x20e0
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x8(%rsp), %rdi
pushq $0x10
popq %rsi
pushq $0x2d
popq %rdx
callq 0x21d0
movq 0x601b(%rip), %rdi      # 0xafd0
leaq 0x8(%rsp), %rsi
callq 0x2180
movq %rax, %rdi
callq 0x20e0
leaq 0x8(%rsp), %rdi
callq 0x20d0
xorl %ebp, %ebp
leaq 0x1a59(%rip), %r15      # 0x6a33
movslq (%rbx), %rax
cmpq %rax, %rbp
jge 0x50ab
xorl %r14d, %r14d
movslq 0x4(%rbx), %rax
cmpq %rax, %r14
jge 0x5097
movq 0x8(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%r14,8), %rdi
callq 0x37ca
movq %rax, %r13
movq 0x5fbf(%rip), %rdi      # 0xafd0
movq %r15, %rsi
callq 0x2190
movq %rax, %r12
movq 0x8(%rbx), %rax
movq (%rax,%rbp,8), %rax
testq %r13, %r13
je 0x5042
cmpq $0x4, %r14
jne 0x505a
movq 0x20(%rax), %rdi
callq 0x37ca
movq %rax, %rdi
callq 0x3caa
jmp 0x5051
cmpq $0x4, %r14
jne 0x506d
movq 0x20(%rax), %rdi
callq 0x378a
leaq 0x2863(%rip), %r13      # 0x78bb
jmp 0x5079
movq (%rax,%r14,8), %rdi
callq 0x37ca
movq %rax, %rdi
callq 0x3caa
jmp 0x5076
movq (%rax,%r14,8), %rdi
callq 0x378a
movq %r15, %r13
movsbl %al, %esi
movq %r12, %rdi
callq 0x21e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x2190
incq %r14
jmp 0x4fe9
movq 0x5f32(%rip), %rdi      # 0xafd0
callq 0x20e0
incq %rbp
jmp 0x4fda
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
pushq $0x10
popq %rsi
pushq $0x2d
popq %rdx
callq 0x21d0
movq 0x5f06(%rip), %rdi      # 0xafd0
leaq 0x8(%rsp), %rsi
callq 0x2180
movq %rax, %rdi
callq 0x20e0
leaq 0x8(%rsp), %rdi
callq 0x20d0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x50f7
movq %rax, %rbx
jmp 0x510b
jmp 0x50fe
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x2280
nop