// File: sunweilun[P]Delaunay/./Mesh.h
// Function: inCircle(glm::detail::tvec3<double, (glm::precision)0> const&, glm::detail::tvec3<double, (glm::precision)0> const&, glm::detail::tvec3<double, (glm::precision)0> const&, glm::detail::tvec3<double, (glm::precision)0> const&)
inline int inCircle(const vec3& a, const vec3& b, const vec3& c, const vec3& d)
{
    vec3 da, db, dc;
    real det;

    if(orient(a, b, c) == 0)
        return 1;

    if(d.z == 0)
        return -1;
    if(b.z == 0)
        return -1;

    glm::dmat3 mat;
    da = a - d;
    db = b - d;
    dc = c - d;
    mat[0][0] = da.x;
    mat[1][0] = da.y;
    mat[2][0] = da.x*da.x+da.y*da.y;
    mat[0][1] = db.x;
    mat[1][1] = db.y;
    mat[2][1] = db.x*db.x+db.y*db.y;
    mat[0][2] = dc.x;
    mat[1][2] = dc.y;
    mat[2][2] = dc.x*dc.x+dc.y*dc.y;
    det = glm::determinant(mat);
    return det == 0 ? 0 : int(det > 0)*2-1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x43a0
leaq -0x58(%rbp), %rdi
callq 0x43a0
leaq -0x70(%rbp), %rdi
callq 0x43a0
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x52e0
cmpl $0x0, %eax
jne 0x5658
movl $0x1, -0x4(%rbp)
jmp 0x5985
movq -0x28(%rbp), %rax
movsd 0x10(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5678
jp 0x5678
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5985
movq -0x18(%rbp), %rax
movsd 0x10(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x5698
jp 0x5698
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x5985
leaq -0xc0(%rbp), %rdi
callq 0x6360
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0x4650
leaq -0x40(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x4790
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0xf0(%rbp), %rdi
callq 0x4650
leaq -0x58(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x4790
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
leaq -0x108(%rbp), %rdi
callq 0x4650
leaq -0x70(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x4790
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x150(%rbp)
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0x6440
movq %rax, %rdi
xorl %esi, %esi
callq 0x64b0
movsd -0x150(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x148(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x1, %esi
callq 0x6440
movq %rax, %rdi
xorl %esi, %esi
callq 0x64b0
movsd -0x148(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x40(%rbp), %xmm0
movsd -0x40(%rbp), %xmm2
movsd -0x38(%rbp), %xmm1
mulsd -0x38(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x140(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x2, %esi
callq 0x6440
movq %rax, %rdi
xorl %esi, %esi
callq 0x64b0
movsd -0x140(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x138(%rbp)
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0x6440
movq %rax, %rdi
movl $0x1, %esi
callq 0x64b0
movsd -0x138(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x50(%rbp), %xmm0
movsd %xmm0, -0x130(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x1, %esi
callq 0x6440
movq %rax, %rdi
movl $0x1, %esi
callq 0x64b0
movsd -0x130(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x58(%rbp), %xmm0
movsd -0x58(%rbp), %xmm2
movsd -0x50(%rbp), %xmm1
mulsd -0x50(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x128(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x2, %esi
callq 0x6440
movq %rax, %rdi
movl $0x1, %esi
callq 0x64b0
movsd -0x128(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x70(%rbp), %xmm0
movsd %xmm0, -0x120(%rbp)
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
callq 0x6440
movq %rax, %rdi
movl $0x2, %esi
callq 0x64b0
movsd -0x120(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x68(%rbp), %xmm0
movsd %xmm0, -0x118(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x1, %esi
callq 0x6440
movq %rax, %rdi
movl $0x2, %esi
callq 0x64b0
movsd -0x118(%rbp), %xmm0
movsd %xmm0, (%rax)
movsd -0x70(%rbp), %xmm0
movsd -0x70(%rbp), %xmm2
movsd -0x68(%rbp), %xmm1
mulsd -0x68(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x110(%rbp)
leaq -0xc0(%rbp), %rdi
movl $0x2, %esi
callq 0x6440
movq %rax, %rdi
movl $0x2, %esi
callq 0x64b0
movsd -0x110(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0xc0(%rbp), %rdi
callq 0x6530
movsd %xmm0, -0x78(%rbp)
movsd -0x78(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x595d
jp 0x595d
xorl %eax, %eax
movl %eax, -0x154(%rbp)
jmp 0x597c
movsd -0x78(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %eax
shll %eax
subl $0x1, %eax
movl %eax, -0x154(%rbp)
movl -0x154(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)