// File: /workspace/github_cpp_makefile_star2_O2/kongrigoriou[P]Text-Based-RPG/src/Heroes.cpp
// Function: Hero::display_inventory()
void Hero::display_inventory(){

    list<Weapon*> ::iterator it;
    list<Armor*> :: iterator ar;
    list<Potion*> :: iterator pt;
    list<Spell*> :: iterator is;
    cout << "Weapons are" << endl;
    for (it = Weapons.begin(); it !=  Weapons.end(); ++it){
        cout << (*it)->get_name() << " " ;
    }
    cout << endl;
    cout << "Armors are" << endl;
	for(ar = Armors.begin(); ar != Armors.end(); ++ar){
        cout << (*ar)->get_name() << " ";
    }
    cout << endl;
    cout << "Potions are" << endl;
    for(pt = Potions.begin(); pt != Potions.end(); ++pt){
        cout <<(*pt)->get_name() << " " ;
    }
    cout << endl;
    cout << "Spells are" << endl;
   for(is = Spells.begin(); is!= Spells.end(); ++is){
       cout << (*is)->get_name() << " ";
   }
   cout << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xe41b(%rip), %r14      # 0x12fd0
leaq 0x7779(%rip), %rsi      # 0xc335
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq %rbx, -0x30(%rbp)
addq $0x68, %rbx
leaq -0x50(%rbp), %r15
leaq 0x7f2b(%rip), %r12      # 0xcb0a
movq %rbx, %r13
movq (%r13), %r13
cmpq %rbx, %r13
je 0x4c17
movq 0x10(%r13), %rsi
movq %r15, %rdi
callq 0x9f40
movq %r14, %rdi
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %r15, %rdi
callq 0x30e0
jmp 0x4be2
movq 0xe3b2(%rip), %r14      # 0x12fd0
movq %r14, %rdi
callq 0x30f0
leaq 0x7714(%rip), %rsi      # 0xc341
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq -0x30(%rbp), %rax
leaq 0x98(%rax), %r13
leaq -0x50(%rbp), %r15
leaq 0x7eb7(%rip), %r12      # 0xcb0a
movq %r13, %rbx
movq (%rbx), %rbx
cmpq %r13, %rbx
je 0x4c8a
movq 0x10(%rbx), %rsi
movq %r15, %rdi
callq 0x9f40
movq %r14, %rdi
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %r15, %rdi
callq 0x30e0
jmp 0x4c56
movq 0xe33f(%rip), %r14      # 0x12fd0
movq %r14, %rdi
callq 0x30f0
leaq 0x76ac(%rip), %rsi      # 0xc34c
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq -0x30(%rbp), %rax
leaq 0xb0(%rax), %r13
leaq -0x50(%rbp), %r15
leaq 0x7e44(%rip), %r12      # 0xcb0a
movq %r13, %rbx
movq (%rbx), %rbx
cmpq %r13, %rbx
je 0x4cfd
movq 0x10(%rbx), %rsi
movq %r15, %rdi
callq 0x9f40
movq %r14, %rdi
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %r15, %rdi
callq 0x30e0
jmp 0x4cc9
movq 0xe2cc(%rip), %r14      # 0x12fd0
movq %r14, %rdi
callq 0x30f0
leaq 0x7645(%rip), %rsi      # 0xc358
movq %r14, %rdi
callq 0x31a0
movq %rax, %rdi
callq 0x30f0
movq -0x30(%rbp), %r13
subq $-0x80, %r13
leaq -0x50(%rbp), %r15
leaq 0x7dd4(%rip), %r12      # 0xcb0a
movq %r13, %rbx
movq (%rbx), %rbx
cmpq %r13, %rbx
je 0x4d6d
movq 0x10(%rbx), %rsi
movq %r15, %rdi
callq 0x9f40
movq %r14, %rdi
movq %r15, %rsi
callq 0x3170
movq %rax, %rdi
movq %r12, %rsi
callq 0x31a0
movq %r15, %rdi
callq 0x30e0
jmp 0x4d39
movq 0xe25c(%rip), %rdi      # 0x12fd0
callq 0x30f0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4d8e
jmp 0x4d8e
jmp 0x4d8e
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x30e0
movq %rbx, %rdi
callq 0x3240