// File: /workspace/github_cpp_makefile_star2_O1/lotuskip[P]yuxtapa/server/actives.cpp
// Function: is_dynlit(Coords const&)
bool is_dynlit(const Coords &c)
{
	// A tile is dynamically lit <=> there is a lighting OccEnt close to it,
	// in LOS. (There is no such thing as a "dynamic light" entity.)
	for(list<PCEnt>::const_iterator pc_it = PCs.begin(); pc_it != PCs.end(); ++pc_it)
	{
		/* NOTE! This works as long as CARRIED_TORCH_RAD <= 6. If it becomes 7
		 * or more, we need to worry about "blind spots" the same way as with
		 * the LOS considerations in update_static_light. */
		if(!pc_it->isvoid() && pc_it->torch_is_lit()
			&& Game::curmap->LOS_between(c, pc_it->getpos(), CARRIED_TORCH_RAD))
			return true;
	}
	for(list<MM>::const_iterator m_it = MMs.begin(); m_it != MMs.end(); ++m_it)
	{
		if(!m_it->isvoid()
			&& Game::curmap->LOS_between(c, m_it->getpos(), 1))
			return true;
	}
	for(list<Zap>::const_iterator z_it = zaps.begin(); z_it != zaps.end(); ++z_it)
	{
		if(!z_it->isvoid()
			&& Game::curmap->LOS_between(c, z_it->getpos(), 1))
			return true;
	}
	for(list<Coords>::const_iterator fb_it = fball_centers.begin(); 
		fb_it != fball_centers.end(); ++fb_it)
	{
		// fireballs light a rad 4
		if(Game::curmap->LOS_between(c, *fb_it, 4))
			return true;
	}
	return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x24c95(%rip), %r12     # 0x45ee0
leaq -0x34(%rbp), %r14
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x212c0
cmpb $0x0, 0x1e(%r13)
jne 0x21297
cmpb $0x1, 0x30(%r13)
jne 0x21297
leaq 0x239f8(%rip), %rax     # 0x44c68
movq (%rax), %rdi
movl 0x18(%r13), %eax
movl %eax, -0x34(%rbp)
movq %rbx, %rsi
movq %r14, %rdx
movl $0x6, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x174a8
movl %eax, %r15d
movb $0x1, %al
jmp 0x2129c
xorl %eax, %eax
xorl %r15d, %r15d
testb %al, %al
je 0x212a8
movq %r14, %rdi
callq 0x2bbf6
testb %r15b, %r15b
je 0x21252
movb $0x1, %r14b
leaq 0x24c29(%rip), %rax     # 0x45ee0
cmpq %rax, %r13
jne 0x213dd
leaq 0x24be9(%rip), %r12     # 0x45eb0
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x21332
movb 0x1e(%r13), %r14b
testb %r14b, %r14b
je 0x212e1
xorl %r15d, %r15d
jmp 0x2130c
leaq 0x23980(%rip), %rax     # 0x44c68
movq (%rax), %rdi
movl 0x18(%r13), %eax
movl %eax, -0x30(%rbp)
movq %rbx, %rsi
leaq -0x30(%rbp), %rdx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x174a8
movl %eax, %r15d
testb %r14b, %r14b
jne 0x2131a
leaq -0x30(%rbp), %rdi
callq 0x2bbf6
testb %r15b, %r15b
je 0x212ca
movb $0x1, %r14b
leaq 0x24b87(%rip), %rax     # 0x45eb0
cmpq %rax, %r13
jne 0x213dd
leaq 0x24b8f(%rip), %r12     # 0x45ec8
movq %r12, %r13
movq (%r13), %r13
cmpq %r12, %r13
je 0x213a0
movb 0x1e(%r13), %r14b
testb %r14b, %r14b
je 0x21353
xorl %r15d, %r15d
jmp 0x2137e
leaq 0x2390e(%rip), %rax     # 0x44c68
movq (%rax), %rdi
movl 0x18(%r13), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rsi
leaq -0x2c(%rbp), %rdx
movl $0x1, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x174a8
movl %eax, %r15d
testb %r14b, %r14b
jne 0x2138c
leaq -0x2c(%rbp), %rdi
callq 0x2bbf6
testb %r15b, %r15b
je 0x2133c
movb $0x1, %r14b
leaq 0x24b2d(%rip), %rax     # 0x45ec8
cmpq %rax, %r13
jne 0x213dd
leaq 0x24c19(%rip), %r15     # 0x45fc0
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
setne %r14b
je 0x213dd
leaq 0x238aa(%rip), %rax     # 0x44c68
movq (%rax), %rdi
leaq 0x10(%r12), %rdx
movq %rbx, %rsi
movl $0x4, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x174a8
testb %al, %al
je 0x213aa
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x2c(%rbp), %rdi
jmp 0x21408
movq %rax, %rbx
leaq -0x34(%rbp), %rdi
jmp 0x21408
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x2bbf6
movq %rbx, %rdi
callq 0x4750