// File: /workspace/github_cpp_makefile_star2_O3/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 0x77b6(%rip), %r14      # 0xcfd0
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
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8(%rsp), %rdi
movl $0x10, %esi
movl $0x2d, %edx
callq 0x2190
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x7760(%rip), %r14      # 0xcfd0
movq %r14, %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
cmpq %r12, %rdi
je 0x58b9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
cmpl $0x0, (%rbx)
jle 0x59e1
xorl %r13d, %r13d
leaq 0x2167(%rip), %r15      # 0x7a33
cmpl $0x0, 0x4(%rbx)
jle 0x59ab
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r12,8), %rdi
callq 0x3b3e
movq %rax, %rbp
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2180
movq 0x8(%rbx), %rax
movq (%rax,%r13,8), %rax
testq %rbp, %rbp
je 0x5923
cmpq $0x4, %r12
jne 0x5959
movq 0x20(%rax), %rdi
callq 0x3b3e
movq %rax, %rdi
callq 0x4128
jmp 0x5932
cmpq $0x4, %r12
jne 0x596c
movq 0x20(%rax), %rdi
callq 0x3afe
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2180
movl $0x2, %edx
movq %rax, %rdi
leaq 0x2f64(%rip), %rsi      # 0x88bb
jmp 0x5996
movq (%rax,%r12,8), %rdi
callq 0x3b3e
movq %rax, %rdi
callq 0x4128
jmp 0x5975
movq (%rax,%r12,8), %rdi
callq 0x3afe
movb %al, 0x8(%rsp)
movl $0x1, %edx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2180
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
incq %r12
movslq 0x4(%rbx), %rax
cmpq %rax, %r12
jl 0x58d9
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
incq %r13
movslq (%rbx), %rax
cmpq %rax, %r13
jl 0x58cc
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r14
movq %r14, (%rdi)
movl $0x10, %esi
movl $0x2d, %edx
callq 0x2190
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x75c2(%rip), %rdi      # 0xcfd0
callq 0x2180
movq %rax, %rbx
movq (%rax), %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 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x5a54
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5a65
movq %rax, %rbx
jmp 0x5a93
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x5a86
jmp 0x5a93
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a93
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2160
movq %rbx, %rdi
callq 0x2240
nop