// File: /workspace/github_cpp_makefile_star2_O3/malcolmyeh[P]CC3K/floor.cc
// Function: Floor::dragonPosition(Posn)
Posn Floor::dragonPosition(Posn pos) {
	Posn p;
	do {
		int i = rand() % 8;
		std::string dir[8] = {"ea", "we", "no", "so", "ne", "nw", "sw", "se"};
		p = pos.getNew(dir[i]);
	} while (!this->validTile(p));
	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdi, -0x38(%rbp)
leaq -0x48(%rbp), %rax
movq %rsi, (%rax)
leaq -0x150(%rbp), %r14
leaq -0x170(%rbp), %rbx
leaq -0x68(%rbp), %r12
callq 0x4060
movl %eax, %r13d
leal 0x7(%r13), %r15d
testl %eax, %eax
cmovnsl %eax, %r15d
leaq -0x160(%rbp), %rax
movq %rax, -0x170(%rbp)
movq %rbx, %rdi
leaq 0x175ea(%rip), %rsi     # 0x1d1cd
leaq 0x175e5(%rip), %rdx     # 0x1d1cf
callq 0x501a
leaq -0x140(%rbp), %rax
movq %rax, -0x150(%rbp)
movq %r14, %rdi
leaq 0x175c9(%rip), %rsi     # 0x1d1d0
leaq 0x175c4(%rip), %rdx     # 0x1d1d2
callq 0x501a
leaq -0x120(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0x130(%rbp), %rdi
leaq 0x175a4(%rip), %rsi     # 0x1d1d3
leaq 0x1759f(%rip), %rdx     # 0x1d1d5
callq 0x501a
leaq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0x110(%rbp), %rdi
leaq 0x1757f(%rip), %rsi     # 0x1d1d6
leaq 0x1757a(%rip), %rdx     # 0x1d1d8
callq 0x501a
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0xf0(%rbp), %rdi
leaq 0x1755a(%rip), %rsi     # 0x1d1d9
leaq 0x17555(%rip), %rdx     # 0x1d1db
callq 0x501a
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xd0(%rbp), %rdi
leaq 0x17535(%rip), %rsi     # 0x1d1dc
leaq 0x17530(%rip), %rdx     # 0x1d1de
callq 0x501a
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
leaq 0x17513(%rip), %rsi     # 0x1d1e2
leaq 0x1750e(%rip), %rdx     # 0x1d1e4
callq 0x501a
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
leaq 0x174eb(%rip), %rsi     # 0x1d1df
leaq 0x174e6(%rip), %rdx     # 0x1d1e1
callq 0x501a
andl $-0x8, %r15d
subl %r15d, %r13d
movslq %r13d, %rax
shlq $0x5, %rax
leaq -0x58(%rbp), %r15
movq %r15, -0x68(%rbp)
movq -0x170(%rbp,%rax), %rsi
movq -0x168(%rbp,%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xa4be
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
callq 0x50b8
movq %rax, -0x40(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x51e6
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x5d63
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq $-0x100, %r15
leaq -0x80(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x5d83
movq (%r13), %rsi
incq %rsi
callq 0x4170
addq $-0x20, %r13
addq $0x20, %r15
jne 0x5d6e
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x5b3e
testb %al, %al
je 0x5bb9
movq -0x30(%rbp), %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
jmp 0x5e03
movq %rax, %r12
leaq -0x130(%rbp), %r14
jmp 0x5e03
movq %rax, %r12
leaq -0x110(%rbp), %r14
jmp 0x5e03
movq %rax, %r12
leaq -0xf0(%rbp), %r14
jmp 0x5e03
movq %rax, %r12
leaq -0xd0(%rbp), %r14
jmp 0x5e03
movq %rax, %r12
leaq -0xb0(%rbp), %r14
jmp 0x5e03
movq %rax, %r12
leaq -0x90(%rbp), %r14
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x5e1b
movq (%r14), %rsi
incq %rsi
callq 0x4170
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x5e07
jmp 0x5e7a
movq %rax, %r12
jmp 0x5e4a
movq %rax, %r12
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x5e4a
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x80(%rbp), %rbx
xorl %r14d, %r14d
movq -0x90(%rbp,%r14), %rdi
leaq (%rbx,%r14), %rax
cmpq %rdi, %rax
je 0x5e6d
movq (%rax), %rsi
incq %rsi
callq 0x4170
addq $-0x20, %r14
cmpq $-0x100, %r14
jne 0x5e51
movq %r12, %rdi
callq 0x4250