// File: /workspace/github_cpp_makefile_star2_O2/MichaelXanth[P]RPG_Game/Market/Market.cpp
// Function: Market::~Market()
Market::~Market()
{
    for (int i = iceSpellsArray.size(); !iceSpellsArray.empty(); i--) {
        delete iceSpellsArray[i-1];
        iceSpellsArray.erase(iceSpellsArray.begin() + i-1);
    }

    for (int i = fireSpellsArray.size(); !fireSpellsArray.empty(); i--) {
        delete fireSpellsArray[i-1];
        fireSpellsArray.erase(fireSpellsArray.begin() + i-1);
    }

    for (int i = lightingSpellsArray.size(); !lightingSpellsArray.empty(); i--) {
        delete lightingSpellsArray[i-1];
        lightingSpellsArray.erase(lightingSpellsArray.begin() + i-1);
    }

    for (int i = weaponsArray.size(); !weaponsArray.empty(); i--) {
        delete weaponsArray[i-1];
        weaponsArray.erase(weaponsArray.begin() + i-1);
    }

    for (int i = armorsArray.size(); !armorsArray.empty(); i--) {
        delete armorsArray[i-1];
        armorsArray.erase(armorsArray.begin() + i-1);
    }

    for (int i = potionsArray.size(); !potionsArray.empty(); i--) {
        delete potionsArray[i-1];
        potionsArray.erase(potionsArray.begin() + i-1);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0xe0(%rdi), %rax
subq 0xd8(%rdi), %rax
leaq 0xd8(%rdi), %r12
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r14
movq 0xd8(%rbx), %rsi
cmpq 0xe0(%rbx), %rsi
je 0x13d69
movq (%rsi,%r14), %rdi
testq %rdi, %rdi
je 0x13d58
movq (%rdi), %rax
callq *0x60(%rax)
movq (%r12), %rsi
addq %r14, %rsi
addq $-0x8, %r14
movq %r12, %rdi
callq 0x11464
jmp 0x13d35
movq 0xc8(%rbx), %rax
subq 0xc0(%rbx), %rax
leaq 0xc0(%rbx), %r15
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r14
movq 0xc0(%rbx), %rsi
cmpq 0xc8(%rbx), %rsi
je 0x13dbf
movq (%rsi,%r14), %rdi
testq %rdi, %rdi
je 0x13dae
movq (%rdi), %rax
callq *0x60(%rax)
movq (%r15), %rsi
addq %r14, %rsi
addq $-0x8, %r14
movq %r15, %rdi
callq 0x1149e
jmp 0x13d8c
movq 0xb0(%rbx), %rax
subq 0xa8(%rbx), %rax
leaq 0xa8(%rbx), %r13
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r14
movq 0xa8(%rbx), %rsi
cmpq 0xb0(%rbx), %rsi
je 0x13e16
movq (%rsi,%r14), %rdi
testq %rdi, %rdi
je 0x13e05
movq (%rdi), %rax
callq *0x60(%rax)
movq (%r13), %rsi
addq %r14, %rsi
addq $-0x8, %r14
movq %r13, %rdi
callq 0x114d8
jmp 0x13de2
movq %r13, -0x40(%rbp)
movq 0xf8(%rbx), %rax
subq 0xf0(%rbx), %rax
leaq 0xf0(%rbx), %r13
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r14
movq 0xf0(%rbx), %rsi
cmpq 0xf8(%rbx), %rsi
je 0x13e71
movq (%rsi,%r14), %rdi
testq %rdi, %rdi
je 0x13e60
movq (%rdi), %rax
callq *0x20(%rax)
movq (%r13), %rsi
addq %r14, %rsi
addq $-0x8, %r14
movq %r13, %rdi
callq 0x11512
jmp 0x13e3d
movq %r15, -0x38(%rbp)
movq 0x128(%rbx), %rax
subq 0x120(%rbx), %rax
leaq 0x120(%rbx), %r14
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r15
movq 0x120(%rbx), %rsi
cmpq 0x128(%rbx), %rsi
je 0x13ecb
movq (%rsi,%r15), %rdi
testq %rdi, %rdi
je 0x13eba
movq (%rdi), %rax
callq *0x20(%rax)
movq (%r14), %rsi
addq %r15, %rsi
addq $-0x8, %r15
movq %r14, %rdi
callq 0x1154c
jmp 0x13e98
movq %r12, -0x30(%rbp)
movq 0x110(%rbx), %rax
subq 0x108(%rbx), %rax
leaq 0x108(%rbx), %r15
shrq $0x3, %rax
cltq
leaq -0x8(,%rax,8), %r12
movq 0x108(%rbx), %rsi
cmpq 0x110(%rbx), %rsi
je 0x13f25
movq (%rsi,%r12), %rdi
testq %rdi, %rdi
je 0x13f14
movq (%rdi), %rax
callq *0x20(%rax)
movq (%r15), %rsi
addq %r12, %rsi
addq $-0x8, %r12
movq %r15, %rdi
callq 0x11586
jmp 0x13ef2
leaq 0x1b0(%rbx), %rdi
callq 0x19340
leaq 0x198(%rbx), %rdi
callq 0x19340
leaq 0x180(%rbx), %rdi
callq 0x19340
leaq 0x168(%rbx), %rdi
callq 0x19340
leaq 0x150(%rbx), %rdi
callq 0x19340
leaq 0x138(%rbx), %rdi
callq 0x19340
movq %r14, %rdi
callq 0x11740
movq %r15, %rdi
callq 0x1170c
movq %r13, %rdi
callq 0x116d8
movq -0x30(%rbp), %rdi
callq 0x116a4
movq -0x38(%rbp), %rdi
callq 0x11670
movq -0x40(%rbp), %rdi
callq 0x1163c
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a78
jmp 0x13fc0
jmp 0x13fc0
jmp 0x13fc0
jmp 0x13fc0
jmp 0x13fc0
movq %rax, %rdi
callq 0x3af3