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

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %r15
  mov    %rdx,%r10
  mov    %r9,%r15
  push   %r14
  mov    %r8,%r14
  push   %r13
  mov    %rcx,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x128,%rsp
  movsd  (%rdi),%xmm5
  mov    (%rsi),%r8
  mov    0x168(%rsp),%rax
  mov    0x8(%rsi),%rdi
  mov    0x10(%rsi),%rsi
  mov    (%rdx),%rcx
  movq   %r8,%xmm0
  movapd %xmm5,%xmm11
  mov    %rax,0x50(%rsp)
  mov    0x170(%rsp),%rax
  movq   %rdi,%xmm3
  subsd  %xmm5,%xmm0
  movsd  0x8(%rbp),%xmm15
  movsd  0x10(%rbp),%xmm7
  movq   %rsi,%xmm1
  movq   %rcx,%xmm8
  mov    %rax,0x58(%rsp)
  mov    0x8(%rdx),%rdx
  subsd  %xmm5,%xmm8
  subsd  %xmm15,%xmm3
  subsd  %xmm7,%xmm1
  movsd  0x10(%r13),%xmm14
  mov    0x160(%rsp),%r11
  movq   %rdx,%xmm9
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  mov    0x10(%r10),%rax
  subsd  %xmm15,%xmm9
  movsd  %xmm15,0x20(%rsp)
  movapd %xmm3,%xmm2
  movapd %xmm1,%xmm4
  mulsd  %xmm8,%xmm1
  movq   %rax,%xmm6
  subsd  %xmm7,%xmm6
  mulsd  %xmm9,%xmm4
  mulsd  %xmm8,%xmm3
  mulsd  %xmm6,%xmm2
  mulsd  %xmm0,%xmm6
  mulsd  %xmm9,%xmm0
  subsd  %xmm4,%xmm2
  movsd  0x8(%r13),%xmm4
  subsd  %xmm6,%xmm1
  subsd  %xmm3,%xmm0
  movapd %xmm15,%xmm3
  movsd  %xmm4,0x8(%rsp)
  movsd  %xmm2,0x80(%rsp)
  mulsd  %xmm2,%xmm11
  mulsd  %xmm1,%xmm3
  movapd %xmm1,%xmm9
  movapd %xmm1,%xmm10
  movsd  %xmm1,0x88(%rsp)
  movsd  %xmm0,0x90(%rsp)
  addsd  %xmm3,%xmm11
  movapd %xmm7,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm11
  movsd  0x0(%r13),%xmm3
  movsd  %xmm3,(%rsp)
  movapd %xmm3,%xmm6
  movapd %xmm4,%xmm3
  mulsd  %xmm2,%xmm6
  movsd  %xmm14,0x10(%rsp)
  movsd  (%r14),%xmm8
  movsd  0x10(%r14),%xmm13
  mulsd  %xmm1,%xmm3
  movsd  0x8(%r9),%xmm15
  mulsd  %xmm15,%xmm10
  addsd  %xmm6,%xmm3
  movapd %xmm14,%xmm6
  movsd  0x10(%r9),%xmm14
  mulsd  %xmm0,%xmm6
  movsd  %xmm14,0x30(%rsp)
  addsd  %xmm6,%xmm3
  movapd %xmm2,%xmm6
  mulsd  %xmm8,%xmm6
  movapd %xmm3,%xmm4
  movsd  0x8(%r14),%xmm3
  subsd  %xmm11,%xmm4
  mulsd  %xmm3,%xmm9
  movsd  %xmm4,0x18(%rsp)
  addsd  %xmm6,%xmm9
  movapd %xmm0,%xmm6
  mulsd  %xmm13,%xmm6
  addsd  %xmm6,%xmm9
  movsd  (%r9),%xmm6
  movapd %xmm6,%xmm12
  movsd  %xmm6,0x28(%rsp)
  mulsd  %xmm2,%xmm12
  subsd  %xmm11,%xmm9
  addsd  %xmm12,%xmm10
  movapd %xmm0,%xmm12
  mulsd  %xmm14,%xmm12
  movq   D0(%rip),%xmm14
  andpd  %xmm14,%xmm4
  addsd  %xmm12,%xmm10
  pxor   %xmm12,%xmm12
  subsd  %xmm11,%xmm10
  movsd  D12(%rip),%xmm11
  comisd %xmm4,%xmm11
  jbe    L260
  movsd  %xmm12,0x18(%rsp)
L260:
  movapd %xmm9,%xmm4
  movsd  0x18(%rsp),%xmm6
  andpd  %xmm14,%xmm4
  cmpnltsd %xmm11,%xmm4
  andpd  %xmm4,%xmm9
  movapd %xmm10,%xmm4
  andpd  %xmm14,%xmm4
  cmpnltsd %xmm11,%xmm4
  andpd  %xmm4,%xmm10
  movapd %xmm6,%xmm4
  mulsd  %xmm9,%xmm4
  mulsd  %xmm10,%xmm6
  comisd %xmm12,%xmm4
  movsd  %xmm4,0x40(%rsp)
  movsd  %xmm6,0x48(%rsp)
  jbe    L23
  comisd %xmm12,%xmm6
  ja     L209
L23:
  movsd  (%rsp),%xmm6
  subsd  0x8(%rsp),%xmm3
  subsd  0x10(%rsp),%xmm13
  subsd  %xmm6,%xmm8
  movsd  %xmm8,0x38(%rsp)
  movsd  0x28(%rsp),%xmm8
  subsd  %xmm6,%xmm8
  movapd %xmm15,%xmm6
  subsd  0x8(%rsp),%xmm6
  movapd %xmm3,%xmm15
  movapd %xmm8,%xmm4
  movapd %xmm6,%xmm8
  movsd  0x30(%rsp),%xmm6
  subsd  0x10(%rsp),%xmm6
  movsd  %xmm8,0x28(%rsp)
  mulsd  %xmm13,%xmm8
  mulsd  %xmm4,%xmm13
  mulsd  %xmm6,%xmm15
  mulsd  %xmm4,%xmm3
  movsd  0x20(%rsp),%xmm4
  subsd  %xmm8,%xmm15
  movsd  0x38(%rsp),%xmm8
  mulsd  %xmm8,%xmm6
  mulsd  0x28(%rsp),%xmm8
  mulsd  %xmm15,%xmm5
  subsd  %xmm6,%xmm13
  movsd  0x8(%rsp),%xmm6
  subsd  %xmm3,%xmm8
  movsd  (%rsp),%xmm3
  mulsd  %xmm13,%xmm6
  mulsd  %xmm15,%xmm3
  mulsd  %xmm13,%xmm4
  mulsd  %xmm8,%xmm7
  addsd  %xmm3,%xmm6
  movsd  0x10(%rsp),%xmm3
  mulsd  %xmm8,%xmm3
  addsd  %xmm3,%xmm6
  movapd %xmm5,%xmm3
  movq   %r8,%xmm5
  addsd  %xmm4,%xmm3
  mulsd  %xmm15,%xmm5
  movq   %rdi,%xmm4
  mulsd  %xmm13,%xmm4
  addsd  %xmm7,%xmm3
  movq   %rcx,%xmm7
  mulsd  %xmm15,%xmm7
  addsd  %xmm5,%xmm4
  movq   %rsi,%xmm5
  subsd  %xmm6,%xmm3
  mulsd  %xmm8,%xmm5
  addsd  %xmm5,%xmm4
  movq   %rdx,%xmm5
  mulsd  %xmm13,%xmm5
  subsd  %xmm6,%xmm4
  addsd  %xmm7,%xmm5
  movq   %rax,%xmm7
  mulsd  %xmm8,%xmm7
  addsd  %xmm7,%xmm5
  subsd  %xmm6,%xmm5
  movapd %xmm3,%xmm6
  andpd  %xmm14,%xmm6
  cmpnltsd %xmm11,%xmm6
  andpd  %xmm6,%xmm3
  movapd %xmm4,%xmm6
  andpd  %xmm14,%xmm6
  movapd %xmm3,%xmm7
  cmpnltsd %xmm11,%xmm6
  andpd  %xmm6,%xmm4
  movapd %xmm5,%xmm6
  andpd  %xmm14,%xmm6
  cmpnltsd %xmm11,%xmm6
  andpd  %xmm6,%xmm5
  movapd %xmm3,%xmm6
  mulsd  %xmm4,%xmm6
  mulsd  %xmm5,%xmm7
  comisd %xmm12,%xmm6
  jbe    L135
  comisd %xmm12,%xmm7
  ja     L209
L135:
  movapd %xmm1,%xmm12
  movapd %xmm0,%xmm11
  xor    %edx,%edx
  mulsd  %xmm8,%xmm12
  mulsd  %xmm13,%xmm11
  mulsd  %xmm2,%xmm8
  mulsd  %xmm15,%xmm0
  mulsd  %xmm13,%xmm2
  mulsd  %xmm15,%xmm1
  subsd  %xmm11,%xmm12
  subsd  %xmm8,%xmm0
  andpd  %xmm14,%xmm12
  subsd  %xmm1,%xmm2
  andpd  %xmm14,%xmm0
  comisd %xmm12,%xmm0
  andpd  %xmm14,%xmm2
  jbe    L234
  movapd %xmm0,%xmm12
  mov    $0x1,%edx
L234:
  comisd %xmm12,%xmm2
  mov    $0x10,%eax
  jbe    L18
L79:
  movsd  0x0(%r13,%rax,1),%xmm14
  mov    %r11,0x38(%rsp)
  mov    %rbp,%rdi
  mov    %r12,%rsi
  movsd  (%r14,%rax,1),%xmm8
  movsd  (%r15,%rax,1),%xmm13
  movsd  %xmm10,0x30(%rsp)
  lea    0x60(%rsp),%rcx
  sub    $0x8,%rsp
  movsd  %xmm9,0x30(%rsp)
  movsd  (%r10,%rax,1),%xmm2
  movsd  0x0(%rbp,%rax,1),%xmm0
  movsd  %xmm14,0x28(%rsp)
  movsd  (%r12,%rax,1),%xmm1
  mov    $0x8,%eax
  movsd  %xmm8,0x18(%rsp)
  movsd  %xmm13,0x10(%rsp)
  lea    0xc8(%rsp),%rdx
  push   %rdx
  mov    %r10,%rdx
  lea    0xb0(%rsp),%r9
  lea    0x78(%rsp),%r8
  mov    %r10,0x10(%rsp)
  call   <compute_intervals_isectline@plt>
  mov    0x48(%rsp),%r11
  test   %eax,%eax
  mov    %eax,%ebx
  mov    %eax,(%r11)
  pop    %rdi
  pop    %r8
  mov    (%rsp),%r10
  movsd  0x8(%rsp),%xmm13
  movsd  0x10(%rsp),%xmm8
  movsd  0x20(%rsp),%xmm14
  movsd  0x28(%rsp),%xmm9
  movsd  0x30(%rsp),%xmm10
  jne    L54
  lea    0x70(%rsp),%rcx
  sub    $0x8,%rsp
  mov    %r15,%rdx
  mov    %r14,%rsi
  lea    0x108(%rsp),%rax
  movapd %xmm8,%xmm1
  movapd %xmm14,%xmm0
  mov    %r13,%rdi
  push   %rax
  movapd %xmm10,%xmm5
  movapd %xmm9,%xmm4
  movapd %xmm13,%xmm2
  movsd  0x58(%rsp),%xmm7
  movsd  0x50(%rsp),%xmm6
  mov    $0x8,%eax
  movsd  0x28(%rsp),%xmm3
  lea    0xf0(%rsp),%r9
  lea    0x88(%rsp),%r8
  call   <compute_intervals_isectline@plt>
  movsd  0x70(%rsp),%xmm0
  movsd  0x78(%rsp),%xmm1
  pop    %rax
  xor    %eax,%eax
  pop    %rdx
  comisd %xmm1,%xmm0
  jbe    L199
  movsd  %xmm1,0x60(%rsp)
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm1
  movsd  %xmm1,0x68(%rsp)
L199:
  movsd  0x70(%rsp),%xmm0
  movsd  0x78(%rsp),%xmm2
  comisd %xmm2,%xmm0
  ja     L240
L299:
  comisd %xmm1,%xmm0
  ja     L209
  movsd  0x78(%rsp),%xmm3
  movsd  0x60(%rsp),%xmm2
  comisd %xmm3,%xmm2
  ja     L209
  comisd %xmm0,%xmm2
  jbe    L169
  test   %eax,%eax
  je     L168
  mov    0x50(%rsp),%rsi
  comisd %xmm3,%xmm1
  movsd  0xc0(%rsp),%xmm0
  movsd  %xmm0,(%rsi)
  movsd  0xc8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsi)
  movsd  0xd0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsi)
  jbe    L246
L71:
  test   %ebx,%ebx
  je     L37
L229:
  movsd  0xe0(%rsp),%xmm0
  mov    0x58(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xe8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  jmp    L126
  nopl   (%rax)
L209:
  xor    %ebx,%ebx
L126:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L91
  add    $0x128,%rsp
  mov    %ebx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L18:
  lea    0x0(,%rdx,8),%rax
  jmp    L79
  nopl   (%rax)
L54:
  lea    0x80(%rsp),%rdi
  mov    %r10,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  sub    $0x8,%rsp
  mov    %r14,%r9
  mov    %r13,%r8
  mov    %r12,%rdx
  push   %r15
  call   <coplanar_tri_tri@plt>
  pop    %rcx
  pop    %rsi
  mov    %eax,%ebx
  jmp    L126
  nopw   0x0(%rax,%rax,1)
L240:
  cvtsd2ss %xmm0,%xmm0
  movsd  %xmm2,0x70(%rsp)
  cvtss2sd %xmm0,%xmm0
  mov    $0x1,%ebx
  movsd  %xmm0,0x78(%rsp)
  movapd %xmm2,%xmm0
  jmp    L299
  nopw   0x0(%rax,%rax,1)
L169:
  test   %ebx,%ebx
  je     L172
  mov    0x50(%rsp),%rdi
  comisd %xmm1,%xmm3
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,(%rdi)
  movsd  0x108(%rsp),%xmm0
  movsd  %xmm0,0x8(%rdi)
  movsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x10(%rdi)
  jbe    L229
L158:
  test   %eax,%eax
  jne    L246
L53:
  mov    0x58(%rsp),%rax
  mov    $0x1,%ebx
  movsd  0xc0(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0xc8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xd0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  jmp    L126
  nopl   0x0(%rax)
L172:
  mov    0x50(%rsp),%rbx
  comisd %xmm1,%xmm3
  movsd  0xe0(%rsp),%xmm0
  movsd  %xmm0,(%rbx)
  movsd  0xe8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  ja     L158
L37:
  mov    0x58(%rsp),%rax
  mov    $0x1,%ebx
  movsd  0x100(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x108(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  jmp    L126
  nopl   0x0(%rax)
L168:
  mov    0x50(%rsp),%rax
  comisd %xmm3,%xmm1
  movsd  0xa0(%rsp),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  ja     L71
  jmp    L53
  nopl   (%rax)
L246:
  movsd  0xa0(%rsp),%xmm0
  mov    0x58(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  mov    %eax,%ebx
  jmp    L126
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D0
type_guessed: qword
name: unpack_data
arguments: data_label: D12
type_guessed: f64

tool: D0: 9223372036854775807

tool: D12: 0.005

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], isect2[2];
  double isectpointA1[3], isectpointA2[3];
  double isectpointB1[3], isectpointB2[3];
  double du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  double vp0, vp1, vp2;
  double up0, up1, up2;
  double b, c, max;
  double tmp, diff[3];
  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) < 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.0 && du0du2 > 0.0)
    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.0 && dv0dv2 > 0.0)
    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]) {
    float c;
    c = isect1[0];
    isect1[0] = isect1[1];
    isect1[1] = c;
    smallest1 = 1;
  } else
    smallest1 = 0;
  ;
  if (isect2[0] > isect2[1]) {
    float 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;
}
```