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

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %r15
  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    $0xa8,%rsp
  movss  (%rdi),%xmm12
  mov    (%rsi),%r8d
  mov    0xe8(%rsp),%rax
  mov    0x4(%rsi),%edi
  mov    0x8(%rsi),%esi
  movss  0x4(%rbp),%xmm7
  movd   %r8d,%xmm0
  mov    %rax,0x20(%rsp)
  mov    (%rdx),%ecx
  movd   %edi,%xmm1
  subss  %xmm12,%xmm0
  mov    0xf0(%rsp),%rax
  mov    0x4(%rdx),%r9d
  movd   %esi,%xmm2
  subss  %xmm7,%xmm1
  movss  0x8(%rbp),%xmm15
  movd   %ecx,%xmm4
  mov    0xe0(%rsp),%r11
  mov    %rax,0x28(%rsp)
  movd   %r9d,%xmm6
  subss  %xmm12,%xmm4
  subss  %xmm15,%xmm2
  subss  %xmm7,%xmm6
  movaps %xmm1,%xmm8
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  mov    0x8(%rdx),%eax
  mulss  %xmm4,%xmm1
  movss  %xmm12,0x10(%rsp)
  movaps %xmm2,%xmm5
  mulss  %xmm6,%xmm5
  movd   %eax,%xmm3
  subss  %xmm15,%xmm3
  mulss  %xmm4,%xmm2
  movss  0x0(%r13),%xmm4
  movss  %xmm4,(%rsp)
  mulss  %xmm3,%xmm8
  mulss  %xmm0,%xmm3
  mulss  %xmm6,%xmm0
  movss  0x8(%r13),%xmm6
  subss  %xmm5,%xmm8
  movss  0x4(%r13),%xmm5
  subss  %xmm3,%xmm2
  movaps %xmm7,%xmm3
  subss  %xmm1,%xmm0
  movaps %xmm12,%xmm1
  movss  %xmm5,0xc(%rsp)
  mulss  %xmm8,%xmm1
  movss  %xmm8,0x5c(%rsp)
  mulss  %xmm2,%xmm3
  movss  %xmm2,0x60(%rsp)
  movaps %xmm2,%xmm10
  movaps %xmm2,%xmm11
  mulss  %xmm2,%xmm5
  movss  %xmm0,0x64(%rsp)
  mulss  %xmm8,%xmm4
  movss  %xmm6,0x18(%rsp)
  movss  (%r15),%xmm13
  movss  0x4(%r15),%xmm14
  movss  0x8(%r15),%xmm12
  mulss  %xmm14,%xmm11
  addss  %xmm3,%xmm1
  movaps %xmm15,%xmm3
  mulss  %xmm0,%xmm3
  movaps %xmm5,%xmm9
  movss  0x4(%r14),%xmm5
  addss  %xmm4,%xmm9
  movss  0x8(%r14),%xmm4
  mulss  %xmm5,%xmm10
  addss  %xmm3,%xmm1
  movaps %xmm6,%xmm3
  movaps %xmm8,%xmm6
  mulss  %xmm0,%xmm3
  addss  %xmm3,%xmm9
  movss  (%r14),%xmm3
  mulss  %xmm3,%xmm6
  subss  %xmm1,%xmm9
  addss  %xmm6,%xmm10
  movaps %xmm0,%xmm6
  mulss  %xmm4,%xmm6
  addss  %xmm6,%xmm10
  movaps %xmm8,%xmm6
  mulss  %xmm13,%xmm6
  subss  %xmm1,%xmm10
  addss  %xmm6,%xmm11
  movaps %xmm0,%xmm6
  movss  %xmm10,0x8(%rsp)
  mulss  %xmm12,%xmm6
  addss  %xmm6,%xmm11
  movaps %xmm9,%xmm6
  subss  %xmm1,%xmm11
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm9
  jae    L166
  xorps  D37(%rip),%xmm6
L166:
  movsd  D52(%rip),%xmm10
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm10
  jbe    L226
  movaps %xmm1,%xmm9
L226:
  movss  0x8(%rsp),%xmm10
  comiss %xmm1,%xmm10
  movaps %xmm10,%xmm6
  jae    L326
  xorps  D37(%rip),%xmm6
L326:
  movsd  D52(%rip),%xmm10
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm10
  jbe    L277
  movss  %xmm1,0x8(%rsp)
L277:
  comiss %xmm1,%xmm11
  movaps %xmm11,%xmm6
  jae    L57
  xorps  D37(%rip),%xmm6
L57:
  movsd  D52(%rip),%xmm10
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm10
  jbe    L288
  movaps %xmm1,%xmm11
L288:
  movss  0x8(%rsp),%xmm6
  movaps %xmm9,%xmm10
  mulss  %xmm11,%xmm10
  mulss  %xmm9,%xmm6
  movss  %xmm10,0x30(%rsp)
  comiss %xmm1,%xmm6
  movss  %xmm6,0x1c(%rsp)
  jbe    L114
  comiss %xmm1,%xmm10
  ja     L526
L114:
  movss  0xc(%rsp),%xmm10
  movss  (%rsp),%xmm6
  subss  0x18(%rsp),%xmm4
  subss  %xmm10,%xmm14
  subss  %xmm10,%xmm5
  movaps %xmm12,%xmm10
  subss  0x18(%rsp),%xmm10
  subss  %xmm6,%xmm13
  subss  %xmm6,%xmm3
  movaps %xmm10,%xmm6
  movaps %xmm5,%xmm10
  mulss  %xmm6,%xmm10
  mulss  %xmm3,%xmm6
  mulss  %xmm13,%xmm5
  mulss  %xmm14,%xmm3
  movaps %xmm10,%xmm12
  movaps %xmm4,%xmm10
  mulss  %xmm14,%xmm10
  movd   %edi,%xmm14
  mulss  %xmm13,%xmm4
  subss  %xmm5,%xmm3
  movaps %xmm15,%xmm5
  movd   %eax,%xmm15
  subss  %xmm10,%xmm12
  mulss  %xmm3,%xmm5
  subss  %xmm6,%xmm4
  movss  (%rsp),%xmm6
  mulss  %xmm3,%xmm15
  mulss  %xmm12,%xmm6
  mulss  %xmm4,%xmm7
  mulss  %xmm4,%xmm14
  movaps %xmm6,%xmm13
  movss  0xc(%rsp),%xmm6
  mulss  %xmm4,%xmm6
  addss  %xmm13,%xmm6
  movss  0x18(%rsp),%xmm13
  mulss  %xmm3,%xmm13
  addss  %xmm13,%xmm6
  movss  0x10(%rsp),%xmm13
  mulss  %xmm12,%xmm13
  addss  %xmm7,%xmm13
  movd   %ecx,%xmm7
  mulss  %xmm12,%xmm7
  addss  %xmm5,%xmm13
  movd   %r8d,%xmm5
  mulss  %xmm12,%xmm5
  subss  %xmm6,%xmm13
  addss  %xmm5,%xmm14
  comiss %xmm1,%xmm13
  movd   %esi,%xmm5
  mulss  %xmm3,%xmm5
  addss  %xmm5,%xmm14
  movd   %r9d,%xmm5
  mulss  %xmm4,%xmm5
  subss  %xmm6,%xmm14
  addss  %xmm7,%xmm5
  addss  %xmm15,%xmm5
  subss  %xmm6,%xmm5
  movaps %xmm13,%xmm6
  jb     L493
L81:
  movsd  D52(%rip),%xmm7
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm7
  jbe    L222
  movaps %xmm1,%xmm13
L222:
  comiss %xmm1,%xmm14
  movaps %xmm14,%xmm6
  jb     L221
L262:
  movsd  D52(%rip),%xmm7
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm7
  jbe    L377
  movaps %xmm1,%xmm14
L377:
  comiss %xmm1,%xmm5
  movaps %xmm5,%xmm6
  jb     L209
L448:
  movsd  D52(%rip),%xmm7
  cvtss2sd %xmm6,%xmm6
  comisd %xmm6,%xmm7
  jbe    L467
  movaps %xmm1,%xmm5
L467:
  movaps %xmm13,%xmm6
  movaps %xmm13,%xmm7
  mulss  %xmm14,%xmm6
  mulss  %xmm5,%xmm7
  comiss %xmm1,%xmm6
  jbe    L481
  comiss %xmm1,%xmm7
  ja     L526
L481:
  movaps %xmm2,%xmm15
  movaps %xmm0,%xmm10
  mulss  %xmm3,%xmm15
  mulss  %xmm4,%xmm10
  mulss  %xmm8,%xmm3
  mulss  %xmm12,%xmm0
  mulss  %xmm4,%xmm8
  mulss  %xmm12,%xmm2
  subss  %xmm10,%xmm15
  subss  %xmm3,%xmm0
  comiss %xmm1,%xmm15
  subss  %xmm2,%xmm8
  jb     L341
  comiss %xmm1,%xmm0
  jb     L357
L320:
  comiss %xmm1,%xmm8
  jb     L6
L236:
  xor    %ecx,%ecx
  comiss %xmm15,%xmm0
  jbe    L514
L25:
  movaps %xmm0,%xmm15
  mov    $0x1,%ecx
L514:
  comiss %xmm15,%xmm8
  mov    $0x8,%eax
  jbe    L229
L455:
  mov    %r11,0x10(%rsp)
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    %rbp,%rdi
  movss  0x0(%r13,%rax,1),%xmm2
  movss  %xmm11,0x18(%rsp)
  lea    0x4c(%rsp),%rcx
  sub    $0x8,%rsp
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm7,%xmm7
  cvtss2sd %xmm6,%xmm6
  movss  %xmm2,0x3c(%rsp)
  movss  (%r14,%rax,1),%xmm2
  cvtss2sd 0x0(%rbp,%rax,1),%xmm0
  cvtss2sd (%r12,%rax,1),%xmm1
  movss  %xmm9,0x14(%rsp)
  cvtss2sd %xmm5,%xmm5
  cvtss2sd %xmm14,%xmm4
  cvtss2sd %xmm13,%xmm3
  movss  %xmm2,0x40(%rsp)
  movss  (%r15,%rax,1),%xmm2
  movss  %xmm2,0x44(%rsp)
  lea    0x7c(%rsp),%rsi
  pxor   %xmm2,%xmm2
  push   %rsi
  cvtss2sd (%rdx,%rax,1),%xmm2
  mov    %r12,%rsi
  mov    $0x8,%eax
  lea    0x78(%rsp),%r9
  lea    0x60(%rsp),%r8
  mov    %rdx,0x10(%rsp)
  call   <compute_intervals_isectline@plt>
  mov    0x20(%rsp),%r11
  test   %eax,%eax
  mov    %eax,%ebx
  mov    %eax,(%r11)
  pop    %rdi
  pop    %r8
  mov    (%rsp),%rdx
  movss  0xc(%rsp),%xmm9
  movss  0x18(%rsp),%xmm11
  jne    L123
  pxor   %xmm0,%xmm0
  lea    0x54(%rsp),%rcx
  sub    $0x8,%rsp
  mov    %r15,%rdx
  pxor   %xmm7,%xmm7
  pxor   %xmm6,%xmm6
  pxor   %xmm5,%xmm5
  mov    %r14,%rsi
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  pxor   %xmm2,%xmm2
  mov    %r13,%rdi
  cvtss2sd 0x3c(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm11,%xmm5
  lea    0x94(%rsp),%rax
  push   %rax
  mov    $0x8,%eax
  cvtss2sd %xmm9,%xmm3
  lea    0x90(%rsp),%r9
  lea    0x68(%rsp),%r8
  cvtss2sd 0x48(%rsp),%xmm1
  cvtss2sd 0x40(%rsp),%xmm7
  cvtss2sd 0x2c(%rsp),%xmm6
  cvtss2sd 0x18(%rsp),%xmm4
  cvtss2sd 0x4c(%rsp),%xmm2
  call   <compute_intervals_isectline@plt>
  movss  0x5c(%rsp),%xmm0
  movss  0x60(%rsp),%xmm1
  pop    %rax
  xor    %eax,%eax
  pop    %rdx
  comiss %xmm1,%xmm0
  jbe    L442
  movss  %xmm1,0x4c(%rsp)
  mov    $0x1,%eax
  movaps %xmm0,%xmm1
  movss  %xmm0,0x50(%rsp)
L442:
  movss  0x54(%rsp),%xmm0
  movss  0x58(%rsp),%xmm2
  comiss %xmm2,%xmm0
  ja     L219
L254:
  comiss %xmm1,%xmm0
  ja     L526
  movss  0x58(%rsp),%xmm3
  movss  0x4c(%rsp),%xmm2
  comiss %xmm3,%xmm2
  ja     L526
  comiss %xmm0,%xmm2
  jbe    L301
  test   %eax,%eax
  jne    L141
  comiss %xmm3,%xmm1
  mov    0x20(%rsp),%rdi
  mov    0x68(%rsp),%rax
  movss  0x70(%rsp),%xmm0
  mov    %rax,(%rdi)
  movss  %xmm0,0x8(%rdi)
  jbe    L279
L405:
  test   %ebx,%ebx
  je     L441
  mov    0x28(%rsp),%rsi
  mov    0x80(%rsp),%rax
  movss  0x88(%rsp),%xmm0
  mov    %rax,(%rsi)
  movss  %xmm0,0x8(%rsi)
  jmp    L464
  nopl   0x0(%rax)
L526:
  xor    %ebx,%ebx
L464:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0xa8,%rsp
  mov    %ebx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L209:
  xorps  D37(%rip),%xmm6
  jmp    L448
  nopl   0x0(%rax)
L221:
  xorps  D37(%rip),%xmm6
  jmp    L262
  nopl   0x0(%rax)
L493:
  xorps  D37(%rip),%xmm6
  jmp    L81
  nopl   0x0(%rax)
L229:
  lea    0x0(,%rcx,4),%rax
  jmp    L455
  nopl   (%rax)
L6:
  xor    %ecx,%ecx
  comiss %xmm15,%xmm0
  xorps  D37(%rip),%xmm8
  jbe    L514
  jmp    L25
  nopl   0x0(%rax)
L357:
  comiss %xmm1,%xmm8
  xorps  D37(%rip),%xmm0
  jae    L236
  jmp    L6
  nopl   0x0(%rax,%rax,1)
L341:
  comiss %xmm1,%xmm0
  xorps  D37(%rip),%xmm15
  jae    L320
  jmp    L357
  nopl   0x0(%rax,%rax,1)
L123:
  lea    0x5c(%rsp),%rdi
  sub    $0x8,%rsp
  mov    %rdx,%rcx
  mov    %rbp,%rsi
  push   %r15
  mov    %r14,%r9
  mov    %r13,%r8
  mov    %r12,%rdx
  xor    %eax,%eax
  call   <coplanar_tri_tri@plt>
  pop    %rcx
  pop    %rsi
  mov    %eax,%ebx
  jmp    L464
  nopw   0x0(%rax,%rax,1)
L219:
  movss  %xmm0,0x58(%rsp)
  mov    $0x1,%ebx
  movaps %xmm2,%xmm0
  movss  %xmm2,0x54(%rsp)
  jmp    L254
  nopl   0x0(%rax)
L301:
  test   %ebx,%ebx
  jne    L402
  comiss %xmm1,%xmm3
  mov    0x20(%rsp),%rbx
  mov    0x80(%rsp),%rdx
  movss  0x88(%rsp),%xmm0
  mov    %rdx,(%rbx)
  movss  %xmm0,0x8(%rbx)
  jbe    L441
L116:
  test   %eax,%eax
  jne    L21
L279:
  mov    0x28(%rsp),%rbx
  mov    0x74(%rsp),%rax
  movss  0x7c(%rsp),%xmm0
  mov    %rax,(%rbx)
  movss  %xmm0,0x8(%rbx)
  mov    $0x1,%ebx
  jmp    L464
  nopl   (%rax)
L402:
  comiss %xmm1,%xmm3
  mov    0x20(%rsp),%rdi
  mov    0x8c(%rsp),%rdx
  movss  0x94(%rsp),%xmm0
  mov    %rdx,(%rdi)
  movss  %xmm0,0x8(%rdi)
  ja     L116
  mov    0x28(%rsp),%rdi
  mov    0x80(%rsp),%rax
  movss  0x88(%rsp),%xmm0
  mov    %rax,(%rdi)
  movss  %xmm0,0x8(%rdi)
  jmp    L464
  cs nopw 0x0(%rax,%rax,1)
L141:
  comiss %xmm3,%xmm1
  mov    0x20(%rsp),%rdi
  mov    0x74(%rsp),%rdx
  movss  0x7c(%rsp),%xmm0
  mov    %rdx,(%rdi)
  movss  %xmm0,0x8(%rdi)
  ja     L405
L21:
  mov    0x28(%rsp),%rbx
  mov    0x68(%rsp),%rdx
  movss  0x70(%rsp),%xmm0
  mov    %rdx,(%rbx)
  movss  %xmm0,0x8(%rbx)
  mov    %eax,%ebx
  jmp    L464
L441:
  mov    0x28(%rsp),%rbx
  mov    0x8c(%rsp),%rax
  movss  0x94(%rsp),%xmm0
  mov    %rax,(%rbx)
  movss  %xmm0,0x8(%rbx)
  mov    $0x1,%ebx
  jmp    L464
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D37
datatype: byte[16]
name: disassemble_data
arguments: label: D52
datatype: f64

tool: {"D37": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D52: 1e-06

assistant: ```c
int tri_tri_intersect_with_isectline(float V0[3], float V1[3], float V2[3], float U0[3], float U1[3], float U2[3], int *coplanar, float isectpt1[3], float isectpt2[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 isectpointA1[3], isectpointA2[3];
  float isectpointB1[3], isectpointB2[3];
  float du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  float vp0, vp1, vp2;
  float up0, up1, up2;
  float b, c, max;
  float 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 ((du0 >= 0 ? du0 : -du0) < 0.000001)
    du0 = 0.0;
  if ((du1 >= 0 ? du1 : -du1) < 0.000001)
    du1 = 0.0;
  if ((du2 >= 0 ? du2 : -du2) < 0.000001)
    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 ((dv0 >= 0 ? dv0 : -dv0) < 0.000001)
    dv0 = 0.0;
  if ((dv1 >= 0 ? dv1 : -dv1) < 0.000001)
    dv1 = 0.0;
  if ((dv2 >= 0 ? dv2 : -dv2) < 0.000001)
    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 = (D[0] >= 0 ? D[0] : -D[0]);
  index = 0;
  b = (D[1] >= 0 ? D[1] : -D[1]);
  c = (D[2] >= 0 ? D[2] : -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;
}
```