user: Converte this assembly snippet into its equivalent C code:

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x260,%rsp
  mov    %rdi,-0x218(%rbp)
  mov    %rsi,-0x220(%rbp)
  mov    %rdx,-0x228(%rbp)
  mov    %rcx,-0x230(%rbp)
  mov    %r8,-0x238(%rbp)
  mov    %r9,-0x240(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x248(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x250(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x258(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x140(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x138(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x130(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x128(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x220(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x118(%rbp)
  mov    -0x220(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x110(%rbp)
  mov    -0x228(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x100(%rbp)
  mov    -0x228(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  mov    -0x228(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mov    -0x218(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  movsd  -0x118(%rbp),%xmm1
  movsd  -0xf0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x110(%rbp),%xmm2
  movsd  -0xf8(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xe0(%rbp)
  movsd  -0x110(%rbp),%xmm1
  movsd  -0x100(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x120(%rbp),%xmm2
  movsd  -0xf0(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  movsd  -0x120(%rbp),%xmm1
  movsd  -0xf8(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x118(%rbp),%xmm2
  movsd  -0x100(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  movsd  -0xe0(%rbp),%xmm1
  mov    -0x218(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xd8(%rbp),%xmm2
  mov    -0x218(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xd0(%rbp),%xmm2
  mov    -0x218(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movq   D2(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x1c0(%rbp)
  movsd  -0xe0(%rbp),%xmm1
  mov    -0x230(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xd8(%rbp),%xmm2
  mov    -0x230(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xd0(%rbp),%xmm2
  mov    -0x230(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1c0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1f8(%rbp)
  movsd  -0xe0(%rbp),%xmm1
  mov    -0x238(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xd8(%rbp),%xmm2
  mov    -0x238(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xd0(%rbp),%xmm2
  mov    -0x238(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1c0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1f0(%rbp)
  movsd  -0xe0(%rbp),%xmm1
  mov    -0x240(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xd8(%rbp),%xmm2
  mov    -0x240(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xd0(%rbp),%xmm2
  mov    -0x240(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1c0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1e8(%rbp)
  mov    -0x1f8(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L358
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1f8(%rbp)
L358:
  mov    -0x1f0(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L354
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1f0(%rbp)
L354:
  mov    -0x1e8(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L131
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1e8(%rbp)
L131:
  movsd  -0x1f8(%rbp),%xmm0
  mulsd  -0x1f0(%rbp),%xmm0
  movsd  %xmm0,-0x1b8(%rbp)
  movsd  -0x1f8(%rbp),%xmm0
  mulsd  -0x1e8(%rbp),%xmm0
  movsd  %xmm0,-0x1b0(%rbp)
  movsd  -0x1b8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L5
  movsd  -0x1b0(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L5
  mov    $0x0,%eax
  jmp    L125
L5:
  mov    -0x238(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  mov    -0x238(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x118(%rbp)
  mov    -0x238(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x110(%rbp)
  mov    -0x240(%rbp),%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x100(%rbp)
  mov    -0x240(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  mov    -0x240(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mov    -0x230(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  movsd  -0x118(%rbp),%xmm1
  movsd  -0xf0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x110(%rbp),%xmm2
  movsd  -0xf8(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movsd  -0x110(%rbp),%xmm1
  movsd  -0x100(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x120(%rbp),%xmm2
  movsd  -0xf0(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0x120(%rbp),%xmm1
  movsd  -0xf8(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x118(%rbp),%xmm2
  movsd  -0x100(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  mov    -0x230(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xb8(%rbp),%xmm2
  mov    -0x230(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb0(%rbp),%xmm2
  mov    -0x230(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movq   D2(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x1a8(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  mov    -0x218(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xb8(%rbp),%xmm2
  mov    -0x218(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb0(%rbp),%xmm2
  mov    -0x218(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1a8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1e0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  mov    -0x220(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xb8(%rbp),%xmm2
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb0(%rbp),%xmm2
  mov    -0x220(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1a8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1d8(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  mov    -0x228(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0xb8(%rbp),%xmm2
  mov    -0x228(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb0(%rbp),%xmm2
  mov    -0x228(%rbp),%rax
  add    $0x10,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x1a8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x1d0(%rbp)
  mov    -0x1e0(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L36
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1e0(%rbp)
L36:
  mov    -0x1d8(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L102
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1d8(%rbp)
L102:
  mov    -0x1d0(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jg     L189
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1d0(%rbp)
L189:
  movsd  -0x1e0(%rbp),%xmm0
  mulsd  -0x1d8(%rbp),%xmm0
  movsd  %xmm0,-0x1a0(%rbp)
  movsd  -0x1e0(%rbp),%xmm0
  mulsd  -0x1d0(%rbp),%xmm0
  movsd  %xmm0,-0x198(%rbp)
  movsd  -0x1a0(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L321
  movsd  -0x198(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L321
  mov    $0x0,%eax
  jmp    L125
L321:
  movsd  -0xd8(%rbp),%xmm1
  movsd  -0xb0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0xd0(%rbp),%xmm2
  movsd  -0xb8(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movsd  -0xd0(%rbp),%xmm1
  movsd  -0xc0(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0xe0(%rbp),%xmm2
  movsd  -0xb0(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x98(%rbp)
  movsd  -0xe0(%rbp),%xmm1
  movsd  -0xb8(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0xd8(%rbp),%xmm2
  movsd  -0xc0(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  mov    -0xa0(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x1c8(%rbp)
  movw   $0x0,-0x202(%rbp)
  mov    -0x98(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x190(%rbp)
  mov    -0x90(%rbp),%rax
  movq   %rax,%xmm0
  call   <fabs@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x188(%rbp)
  movsd  -0x190(%rbp),%xmm0
  comisd -0x1c8(%rbp),%xmm0
  jbe    L59
  movsd  -0x190(%rbp),%xmm0
  movsd  %xmm0,-0x1c8(%rbp)
  movw   $0x1,-0x202(%rbp)
L59:
  movsd  -0x188(%rbp),%xmm0
  comisd -0x1c8(%rbp),%xmm0
  jbe    L75
  movsd  -0x188(%rbp),%xmm0
  movsd  %xmm0,-0x1c8(%rbp)
  movw   $0x2,-0x202(%rbp)
L75:
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x218(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x180(%rbp)
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x220(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x178(%rbp)
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x228(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x170(%rbp)
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x230(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x168(%rbp)
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x160(%rbp)
  movswq -0x202(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x240(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x158(%rbp)
  lea    -0x80(%rbp),%r9
  lea    -0x140(%rbp),%rax
  lea    0x8(%rax),%r10
  lea    -0x140(%rbp),%rcx
  movsd  -0x198(%rbp),%xmm6
  movsd  -0x1a0(%rbp),%xmm5
  movsd  -0x1d0(%rbp),%xmm4
  movsd  -0x1d8(%rbp),%xmm3
  movsd  -0x1e0(%rbp),%xmm2
  movsd  -0x170(%rbp),%xmm1
  movsd  -0x178(%rbp),%xmm0
  mov    -0x180(%rbp),%rdi
  mov    -0x228(%rbp),%rdx
  mov    -0x220(%rbp),%rsi
  mov    -0x218(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x60(%rbp),%r8
  push   %r8
  mov    %r10,%r8
  movapd %xmm6,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm4,%xmm5
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <compute_intervals_isectline@plt>
  add    $0x10,%rsp
  mov    -0x248(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    -0x248(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L320
  mov    -0x238(%rbp),%r8
  mov    -0x230(%rbp),%rdi
  mov    -0x228(%rbp),%rcx
  mov    -0x220(%rbp),%rdx
  mov    -0x218(%rbp),%rsi
  lea    -0xe0(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x240(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <coplanar_tri_tri@plt>
  add    $0x10,%rsp
  jmp    L125
L320:
  lea    -0x40(%rbp),%r9
  lea    -0x130(%rbp),%rax
  lea    0x8(%rax),%r10
  lea    -0x130(%rbp),%rcx
  movsd  -0x1b0(%rbp),%xmm6
  movsd  -0x1b8(%rbp),%xmm5
  movsd  -0x1e8(%rbp),%xmm4
  movsd  -0x1f0(%rbp),%xmm3
  movsd  -0x1f8(%rbp),%xmm2
  movsd  -0x158(%rbp),%xmm1
  movsd  -0x160(%rbp),%xmm0
  mov    -0x168(%rbp),%rdi
  mov    -0x240(%rbp),%rdx
  mov    -0x238(%rbp),%rsi
  mov    -0x230(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x20(%rbp),%r8
  push   %r8
  mov    %r10,%r8
  movapd %xmm6,%xmm7
  movapd %xmm5,%xmm6
  movapd %xmm4,%xmm5
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <compute_intervals_isectline@plt>
  add    $0x10,%rsp
  movsd  -0x140(%rbp),%xmm0
  movsd  -0x138(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L87
  movsd  -0x140(%rbp),%xmm0
  movsd  %xmm0,-0x150(%rbp)
  movsd  -0x138(%rbp),%xmm0
  movsd  %xmm0,-0x140(%rbp)
  movsd  -0x150(%rbp),%xmm0
  movsd  %xmm0,-0x138(%rbp)
  movl   $0x1,-0x200(%rbp)
  jmp    L151
L87:
  movl   $0x0,-0x200(%rbp)
L151:
  movsd  -0x130(%rbp),%xmm0
  movsd  -0x128(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L83
  movsd  -0x130(%rbp),%xmm0
  movsd  %xmm0,-0x148(%rbp)
  movsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,-0x130(%rbp)
  movsd  -0x148(%rbp),%xmm0
  movsd  %xmm0,-0x128(%rbp)
  movl   $0x1,-0x1fc(%rbp)
  jmp    L135
L83:
  movl   $0x0,-0x1fc(%rbp)
L135:
  movsd  -0x138(%rbp),%xmm1
  movsd  -0x130(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L232
  movsd  -0x128(%rbp),%xmm1
  movsd  -0x140(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L352
L232:
  mov    $0x0,%eax
  jmp    L125
L352:
  movsd  -0x130(%rbp),%xmm1
  movsd  -0x140(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L282
  cmpl   $0x0,-0x200(%rbp)
  jne    L91
  movsd  -0x80(%rbp),%xmm0
  mov    -0x250(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L42
L91:
  movsd  -0x60(%rbp),%xmm0
  mov    -0x250(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L42:
  movsd  -0x128(%rbp),%xmm1
  movsd  -0x138(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L62
  cmpl   $0x0,-0x1fc(%rbp)
  jne    L109
  movsd  -0x20(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L109:
  movsd  -0x40(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L62:
  cmpl   $0x0,-0x200(%rbp)
  jne    L114
  movsd  -0x60(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L114:
  movsd  -0x80(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L282:
  cmpl   $0x0,-0x1fc(%rbp)
  jne    L169
  movsd  -0x40(%rbp),%xmm0
  mov    -0x250(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L160
L169:
  movsd  -0x20(%rbp),%xmm0
  mov    -0x250(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x250(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L160:
  movsd  -0x128(%rbp),%xmm0
  movsd  -0x138(%rbp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L167
  cmpl   $0x0,-0x200(%rbp)
  jne    L412
  movsd  -0x60(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x58(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L412:
  movsd  -0x80(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x78(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L167:
  cmpl   $0x0,-0x1fc(%rbp)
  jne    L168
  movsd  -0x20(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L403
L168:
  movsd  -0x40(%rbp),%xmm0
  mov    -0x258(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x8,%rax
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x258(%rbp),%rax
  add    $0x10,%rax
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,(%rax)
L403:
  mov    $0x1,%eax
L125:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L194
  call   <__stack_chk_fail@plt>
L194:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D2
type: f32[2]

tool: {"D2": [0.0,-0.0]}

assistant: ```c
int tri_tri_intersect_with_isectline(double V0[3], double V1[3], double V2[3], double U0[3], double U1[3], double U2[3], int *coplanar, double isectpt1[3], double isectpt2[3]) {
  double E1[3], E2[3];
  double N1[3], N2[3], d1, d2;
  double du0, du1, du2, dv0, dv1, dv2;
  double D[3];
  double isect1[2] = {0, 0}, isect2[2] = {0, 0};
  double isectpointA1[3] = {0, 0, 0}, isectpointA2[3] = {0, 0, 0};
  double isectpointB1[3] = {0, 0, 0}, isectpointB2[3] = {0, 0, 0};
  double du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  double vp0, vp1, vp2;
  double up0, up1, up2;
  double b, c, max;
  int smallest1, smallest2;
  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) < 10e-6)
    du0 = 0.0;
  if (fabs(du1) < 10e-6)
    du1 = 0.0;
  if (fabs(du2) < 10e-6)
    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) < 10e-6)
    dv0 = 0.0;
  if (fabs(dv1) < 10e-6)
    dv1 = 0.0;
  if (fabs(dv2) < 10e-6)
    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];
  *coplanar = compute_intervals_isectline(V0, V1, V2, vp0, vp1, vp2, dv0, dv1, dv2, dv0dv1, dv0dv2, &isect1[0], &isect1[1], isectpointA1, isectpointA2);
  if (*coplanar)
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  compute_intervals_isectline(U0, U1, U2, up0, up1, up2, du0, du1, du2, du0du1, du0du2, &isect2[0], &isect2[1], isectpointB1, isectpointB2);
  if (isect1[0] > isect1[1]) {
    double c;
    c = isect1[0];
    isect1[0] = isect1[1];
    isect1[1] = c;
    smallest1 = 1;
  } else
    smallest1 = 0;
  ;
  if (isect2[0] > isect2[1]) {
    double c;
    c = isect2[0];
    isect2[0] = isect2[1];
    isect2[1] = c;
    smallest2 = 1;
  } else
    smallest2 = 0;
  ;
  if (isect1[1] < isect2[0] || isect2[1] < isect1[0])
    return 0;
  if (isect2[0] < isect1[0]) {
    if (smallest1 == 0) {
      isectpt1[0] = isectpointA1[0];
      isectpt1[1] = isectpointA1[1];
      isectpt1[2] = isectpointA1[2];
      ;
    } else {
      isectpt1[0] = isectpointA2[0];
      isectpt1[1] = isectpointA2[1];
      isectpt1[2] = isectpointA2[2];
      ;
    }
    if (isect2[1] < isect1[1]) {
      if (smallest2 == 0) {
        isectpt2[0] = isectpointB2[0];
        isectpt2[1] = isectpointB2[1];
        isectpt2[2] = isectpointB2[2];
        ;
      } else {
        isectpt2[0] = isectpointB1[0];
        isectpt2[1] = isectpointB1[1];
        isectpt2[2] = isectpointB1[2];
        ;
      }
    } else {
      if (smallest1 == 0) {
        isectpt2[0] = isectpointA2[0];
        isectpt2[1] = isectpointA2[1];
        isectpt2[2] = isectpointA2[2];
        ;
      } else {
        isectpt2[0] = isectpointA1[0];
        isectpt2[1] = isectpointA1[1];
        isectpt2[2] = isectpointA1[2];
        ;
      }
    }
  } else {
    if (smallest2 == 0) {
      isectpt1[0] = isectpointB1[0];
      isectpt1[1] = isectpointB1[1];
      isectpt1[2] = isectpointB1[2];
      ;
    } else {
      isectpt1[0] = isectpointB2[0];
      isectpt1[1] = isectpointB2[1];
      isectpt1[2] = isectpointB2[2];
      ;
    }
    if (isect2[1] > isect1[1]) {
      if (smallest1 == 0) {
        isectpt2[0] = isectpointA2[0];
        isectpt2[1] = isectpointA2[1];
        isectpt2[2] = isectpointA2[2];
        ;
      } else {
        isectpt2[0] = isectpointA1[0];
        isectpt2[1] = isectpointA1[1];
        isectpt2[2] = isectpointA1[2];
        ;
      }
    } else {
      if (smallest2 == 0) {
        isectpt2[0] = isectpointB2[0];
        isectpt2[1] = isectpointB2[1];
        isectpt2[2] = isectpointB2[2];
        ;
      } else {
        isectpt2[0] = isectpointB1[0];
        isectpt2[1] = isectpointB1[1];
        isectpt2[2] = isectpointB1[2];
        ;
      }
    }
  }
  return 1;
}
```