// File: /workspace/github_c_makefile_star2_O1/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 0x24632(%rip), %rcx     # 0x2d8b0
andb $-0x2, 0xc4(%rcx,%rax)
addq $0x68, %rax
cmpq $0x340, %rax            # imm = 0x340
jb 0x927e
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x20d0c(%rip), %rax     # 0x29fb0
cmpl $0x3, (%rax)
jl 0x9476
movq 0x20c7c(%rip), %r14     # 0x29f30
leaq 0x27735(%rip), %r12     # 0x309f0
leaq 0x2771e(%rip), %r13     # 0x309e0
xorl %ebx, %ebx
movq 0x20ccd(%rip), %rax     # 0x29f98
cmpl $0x2, (%rax)
jl 0x9460
xorl %ebp, %ebp
movl %ebx, 0x4(%rsp)
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x92f8
movq (%r14), %rdi
callq 0x6330
movl %eax, %r15d
jmp 0x92fe
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movsbl %r15b, %edi
callq 0xe4fd
testb %al, %al
je 0x9321
movl %ebx, %edi
movl %ebp, %esi
xorl %eax, %eax
callq 0xf4ea
testq %rax, %rax
je 0x9379
orb $0x8, 0x10(%rax)
jmp 0x9379
cmpl $0x26, %r15d
jne 0x9348
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2b, %r15d
cmpl $-0x1, %eax
je 0x9379
movq (%r14), %rdi
movl $0x2b, %esi
jmp 0x9374
movzbl %r15b, %edi
callq 0xbd58
testb %al, %al
je 0x9379
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2e, %r15d
cmpl $-0x1, %eax
je 0x9379
movq (%r14), %rdi
movl $0x2e, %esi
callq 0x64c0
movq (%r12), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x9399
movq (%r12), %rdi
callq 0x6330
cmpl $0x20, %eax
je 0x93d8
movl %ebx, %edi
movl %ebp, %esi
callq 0x75c5
testq %rax, %rax
je 0x93b4
movq 0x10(%rax), %rax
movb %r15b, 0x8f(%rax)
jmp 0x93d8
movq (%r14), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movl $0x2e, %r15d
cmpl $-0x1, %eax
je 0x93d8
movq (%r14), %rdi
movl $0x2e, %esi
callq 0x64c0
movq %r14, %r12
movq (%r13), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x6490
movq %r15, %rbx
cmpl $-0x1, %eax
je 0x93fe
movq (%r13), %rdi
callq 0x6330
movl %eax, %r14d
jmp 0x9404
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
callq 0x65b0
movq (%rax), %rax
movslq %r14d, %rcx
movzwl (%rax,%rcx,2), %r15d
movq (%r13), %rdi
movl 0x4(%rsp), %esi
movl %ebp, %edx
callq 0x6490
cmpl $-0x1, %eax
je 0x943d
btl $0xa, %r15d
movq (%r13), %rdi
cmovael %ebx, %r14d
movl %r14d, %esi
callq 0x64c0
incl %ebp
movq 0x20b52(%rip), %rax     # 0x29f98
movl (%rax), %eax
decl %eax
cmpl %eax, %ebp
movq %r12, %r14
leaq 0x2759a(%rip), %r12     # 0x309f0
movl 0x4(%rsp), %ebx
jl 0x92da
incl %ebx
movq 0x20b47(%rip), %rax     # 0x29fb0
movl (%rax), %eax
addl $-0x2, %eax
cmpl %eax, %ebx
jl 0x92c4
leaq 0x24426(%rip), %rax     # 0x2d8a3
movb $0x0, (%rax)
leaq 0x27559(%rip), %rax     # 0x309e0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6200