// File: /workspace/github_cpp_makefile_star2_O1/kongrigoriou[P]Text-Based-RPG/src/Market.cpp
// Function: Market::displayItems()
void Market::displayItems() {

	list<Weapon*> ::iterator it;
	cout << "WEAPONS \n" << endl;

	for (it = Weapons.begin(); it !=  Weapons.end(); ++it) {
		cout << (*it)->get_name() << " " << (*it)->get_price() << " " << (*it)->get_minlvl() << " " << (*it)->get_damage() << " " << (*it)->get_handsNeeded() << endl;
	}

	list<Armor*> ::iterator ia;
	cout << "ARMORS \n" << endl;

	for (ia = Armors.begin(); ia != Armors.end(); ++ia) {
		cout << (*ia)->get_name() << " " << (*ia)->get_price() << " " << (*ia)->get_minlvl() << " " << (*ia)->get_protection() << endl;
	}

	list<Potion*> ::iterator ip;
	cout << "POTIONS \n" << endl;

	for (ip = Potions.begin(); ip != Potions.end(); ++ip) {
		cout << (*ip)->get_name() << " " << (*ip)->get_price() << " " << (*ip)->get_minlvl() << " " << (*ip)->get_buff() << endl;
	}

	list<Spell*> :: iterator sp;
	cout << "SPELLS \n" << endl;

	for(sp = Spells.begin(); sp != Spells.end(); ++sp){
		cout << (*sp)->get_name() << " " << (*sp)->get_price()<< " " << (*sp)->get_minlvl() << " " << (*sp)->get_DmgRange() << " " << (*sp)->get_MagicPower()
			<< " " << (*sp)->get_Reduction() <<  endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0xc049(%rip), %r14      # 0x13fd0
leaq 0x66c2(%rip), %rsi      # 0xe650
movl $0x9, %edx
movq %r14, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq (%rbx), %r15
cmpq %rbx, %r15
je 0x80e1
movq 0xbffb(%rip), %r12      # 0x13fd0
leaq 0x6b2c(%rip), %r13      # 0xeb08
movq 0x10(%r15), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc78e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x31c0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r15), %rdi
callq 0xc7bc
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r15), %rdi
callq 0xc7c6
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r15), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r15), %rdi
movq (%rdi), %rax
callq *(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x80d5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x7fdc
leaq 0x6572(%rip), %rsi      # 0xe65a
movl $0x8, %edx
movq 0xbedc(%rip), %r14      # 0x13fd0
movq %r14, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x18(%rbx), %r15
movq 0x18(%rbx), %r12
cmpq %r15, %r12
je 0x8223
leaq 0x69cd(%rip), %r13      # 0xeb08
movq 0x10(%r12), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc78e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0xbe78(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc7bc
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc7c6
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8216
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r12), %r12
cmpq %r15, %r12
jne 0x813b
leaq 0x6439(%rip), %rsi      # 0xe663
movl $0x9, %edx
movq 0xbd9a(%rip), %r14      # 0x13fd0
movq %r14, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
leaq 0x30(%rbx), %r15
movq 0x30(%rbx), %r12
cmpq %r15, %r12
je 0x8365
leaq 0x688b(%rip), %r13      # 0xeb08
movq 0x10(%r12), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc78e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0xbd36(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc7bc
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc7c6
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8358
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r12), %r12
cmpq %r15, %r12
jne 0x827d
leaq 0x6301(%rip), %rsi      # 0xe66d
movl $0x8, %edx
movq 0xbc58(%rip), %r14      # 0x13fd0
movq %r14, %rdi
callq 0x31c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq 0x48(%rbx), %r14
addq $0x48, %rbx
cmpq %rbx, %r14
je 0x84f1
movq 0xbc11(%rip), %r15      # 0x13fd0
leaq 0x6742(%rip), %r12      # 0xeb08
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc78e
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r15, %rdi
callq 0x31c0
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0xc7bc
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0xc7c6
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0xc45c
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
callq 0xc466
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x31c0
movq 0x10(%r14), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movq %r13, %rdi
movl %eax, %esi
callq 0x3210
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x3160
movsbl %al, %esi
movq %r13, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3100
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x84e5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r14), %r14
cmpq %rbx, %r14
jne 0x83c6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8506
jmp 0x8506
jmp 0x8506
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8522
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220