// File: FreeSlave[P]vhlt/hlrad/lightmap.cpp
// Function: AddFaceForVertexNormal_printerror(int, int, dface_t*)
void AddFaceForVertexNormal_printerror (const int edgeabs, const int edgeend, dface_t *const f)
{
	if (DEVELOPER_LEVEL_WARNING <= g_developer)
	{
		int i, e;
		Log ("AddFaceForVertexNormal - bad face:\n");
		Log (" edgeabs=%d edgeend=%d\n", edgeabs, edgeend);
		for (i = 0; i < f->numedges; i++)
		{
			e = g_dsurfedges[f->firstedge + i];
			edgeshare_t *es = &g_edgeshare[abs(e)];
			int v0 = g_dedges[abs(e)].v[0], v1 = g_dedges[abs(e)].v[1];
			Log (" e=%d v0=%d(%f,%f,%f) v1=%d(%f,%f,%f) share0=%d share1=%d\n", e,
				v0, g_dvertexes[v0].point[0], g_dvertexes[v0].point[1], g_dvertexes[v0].point[2],
				v1, g_dvertexes[v1].point[0], g_dvertexes[v1].point[1], g_dvertexes[v1].point[2],
				(es->faces[0]==NULL? -1: es->faces[0]-g_dfaces), (es->faces[1]==NULL? -1: es->faces[1]-g_dfaces));
		}
	}
}

// Assembly:
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movl %esi, 0x80(%rsp)
movq %rdx, 0x78(%rsp)
movl $0x2, %eax
leaq 0x20c9dba(%rip), %rcx   # 0x20f4450
cmpl (%rcx), %eax
jg 0x2a91d
leaq 0x43703(%rip), %rdi     # 0x6dda8
movb $0x0, %al
callq 0xb0d0
movl 0x84(%rsp), %esi
movl 0x80(%rsp), %edx
leaq 0x4370b(%rip), %rdi     # 0x6ddcc
movb $0x0, %al
callq 0xb0d0
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
movq 0x78(%rsp), %rcx
movswl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jge 0x2a91b
movq 0x78(%rsp), %rax
movl 0x4(%rax), %eax
addl 0x74(%rsp), %eax
movslq %eax, %rcx
leaq 0x1e55d35(%rip), %rax   # 0x1e80430
movl (%rax,%rcx,4), %eax
movl %eax, 0x70(%rsp)
movl 0x70(%rsp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movslq %eax, %rcx
leaq 0x2157219(%rip), %rax   # 0x2181930
imulq $0xb0, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x68(%rsp)
movl 0x70(%rsp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movslq %eax, %rcx
leaq 0x1d3bcd5(%rip), %rax   # 0x1d66410
movzwl (%rax,%rcx,4), %eax
movl %eax, 0x64(%rsp)
movl 0x70(%rsp), %eax
movl %eax, %ecx
negl %ecx
cmovnsl %ecx, %eax
movslq %eax, %rcx
leaq 0x1d3bcb8(%rip), %rax   # 0x1d66410
movzwl 0x2(%rax,%rcx,4), %eax
movl %eax, 0x60(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x64(%rsp), %eax
movl %eax, 0x24(%rsp)
movslq 0x64(%rsp), %rcx
leaq 0x103bc93(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x28(%rsp)
movslq 0x64(%rsp), %rcx
leaq 0x103bc72(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss 0x4(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movslq 0x64(%rsp), %rcx
leaq 0x103bc50(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss 0x8(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
movl 0x60(%rsp), %eax
movl %eax, 0x44(%rsp)
movslq 0x60(%rsp), %rcx
leaq 0x103bc26(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
movslq 0x60(%rsp), %rcx
leaq 0x103bc05(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss 0x4(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movslq 0x60(%rsp), %rcx
leaq 0x103bbe3(%rip), %rax   # 0x1066410
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movss 0x8(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, 0x58(%rsp)
movq 0x68(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x2a85c
movq $-0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x2a87d
movq 0x68(%rsp), %rax
movq (%rax), %rax
leaq 0x1bbbba5(%rip), %rcx   # 0x1be6410
subq %rcx, %rax
movl $0x14, %ecx
cqto
idivq %rcx
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x68(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2a8a1
movq $-0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x2a8c3
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
leaq 0x1bbbb5f(%rip), %rcx   # 0x1be6410
subq %rcx, %rax
movl $0x14, %ecx
cqto
idivq %rcx
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %r8
movsd 0x58(%rsp), %xmm5
movsd 0x50(%rsp), %xmm4
movsd 0x48(%rsp), %xmm3
movl 0x44(%rsp), %ecx
movsd 0x38(%rsp), %xmm2
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %esi
movq 0x8(%rsp), %r9
leaq 0x434e0(%rip), %rdi     # 0x6dde4
movb $0x6, %al
callq 0xb0d0
movl 0x74(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x74(%rsp)
jmp 0x2a6d0
jmp 0x2a91d
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)