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

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  mov    0x190(%rsp),%rax
  mov    %rax,0x40(%rsp)
  mov    0x198(%rsp),%rax
  mov    %rax,0x80(%rsp)
  mov    0x1a0(%rsp),%rax
  mov    %rax,0x88(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x90(%rsp)
  movq   $0x0,0x98(%rsp)
  movq   $0x0,0xa0(%rsp)
  movq   $0x0,0xa8(%rsp)
  movq   $0x0,0xd0(%rsp)
  movq   $0x0,0xd8(%rsp)
  movq   $0x0,0xe0(%rsp)
  movq   $0x0,0xf0(%rsp)
  movq   $0x0,0xf8(%rsp)
  movq   $0x0,0x100(%rsp)
  movq   $0x0,0x110(%rsp)
  movq   $0x0,0x118(%rsp)
  movq   $0x0,0x120(%rsp)
  movq   $0x0,0x130(%rsp)
  movq   $0x0,0x138(%rsp)
  movq   $0x0,0x140(%rsp)
  movsd  (%rdi),%xmm3
  movsd  (%rsi),%xmm2
  subsd  %xmm3,%xmm2
  movsd  0x8(%rdi),%xmm7
  movsd  0x8(%rsi),%xmm4
  subsd  %xmm7,%xmm4
  movsd  0x10(%rdi),%xmm6
  movsd  0x10(%rsi),%xmm0
  subsd  %xmm6,%xmm0
  movsd  (%rdx),%xmm8
  subsd  %xmm3,%xmm8
  movsd  0x8(%rdx),%xmm9
  subsd  %xmm7,%xmm9
  movsd  0x10(%rdx),%xmm5
  subsd  %xmm6,%xmm5
  movapd %xmm4,%xmm1
  mulsd  %xmm5,%xmm1
  movapd %xmm0,%xmm10
  mulsd  %xmm9,%xmm10
  subsd  %xmm10,%xmm1
  movsd  %xmm1,0xb0(%rsp)
  mulsd  %xmm8,%xmm0
  mulsd  %xmm2,%xmm5
  subsd  %xmm5,%xmm0
  movsd  %xmm0,0xb8(%rsp)
  mulsd  %xmm9,%xmm2
  mulsd  %xmm8,%xmm4
  subsd  %xmm4,%xmm2
  movsd  %xmm2,0xc0(%rsp)
  mulsd  %xmm1,%xmm3
  mulsd  %xmm0,%xmm7
  addsd  %xmm7,%xmm3
  mulsd  %xmm2,%xmm6
  addsd  %xmm6,%xmm3
  movapd %xmm1,%xmm4
  mulsd  (%rcx),%xmm4
  movapd %xmm0,%xmm5
  mulsd  0x8(%rcx),%xmm5
  addsd  %xmm5,%xmm4
  movapd %xmm2,%xmm5
  mulsd  0x10(%rcx),%xmm5
  addsd  %xmm5,%xmm4
  movapd %xmm4,%xmm7
  subsd  %xmm3,%xmm7
  movsd  %xmm7,0x30(%rsp)
  movapd %xmm1,%xmm4
  mulsd  (%r8),%xmm4
  movapd %xmm0,%xmm5
  mulsd  0x8(%r8),%xmm5
  addsd  %xmm5,%xmm4
  movapd %xmm2,%xmm5
  mulsd  0x10(%r8),%xmm5
  addsd  %xmm5,%xmm4
  subsd  %xmm3,%xmm4
  movsd  %xmm4,0x8(%rsp)
  mulsd  (%r9),%xmm1
  mulsd  0x8(%r9),%xmm0
  addsd  %xmm0,%xmm1
  mulsd  0x10(%r9),%xmm2
  addsd  %xmm2,%xmm1
  subsd  %xmm3,%xmm1
  movsd  %xmm1,0x10(%rsp)
  movapd %xmm7,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L424
L34:
  movsd  0x8(%rsp),%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L25
L235:
  movsd  0x10(%rsp),%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L391
L200:
  movsd  0x30(%rsp),%xmm6
  movapd %xmm6,%xmm7
  mulsd  0x8(%rsp),%xmm7
  movsd  %xmm7,0x48(%rsp)
  mulsd  0x10(%rsp),%xmm6
  movsd  %xmm6,0x50(%rsp)
  comisd D6(%rip),%xmm7
  jbe    L55
  movl   $0x0,0x18(%rsp)
  comisd D6(%rip),%xmm6
  ja     L210
L55:
  movsd  0x0(%r13),%xmm0
  movsd  (%r14),%xmm2
  subsd  %xmm0,%xmm2
  movsd  0x8(%r13),%xmm6
  movsd  0x8(%r14),%xmm1
  subsd  %xmm6,%xmm1
  movsd  0x10(%r13),%xmm5
  movsd  0x10(%r14),%xmm4
  subsd  %xmm5,%xmm4
  movsd  (%r15),%xmm7
  subsd  %xmm0,%xmm7
  movsd  0x8(%r15),%xmm8
  subsd  %xmm6,%xmm8
  movsd  0x10(%r15),%xmm3
  subsd  %xmm5,%xmm3
  movapd %xmm1,%xmm10
  mulsd  %xmm3,%xmm10
  movapd %xmm4,%xmm9
  mulsd  %xmm8,%xmm9
  movapd %xmm10,%xmm11
  subsd  %xmm9,%xmm11
  movsd  %xmm11,0x58(%rsp)
  mulsd  %xmm7,%xmm4
  mulsd  %xmm2,%xmm3
  subsd  %xmm3,%xmm4
  movapd %xmm4,%xmm3
  movsd  %xmm4,0x60(%rsp)
  mulsd  %xmm8,%xmm2
  mulsd  %xmm7,%xmm1
  movapd %xmm2,%xmm4
  subsd  %xmm1,%xmm4
  movsd  %xmm4,0x68(%rsp)
  mulsd  %xmm11,%xmm0
  mulsd  %xmm3,%xmm6
  addsd  %xmm6,%xmm0
  movapd %xmm5,%xmm1
  movapd %xmm4,%xmm5
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm11,%xmm1
  mulsd  (%rbx),%xmm1
  movapd %xmm3,%xmm7
  movapd %xmm3,%xmm2
  mulsd  0x8(%rbx),%xmm2
  addsd  %xmm2,%xmm1
  movapd %xmm4,%xmm2
  mulsd  0x10(%rbx),%xmm2
  addsd  %xmm2,%xmm1
  movapd %xmm1,%xmm3
  subsd  %xmm0,%xmm3
  movsd  %xmm3,0x38(%rsp)
  movapd %xmm11,%xmm6
  movapd %xmm11,%xmm1
  mulsd  0x0(%rbp),%xmm1
  movapd %xmm7,%xmm2
  mulsd  0x8(%rbp),%xmm2
  addsd  %xmm2,%xmm1
  movapd %xmm4,%xmm2
  mulsd  0x10(%rbp),%xmm2
  addsd  %xmm2,%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x20(%rsp)
  mulsd  (%r12),%xmm6
  movapd %xmm6,%xmm1
  mulsd  0x8(%r12),%xmm7
  addsd  %xmm7,%xmm1
  mulsd  0x10(%r12),%xmm5
  addsd  %xmm5,%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x28(%rsp)
  movapd %xmm3,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L105
L340:
  movsd  0x20(%rsp),%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L147
L387:
  movsd  0x28(%rsp),%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L355
L323:
  movsd  0x38(%rsp),%xmm3
  movapd %xmm3,%xmm6
  mulsd  0x20(%rsp),%xmm6
  movsd  %xmm6,0x70(%rsp)
  mulsd  0x28(%rsp),%xmm3
  movsd  %xmm3,0x78(%rsp)
  comisd D6(%rip),%xmm6
  jbe    L140
  movl   $0x0,0x18(%rsp)
  comisd D6(%rip),%xmm3
  ja     L210
L140:
  movsd  0xb8(%rsp),%xmm3
  movsd  0xc0(%rsp),%xmm2
  movsd  0xb0(%rsp),%xmm0
  movsd  0x58(%rsp),%xmm6
  movapd %xmm6,%xmm4
  mulsd  %xmm2,%xmm4
  movsd  0x68(%rsp),%xmm7
  movapd %xmm7,%xmm1
  mulsd  %xmm0,%xmm1
  subsd  %xmm1,%xmm4
  movsd  %xmm4,0x18(%rsp)
  movapd %xmm0,%xmm1
  movsd  0x60(%rsp),%xmm5
  mulsd  %xmm5,%xmm1
  mulsd  %xmm3,%xmm6
  subsd  %xmm6,%xmm1
  movsd  %xmm1,0x58(%rsp)
  mulsd  %xmm3,%xmm7
  movapd %xmm7,%xmm0
  mulsd  %xmm2,%xmm5
  subsd  %xmm5,%xmm0
  call   <fabs@plt>
  mov    %eax,0x60(%rsp)
  movsd  0x18(%rsp),%xmm0
  call   <fabs@plt>
  mov    %eax,0x18(%rsp)
  movsd  0x58(%rsp),%xmm0
  call   <fabs@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    0x60(%rsp),%esi
  mov    0x18(%rsp),%eax
  cmp    %eax,%esi
  jl     L157
  pxor   %xmm0,%xmm0
  cvtsi2sd %esi,%xmm0
  mov    $0x0,%eax
L96:
  ucomisd %xmm0,%xmm1
  mov    $0x2,%edx
  cmova  %edx,%eax
  movswq %ax,%rax
  movsd  0x0(%r13,%rax,8),%xmm6
  movsd  %xmm6,0x58(%rsp)
  movsd  (%r14,%rax,8),%xmm6
  movsd  %xmm6,0x60(%rsp)
  movsd  (%r15,%rax,8),%xmm6
  movsd  %xmm6,0x68(%rsp)
  lea    0x90(%rsp),%rcx
  movsd  (%rbx,%rax,8),%xmm0
  sub    $0x8,%rsp
  lea    0xf8(%rsp),%rdx
  push   %rdx
  lea    0xe0(%rsp),%r9
  lea    0xa8(%rsp),%r8
  movsd  0x88(%rsp),%xmm7
  movsd  0x80(%rsp),%xmm6
  movsd  0x38(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm4
  movsd  0x48(%rsp),%xmm3
  movsd  (%r12,%rax,8),%xmm2
  movsd  0x0(%rbp,%rax,8),%xmm1
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <compute_intervals_isectline@plt>
  mov    %eax,0x28(%rsp)
  mov    0x50(%rsp),%rdi
  mov    %eax,(%rdi)
  add    $0x10,%rsp
  test   %eax,%eax
  jne    L129
  lea    0xa0(%rsp),%rcx
  sub    $0x8,%rsp
  lea    0x138(%rsp),%rax
  push   %rax
  lea    0x120(%rsp),%r9
  lea    0xb8(%rsp),%r8
  movsd  0x60(%rsp),%xmm7
  movsd  0x58(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm4
  movsd  0x40(%rsp),%xmm3
  movsd  0x78(%rsp),%xmm2
  movsd  0x70(%rsp),%xmm1
  movsd  0x68(%rsp),%xmm0
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <compute_intervals_isectline@plt>
  movsd  0xa0(%rsp),%xmm0
  movsd  0xa8(%rsp),%xmm1
  add    $0x10,%rsp
  comisd %xmm1,%xmm0
  jbe    L282
  movsd  %xmm1,0x90(%rsp)
  movsd  %xmm0,0x98(%rsp)
  mov    $0x1,%edx
L392:
  movsd  0xa0(%rsp),%xmm0
  movsd  0xa8(%rsp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L232
  movsd  %xmm1,0xa0(%rsp)
  movsd  %xmm0,0xa8(%rsp)
  mov    $0x1,%eax
L358:
  movsd  0x98(%rsp),%xmm1
  movsd  0xa0(%rsp),%xmm0
  comisd %xmm1,%xmm0
  ja     L210
  movsd  0xa8(%rsp),%xmm3
  movsd  0x90(%rsp),%xmm2
  comisd %xmm3,%xmm2
  ja     L210
  comisd %xmm0,%xmm2
  jbe    L69
  test   %edx,%edx
  jne    L215
  movsd  0xd0(%rsp),%xmm0
  mov    0x80(%rsp),%rdi
  movsd  %xmm0,(%rdi)
  movsd  0xd8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0xe0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rdi)
  comisd %xmm3,%xmm1
  jbe    L401
L137:
  test   %eax,%eax
  jne    L353
  movsd  0x130(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x138(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x140(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x18(%rsp)
  jmp    L210
L424:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x30(%rsp)
  jmp    L34
L25:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  jmp    L235
L391:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x10(%rsp)
  jmp    L200
L105:
  pxor   %xmm3,%xmm3
  movsd  %xmm3,0x38(%rsp)
  jmp    L340
L147:
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x20(%rsp)
  jmp    L387
L355:
  pxor   %xmm2,%xmm2
  movsd  %xmm2,0x28(%rsp)
  jmp    L323
L157:
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x18(%rsp),%xmm0
  mov    $0x1,%eax
  jmp    L96
L129:
  lea    0xb0(%rsp),%rdi
  sub    $0x8,%rsp
  push   %r15
  mov    %r14,%r9
  mov    %r13,%r8
  mov    %r12,%rcx
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  call   <coplanar_tri_tri@plt>
  mov    %eax,0x28(%rsp)
  add    $0x10,%rsp
L210:
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L404
  mov    0x18(%rsp),%eax
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L282:
  mov    0x18(%rsp),%edx
  jmp    L392
L232:
  mov    0x18(%rsp),%eax
  jmp    L358
L215:
  movsd  0xf0(%rsp),%xmm0
  mov    0x80(%rsp),%rcx
  movsd  %xmm0,(%rcx)
  movsd  0xf8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rcx)
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x10(%rcx)
  comisd %xmm3,%xmm1
  ja     L137
  movsd  0xd0(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xd8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xe0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    %edx,0x18(%rsp)
  jmp    L210
L353:
  movsd  0x110(%rsp),%xmm0
  mov    0x88(%rsp),%rcx
  movsd  %xmm0,(%rcx)
  movsd  0x118(%rsp),%xmm0
  movsd  %xmm0,0x8(%rcx)
  movsd  0x120(%rsp),%xmm0
  movsd  %xmm0,0x10(%rcx)
  mov    %eax,0x18(%rsp)
  jmp    L210
L401:
  movsd  0xf0(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xf8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x18(%rsp)
  jmp    L210
L69:
  test   %eax,%eax
  jne    L53
  movsd  0x110(%rsp),%xmm0
  mov    0x80(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x118(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x120(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  comisd %xmm1,%xmm3
  jbe    L301
L130:
  test   %edx,%edx
  jne    L15
  movsd  0xf0(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xf8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x18(%rsp)
  jmp    L210
L53:
  movsd  0x130(%rsp),%xmm0
  mov    0x80(%rsp),%rdi
  movsd  %xmm0,(%rdi)
  movsd  0x138(%rsp),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x140(%rsp),%xmm0
  movsd  %xmm0,0x10(%rdi)
  comisd %xmm1,%xmm3
  ja     L130
  movsd  0x110(%rsp),%xmm0
  mov    0x88(%rsp),%rdi
  movsd  %xmm0,(%rdi)
  movsd  0x118(%rsp),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x120(%rsp),%xmm0
  movsd  %xmm0,0x10(%rdi)
  mov    %eax,0x18(%rsp)
  jmp    L210
L15:
  movsd  0xd0(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xd8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xe0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    %edx,0x18(%rsp)
  jmp    L210
L301:
  movsd  0x130(%rsp),%xmm0
  mov    0x88(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x138(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x140(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x18(%rsp)
  jmp    L210
L404:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D6
type_infered: f64

tool: D6: 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;
}
```