user: What is the c source code of the assembly code below?

```asm
<tri_tri_intersect>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%r10
  mov    %rdx,%r15
  mov    %r8,%r13
  mov    %r9,%r14
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    (%rsi),%r9d
  movss  (%rdi),%xmm14
  movss  %xmm14,0x10(%rsp)
  movd   %r9d,%xmm0
  subss  %xmm14,%xmm0
  mov    0x4(%rsi),%r12d
  movss  0x4(%rdi),%xmm1
  movd   %r12d,%xmm4
  subss  %xmm1,%xmm4
  mov    0x8(%rsi),%r11d
  movss  0x8(%rdi),%xmm15
  movd   %r11d,%xmm2
  subss  %xmm15,%xmm2
  mov    (%rdx),%ebx
  movd   %ebx,%xmm6
  subss  %xmm14,%xmm6
  mov    0x4(%rdx),%ebp
  movd   %ebp,%xmm7
  subss  %xmm1,%xmm7
  movss  0x8(%rdx),%xmm3
  movss  %xmm3,0x14(%rsp)
  movaps %xmm3,%xmm5
  subss  %xmm15,%xmm5
  movaps %xmm4,%xmm3
  mulss  %xmm5,%xmm3
  movaps %xmm2,%xmm8
  mulss  %xmm7,%xmm8
  subss  %xmm8,%xmm3
  movss  %xmm3,0x2c(%rsp)
  mulss  %xmm6,%xmm2
  mulss  %xmm0,%xmm5
  subss  %xmm5,%xmm2
  movss  %xmm2,0x30(%rsp)
  mulss  %xmm7,%xmm0
  mulss  %xmm6,%xmm4
  subss  %xmm4,%xmm0
  movss  %xmm0,0x34(%rsp)
  mulss  %xmm3,%xmm14
  movaps %xmm14,%xmm10
  movaps %xmm1,%xmm4
  mulss  %xmm2,%xmm4
  addss  %xmm4,%xmm10
  movaps %xmm15,%xmm4
  mulss  %xmm0,%xmm4
  addss  %xmm4,%xmm10
  mov    (%rcx),%edx
  mov    0x4(%rcx),%eax
  movss  0x8(%rcx),%xmm8
  movd   %edx,%xmm4
  mulss  %xmm3,%xmm4
  movd   %eax,%xmm7
  mulss  %xmm2,%xmm7
  addss  %xmm4,%xmm7
  movaps %xmm0,%xmm4
  mulss  %xmm8,%xmm4
  addss  %xmm4,%xmm7
  subss  %xmm10,%xmm7
  movss  (%r8),%xmm6
  mov    0x4(%r8),%r8d
  movss  0x8(%r13),%xmm9
  movaps %xmm3,%xmm5
  mulss  %xmm6,%xmm5
  movd   %r8d,%xmm4
  mulss  %xmm2,%xmm4
  addss  %xmm5,%xmm4
  movaps %xmm0,%xmm5
  mulss  %xmm9,%xmm5
  addss  %xmm5,%xmm4
  subss  %xmm10,%xmm4
  movss  (%r14),%xmm13
  movss  0x4(%r14),%xmm14
  movss  0x8(%r14),%xmm11
  movaps %xmm3,%xmm12
  mulss  %xmm13,%xmm12
  movaps %xmm2,%xmm5
  mulss  %xmm14,%xmm5
  addss  %xmm12,%xmm5
  movaps %xmm0,%xmm12
  mulss  %xmm11,%xmm12
  addss  %xmm12,%xmm5
  subss  %xmm10,%xmm5
  movaps %xmm7,%xmm12
  andps  D30(%rip),%xmm12
  cvtss2sd %xmm12,%xmm12
  movsd  D248(%rip),%xmm10
  comisd %xmm12,%xmm10
  jbe    L385
  pxor   %xmm7,%xmm7
L385:
  movaps %xmm4,%xmm12
  andps  D30(%rip),%xmm12
  cvtss2sd %xmm12,%xmm12
  movsd  D248(%rip),%xmm10
  comisd %xmm12,%xmm10
  jbe    L278
  pxor   %xmm4,%xmm4
L278:
  movaps %xmm5,%xmm12
  andps  D30(%rip),%xmm12
  cvtss2sd %xmm12,%xmm12
  movsd  D248(%rip),%xmm10
  comisd %xmm12,%xmm10
  jbe    L405
  pxor   %xmm5,%xmm5
L405:
  movaps %xmm7,%xmm12
  mulss  %xmm4,%xmm12
  movss  %xmm12,0x18(%rsp)
  movaps %xmm7,%xmm10
  mulss  %xmm5,%xmm10
  movss  %xmm10,0x1c(%rsp)
  comiss D190(%rip),%xmm12
  jbe    L340
  mov    $0x0,%edi
  comiss D190(%rip),%xmm10
  ja     L110
L340:
  movd   %edx,%xmm12
  subss  %xmm12,%xmm6
  movss  %xmm6,0xc(%rsp)
  movd   %r8d,%xmm10
  movd   %eax,%xmm12
  subss  %xmm12,%xmm10
  subss  %xmm8,%xmm9
  movd   %edx,%xmm12
  subss  %xmm12,%xmm13
  movd   %eax,%xmm12
  subss  %xmm12,%xmm14
  subss  %xmm8,%xmm11
  movaps %xmm10,%xmm12
  mulss  %xmm11,%xmm12
  movd   %xmm12,%edi
  movaps %xmm9,%xmm12
  mulss  %xmm14,%xmm12
  movd   %edi,%xmm6
  subss  %xmm12,%xmm6
  movaps %xmm6,%xmm12
  mulss  %xmm13,%xmm9
  mulss  0xc(%rsp),%xmm11
  subss  %xmm11,%xmm9
  movss  0xc(%rsp),%xmm6
  mulss  %xmm14,%xmm6
  mulss  %xmm13,%xmm10
  subss  %xmm10,%xmm6
  movd   %edx,%xmm10
  mulss  %xmm12,%xmm10
  movd   %eax,%xmm11
  mulss  %xmm9,%xmm11
  addss  %xmm10,%xmm11
  mulss  %xmm6,%xmm8
  addss  %xmm11,%xmm8
  movss  0x10(%rsp),%xmm10
  mulss  %xmm12,%xmm10
  mulss  %xmm9,%xmm1
  addss  %xmm10,%xmm1
  mulss  %xmm6,%xmm15
  addss  %xmm15,%xmm1
  subss  %xmm8,%xmm1
  movd   %r9d,%xmm10
  mulss  %xmm12,%xmm10
  movd   %r12d,%xmm11
  mulss  %xmm9,%xmm11
  addss  %xmm10,%xmm11
  movd   %r11d,%xmm10
  mulss  %xmm6,%xmm10
  addss  %xmm10,%xmm11
  subss  %xmm8,%xmm11
  movd   %ebx,%xmm10
  mulss  %xmm12,%xmm10
  movd   %ebp,%xmm13
  mulss  %xmm9,%xmm13
  addss  %xmm10,%xmm13
  movss  0x14(%rsp),%xmm10
  mulss  %xmm6,%xmm10
  addss  %xmm10,%xmm13
  subss  %xmm8,%xmm13
  movaps %xmm1,%xmm8
  andps  D30(%rip),%xmm8
  cvtss2sd %xmm8,%xmm8
  movsd  D248(%rip),%xmm10
  comisd %xmm8,%xmm10
  jbe    L268
  pxor   %xmm1,%xmm1
L268:
  movaps %xmm11,%xmm8
  andps  D30(%rip),%xmm8
  cvtss2sd %xmm8,%xmm8
  movsd  D248(%rip),%xmm10
  comisd %xmm8,%xmm10
  jbe    L31
  pxor   %xmm11,%xmm11
L31:
  movaps %xmm13,%xmm8
  andps  D30(%rip),%xmm8
  cvtss2sd %xmm8,%xmm8
  movsd  D248(%rip),%xmm10
  comisd %xmm8,%xmm10
  jbe    L223
  pxor   %xmm13,%xmm13
L223:
  movaps %xmm1,%xmm14
  mulss  %xmm11,%xmm14
  movaps %xmm1,%xmm15
  mulss  %xmm13,%xmm15
  comiss D190(%rip),%xmm14
  jbe    L421
  mov    $0x0,%edi
  comiss D190(%rip),%xmm15
  ja     L110
L421:
  movaps %xmm2,%xmm8
  mulss  %xmm6,%xmm8
  movaps %xmm0,%xmm10
  mulss  %xmm9,%xmm10
  subss  %xmm10,%xmm8
  movss  D30(%rip),%xmm10
  andps  %xmm10,%xmm8
  mulss  %xmm12,%xmm0
  mulss  %xmm3,%xmm6
  subss  %xmm6,%xmm0
  andps  %xmm10,%xmm0
  mulss  %xmm9,%xmm3
  mulss  %xmm12,%xmm2
  subss  %xmm2,%xmm3
  andps  %xmm10,%xmm3
  mov    $0x0,%eax
  comiss %xmm8,%xmm0
  jbe    L156
  movaps %xmm0,%xmm8
  mov    $0x1,%eax
L156:
  ucomiss %xmm8,%xmm3
  mov    $0x2,%edx
  cmova  %edx,%eax
  movswq %ax,%rax
  movss  (%r10,%rax,4),%xmm6
  movss  (%rsi,%rax,4),%xmm10
  movss  (%r15,%rax,4),%xmm0
  movss  (%rcx,%rax,4),%xmm8
  movss  0x0(%r13,%rax,4),%xmm9
  movss  (%r14,%rax,4),%xmm2
  comiss D190(%rip),%xmm14
  jbe    L239
  subss  %xmm0,%xmm6
  mulss  %xmm13,%xmm6
  movaps %xmm13,%xmm3
  subss  %xmm1,%xmm3
  divss  %xmm3,%xmm6
  addss  %xmm0,%xmm6
  movaps %xmm6,%xmm3
  movaps %xmm10,%xmm1
  subss  %xmm0,%xmm1
  mulss  %xmm13,%xmm1
  subss  %xmm11,%xmm13
  divss  %xmm13,%xmm1
  addss  %xmm1,%xmm0
L85:
  movss  0x18(%rsp),%xmm1
  comiss D190(%rip),%xmm1
  jbe    L279
  subss  %xmm2,%xmm8
  mulss  %xmm5,%xmm8
  movaps %xmm5,%xmm1
  subss  %xmm7,%xmm1
  divss  %xmm1,%xmm8
  movaps %xmm8,%xmm1
  addss  %xmm2,%xmm1
  subss  %xmm2,%xmm9
  mulss  %xmm5,%xmm9
  subss  %xmm4,%xmm5
  divss  %xmm5,%xmm9
  addss  %xmm9,%xmm2
L363:
  comiss %xmm0,%xmm3
  jbe    L382
  movaps %xmm3,%xmm4
  movaps %xmm0,%xmm3
  movaps %xmm4,%xmm0
L382:
  comiss %xmm2,%xmm1
  jbe    L228
  movaps %xmm1,%xmm4
  movaps %xmm2,%xmm1
  movaps %xmm4,%xmm2
L228:
  mov    $0x0,%edi
  comiss %xmm0,%xmm1
  ja     L110
  comiss %xmm2,%xmm3
  setbe  %dil
  movzbl %dil,%edi
L110:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L91
  mov    %edi,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L239:
  comiss D190(%rip),%xmm15
  jbe    L130
  subss  %xmm10,%xmm6
  mulss  %xmm11,%xmm6
  movaps %xmm11,%xmm3
  subss  %xmm1,%xmm3
  divss  %xmm3,%xmm6
  addss  %xmm10,%xmm6
  movaps %xmm6,%xmm3
  subss  %xmm10,%xmm0
  mulss  %xmm11,%xmm0
  subss  %xmm13,%xmm11
  divss  %xmm11,%xmm0
  addss  %xmm10,%xmm0
  jmp    L85
L130:
  movaps %xmm11,%xmm3
  mulss  %xmm13,%xmm3
  comiss D190(%rip),%xmm3
  jbe    L303
L386:
  subss  %xmm6,%xmm10
  mulss  %xmm1,%xmm10
  movaps %xmm1,%xmm3
  subss  %xmm11,%xmm3
  divss  %xmm3,%xmm10
  movaps %xmm10,%xmm3
  addss  %xmm6,%xmm3
  subss  %xmm6,%xmm0
  mulss  %xmm1,%xmm0
  subss  %xmm13,%xmm1
  divss  %xmm1,%xmm0
  addss  %xmm6,%xmm0
  jmp    L85
L303:
  ucomiss D190(%rip),%xmm1
  jp     L386
  jne    L386
  ucomiss D190(%rip),%xmm11
  jp     L349
  jne    L349
  ucomiss D190(%rip),%xmm13
  jp     L244
  je     L173
L244:
  subss  %xmm0,%xmm6
  mulss  %xmm13,%xmm6
  movaps %xmm13,%xmm3
  subss  %xmm1,%xmm3
  divss  %xmm3,%xmm6
  addss  %xmm0,%xmm6
  movaps %xmm6,%xmm3
  movaps %xmm10,%xmm1
  subss  %xmm0,%xmm1
  mulss  %xmm13,%xmm1
  subss  %xmm11,%xmm13
  divss  %xmm13,%xmm1
  addss  %xmm1,%xmm0
  jmp    L85
L349:
  subss  %xmm10,%xmm6
  mulss  %xmm11,%xmm6
  movaps %xmm11,%xmm3
  subss  %xmm1,%xmm3
  divss  %xmm3,%xmm6
  addss  %xmm10,%xmm6
  movaps %xmm6,%xmm3
  subss  %xmm10,%xmm0
  mulss  %xmm11,%xmm0
  subss  %xmm13,%xmm11
  divss  %xmm11,%xmm0
  addss  %xmm10,%xmm0
  jmp    L85
L173:
  lea    0x2c(%rsp),%rdi
  sub    $0x8,%rsp
  push   %r14
  mov    %r13,%r9
  mov    %rcx,%r8
  mov    %r15,%rcx
  mov    %rsi,%rdx
  mov    %r10,%rsi
  mov    $0x0,%eax
  call   <coplanar_tri_tri@plt>
  mov    %eax,%edi
  add    $0x10,%rsp
  jmp    L110
L279:
  movss  0x1c(%rsp),%xmm1
  comiss D190(%rip),%xmm1
  jbe    L50
  subss  %xmm9,%xmm8
  mulss  %xmm4,%xmm8
  movaps %xmm4,%xmm1
  subss  %xmm7,%xmm1
  divss  %xmm1,%xmm8
  movaps %xmm8,%xmm1
  addss  %xmm9,%xmm1
  subss  %xmm9,%xmm2
  mulss  %xmm4,%xmm2
  subss  %xmm5,%xmm4
  divss  %xmm4,%xmm2
  addss  %xmm9,%xmm2
  jmp    L363
L50:
  movaps %xmm4,%xmm1
  mulss  %xmm5,%xmm1
  comiss D190(%rip),%xmm1
  jbe    L361
L255:
  subss  %xmm8,%xmm9
  mulss  %xmm7,%xmm9
  movaps %xmm7,%xmm1
  subss  %xmm4,%xmm1
  divss  %xmm1,%xmm9
  movaps %xmm9,%xmm1
  addss  %xmm8,%xmm1
  subss  %xmm8,%xmm2
  mulss  %xmm7,%xmm2
  subss  %xmm5,%xmm7
  divss  %xmm7,%xmm2
  addss  %xmm8,%xmm2
  jmp    L363
L361:
  ucomiss D190(%rip),%xmm7
  jp     L255
  jne    L255
  ucomiss D190(%rip),%xmm4
  jp     L291
  jne    L291
  ucomiss D190(%rip),%xmm5
  jp     L62
  je     L343
L62:
  subss  %xmm2,%xmm8
  mulss  %xmm5,%xmm8
  movaps %xmm5,%xmm1
  subss  %xmm7,%xmm1
  divss  %xmm1,%xmm8
  movaps %xmm8,%xmm1
  addss  %xmm2,%xmm1
  subss  %xmm2,%xmm9
  mulss  %xmm5,%xmm9
  subss  %xmm4,%xmm5
  divss  %xmm5,%xmm9
  addss  %xmm9,%xmm2
  jmp    L363
L291:
  subss  %xmm9,%xmm8
  mulss  %xmm4,%xmm8
  movaps %xmm4,%xmm1
  subss  %xmm7,%xmm1
  divss  %xmm1,%xmm8
  movaps %xmm8,%xmm1
  addss  %xmm9,%xmm1
  subss  %xmm9,%xmm2
  mulss  %xmm4,%xmm2
  subss  %xmm5,%xmm4
  divss  %xmm4,%xmm2
  addss  %xmm9,%xmm2
  jmp    L363
L343:
  lea    0x2c(%rsp),%rdi
  sub    $0x8,%rsp
  push   %r14
  mov    %r13,%r9
  mov    %rcx,%r8
  mov    %r15,%rcx
  mov    %rsi,%rdx
  mov    %r10,%rsi
  mov    $0x0,%eax
  call   <coplanar_tri_tri@plt>
  mov    %eax,%edi
  add    $0x10,%rsp
  jmp    L110
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D30
datatype: dword[4]
name: disassemble_data
arguments: tag: D248
datatype: f64
name: disassemble_data
arguments: tag: D190
datatype: f64

tool: {"D30": [0x7fffffff,0x00000000,0x00000000,0x00000000]}

tool: D248: 0.005

tool: D190: 0

assistant: ```c
int tri_tri_intersect(const float V0[3], const float V1[3], const float V2[3], const float U0[3], const float U1[3], const float U2[3]) {
  float E1[3], E2[3];
  float N1[3], N2[3], d1, d2;
  float du0, du1, du2, dv0, dv1, dv2;
  float D[3];
  float isect1[2], isect2[2];
  float du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  float vp0, vp1, vp2;
  float up0, up1, up2;
  float b, c, max;
  E1[0] = V1[0] - V0[0];
  E1[1] = V1[1] - V0[1];
  E1[2] = V1[2] - V0[2];
  ;
  E2[0] = V2[0] - V0[0];
  E2[1] = V2[1] - V0[1];
  E2[2] = V2[2] - V0[2];
  ;
  N1[0] = E1[1] * E2[2] - E1[2] * E2[1];
  N1[1] = E1[2] * E2[0] - E1[0] * E2[2];
  N1[2] = E1[0] * E2[1] - E1[1] * E2[0];
  ;
  d1 = -(N1[0] * V0[0] + N1[1] * V0[1] + N1[2] * V0[2]);
  du0 = (N1[0] * U0[0] + N1[1] * U0[1] + N1[2] * U0[2]) + d1;
  du1 = (N1[0] * U1[0] + N1[1] * U1[1] + N1[2] * U1[2]) + d1;
  du2 = (N1[0] * U2[0] + N1[1] * U2[1] + N1[2] * U2[2]) + d1;
  if (fabs(du0) < 0.005)
    du0 = 0.0;
  if (fabs(du1) < 0.005)
    du1 = 0.0;
  if (fabs(du2) < 0.005)
    du2 = 0.0;
  du0du1 = du0 * du1;
  du0du2 = du0 * du2;
  if (du0du1 > 0.0f && du0du2 > 0.0f)
    return 0;
  E1[0] = U1[0] - U0[0];
  E1[1] = U1[1] - U0[1];
  E1[2] = U1[2] - U0[2];
  ;
  E2[0] = U2[0] - U0[0];
  E2[1] = U2[1] - U0[1];
  E2[2] = U2[2] - U0[2];
  ;
  N2[0] = E1[1] * E2[2] - E1[2] * E2[1];
  N2[1] = E1[2] * E2[0] - E1[0] * E2[2];
  N2[2] = E1[0] * E2[1] - E1[1] * E2[0];
  ;
  d2 = -(N2[0] * U0[0] + N2[1] * U0[1] + N2[2] * U0[2]);
  dv0 = (N2[0] * V0[0] + N2[1] * V0[1] + N2[2] * V0[2]) + d2;
  dv1 = (N2[0] * V1[0] + N2[1] * V1[1] + N2[2] * V1[2]) + d2;
  dv2 = (N2[0] * V2[0] + N2[1] * V2[1] + N2[2] * V2[2]) + d2;
  if (fabs(dv0) < 0.005)
    dv0 = 0.0;
  if (fabs(dv1) < 0.005)
    dv1 = 0.0;
  if (fabs(dv2) < 0.005)
    dv2 = 0.0;
  dv0dv1 = dv0 * dv1;
  dv0dv2 = dv0 * dv2;
  if (dv0dv1 > 0.0f && dv0dv2 > 0.0f)
    return 0;
  D[0] = N1[1] * N2[2] - N1[2] * N2[1];
  D[1] = N1[2] * N2[0] - N1[0] * N2[2];
  D[2] = N1[0] * N2[1] - N1[1] * N2[0];
  ;
  max = fabs(D[0]);
  index = 0;
  b = fabs(D[1]);
  c = fabs(D[2]);
  if (b > max)
    max = b, index = 1;
  if (c > max)
    max = c, index = 2;
  vp0 = V0[index];
  vp1 = V1[index];
  vp2 = V2[index];
  up0 = U0[index];
  up1 = U1[index];
  up2 = U2[index];
  if (dv0dv1 > 0.0f) {
    isect1[0] = vp2 + (vp0 - vp2) * dv2 / (dv2 - dv0);
    isect1[1] = vp2 + (vp1 - vp2) * dv2 / (dv2 - dv1);
    ;
  } else if (dv0dv2 > 0.0f) {
    isect1[0] = vp1 + (vp0 - vp1) * dv1 / (dv1 - dv0);
    isect1[1] = vp1 + (vp2 - vp1) * dv1 / (dv1 - dv2);
    ;
  } else if (dv1 * dv2 > 0.0f || dv0 != 0.0f) {
    isect1[0] = vp0 + (vp1 - vp0) * dv0 / (dv0 - dv1);
    isect1[1] = vp0 + (vp2 - vp0) * dv0 / (dv0 - dv2);
    ;
  } else if (dv1 != 0.0f) {
    isect1[0] = vp1 + (vp0 - vp1) * dv1 / (dv1 - dv0);
    isect1[1] = vp1 + (vp2 - vp1) * dv1 / (dv1 - dv2);
    ;
  } else if (dv2 != 0.0f) {
    isect1[0] = vp2 + (vp0 - vp2) * dv2 / (dv2 - dv0);
    isect1[1] = vp2 + (vp1 - vp2) * dv2 / (dv2 - dv1);
    ;
  } else {
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  };
  if (du0du1 > 0.0f) {
    isect2[0] = up2 + (up0 - up2) * du2 / (du2 - du0);
    isect2[1] = up2 + (up1 - up2) * du2 / (du2 - du1);
    ;
  } else if (du0du2 > 0.0f) {
    isect2[0] = up1 + (up0 - up1) * du1 / (du1 - du0);
    isect2[1] = up1 + (up2 - up1) * du1 / (du1 - du2);
    ;
  } else if (du1 * du2 > 0.0f || du0 != 0.0f) {
    isect2[0] = up0 + (up1 - up0) * du0 / (du0 - du1);
    isect2[1] = up0 + (up2 - up0) * du0 / (du0 - du2);
    ;
  } else if (du1 != 0.0f) {
    isect2[0] = up1 + (up0 - up1) * du1 / (du1 - du0);
    isect2[1] = up1 + (up2 - up1) * du1 / (du1 - du2);
    ;
  } else if (du2 != 0.0f) {
    isect2[0] = up2 + (up0 - up2) * du2 / (du2 - du0);
    isect2[1] = up2 + (up1 - up2) * du2 / (du2 - du1);
    ;
  } else {
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  };
  if (isect1[0] > isect1[1]) {
    float c;
    c = isect1[0];
    isect1[0] = isect1[1];
    isect1[1] = c;
  };
  if (isect2[0] > isect2[1]) {
    float c;
    c = isect2[0];
    isect2[0] = isect2[1];
    isect2[1] = c;
  };
  if (isect1[1] < isect2[0] || isect2[1] < isect1[0])
    return 0;
  return 1;
}
```