// File: /workspace/github_cpp_makefile_star2_O3/FreeSlave[P]vhlt/hlbsp/qbsp.cpp
// Function: SplitFace(face_s*, plane_t const*, face_s**, face_s**)
void            SplitFace(face_t* in, const dplane_t* const split, face_t** front, face_t** back)
{
    SplitFaceTmp(in, split, front, back);

    // free the original face now that is is represented by the fragments
    if (*front && *back)
    {
        FreeFace(in);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r13
movl 0x2c(%rdi), %eax
testl %eax, %eax
movq %rdi, (%rsp)
jns 0x14773
leaq 0xd156(%rip), %rdi      # 0x218bb
xorl %eax, %eax
callq 0x9e9c
movq (%rsp), %rdi
movl 0x2c(%rdi), %eax
xorl %ecx, %ecx
movl %ecx, 0x24(%rsp)
movl %ecx, 0x8(%rsp)
movl %ecx, 0xc(%rsp)
testl %eax, %eax
jle 0x14d35
leaq 0x38(%rdi), %rcx
movq %rcx, 0x28(%rsp)
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm2
movsd 0x10(%r13), %xmm1
movsd 0x30(%r13), %xmm3
movl %eax, %eax
leaq 0x48(%rdi), %rcx
xorl %edx, %edx
movsd 0xbcc6(%rip), %xmm4     # 0x20480
leaq 0xc(%rsp), %rsi
movsd 0xbcd9(%rip), %xmm5     # 0x204a0
leaq 0x8(%rsp), %r10
leaq 0x24(%rsp), %r8
movsd -0x8(%rcx), %xmm6
mulsd %xmm2, %xmm6
movsd -0x10(%rcx), %xmm7
mulsd %xmm0, %xmm7
addsd %xmm6, %xmm7
movsd (%rcx), %xmm6
mulsd %xmm1, %xmm6
addsd %xmm7, %xmm6
subsd %xmm3, %xmm6
movsd %xmm6, 0x130(%rsp,%rdx,8)
ucomisd %xmm4, %xmm6
jbe 0x14813
movl $0x0, 0x60(%rsp,%rdx,4)
movq %rsi, %r9
jmp 0x14831
ucomisd %xmm6, %xmm5
jbe 0x14826
movl $0x1, 0x60(%rsp,%rdx,4)
movq %r10, %r9
jmp 0x14831
movl $0x2, 0x60(%rsp,%rdx,4)
movq %r8, %r9
incl (%r9)
incq %rdx
addq $0x18, %rcx
cmpq %rdx, %rax
jne 0x147d1
movl 0x60(%rsp), %esi
movsd 0x130(%rsp), %xmm4
movl 0xc(%rsp), %ecx
movl 0x8(%rsp), %edx
movl %esi, 0x60(%rsp,%rax,4)
movsd %xmm4, 0x130(%rsp,%rax,8)
movl %ecx, %esi
orl %edx, %esi
je 0x14d53
testl %edx, %edx
setne %dl
xorl %eax, %eax
testl %ecx, %ecx
setne %sil
movl $0x0, %ecx
cmovneq %rdi, %rcx
cmoveq %rdi, %rax
andb %dl, %sil
cmpb $0x1, %sil
jne 0x14df5
movl $0x1, %edi
movl $0x4b8, %esi            # imm = 0x4B8
callq 0x41e0
movq %rax, %rbp
movq (%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%rbp)
movq (%rsp), %rax
movl 0x30(%rax), %eax
movl %eax, 0x30(%rbp)
movq (%rsp), %rax
movups 0x8(%rax), %xmm0
movups %xmm0, 0x8(%rbp)
movq %rbp, (%rbx)
movl $0x1, %edi
movl $0x4b8, %esi            # imm = 0x4B8
callq 0x41e0
movq (%rsp), %r9
movq %rax, %r12
movq 0x20(%r9), %rax
movq %rax, 0x20(%r12)
movl 0x30(%r9), %eax
movl %eax, 0x30(%r12)
movupd 0x8(%r9), %xmm0
movupd %xmm0, 0x8(%r12)
movq %r12, (%r15)
leaq 0x2c(%rbp), %r10
cmpl $0x0, 0x2c(%r9)
movq %r10, 0x10(%rsp)
jle 0x14b72
movq %r15, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
leaq 0x2c(%r12), %r14
leaq 0x38(%r12), %rbx
leaq 0x38(%rbp), %rax
movq %rax, 0x18(%rsp)
movsd 0xb78d(%rip), %xmm3     # 0x200c8
movsd 0xb935(%rip), %xmm4     # 0x20278
movapd 0xb965(%rip), %xmm5     # 0x202b0
xorl %r15d, %r15d
cmpl $0x30, (%r10)
jg 0x1495a
cmpl $0x31, (%r14)
jl 0x14989
leaq 0xcf70(%rip), %rdi      # 0x218d1
xorl %eax, %eax
callq 0x9e9c
movapd 0xb940(%rip), %xmm5     # 0x202b0
movsd 0xb900(%rip), %xmm4     # 0x20278
movsd 0xb748(%rip), %xmm3     # 0x200c8
movq 0x10(%rsp), %r10
movq (%rsp), %r9
leaq (%r15,%r15,2), %rax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movl 0x60(%rsp,%r15,4), %eax
movsd (%rsi), %xmm0
movq %r14, %rcx
movq %rbx, %rdx
testl %eax, %eax
je 0x14a1c
cmpl $0x2, %eax
jne 0x14a14
movslq (%r10), %rax
leaq (%rax,%rax,2), %rax
movq 0x18(%rsp), %rdx
movsd %xmm0, (%rdx,%rax,8)
movsd 0x8(%rsi), %xmm1
movsd %xmm1, 0x8(%rdx,%rax,8)
movsd 0x10(%rsi), %xmm2
movslq (%r10), %rax
leaq (%rax,%rax,2), %rcx
movsd %xmm2, 0x10(%rdx,%rcx,8)
incl %eax
movl %eax, (%r10)
movslq (%r14), %rax
leaq (%rax,%rax,2), %rax
movsd %xmm0, (%rbx,%rax,8)
movsd %xmm1, 0x8(%rbx,%rax,8)
movslq (%r14), %rax
leaq (%rax,%rax,2), %rcx
movsd %xmm2, 0x10(%rbx,%rcx,8)
incl %eax
movl %eax, (%r14)
movl 0x2c(%r9), %edi
incq %r15
movq %r15, %rcx
jmp 0x14b3a
movq %r10, %rcx
movq 0x18(%rsp), %rdx
movslq (%rcx), %rdi
leaq (%rdi,%rdi,2), %rdi
movsd %xmm0, (%rdx,%rdi,8)
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x8(%rdx,%rdi,8)
movsd 0x10(%rsi), %xmm0
movslq (%rcx), %rdi
leaq (%rdi,%rdi,2), %r8
movsd %xmm0, 0x10(%rdx,%r8,8)
leal 0x1(%rdi), %edx
movl %edx, (%rcx)
leaq 0x1(%r15), %rcx
movl 0x64(%rsp,%r15,4), %edx
cmpl $0x2, %edx
sete %dil
cmpl %eax, %edx
sete %al
orb %dil, %al
movl 0x2c(%r9), %edi
jne 0x14b3a
movl %ecx, %eax
cltd
idivl %edi
leaq (%rdx,%rdx,2), %rax
movq 0x28(%rsp), %rdx
leaq (%rdx,%rax,8), %rax
movsd 0x130(%rsp,%r15,8), %xmm0
movapd %xmm0, %xmm1
subsd 0x138(%rsp,%r15,8), %xmm1
divsd %xmm1, %xmm0
xorl %edx, %edx
movsd (%r13,%rdx,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x14ab4
jp 0x14ab4
movsd 0x30(%r13), %xmm1
jmp 0x14ade
ucomisd %xmm4, %xmm1
jne 0x14ac8
jp 0x14ac8
movsd 0x30(%r13), %xmm1
xorpd %xmm5, %xmm1
jmp 0x14ade
movsd (%rsi,%rdx,8), %xmm2
movsd (%rax,%rdx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x40(%rsp,%rdx,8)
incq %rdx
cmpq $0x3, %rdx
jne 0x14a9d
movslq (%r10), %rax
leaq (%rax,%rax,2), %rax
movapd 0x40(%rsp), %xmm0
movq 0x18(%rsp), %rsi
movupd %xmm0, (%rsi,%rax,8)
movsd 0x50(%rsp), %xmm1
movslq (%r10), %rax
leaq (%rax,%rax,2), %rdx
movsd %xmm1, 0x10(%rsi,%rdx,8)
incl %eax
movl %eax, (%r10)
movslq (%r14), %rax
leaq (%rax,%rax,2), %rax
movupd %xmm0, (%rbx,%rax,8)
movslq (%r14), %rax
leaq (%rax,%rax,2), %rdx
movsd %xmm1, 0x10(%rbx,%rdx,8)
incl %eax
movl %eax, (%r14)
movslq %edi, %rax
movq %rcx, %r15
cmpq %rax, %rcx
jl 0x1494e
cmpl $0x30, (%r10)
movq 0x38(%rsp), %rbx
movq 0x30(%rsp), %r15
jg 0x14b5f
cmpl $0x31, (%r14)
jl 0x14b72
leaq 0xcd6b(%rip), %rdi      # 0x218d1
xorl %eax, %eax
callq 0x9e9c
movq 0x10(%rsp), %r10
movl $0x20, %edi
movq %r10, %r13
callq 0x42f0
movq %rax, %r14
movl (%r13), %esi
movq %rax, %rdi
callq 0xc128
cmpl $0x0, (%r13)
jle 0x14bd8
xorl %eax, %eax
xorl %ecx, %ecx
movsd 0x38(%rbp,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, (%rdx,%rax)
movsd 0x40(%rbp,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, 0x8(%rdx,%rax)
movsd 0x48(%rbp,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, 0x10(%rdx,%rax)
incq %rcx
movslq 0x2c(%rbp), %rdx
addq $0x18, %rax
cmpq %rdx, %rcx
jl 0x14b99
movsd 0xb8a0(%rip), %xmm0     # 0x20480
movq %r14, %rdi
callq 0xc594
movslq 0x8(%r14), %rcx
movq 0x10(%rsp), %rax
movl %ecx, (%rax)
testq %rcx, %rcx
jle 0x14c32
movq 0x10(%r14), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
movsd (%rax,%rdx), %xmm0
movsd %xmm0, 0x38(%rbp,%rdx)
movsd 0x8(%rax,%rdx), %xmm0
movsd %xmm0, 0x40(%rbp,%rdx)
movsd 0x10(%rax,%rdx), %xmm0
movsd %xmm0, 0x48(%rbp,%rdx)
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x14c06
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x14c4c
movq $0x0, (%rbx)
movl $0x20, %edi
callq 0x42f0
movq %rax, %r14
movl 0x2c(%r12), %esi
movq %rax, %rdi
callq 0xc128
cmpl $0x0, 0x2c(%r12)
jle 0x14cb5
xorl %eax, %eax
xorl %ecx, %ecx
movsd 0x38(%r12,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, (%rdx,%rax)
movsd 0x40(%r12,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, 0x8(%rdx,%rax)
movsd 0x48(%r12,%rax), %xmm0
movq 0x10(%r14), %rdx
movsd %xmm0, 0x10(%rdx,%rax)
incq %rcx
movslq 0x2c(%r12), %rdx
addq $0x18, %rax
cmpq %rdx, %rcx
jl 0x14c72
movsd 0xb7c3(%rip), %xmm0     # 0x20480
movq %r14, %rdi
callq 0xc594
movslq 0x8(%r14), %rcx
movl %ecx, 0x2c(%r12)
testq %rcx, %rcx
jle 0x14d10
movq 0x10(%r14), %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
movsd (%rax,%rdx), %xmm0
movsd %xmm0, 0x38(%r12,%rdx)
movsd 0x8(%rax,%rdx), %xmm0
movsd %xmm0, 0x40(%r12,%rdx)
movsd 0x10(%rax,%rdx), %xmm0
movsd %xmm0, 0x48(%r12,%rdx)
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0x14ce1
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
cmpl $0x0, 0x2c(%r12)
movq (%rsp), %rdi
jne 0x14dfb
movq $0x0, (%r15)
jmp 0x14e1d
cmpl $0x0, 0x14(%rdi)
je 0x14df0
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm2
movsd 0x10(%r13), %xmm1
jmp 0x14d59
cmpl $0x0, 0x14(%rdi)
je 0x14d9a
movslq 0x8(%rdi), %rax
shlq $0x6, %rax
leaq 0x20beca8(%rip), %rcx   # 0x20d3a10
mulsd 0x8(%rax,%rcx), %xmm2
mulsd (%rax,%rcx), %xmm0
addsd %xmm2, %xmm0
mulsd 0x10(%rax,%rcx), %xmm1
addsd %xmm0, %xmm1
xorl %eax, %eax
ucomisd 0x838d(%rip), %xmm1     # 0x1d118
movl $0x0, %ecx
cmovaq %rdi, %rcx
cmovbeq %rdi, %rax
jmp 0x14df5
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
xorpd %xmm4, %xmm4
xorl %ecx, %ecx
movsd 0x40(%rdi,%rcx), %xmm5
mulsd %xmm2, %xmm5
movsd 0x38(%rdi,%rcx), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm5, %xmm6
movsd 0x48(%rdi,%rcx), %xmm5
mulsd %xmm1, %xmm5
addsd %xmm6, %xmm5
subsd %xmm3, %xmm5
addsd %xmm5, %xmm4
addq $0x18, %rcx
cmpq %rcx, %rax
jne 0x14da8
ucomisd 0x8331(%rip), %xmm4     # 0x1d118
jbe 0x14df0
xorl %eax, %eax
movq %rdi, %rcx
jmp 0x14df5
xorl %ecx, %ecx
movq %rdi, %rax
movq %rcx, (%r15)
movq %rax, (%rbx)
cmpq $0x0, (%r15)
je 0x14e1d
cmpq $0x0, (%rbx)
je 0x14e1d
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4380
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x14e31
movq %rax, %rbx
movl $0x20, %esi
movq %r14, %rdi
callq 0x4300
movq %rbx, %rdi
callq 0x4540