// File: /workspace/github_cpp_makefile_star2_O3/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 0xc041(%rip), %r14      # 0x13fd0
leaq 0x66ba(%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 0x80e9
movq 0xbff3(%rip), %r12      # 0x13fd0
leaq 0x6b24(%rip), %r13      # 0xeb08
movq 0x10(%r15), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc812
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 0xc840
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 0xc84a
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 0x80dd
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x7fe4
leaq 0x656a(%rip), %rsi      # 0xe65a
movl $0x8, %edx
movq 0xbed4(%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 0x822b
leaq 0x69c5(%rip), %r13      # 0xeb08
movq 0x10(%r12), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc812
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0xbe70(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc840
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 0xc84a
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 0x821e
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r12), %r12
cmpq %r15, %r12
jne 0x8143
leaq 0x6431(%rip), %rsi      # 0xe663
movl $0x9, %edx
movq 0xbd92(%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 0x836d
leaq 0x6883(%rip), %r13      # 0xeb08
movq 0x10(%r12), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc812
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0xbd2e(%rip), %rdi      # 0x13fd0
callq 0x31c0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x31c0
movq 0x10(%r12), %rdi
callq 0xc840
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 0xc84a
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 0x8360
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r12), %r12
cmpq %r15, %r12
jne 0x8285
leaq 0x62f9(%rip), %rsi      # 0xe66d
movl $0x8, %edx
movq 0xbc50(%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 0x84f9
movq 0xbc09(%rip), %r15      # 0x13fd0
leaq 0x673a(%rip), %r12      # 0xeb08
movq 0x10(%r14), %rsi
leaq -0x48(%rbp), %rdi
callq 0xc812
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 0xc840
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 0xc84a
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 0xc4e0
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 0xc4ea
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 0x84ed
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq (%r14), %r14
cmpq %rbx, %r14
jne 0x83ce
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x850e
jmp 0x850e
jmp 0x850e
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x852a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3190
movq %rbx, %rdi
callq 0x3220