// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/move.c
// Function: show
char show(int y,int x)
{
	unsigned long ch = winat(y, x);
	struct linked_list *it;
	struct thing *tp;
	struct trap *ta;

	if (isatrap(ch)) {
		if ((ta = trap_at(y, x)) == NULL)
			return FLOOR;
		if (iswearing(R_FTRAPS))
			ta->tr_flags |= ISFOUND;
		return ((ta->tr_flags & ISFOUND) ? ta->tr_type : FLOOR);
	}
	if (ch == SECRETDOOR && iswearing(R_FTRAPS)) {
		mvaddch(y,x,DOOR);
		return DOOR;
	}
	if ((it = find_mons(y, x)) != NULL) {	/* maybe a monster */
		tp = THINGPTR(it);
		if (ch == 'M' || (tp->t_flags & ISINVIS)) {
			if (ch == 'M')
				ch = tp->t_disguise;
			else if (pl_off(CANSEE)) {
				if (ch == 's')
					ch = ' ';		/* shadows show as a blank */
				else
					ch = mvinch(y, x);	/* hide invisibles */
			}
		}
	}
	return ch;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
callq 0xa960
movsbq %al, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movsbl %al, %edi
callq 0x11a80
testb $0x1, %al
jne 0x118f3
jmp 0x1195f
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
callq 0x12e80
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x11911
movb $0x2e, -0x1(%rbp)
jmp 0x11a75
movl $0xe, %edi
callq 0x18220
testb $0x1, %al
jne 0x11921
jmp 0x1192e
movq -0x30(%rbp), %rax
movl 0x10(%rax), %ecx
orl $0x8, %ecx
movl %ecx, 0x10(%rax)
movq -0x30(%rbp), %rax
movl 0x10(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x1194a
movq -0x30(%rbp), %rax
movsbl 0x14(%rax), %eax
movl %eax, -0x34(%rbp)
jmp 0x11954
movl $0x2e, %eax
movl %eax, -0x34(%rbp)
jmp 0x11954
movl -0x34(%rbp), %eax
movb %al, -0x1(%rbp)
jmp 0x11a75
cmpq $0x26, -0x18(%rbp)
jne 0x119af
movl $0xe, %edi
callq 0x18220
testb $0x1, %al
jne 0x11976
jmp 0x119af
movq 0x21643(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x11992
jmp 0x119a6
movq 0x21627(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl $0x2b, %esi
callq 0x64c0
movb $0x2b, -0x1(%rbp)
jmp 0x11a75
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
callq 0x7c90
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x11a6e
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x4d, -0x18(%rbp)
je 0x119ed
movq -0x28(%rbp), %rax
movq 0x78(%rax), %rax
andq $0x10, %rax
cmpq $0x0, %rax
je 0x11a6c
cmpq $0x4d, -0x18(%rbp)
jne 0x11a06
movq -0x28(%rbp), %rax
movsbq 0x8e(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x11a6a
movl $0x1000, %edi           # imm = 0x1000
callq 0xaa90
testb $0x1, %al
jne 0x11a16
jmp 0x11a68
cmpq $0x73, -0x18(%rbp)
jne 0x11a27
movq $0x20, -0x18(%rbp)
jmp 0x11a66
movq 0x21592(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0x11a4b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x38(%rbp)
jmp 0x11a5d
movq 0x2156e(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
callq 0x6340
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
movl %eax, %eax
movq %rax, -0x18(%rbp)
jmp 0x11a68
jmp 0x11a6a
jmp 0x11a6c
jmp 0x11a6e
movq -0x18(%rbp), %rax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nop