// File: /workspace/github_cpp_makefile_star2_O1/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 $0x2c8, %rsp            # imm = 0x2C8
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
cmpl $0x0, 0x2c(%rdi)
movq %rdi, 0x8(%rsp)
jns 0x149ee
leaq 0xdefc(%rip), %rdi      # 0x228de
xorl %eax, %eax
callq 0x9f84
movq 0x8(%rsp), %rdi
movl $0x0, 0x24(%rsp)
movq $0x0, 0x1c(%rsp)
movslq 0x2c(%rdi), %rax
testq %rax, %rax
jle 0x14aa8
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm1
movsd 0x10(%r13), %xmm2
movsd 0x30(%r13), %xmm3
leaq 0x48(%rdi), %rdx
xorl %ecx, %ecx
movsd 0xca5e(%rip), %xmm4     # 0x21490
movsd 0xca6e(%rip), %xmm5     # 0x214a8
movsd -0x8(%rdx), %xmm6
mulsd %xmm1, %xmm6
movsd -0x10(%rdx), %xmm7
mulsd %xmm0, %xmm7
addsd %xmm6, %xmm7
movsd (%rdx), %xmm6
mulsd %xmm2, %xmm6
addsd %xmm7, %xmm6
subsd %xmm3, %xmm6
movsd %xmm6, 0x140(%rsp,%rcx,8)
ucomisd %xmm4, %xmm6
jbe 0x14a79
movl $0x0, 0x70(%rsp,%rcx,4)
jmp 0x14a91
ucomisd %xmm6, %xmm5
jbe 0x14a89
movl $0x1, 0x70(%rsp,%rcx,4)
jmp 0x14a91
movl $0x2, 0x70(%rsp,%rcx,4)
movslq 0x70(%rsp,%rcx,4), %rsi
incl 0x1c(%rsp,%rsi,4)
incq %rcx
addq $0x18, %rdx
cmpq %rcx, %rax
jne 0x14a3a
jmp 0x14aaa
xorl %ecx, %ecx
movl 0x70(%rsp), %edx
movl %edx, 0x70(%rsp,%rcx,4)
movsd 0x140(%rsp), %xmm0
movsd %xmm0, 0x140(%rsp,%rcx,8)
movl 0x1c(%rsp), %edx
movl 0x20(%rsp), %ecx
movl %edx, %esi
orl %ecx, %esi
je 0x14f82
testl %edx, %edx
je 0x14fcc
testl %ecx, %ecx
je 0x15096
movl $0x4b8, %edi            # imm = 0x4B8
callq 0x4400
movq %rax, %r12
movl $0x4b8, %edx            # imm = 0x4B8
movq %rax, %rdi
xorl %esi, %esi
callq 0x4180
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, 0x8(%r12)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x20(%r12)
movq 0x8(%rsp), %rax
movl 0x30(%rax), %eax
movl %eax, 0x30(%r12)
movq 0x8(%rsp), %rax
movups 0x8(%rax), %xmm0
movups %xmm0, 0x8(%r12)
movq %r14, 0x40(%rsp)
movq %r12, 0x28(%rsp)
movq %r12, (%r14)
movl $0x4b8, %edi            # imm = 0x4B8
callq 0x4400
movq %rax, %r14
movl $0x4b8, %edx            # imm = 0x4B8
movq %rax, %rdi
xorl %esi, %esi
callq 0x4180
movq 0x8(%rsp), %r8
movl %ebx, 0x8(%r14)
movq 0x20(%r8), %rax
movq %rax, 0x20(%r14)
movl 0x30(%r8), %eax
movl %eax, 0x30(%r14)
movupd 0x8(%r8), %xmm0
movupd %xmm0, 0x8(%r14)
movq %r15, 0x38(%rsp)
movq %r14, 0x10(%rsp)
movq %r14, (%r15)
cmpl $0x0, 0x2c(%r8)
jle 0x14da5
movq 0x28(%rsp), %rcx
leaq 0x2c(%rcx), %r9
movq 0x10(%rsp), %rax
leaq 0x2c(%rax), %r12
leaq 0x38(%r8), %rbx
leaq 0x38(%rax), %rbp
movq %rcx, %r14
addq $0x38, %r14
movsd 0xc513(%rip), %xmm3     # 0x210d8
movsd 0xc6c3(%rip), %xmm4     # 0x21290
movapd 0xc6fb(%rip), %xmm5     # 0x212d0
movq %rbx, 0x30(%rsp)
xorl %r15d, %r15d
cmpl $0x30, (%r9)
jg 0x14bea
cmpl $0x31, (%r12)
jl 0x14c2b
leaq 0xdd03(%rip), %rdi      # 0x228f4
xorl %eax, %eax
movq %rbx, 0x48(%rsp)
movq %r14, %rbx
movq %r9, %r14
callq 0x9f84
movapd 0xc6c5(%rip), %xmm5     # 0x212d0
movsd 0xc67d(%rip), %xmm4     # 0x21290
movsd 0xc4bd(%rip), %xmm3     # 0x210d8
movq %r14, %r9
movq %rbx, %r14
movq 0x48(%rsp), %rbx
movq 0x8(%rsp), %r8
leaq (%r15,%r15,2), %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movl 0x70(%rsp,%r15,4), %eax
movsd (%rcx), %xmm0
movq %r12, %rdx
movq %rbp, %rsi
testl %eax, %eax
je 0x14c6d
cmpl $0x2, %eax
jne 0x14c67
movslq (%r9), %rax
leaq (%rax,%rax,2), %rax
movsd %xmm0, (%r14,%rax,8)
movupd 0x8(%rcx), %xmm1
jmp 0x14d4f
movq %r9, %rdx
movq %r14, %rsi
movslq (%rdx), %rdi
leaq (%rdi,%rdi,2), %rdi
movsd %xmm0, (%rsi,%rdi,8)
movsd 0x8(%rcx), %xmm0
movsd %xmm0, 0x8(%rsi,%rdi,8)
movsd 0x10(%rcx), %xmm0
movslq (%rdx), %rcx
leaq (%rcx,%rcx,2), %rdi
movsd %xmm0, 0x10(%rsi,%rdi,8)
incl %ecx
movl %ecx, (%rdx)
movl 0x74(%rsp,%r15,4), %ecx
cmpl $0x2, %ecx
sete %dl
cmpl %eax, %ecx
sete %al
orb %dl, %al
jne 0x14d91
leaq 0x1(%r15), %rax
cltd
idivl 0x2c(%r8)
leaq (%rdx,%rdx,2), %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax,8), %rax
movsd 0x140(%rsp,%r15,8), %xmm0
movapd %xmm0, %xmm1
subsd 0x148(%rsp,%r15,8), %xmm1
divsd %xmm1, %xmm0
xorl %ecx, %ecx
movsd (%r13,%rcx,8), %xmm1
ucomisd %xmm3, %xmm1
jne 0x14cfd
jp 0x14cfd
movsd 0x30(%r13), %xmm1
jmp 0x14d27
ucomisd %xmm4, %xmm1
jne 0x14d11
jp 0x14d11
movsd 0x30(%r13), %xmm1
xorpd %xmm5, %xmm1
jmp 0x14d27
movsd (%rbx,%rcx,8), %xmm2
movsd (%rax,%rcx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x50(%rsp,%rcx,8)
incq %rcx
cmpq $0x3, %rcx
jne 0x14ce6
movsd 0x50(%rsp), %xmm0
movslq (%r9), %rax
leaq (%rax,%rax,2), %rax
movsd %xmm0, (%r14,%rax,8)
movupd 0x58(%rsp), %xmm1
movlpd %xmm1, 0x8(%r14,%rax,8)
movslq (%r9), %rax
leaq (%rax,%rax,2), %rcx
movhpd %xmm1, 0x10(%r14,%rcx,8)
incl %eax
movl %eax, (%r9)
movslq (%r12), %rax
leaq (%rax,%rax,2), %rax
movsd %xmm0, (%rbp,%rax,8)
movlpd %xmm1, 0x8(%rbp,%rax,8)
movslq (%r12), %rax
leaq (%rax,%rax,2), %rcx
movhpd %xmm1, 0x10(%rbp,%rcx,8)
incl %eax
movl %eax, (%r12)
incq %r15
movslq 0x2c(%r8), %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x14bdd
movq 0x28(%rsp), %rbx
cmpl $0x30, 0x2c(%rbx)
jg 0x14dbb
movq 0x10(%rsp), %rax
cmpl $0x31, 0x2c(%rax)
jl 0x14dc9
leaq 0xdb32(%rip), %rdi      # 0x228f4
xorl %eax, %eax
callq 0x9f84
movl $0x20, %edi
callq 0x42f0
movq %rax, %r13
movl 0x2c(%rbx), %esi
movq %rax, %rdi
callq 0xc2da
cmpl $0x0, 0x2c(%rbx)
jle 0x14e2a
xorl %eax, %eax
xorl %ecx, %ecx
movsd 0x38(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, (%rdx,%rax)
movsd 0x40(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, 0x8(%rdx,%rax)
movsd 0x48(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, 0x10(%rdx,%rax)
incq %rcx
movslq 0x2c(%rbx), %rdx
addq $0x18, %rax
cmpq %rdx, %rcx
jl 0x14deb
movsd 0xc65e(%rip), %xmm0     # 0x21490
movq %r13, %rdi
callq 0xc76e
movl 0x8(%r13), %eax
movl %eax, 0x2c(%rbx)
testl %eax, %eax
movq 0x40(%rsp), %r14
movq 0x38(%rsp), %r15
jle 0x14e8a
movq 0x10(%r13), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movsd (%rax,%rcx), %xmm0
movsd %xmm0, 0x38(%rbx,%rcx)
movsd 0x8(%rax,%rcx), %xmm0
movsd %xmm0, 0x40(%rbx,%rcx)
movsd 0x10(%rax,%rcx), %xmm0
movsd %xmm0, 0x48(%rbx,%rcx)
incq %rdx
movslq 0x2c(%rbx), %rsi
addq $0x18, %rcx
cmpq %rsi, %rdx
jl 0x14e57
movq (%r13), %rax
movq %r13, %rdi
callq *0x8(%rax)
cmpl $0x0, 0x2c(%rbx)
jne 0x14ea1
movq $0x0, (%r14)
movl $0x20, %edi
callq 0x42f0
movq %rax, %r13
movq 0x10(%rsp), %rbx
movl 0x2c(%rbx), %esi
movq %rax, %rdi
callq 0xc2da
cmpl $0x0, 0x2c(%rbx)
jle 0x14f07
xorl %eax, %eax
xorl %ecx, %ecx
movsd 0x38(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, (%rdx,%rax)
movsd 0x40(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, 0x8(%rdx,%rax)
movsd 0x48(%rbx,%rax), %xmm0
movq 0x10(%r13), %rdx
movsd %xmm0, 0x10(%rdx,%rax)
incq %rcx
movslq 0x2c(%rbx), %rdx
addq $0x18, %rax
cmpq %rdx, %rcx
jl 0x14ec8
movsd 0xc581(%rip), %xmm0     # 0x21490
movq %r13, %rdi
callq 0xc76e
movl 0x8(%r13), %eax
movl %eax, 0x2c(%rbx)
testl %eax, %eax
jle 0x14f5d
movq 0x10(%r13), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movsd (%rax,%rcx), %xmm0
movsd %xmm0, 0x38(%rbx,%rcx)
movsd 0x8(%rax,%rcx), %xmm0
movsd %xmm0, 0x40(%rbx,%rcx)
movsd 0x10(%rax,%rcx), %xmm0
movsd %xmm0, 0x48(%rbx,%rcx)
incq %rdx
movslq 0x2c(%rbx), %rsi
addq $0x18, %rcx
cmpq %rsi, %rdx
jl 0x14f2a
movq (%r13), %rax
movq %r13, %rdi
callq *0x8(%rax)
cmpl $0x0, 0x2c(%rbx)
movq 0x8(%rsp), %rdi
jne 0x15062
movq $0x0, (%r15)
jmp 0x15062
cmpl $0x0, 0x14(%rdi)
je 0x14fdb
movslq 0x8(%rdi), %rax
shlq $0x6, %rax
leaq 0x20bfa89(%rip), %rcx   # 0x20d4a20
movsd (%rax,%rcx), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
mulsd 0x8(%r13), %xmm1
mulsd (%r13), %xmm0
addsd %xmm1, %xmm0
movsd 0x10(%rax,%rcx), %xmm1
mulsd 0x10(%r13), %xmm1
addsd %xmm0, %xmm1
ucomisd 0x9146(%rip), %xmm1     # 0x1e110
jmp 0x15048
movq $0x0, (%r15)
movq %rdi, (%r14)
jmp 0x15062
testl %eax, %eax
jle 0x150a2
movsd (%r13), %xmm0
movsd 0x8(%r13), %xmm1
movsd 0x10(%r13), %xmm2
movsd 0x30(%r13), %xmm3
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
xorpd %xmm4, %xmm4
xorl %ecx, %ecx
movsd 0x40(%rdi,%rcx), %xmm5
mulsd %xmm1, %xmm5
movsd 0x38(%rdi,%rcx), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm5, %xmm6
movsd 0x48(%rdi,%rcx), %xmm5
mulsd %xmm2, %xmm5
addsd %xmm6, %xmm5
subsd %xmm3, %xmm5
addsd %xmm5, %xmm4
addq $0x18, %rcx
cmpq %rcx, %rax
jne 0x15009
ucomisd 0x90c8(%rip), %xmm4     # 0x1e110
seta %al
xorl %ecx, %ecx
testb %al, %al
movl $0x0, %eax
cmovneq %rdi, %rax
cmoveq %rdi, %rcx
movq %rax, (%r15)
movq %rcx, (%r14)
cmpq $0x0, (%r15)
je 0x15084
cmpq $0x0, (%r14)
je 0x15084
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4380
addq $0x2c8, %rsp            # imm = 0x2C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, (%r15)
movq $0x0, (%r14)
jmp 0x15062
xorl %eax, %eax
jmp 0x1504b
jmp 0x150a8
movq %rax, %rbx
movl $0x20, %esi
movq %r13, %rdi
callq 0x4300
movq %rbx, %rdi
callq 0x4540