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

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb8,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%r15
  mov    0xf0(%rsp),%rax
  mov    %rax,0x18(%rsp)
  mov    0xf8(%rsp),%rax
  mov    %rax,0x40(%rsp)
  mov    0x100(%rsp),%rax
  mov    %rax,0x48(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  movss  (%rdi),%xmm3
  movss  (%rsi),%xmm2
  subss  %xmm3,%xmm2
  movss  0x4(%rdi),%xmm7
  movss  0x4(%rsi),%xmm4
  subss  %xmm7,%xmm4
  movss  0x8(%rdi),%xmm6
  movss  0x8(%rsi),%xmm0
  subss  %xmm6,%xmm0
  movss  (%rdx),%xmm8
  subss  %xmm3,%xmm8
  movss  0x4(%rdx),%xmm9
  subss  %xmm7,%xmm9
  movss  0x8(%rdx),%xmm5
  subss  %xmm6,%xmm5
  movaps %xmm4,%xmm1
  mulss  %xmm5,%xmm1
  movaps %xmm0,%xmm10
  mulss  %xmm9,%xmm10
  subss  %xmm10,%xmm1
  movss  %xmm1,0x6c(%rsp)
  mulss  %xmm8,%xmm0
  mulss  %xmm2,%xmm5
  subss  %xmm5,%xmm0
  movss  %xmm0,0x70(%rsp)
  mulss  %xmm9,%xmm2
  mulss  %xmm8,%xmm4
  subss  %xmm4,%xmm2
  movss  %xmm2,0x74(%rsp)
  mulss  %xmm1,%xmm3
  mulss  %xmm0,%xmm7
  addss  %xmm7,%xmm3
  mulss  %xmm2,%xmm6
  addss  %xmm6,%xmm3
  movaps %xmm1,%xmm4
  mulss  (%rcx),%xmm4
  movaps %xmm0,%xmm5
  mulss  0x4(%rcx),%xmm5
  addss  %xmm5,%xmm4
  movaps %xmm2,%xmm5
  mulss  0x8(%rcx),%xmm5
  addss  %xmm5,%xmm4
  movaps %xmm4,%xmm7
  subss  %xmm3,%xmm7
  movss  %xmm7,0x14(%rsp)
  movaps %xmm1,%xmm4
  mulss  (%r8),%xmm4
  movaps %xmm0,%xmm5
  mulss  0x4(%r8),%xmm5
  addss  %xmm5,%xmm4
  movaps %xmm2,%xmm5
  mulss  0x8(%r8),%xmm5
  addss  %xmm5,%xmm4
  subss  %xmm3,%xmm4
  movss  %xmm4,(%rsp)
  mulss  (%r9),%xmm1
  mulss  0x4(%r9),%xmm0
  addss  %xmm0,%xmm1
  mulss  0x8(%r9),%xmm2
  addss  %xmm2,%xmm1
  subss  %xmm3,%xmm1
  movss  %xmm1,0x4(%rsp)
  movaps %xmm7,%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L268
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x14(%rsp)
L268:
  movss  (%rsp),%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L74
  pxor   %xmm6,%xmm6
  movss  %xmm6,(%rsp)
L74:
  movss  0x4(%rsp),%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L99
  pxor   %xmm3,%xmm3
  movss  %xmm3,0x4(%rsp)
L99:
  movss  0x14(%rsp),%xmm6
  movaps %xmm6,%xmm7
  mulss  (%rsp),%xmm7
  movss  %xmm7,0x24(%rsp)
  mulss  0x4(%rsp),%xmm6
  movss  %xmm6,0x28(%rsp)
  comiss D16(%rip),%xmm7
  jbe    L156
  movl   $0x0,0x8(%rsp)
  comiss D16(%rip),%xmm6
  ja     L340
L156:
  movss  0x0(%r13),%xmm0
  movss  (%r14),%xmm2
  subss  %xmm0,%xmm2
  movss  0x4(%r13),%xmm6
  movss  0x4(%r14),%xmm1
  subss  %xmm6,%xmm1
  movss  0x8(%r13),%xmm5
  movss  0x8(%r14),%xmm4
  subss  %xmm5,%xmm4
  movss  (%r15),%xmm7
  subss  %xmm0,%xmm7
  movss  0x4(%r15),%xmm8
  subss  %xmm6,%xmm8
  movss  0x8(%r15),%xmm3
  subss  %xmm5,%xmm3
  movaps %xmm1,%xmm10
  mulss  %xmm3,%xmm10
  movaps %xmm4,%xmm9
  mulss  %xmm8,%xmm9
  movaps %xmm10,%xmm11
  subss  %xmm9,%xmm11
  movss  %xmm11,0x2c(%rsp)
  mulss  %xmm7,%xmm4
  mulss  %xmm2,%xmm3
  subss  %xmm3,%xmm4
  movaps %xmm4,%xmm3
  movss  %xmm4,0x30(%rsp)
  mulss  %xmm8,%xmm2
  mulss  %xmm7,%xmm1
  movaps %xmm2,%xmm4
  subss  %xmm1,%xmm4
  movss  %xmm4,0x34(%rsp)
  mulss  %xmm11,%xmm0
  mulss  %xmm3,%xmm6
  addss  %xmm6,%xmm0
  movaps %xmm5,%xmm1
  movaps %xmm4,%xmm5
  mulss  %xmm4,%xmm1
  addss  %xmm1,%xmm0
  movaps %xmm11,%xmm1
  mulss  (%rbx),%xmm1
  movaps %xmm3,%xmm7
  movaps %xmm3,%xmm2
  mulss  0x4(%rbx),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm2
  mulss  0x8(%rbx),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm1,%xmm3
  subss  %xmm0,%xmm3
  movss  %xmm3,0x20(%rsp)
  movaps %xmm11,%xmm6
  movaps %xmm11,%xmm1
  mulss  0x0(%rbp),%xmm1
  movaps %xmm7,%xmm2
  mulss  0x4(%rbp),%xmm2
  addss  %xmm2,%xmm1
  movaps %xmm4,%xmm2
  mulss  0x8(%rbp),%xmm2
  addss  %xmm2,%xmm1
  subss  %xmm0,%xmm1
  movss  %xmm1,0xc(%rsp)
  mulss  (%r12),%xmm6
  movaps %xmm6,%xmm1
  mulss  0x4(%r12),%xmm7
  addss  %xmm7,%xmm1
  mulss  0x8(%r12),%xmm5
  addss  %xmm5,%xmm1
  subss  %xmm0,%xmm1
  movss  %xmm1,0x10(%rsp)
  movaps %xmm3,%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L147
  pxor   %xmm2,%xmm2
  movss  %xmm2,0x20(%rsp)
L147:
  movss  0xc(%rsp),%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L343
  pxor   %xmm2,%xmm2
  movss  %xmm2,0xc(%rsp)
L343:
  movss  0x10(%rsp),%xmm0
  call   <fabs@plt>
  movsd  D75(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L146
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x10(%rsp)
L146:
  movss  0x20(%rsp),%xmm3
  movaps %xmm3,%xmm6
  mulss  0xc(%rsp),%xmm6
  movss  %xmm6,0x38(%rsp)
  mulss  0x10(%rsp),%xmm3
  movss  %xmm3,0x3c(%rsp)
  comiss D16(%rip),%xmm6
  jbe    L182
  movl   $0x0,0x8(%rsp)
  comiss D16(%rip),%xmm3
  ja     L340
L182:
  movss  0x70(%rsp),%xmm3
  movss  0x74(%rsp),%xmm2
  movss  0x6c(%rsp),%xmm0
  movss  0x2c(%rsp),%xmm6
  movaps %xmm6,%xmm4
  mulss  %xmm2,%xmm4
  movss  0x34(%rsp),%xmm7
  movaps %xmm7,%xmm1
  mulss  %xmm0,%xmm1
  subss  %xmm1,%xmm4
  movss  %xmm4,0x2c(%rsp)
  movaps %xmm0,%xmm1
  movss  0x30(%rsp),%xmm5
  mulss  %xmm5,%xmm1
  mulss  %xmm3,%xmm6
  subss  %xmm6,%xmm1
  movss  %xmm1,0x30(%rsp)
  mulss  %xmm3,%xmm7
  movaps %xmm7,%xmm0
  mulss  %xmm2,%xmm5
  subss  %xmm5,%xmm0
  call   <fabs@plt>
  pxor   %xmm6,%xmm6
  cvtsd2ss %xmm0,%xmm6
  movss  %xmm6,0x8(%rsp)
  movss  0x2c(%rsp),%xmm0
  call   <fabs@plt>
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movss  %xmm7,0x2c(%rsp)
  movss  0x30(%rsp),%xmm0
  call   <fabs@plt>
  cvtsd2ss %xmm0,%xmm0
  movss  0x2c(%rsp),%xmm7
  mov    $0x0,%eax
  comiss 0x8(%rsp),%xmm7
  jbe    L210
  movss  %xmm7,0x8(%rsp)
  mov    $0x1,%eax
L210:
  ucomiss 0x8(%rsp),%xmm0
  mov    $0x2,%edx
  cmova  %edx,%eax
  movswq %ax,%rax
  movss  0x0(%r13,%rax,4),%xmm2
  movss  %xmm2,0x2c(%rsp)
  movss  (%r14,%rax,4),%xmm6
  movss  %xmm6,0x30(%rsp)
  movss  (%r15,%rax,4),%xmm3
  movss  %xmm3,0x34(%rsp)
  lea    0x5c(%rsp),%rcx
  movss  (%rbx,%rax,4),%xmm0
  sub    $0x8,%rsp
  lea    0x8c(%rsp),%rdx
  push   %rdx
  lea    0x88(%rsp),%r9
  lea    0x70(%rsp),%r8
  movss  0x4c(%rsp),%xmm7
  movss  0x48(%rsp),%xmm6
  movss  0x20(%rsp),%xmm5
  movss  0x1c(%rsp),%xmm4
  movss  0x30(%rsp),%xmm3
  movss  (%r12,%rax,4),%xmm2
  movss  0x0(%rbp,%rax,4),%xmm1
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <compute_intervals_isectline@plt>
  mov    %eax,0x18(%rsp)
  mov    0x28(%rsp),%rsi
  mov    %eax,(%rsi)
  add    $0x10,%rsp
  test   %eax,%eax
  jne    L86
  lea    0x64(%rsp),%rcx
  sub    $0x8,%rsp
  lea    0xa4(%rsp),%rax
  push   %rax
  lea    0xa0(%rsp),%r9
  lea    0x78(%rsp),%r8
  movss  0x38(%rsp),%xmm7
  movss  0x34(%rsp),%xmm6
  movss  0x14(%rsp),%xmm5
  movss  0x10(%rsp),%xmm4
  movss  0x24(%rsp),%xmm3
  movss  0x44(%rsp),%xmm2
  movss  0x40(%rsp),%xmm1
  movss  0x3c(%rsp),%xmm0
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <compute_intervals_isectline@plt>
  movss  0x6c(%rsp),%xmm0
  movss  0x70(%rsp),%xmm1
  add    $0x10,%rsp
  comiss %xmm1,%xmm0
  jbe    L218
  movss  %xmm1,0x5c(%rsp)
  movss  %xmm0,0x60(%rsp)
  mov    $0x1,%edx
L312:
  movss  0x64(%rsp),%xmm0
  movss  0x68(%rsp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L286
  movss  %xmm1,0x64(%rsp)
  movss  %xmm0,0x68(%rsp)
  mov    $0x1,%eax
L98:
  movss  0x60(%rsp),%xmm1
  movss  0x64(%rsp),%xmm0
  comiss %xmm1,%xmm0
  ja     L340
  movss  0x68(%rsp),%xmm3
  movss  0x5c(%rsp),%xmm2
  comiss %xmm3,%xmm2
  ja     L340
  comiss %xmm0,%xmm2
  jbe    L280
  test   %edx,%edx
  jne    L178
  movss  0x78(%rsp),%xmm0
  mov    0x40(%rsp),%rdi
  movss  %xmm0,(%rdi)
  movss  0x7c(%rsp),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x80(%rsp),%xmm0
  movss  %xmm0,0x8(%rdi)
  comiss %xmm3,%xmm1
  jbe    L1
L82:
  test   %eax,%eax
  jne    L351
  movss  0x9c(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0xa0(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0xa4(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  movl   $0x1,0x8(%rsp)
  jmp    L340
L86:
  lea    0x6c(%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,0x18(%rsp)
  add    $0x10,%rsp
L340:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L354
  mov    0x8(%rsp),%eax
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L218:
  mov    0x8(%rsp),%edx
  jmp    L312
L286:
  mov    0x8(%rsp),%eax
  jmp    L98
L178:
  movss  0x84(%rsp),%xmm0
  mov    0x40(%rsp),%rdi
  movss  %xmm0,(%rdi)
  movss  0x88(%rsp),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x8c(%rsp),%xmm0
  movss  %xmm0,0x8(%rdi)
  comiss %xmm3,%xmm1
  ja     L82
  movss  0x78(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0x7c(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x80(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  mov    %edx,0x8(%rsp)
  jmp    L340
L351:
  movss  0x90(%rsp),%xmm0
  mov    0x48(%rsp),%rdi
  movss  %xmm0,(%rdi)
  movss  0x94(%rsp),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x98(%rsp),%xmm0
  movss  %xmm0,0x8(%rdi)
  mov    %eax,0x8(%rsp)
  jmp    L340
L1:
  movss  0x84(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0x88(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x8c(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  movl   $0x1,0x8(%rsp)
  jmp    L340
L280:
  test   %eax,%eax
  jne    L274
  movss  0x90(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0x94(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x98(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  comiss %xmm1,%xmm3
  jbe    L137
L255:
  test   %edx,%edx
  jne    L16
  movss  0x84(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0x88(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x8c(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  movl   $0x1,0x8(%rsp)
  jmp    L340
L274:
  movss  0x9c(%rsp),%xmm0
  mov    0x40(%rsp),%rsi
  movss  %xmm0,(%rsi)
  movss  0xa0(%rsp),%xmm0
  movss  %xmm0,0x4(%rsi)
  movss  0xa4(%rsp),%xmm0
  movss  %xmm0,0x8(%rsi)
  comiss %xmm1,%xmm3
  ja     L255
  movss  0x90(%rsp),%xmm0
  mov    0x48(%rsp),%rdi
  movss  %xmm0,(%rdi)
  movss  0x94(%rsp),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x98(%rsp),%xmm0
  movss  %xmm0,0x8(%rdi)
  mov    %eax,0x8(%rsp)
  jmp    L340
L16:
  movss  0x78(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0x7c(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0x80(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  mov    %edx,0x8(%rsp)
  jmp    L340
L137:
  movss  0x9c(%rsp),%xmm0
  mov    0x48(%rsp),%rax
  movss  %xmm0,(%rax)
  movss  0xa0(%rsp),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  0xa4(%rsp),%xmm0
  movss  %xmm0,0x8(%rax)
  movl   $0x1,0x8(%rsp)
  jmp    L340
L354:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D75
type_infered: f64
name: parse_data
arguments: data_tag: D16
type_infered: f64

tool: D75: 1e-06

tool: D16: 0

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 (fabs(du0) < 0.000001)
    du0 = 0.0;
  if (fabs(du1) < 0.000001)
    du1 = 0.0;
  if (fabs(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 (fabs(dv0) < 0.000001)
    dv0 = 0.0;
  if (fabs(dv1) < 0.000001)
    dv1 = 0.0;
  if (fabs(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 = 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;
}
```