// File: lotuskip[P]yuxtapa/server/actives.cpp
// Function: render_noccent_at(Coords const&, char*, bool)
void render_noccent_at(const Coords &c, char *target, const bool lit)
{
	list<NOccEnt>::const_iterator it;
	// NOTE: do not draw traps here.
	for(char i = NOE_CORPSE; i < NOE_TORCH; ++i)
	{
		for(it = noccents[i].begin(); it != noccents[i].end(); ++it)
		{
			if(it->getpos() == c)
			{
				it->draw(target, lit);
				return;
			}
		}
	}
	// NOTE: passing false to torches always since they are self-lighting and
	// thus have no separate "lit colour"
	for(it = noccents[NOE_TORCH].begin(); it != noccents[NOE_TORCH].end(); ++it)
	{
		if(it->getpos() == c)
		{
			it->draw(target, false);
			return;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x4a4d0
movb $0x0, -0x21(%rbp)
movsbl -0x21(%rbp), %eax
cmpl $0x6, %eax
jge 0x48c48
movsbq -0x21(%rbp), %rax
leaq 0x4a3f0(%rip), %rdi     # 0x92f30
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x3c950
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3c980
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
movsbq -0x21(%rbp), %rax
leaq 0x4a3bf(%rip), %rdi     # 0x92f30
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x3c9d0
movq %rax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x3c980
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3c9a0
testb $0x1, %al
jne 0x48ba4
jmp 0x48c39
leaq -0x20(%rbp), %rdi
callq 0x3ca00
movq %rax, %rsi
leaq -0x4c(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x1b190
movq -0x90(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x60860
movb %al, -0x85(%rbp)
jmp 0x48bd8
leaq -0x4c(%rbp), %rdi
callq 0x60460
movb -0x85(%rbp), %al
testb $0x1, %al
jne 0x48bed
jmp 0x48c29
leaq -0x20(%rbp), %rdi
callq 0x3ca00
movq %rax, %rdi
movq -0x10(%rbp), %rsi
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0x4d6c0
jmp 0x48d40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x4c(%rbp), %rdi
callq 0x60460
jmp 0x48d49
jmp 0x48c2b
leaq -0x20(%rbp), %rdi
callq 0x3ca30
jmp 0x48b65
jmp 0x48c3b
movb -0x21(%rbp), %al
addb $0x1, %al
movb %al, -0x21(%rbp)
jmp 0x48b27
leaq 0x4a2e1(%rip), %rdi     # 0x92f30
addq $0x90, %rdi
callq 0x3c950
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3c980
movq -0x68(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x4a2b5(%rip), %rdi     # 0x92f30
addq $0x90, %rdi
callq 0x3c9d0
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x3c980
leaq -0x20(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3c9a0
testb $0x1, %al
jne 0x48cae
jmp 0x48d40
leaq -0x20(%rbp), %rdi
callq 0x3ca00
movq %rax, %rsi
leaq -0x84(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x1b190
movq -0xa0(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x60860
movb %al, -0x91(%rbp)
jmp 0x48ce5
leaq -0x84(%rbp), %rdi
callq 0x60460
movb -0x91(%rbp), %al
testb $0x1, %al
jne 0x48cfd
jmp 0x48d30
leaq -0x20(%rbp), %rdi
callq 0x3ca00
movq %rax, %rdi
movq -0x10(%rbp), %rsi
xorl %edx, %edx
callq 0x4d6c0
jmp 0x48d40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x84(%rbp), %rdi
callq 0x60460
jmp 0x48d49
jmp 0x48d32
leaq -0x20(%rbp), %rdi
callq 0x3ca30
jmp 0x48c74
addq $0xa0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x5920
nopw %cs:(%rax,%rax)