// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdi, %rbx
movq 0xd8(%rdi), %rax
cmpq 0xe0(%rdi), %rax
je 0x1a72e
movq 0xe0(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a6de
movq (%rdi), %rax
callq *0x60(%rax)
movq 0xd8(%rbx), %rax
movq 0xe0(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a708
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0xd8(%rbx), %rax
movq 0xe0(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0xe0(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a6ce
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
je 0x1a7b9
movq 0xc8(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a769
movq (%rdi), %rax
callq *0x60(%rax)
movq 0xc0(%rbx), %rax
movq 0xc8(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a793
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0xc0(%rbx), %rax
movq 0xc8(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0xc8(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a759
movq 0xa8(%rbx), %rax
cmpq 0xb0(%rbx), %rax
je 0x1a844
movq 0xb0(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a7f4
movq (%rdi), %rax
callq *0x60(%rax)
movq 0xa8(%rbx), %rax
movq 0xb0(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a81e
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0xa8(%rbx), %rax
movq 0xb0(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0xb0(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a7e4
movq 0xf0(%rbx), %rax
cmpq 0xf8(%rbx), %rax
je 0x1a8cf
movq 0xf8(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a87f
movq (%rdi), %rax
callq *0x20(%rax)
movq 0xf0(%rbx), %rax
movq 0xf8(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a8a9
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0xf0(%rbx), %rax
movq 0xf8(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0xf8(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a86f
movq 0x120(%rbx), %rax
cmpq 0x128(%rbx), %rax
je 0x1a95a
movq 0x128(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a90a
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x120(%rbx), %rax
movq 0x128(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a934
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0x120(%rbx), %rax
movq 0x128(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0x128(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a8fa
movq 0x108(%rbx), %rax
cmpq 0x110(%rbx), %rax
je 0x1a9e5
movq 0x110(%rbx), %rcx
subq %rax, %rcx
shrq $0x3, %rcx
movslq %ecx, %r14
shlq $0x3, %r14
movq %r14, %r15
negq %r15
movq -0x8(%rax,%r14), %rdi
testq %rdi, %rdi
je 0x1a995
movq (%rdi), %rax
callq *0x20(%rax)
movq 0x108(%rbx), %rax
movq 0x110(%rbx), %rdx
leaq (%rax,%r14), %rsi
cmpq %rdx, %rsi
je 0x1a9bf
leaq (%rax,%r14), %rdi
addq $-0x8, %rdi
subq %rax, %rdx
addq %r15, %rdx
callq 0x32b0
movq 0x108(%rbx), %rax
movq 0x110(%rbx), %rcx
addq $-0x8, %rcx
movq %rcx, 0x110(%rbx)
addq $-0x8, %r14
addq $0x8, %r15
cmpq %rcx, %rax
jne 0x1a985
movq 0x1b0(%rbx), %rdi
testq %rdi, %rdi
je 0x1a9f6
callq 0x3170
movq 0x198(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa07
callq 0x3170
movq 0x180(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa18
callq 0x3170
movq 0x168(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa29
callq 0x3170
movq 0x150(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa3a
callq 0x3170
movq 0x138(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa4b
callq 0x3170
movq 0x120(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa5c
callq 0x3170
movq 0x108(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa6d
callq 0x3170
movq 0xf0(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa7e
callq 0x3170
movq 0xd8(%rbx), %rdi
testq %rdi, %rdi
je 0x1aa8f
callq 0x3170
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x1aaa0
callq 0x3170
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x1aab1
callq 0x3170
leaq 0x90(%rbx), %rdi
callq 0x3c4c
leaq 0x78(%rbx), %rdi
callq 0x3c4c
leaq 0x60(%rbx), %rdi
callq 0x3c4c
leaq 0x48(%rbx), %rdi
callq 0x3c4c
leaq 0x30(%rbx), %rdi
callq 0x3c4c
leaq 0x18(%rbx), %rdi
callq 0x3c4c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3c4c