// File: /workspace/github_cpp_makefile_star2_O1/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), %rbx
leaq -0x80(%rbp), %r15
leaq -0x68(%rbp), %r12
callq 0x4060
movl %eax, %r14d
leal 0x7(%r14), %r13d
testl %eax, %eax
cmovnsl %eax, %r13d
leaq -0x160(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x170(%rbp), %rdi
leaq 0x1760d(%rip), %rsi     # 0x1d1cd
leaq 0x17608(%rip), %rdx     # 0x1d1cf
callq 0x501a
leaq -0x140(%rbp), %rax
movq %rax, -0x150(%rbp)
movq %rbx, %rdi
leaq 0x175ec(%rip), %rsi     # 0x1d1d0
leaq 0x175e7(%rip), %rdx     # 0x1d1d2
callq 0x501a
leaq -0x120(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0x130(%rbp), %rdi
leaq 0x175c7(%rip), %rsi     # 0x1d1d3
leaq 0x175c2(%rip), %rdx     # 0x1d1d5
callq 0x501a
leaq -0x100(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0x110(%rbp), %rdi
leaq 0x175a2(%rip), %rsi     # 0x1d1d6
leaq 0x1759d(%rip), %rdx     # 0x1d1d8
callq 0x501a
leaq -0xe0(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0xf0(%rbp), %rdi
leaq 0x1757d(%rip), %rsi     # 0x1d1d9
leaq 0x17578(%rip), %rdx     # 0x1d1db
callq 0x501a
leaq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xd0(%rbp), %rdi
leaq 0x17558(%rip), %rsi     # 0x1d1dc
leaq 0x17553(%rip), %rdx     # 0x1d1de
callq 0x501a
leaq -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
leaq 0x17536(%rip), %rsi     # 0x1d1e2
leaq 0x17531(%rip), %rdx     # 0x1d1e4
callq 0x501a
movq %r15, -0x90(%rbp)
leaq -0x90(%rbp), %rdi
leaq 0x17512(%rip), %rsi     # 0x1d1df
leaq 0x1750d(%rip), %rdx     # 0x1d1e1
callq 0x501a
andl $-0x8, %r13d
subl %r13d, %r14d
movslq %r14d, %rax
shlq $0x5, %rax
leaq -0x58(%rbp), %r13
movq %r13, -0x68(%rbp)
movq -0x170(%rbp,%rax), %rsi
movq -0x168(%rbp,%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xa582
leaq -0x48(%rbp), %rdi
movq %r12, %rsi
callq 0x50b4
movq %rax, -0x40(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x51e2
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x5d3c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
movq $-0x100, %r14
movq %r15, %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x5d5b
movq (%r13), %rsi
incq %rsi
callq 0x4170
addq $-0x20, %r13
addq $0x20, %r14
jne 0x5d46
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdi
callq 0x5b1a
testb %al, %al
je 0x5b92
movq -0x30(%rbp), %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x170(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
jmp 0x5de7
movq %rax, %r14
leaq -0x130(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
leaq -0x110(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
leaq -0xf0(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
leaq -0xd0(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
leaq -0xb0(%rbp), %rbx
jmp 0x5de7
movq %rax, %r14
leaq -0x90(%rbp), %rbx
leaq -0x170(%rbp), %rax
cmpq %rbx, %rax
je 0x5e71
addq $-0x10, %rbx
leaq -0x170(%rbp), %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x5e12
movq (%rbx), %rsi
incq %rsi
callq 0x4170
leaq -0x20(%rbx), %rax
addq $-0x10, %rbx
cmpq %r15, %rbx
movq %rax, %rbx
jne 0x5dfe
jmp 0x5e71
movq %rax, %r14
jmp 0x5e41
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x5e41
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x4170
leaq -0x80(%rbp), %rbx
xorl %r15d, %r15d
movq -0x90(%rbp,%r15), %rdi
leaq (%rbx,%r15), %rax
cmpq %rdi, %rax
je 0x5e64
movq (%rax), %rsi
incq %rsi
callq 0x4170
addq $-0x20, %r15
cmpq $-0x100, %r15
jne 0x5e48
movq %r14, %rdi
callq 0x4250
nop