// File: /workspace/github_c_makefile_star2_O2/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:
xorl %eax, %eax
leaq 0x24887(%rip), %rcx     # 0x2d8a0
cmpq $0x3a8, %rax            # imm = 0x3A8
jae 0x902c
andb $-0x2, 0x5c(%rcx,%rax)
addq $0x68, %rax
jmp 0x9019
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x20efa(%rip), %r12     # 0x29f38
leaq 0x2799b(%rip), %rbp     # 0x309e0
xorl %r14d, %r14d
movq 0x20f71(%rip), %rax     # 0x29fc0
movl (%rax), %eax
addl $-0x2, %eax
cmpl %eax, %r14d
jge 0x921a
xorl %r15d, %r15d
movq 0x20f39(%rip), %rax     # 0x29fa0
movl (%rax), %eax
decl %eax
cmpl %eax, %r15d
jge 0x9212
movq (%r12), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
cmpl $-0x1, %eax
je 0x9095
movq (%r12), %rdi
callq 0x6320
movl %eax, %ebx
jmp 0x909a
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movsbl %bl, %edi
callq 0xdbbb
testb %al, %al
je 0x90be
movl %r14d, %edi
movl %r15d, %esi
xorl %eax, %eax
callq 0xea05
testq %rax, %rax
je 0x911c
orb $0x8, 0x10(%rax)
jmp 0x911c
cmpl $0x26, %ebx
jne 0x90ea
movq (%r12), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
pushq $0x2b
popq %rbx
cmpl $-0x1, %eax
je 0x911c
movq (%r12), %rdi
pushq $0x2b
popq %rsi
callq 0x64a0
pushq $0x2b
jmp 0x911b
movzbl %bl, %edi
callq 0xb758
testb %al, %al
je 0x911c
movq (%r12), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
pushq $0x2e
popq %rbx
cmpl $-0x1, %eax
je 0x911c
movq (%r12), %rdi
pushq $0x2e
popq %rsi
callq 0x64a0
pushq $0x2e
popq %rbx
movq (%rbp), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
cmpl $-0x1, %eax
je 0x913e
movq (%rbp), %rdi
callq 0x6320
cmpl $0x20, %eax
je 0x915c
movl %r14d, %edi
movl %r15d, %esi
callq 0x745e
testq %rax, %rax
je 0x91dc
movq 0x10(%rax), %rax
movb %bl, 0x8f(%rax)
leaq 0x2786d(%rip), %rbp     # 0x309d0
movq (%rbp), %rdi
movl %r14d, %r13d
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
pushq $-0x1
popq %r12
cmpl $-0x1, %eax
je 0x918a
movq (%rbp), %rdi
callq 0x6320
movl %eax, %r12d
callq 0x6590
movq (%rax), %rax
movslq %r12d, %rcx
movzwl (%rax,%rcx,2), %r14d
movq (%rbp), %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0x6470
cmpl $-0x1, %eax
je 0x91c3
btl $0xa, %r14d
movq (%rbp), %rdi
cmovael %ebx, %r12d
movl %r12d, %esi
callq 0x64a0
incl %r15d
movq 0x20d6b(%rip), %r12     # 0x29f38
leaq 0x2780c(%rip), %rbp     # 0x309e0
movl %r13d, %r14d
jmp 0x9060
movq (%r12), %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x6470
pushq $0x2e
popq %rbx
cmpl $-0x1, %eax
leaq 0x277d8(%rip), %rbp     # 0x309d0
je 0x9163
movq (%r12), %rdi
pushq $0x2e
popq %rsi
callq 0x64a0
pushq $0x2e
popq %rbx
jmp 0x9163
incl %r14d
jmp 0x9048
leaq 0x24672(%rip), %rax     # 0x2d893
movb $0x0, (%rax)
leaq 0x277a5(%rip), %rax     # 0x309d0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6200