// File: /workspace/github_c_makefile_star2_O3/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:
movq $-0x68, %rax
leaq 0x246e6(%rip), %rcx     # 0x2d8b0
andb $-0x2, 0xc4(%rcx,%rax)
addq $0x68, %rax
cmpq $0x340, %rax            # imm = 0x340
jb 0x91ca
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x20dc0(%rip), %rax     # 0x29fb0
movl (%rax), %ecx
cmpl $0x3, %ecx
jl 0x93f4
movq 0x20d96(%rip), %rax     # 0x29f98
movl (%rax), %eax
movq 0x20d25(%rip), %r14     # 0x29f30
leaq 0x277ce(%rip), %r13     # 0x309e0
xorl %ebx, %ebx
cmpl $0x2, %eax
jl 0x93e7
xorl %ebp, %ebp
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x9250
movq (%r14), %rdi
callq 0x6330
movl %eax, %r15d
movl %eax, %r14d
movsbl %r15b, %edi
callq 0xe41e
testb %al, %al
je 0x9283
movq %r14, %r12
jmp 0x926d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xe41e
movb $-0x1, %r15b
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testb %al, %al
je 0x92bd
movl %ebx, %edi
movl %ebp, %esi
xorl %eax, %eax
callq 0xf3d8
testq %rax, %rax
je 0x92b4
orb $0x8, 0x10(%rax)
jmp 0x92b4
cmpl $0x26, %r14d
jne 0x92bd
movq 0x20ca0(%rip), %r14     # 0x29f30
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2b, %r12d
cmpl $-0x1, %eax
je 0x92b4
movq (%r14), %rdi
movl $0x2b, %esi
callq 0x64c0
leaq 0x27735(%rip), %r15     # 0x309f0
jmp 0x92ff
movzbl %r15b, %edi
callq 0xbca6
movq %r14, %r12
testb %al, %al
leaq 0x2771e(%rip), %r15     # 0x309f0
je 0x92ff
movq 0x20c55(%rip), %r14     # 0x29f30
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2e, %r12d
cmpl $-0x1, %eax
je 0x92ff
movq (%r14), %rdi
movl $0x2e, %esi
callq 0x64c0
movq (%r15), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x931d
movq (%r15), %rdi
callq 0x6330
cmpl $0x20, %eax
je 0x9363
movl %ebx, %edi
movl %ebp, %esi
callq 0x7502
testq %rax, %rax
je 0x9338
movq 0x10(%rax), %rax
movb %r12b, 0x8f(%rax)
jmp 0x9363
movq 0x20bf1(%rip), %r14     # 0x29f30
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2e, %r12d
cmpl $-0x1, %eax
je 0x9363
movq (%r14), %rdi
movl $0x2e, %esi
callq 0x64c0
movq (%r13), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x9383
movq (%r13), %rdi
callq 0x6330
movl %eax, %r15d
jmp 0x9389
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
callq 0x65b0
movq (%rax), %rax
movslq %r15d, %rcx
movzwl (%rax,%rcx,2), %r14d
movq (%r13), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x93c1
btl $0xa, %r14d
jae 0x93b5
movl %r15d, %r12d
movq (%r13), %rdi
movl %r12d, %esi
callq 0x64c0
incl %ebp
movq 0x20bce(%rip), %rax     # 0x29f98
movl (%rax), %eax
leal -0x1(%rax), %ecx
cmpl %ecx, %ebp
movq 0x20b58(%rip), %r14     # 0x29f30
jl 0x921f
movq 0x20bcb(%rip), %rcx     # 0x29fb0
movl (%rcx), %ecx
incl %ebx
leal -0x2(%rcx), %edx
cmpl %edx, %ebx
jl 0x9214
leaq 0x244a8(%rip), %rax     # 0x2d8a3
movb $0x0, (%rax)
leaq 0x275db(%rip), %rax     # 0x309e0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6200