// File: malcolmyeh[P]CC3K/floor.cc
// Function: Floor::talkMerchant(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string Floor::talkMerchant(std::string direction){
	if (this->getHostile()){
		return "You are my enemy!";
	}
	Posn p = this->player->getPosition().getNew(direction);
	for (int i = 0; i < this->enemies.size(); ++i){
		if (p == this->enemies.at(i)->getPosition()){
			if (this->enemies.at(i)->getRace() == "Merchant") {
				return "(B)uckler Shield: 3g (T)arge Shield: 6g (P)avise Shield: 12g (N)odachi: 3g (K)atana: 7g (U)chigatana: 15g";
			}
		}
	}
	return "Invalid input. Try again.";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdx, -0xb8(%rbp)
movq %rdi, -0xb0(%rbp)
movq %rdi, %rax
movq %rax, -0xa8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x8d70
testb $0x1, %al
jne 0xa965
jmp 0xa9b9
leaq -0x19(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x4300
movq -0xb0(%rbp), %rdi
movq -0xc0(%rbp), %rdx
leaq 0x13a0e(%rip), %rsi     # 0x1e398
callq 0x4270
jmp 0xa991
leaq -0x19(%rbp), %rdi
callq 0x4200
jmp 0xabeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x19(%rbp), %rdi
callq 0x4200
jmp 0xabfb
movq -0xa0(%rbp), %rax
movq 0xfe0(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq -0xb8(%rbp), %rsi
movq %rax, -0x3c(%rbp)
leaq -0x60(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x40e0
movq -0xd0(%rbp), %rsi
leaq -0x3c(%rbp), %rdi
callq 0x5240
movq %rax, -0xc8(%rbp)
jmp 0xaa04
movq -0xc8(%rbp), %rax
movq %rax, -0x34(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4130
movl $0x0, -0x64(%rbp)
movq -0xa0(%rbp), %rdi
movslq -0x64(%rbp), %rax
movq %rax, -0xd8(%rbp)
addq $0x7c0, %rdi            # imm = 0x7C0
callq 0xd0a0
movq %rax, %rcx
movq -0xd8(%rbp), %rax
cmpq %rcx, %rax
jae 0xab94
movq -0xa0(%rbp), %rdi
addq $0x7c0, %rdi            # imm = 0x7C0
movslq -0x64(%rbp), %rsi
callq 0xd0c0
movq (%rax), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movq %rax, -0x6c(%rbp)
leaq -0x34(%rbp), %rdi
leaq -0x6c(%rbp), %rsi
callq 0x53f0
testb $0x1, %al
jne 0xaa8a
jmp 0xab84
movq -0xa0(%rbp), %rdi
addq $0x7c0, %rdi            # imm = 0x7C0
movslq -0x64(%rbp), %rsi
callq 0xd0c0
movq (%rax), %rsi
movq (%rsi), %rax
movq 0x28(%rax), %rax
leaq -0x90(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq *%rax
movq -0xe8(%rbp), %rdi
leaq 0x13755(%rip), %rsi     # 0x1e21e
callq 0x5210
movb %al, -0xd9(%rbp)
jmp 0xaad6
leaq -0x90(%rbp), %rdi
callq 0x4130
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0xaaf1
jmp 0xab82
leaq -0x91(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x4300
movq -0xb0(%rbp), %rdi
movq -0xf0(%rbp), %rdx
leaq 0x13891(%rip), %rsi     # 0x1e3aa
callq 0x4270
jmp 0xab20
leaq -0x91(%rbp), %rdi
callq 0x4200
jmp 0xabeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x4130
jmp 0xabfb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x4130
jmp 0xabfb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x91(%rbp), %rdi
callq 0x4200
jmp 0xabfb
jmp 0xab84
jmp 0xab86
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0xaa1f
leaq -0x92(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x4300
movq -0xb0(%rbp), %rdi
movq -0xf8(%rbp), %rdx
leaq 0x13858(%rip), %rsi     # 0x1e414
callq 0x4270
jmp 0xabc3
leaq -0x92(%rbp), %rdi
callq 0x4200
jmp 0xabeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x92(%rbp), %rdi
callq 0x4200
jmp 0xabfb
movq -0xa8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x42f0
nopw %cs:(%rax,%rax)