// File: /workspace/github_c_makefile_star2_O0/ajpaulson[P]srogue11/disply.c
// Function: displevl
void displevl()
{
	unsigned long ch, mch;
	int i,j;
	struct room *rp;

	for (rp = rooms; rp < &rooms[MAXROOMS]; rp++)
		rp->r_flags &= ~ISDARK;

	for (i = 0; i < LINES - 2; i++) {
		for (j = 0; j < COLS - 1; j++) {
			ch = mvinch(i,j);
			if (isatrap(ch)) {
				struct trap *what;

				what = trap_at(i, j);
				if (what != NULL)
					what->tr_flags |= ISFOUND;
			}
			else if (ch == SECRETDOOR) {
				ch = DOOR;
				mvaddch(i, j, ch);
			}
			else if (illeg_ch(ch)) {
				ch = FLOOR;
				mvaddch(i, j, ch);
			}
			if (mvwinch(mw, i, j) != ' ') {
				struct linked_list *what;
				struct thing *it;

				what = find_mons(i, j);
				if (what == NULL) {
					ch = FLOOR;
					mvaddch(i, j, ch);
				}
				else {
					it = THINGPTR(what);
					it->t_oldch = ch;
				}
			}
			mch = mvwinch(cw, i, j);
			if (isalpha(mch))
				ch = mch;
			mvwaddch(cw, i, j, ch);
		}
	}
	nochange = FALSE;	/* display status again */
	draw(cw);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
leaq 0x2c791(%rip), %rax     # 0x36d20
movq %rax, -0x20(%rbp)
leaq 0x2c786(%rip), %rax     # 0x36d20
addq $0x3a8, %rax            # imm = 0x3A8
cmpq %rax, -0x20(%rbp)
jae 0xa5c1
movq -0x20(%rbp), %rax
movl 0x5c(%rax), %ecx
andl $-0x2, %ecx
movl %ecx, 0x5c(%rax)
movq -0x20(%rbp), %rax
addq $0x68, %rax
movq %rax, -0x20(%rbp)
jmp 0xa593
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq 0x28a0e(%rip), %rcx     # 0x32fe0
movl (%rcx), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0xa869
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq 0x289e8(%rip), %rcx     # 0x32fd8
movl (%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0xa859
movq 0x289bc(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa621
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x3c(%rbp)
jmp 0xa633
movq 0x28998(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
callq 0x6340
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, %eax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movsbl %al, %edi
callq 0x11a80
testb $0x1, %al
jne 0xa64e
jmp 0xa678
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movb $0x0, %al
callq 0x12e80
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0xa673
movq -0x28(%rbp), %rax
movl 0x10(%rax), %ecx
orl $0x8, %ecx
movl %ecx, 0x10(%rax)
jmp 0xa709
cmpq $0x26, -0x8(%rbp)
jne 0xa6ba
movq $0x2b, -0x8(%rbp)
movq 0x28932(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa6a3
jmp 0xa6b8
movq 0x28916(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl %eax, %esi
callq 0x64c0
jmp 0xa707
movq -0x8(%rbp), %rax
movzbl %al, %edi
callq 0xe220
testb $0x1, %al
jne 0xa6cc
jmp 0xa705
movq $0x2e, -0x8(%rbp)
movq 0x288e5(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa6f0
jmp 0xa705
movq 0x288c9(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl %eax, %esi
callq 0x64c0
jmp 0xa707
jmp 0xa709
leaq 0x2f750(%rip), %rax     # 0x39e60
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa72d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x40(%rbp)
jmp 0xa73f
leaq 0x2f72c(%rip), %rax     # 0x39e60
movq (%rax), %rdi
callq 0x6340
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
cmpl $0x20, %eax
je 0xa7b6
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
callq 0x7c90
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0xa798
movq $0x2e, -0x8(%rbp)
movq 0x28854(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa781
jmp 0xa796
movq 0x28838(%rip), %rax     # 0x32fc0
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl %eax, %esi
callq 0x64c0
jmp 0xa7b4
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movb %al, %cl
movq -0x38(%rbp), %rax
movb %cl, 0x8f(%rax)
jmp 0xa7b6
leaq 0x2f693(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa7da
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x44(%rbp)
jmp 0xa7ec
leaq 0x2f66f(%rip), %rax     # 0x39e50
movq (%rax), %rdi
callq 0x6340
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, %eax
movq %rax, -0x10(%rbp)
callq 0x65b0
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
je 0xa81a
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x2f62f(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x6490
cmpl $-0x1, %eax
jne 0xa836
jmp 0xa84b
leaq 0x2f613(%rip), %rax     # 0x39e50
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movl %eax, %esi
callq 0x64c0
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xa5e6
jmp 0xa85b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xa5c8
leaq 0x2c4a3(%rip), %rax     # 0x36d13
movb $0x0, (%rax)
leaq 0x2f5d6(%rip), %rax     # 0x39e50
movq (%rax), %rdi
callq 0x61f0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)