// File: lotuskip[P]yuxtapa/server/actives.cpp
// Function: render_occent_at(Coords const&, char*, bool)
bool render_occent_at(const Coords &c, char *target, const bool lit)
{
	for(list<OccEnt>::const_iterator b_it = boulders.begin();
		b_it != boulders.end(); ++b_it)
	{
		if(b_it->getpos() == c)
		{
			b_it->draw(target, lit);
			return true;
		}
	}
	for(list<Arrow>::const_iterator a_it = arrows.begin();
		a_it != arrows.end(); ++a_it)
	{
		if(a_it->getpos() == c)
		{
			a_it->draw(target, lit);
			return true;
		}
	}
	// NOTE: passing false to mms and zaps since they are self-lighting and
	// thus have no separate "lit colour"
	for(list<MM>::const_iterator m_it = MMs.begin(); m_it != MMs.end(); ++m_it)
	{
		if(m_it->getpos() == c)
		{
			m_it->draw(target, false);
			return true;
		}
	}
	for(list<Zap>::const_iterator z_it = zaps.begin(); z_it != zaps.end(); ++z_it)
	{
		if(z_it->getpos() == c)
		{
			z_it->draw(target, false);
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
leaq 0x4a8ef(%rip), %rdi     # 0x92ff0
callq 0x3d130
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x3d240
leaq 0x4a8d2(%rip), %rdi     # 0x92ff0
callq 0x3d190
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3d240
leaq -0x28(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3db80
testb $0x1, %al
jne 0x4874a
jmp 0x487e3
leaq -0x28(%rbp), %rdi
callq 0x3dbb0
movq %rax, %rsi
leaq -0x44(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x1b190
movq -0xd8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x60860
movb %al, -0xcd(%rbp)
jmp 0x4877e
leaq -0x44(%rbp), %rdi
callq 0x60460
movb -0xcd(%rbp), %al
testb $0x1, %al
jne 0x48793
jmp 0x487d3
leaq -0x28(%rbp), %rdi
callq 0x3dbb0
movq %rax, %rdi
movq -0x18(%rbp), %rsi
movb -0x19(%rbp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0x4d6c0
movb $0x1, -0x1(%rbp)
jmp 0x48ae4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x44(%rbp), %rdi
callq 0x60460
jmp 0x48af2
jmp 0x487d5
leaq -0x28(%rbp), %rdi
callq 0x3dbe0
jmp 0x48717
leaq 0x4a81e(%rip), %rdi     # 0x93008
callq 0x3cac0
movq %rax, -0x68(%rbp)
leaq -0x60(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x3ceb0
leaq 0x4a801(%rip), %rdi     # 0x93008
callq 0x3cb20
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3ceb0
leaq -0x60(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x4a350
testb $0x1, %al
jne 0x48833
jmp 0x488cc
leaq -0x60(%rbp), %rdi
callq 0x4a380
movq %rax, %rsi
leaq -0x7c(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x1b190
movq -0xe8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x60860
movb %al, -0xd9(%rbp)
jmp 0x48867
leaq -0x7c(%rbp), %rdi
callq 0x60460
movb -0xd9(%rbp), %al
testb $0x1, %al
jne 0x4887c
jmp 0x488bc
leaq -0x60(%rbp), %rdi
callq 0x4a380
movq %rax, %rdi
movq -0x18(%rbp), %rsi
movb -0x19(%rbp), %al
andb $0x1, %al
movzbl %al, %edx
callq 0x4d6c0
movb $0x1, -0x1(%rbp)
jmp 0x48ae4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x7c(%rbp), %rdi
callq 0x60460
jmp 0x48af2
jmp 0x488be
leaq -0x60(%rbp), %rdi
callq 0x4a3b0
jmp 0x48800
leaq 0x4a74d(%rip), %rdi     # 0x93020
callq 0x3cbc0
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x3cf20
leaq 0x4a727(%rip), %rdi     # 0x93020
callq 0x3cc20
movq %rax, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x3cf20
leaq -0x88(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4a3d0
testb $0x1, %al
jne 0x48934
jmp 0x489d9
leaq -0x88(%rbp), %rdi
callq 0x4a400
movq %rax, %rsi
leaq -0xa4(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x1b190
movq -0xf8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x60860
movb %al, -0xe9(%rbp)
jmp 0x4896e
leaq -0xa4(%rbp), %rdi
callq 0x60460
movb -0xe9(%rbp), %al
testb $0x1, %al
jne 0x48986
jmp 0x489c6
leaq -0x88(%rbp), %rdi
callq 0x4a400
movq %rax, %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x4d6c0
movb $0x1, -0x1(%rbp)
jmp 0x48ae4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa4(%rbp), %rdi
callq 0x60460
jmp 0x48af2
jmp 0x489c8
leaq -0x88(%rbp), %rdi
callq 0x4a430
jmp 0x488f2
leaq 0x4a658(%rip), %rdi     # 0x93038
callq 0x3ccc0
movq %rax, -0xb8(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x3cf90
leaq 0x4a632(%rip), %rdi     # 0x93038
callq 0x3cd20
movq %rax, -0xc8(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x3cf90
leaq -0xb0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x4a450
testb $0x1, %al
jne 0x48a41
jmp 0x48ae0
leaq -0xb0(%rbp), %rdi
callq 0x4a480
movq %rax, %rsi
leaq -0xcc(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x1b190
movq -0x108(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x60860
movb %al, -0xf9(%rbp)
jmp 0x48a7b
leaq -0xcc(%rbp), %rdi
callq 0x60460
movb -0xf9(%rbp), %al
testb $0x1, %al
jne 0x48a93
jmp 0x48acd
leaq -0xb0(%rbp), %rdi
callq 0x4a480
movq %rax, %rdi
movq -0x18(%rbp), %rsi
xorl %edx, %edx
callq 0x4d6c0
movb $0x1, -0x1(%rbp)
jmp 0x48ae4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xcc(%rbp), %rdi
callq 0x60460
jmp 0x48af2
jmp 0x48acf
leaq -0xb0(%rbp), %rdi
callq 0x4a4b0
jmp 0x489ff
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x5920
nopl (%rax,%rax)