user: 请将以下的汇编代码转换成C语言代码：

```asm
<tri_tri_intersect_with_isectline>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x128,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r12
  mov    %rdx,%r15
  mov    %rcx,%r13
  mov    %r8,%r14
  mov    %r9,%rbx
  mov    0x160(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    0x168(%rsp),%rax
  mov    %rax,0x38(%rsp)
  mov    0x170(%rsp),%rax
  mov    %rax,0x40(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x118(%rsp)
  xor    %eax,%eax
  mov    (%rsi),%rcx
  movsd  (%rdi),%xmm2
  movq   %rcx,%xmm0
  subsd  %xmm2,%xmm0
  mov    0x8(%rsi),%rsi
  movsd  0x8(%rdi),%xmm13
  movq   %rsi,%xmm3
  subsd  %xmm13,%xmm3
  mov    0x10(%r12),%rdi
  movsd  0x10(%rbp),%xmm12
  movq   %rdi,%xmm1
  subsd  %xmm12,%xmm1
  mov    (%rdx),%r10
  movq   %r10,%xmm5
  subsd  %xmm2,%xmm5
  mov    0x8(%rdx),%r8
  movq   %r8,%xmm6
  subsd  %xmm13,%xmm6
  mov    0x10(%rdx),%r9
  movq   %r9,%xmm4
  subsd  %xmm12,%xmm4
  movapd %xmm3,%xmm8
  mulsd  %xmm4,%xmm8
  movapd %xmm1,%xmm7
  mulsd  %xmm6,%xmm7
  subsd  %xmm7,%xmm8
  movsd  %xmm8,0x80(%rsp)
  mulsd  %xmm5,%xmm1
  mulsd  %xmm0,%xmm4
  subsd  %xmm4,%xmm1
  movsd  %xmm1,0x88(%rsp)
  mulsd  %xmm6,%xmm0
  mulsd  %xmm5,%xmm3
  subsd  %xmm3,%xmm0
  movsd  %xmm0,0x90(%rsp)
  movapd %xmm2,%xmm7
  mulsd  %xmm8,%xmm7
  movapd %xmm13,%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm3,%xmm7
  movapd %xmm12,%xmm3
  mulsd  %xmm0,%xmm3
  addsd  %xmm3,%xmm7
  mov    0x0(%r13),%rax
  movsd  0x8(%r13),%xmm9
  movsd  0x10(%r13),%xmm6
  movq   %rax,%xmm4
  mulsd  %xmm8,%xmm4
  movapd %xmm1,%xmm3
  mulsd  %xmm9,%xmm3
  addsd  %xmm4,%xmm3
  movapd %xmm0,%xmm4
  mulsd  %xmm6,%xmm4
  addsd  %xmm4,%xmm3
  subsd  %xmm7,%xmm3
  movsd  %xmm3,(%rsp)
  movsd  (%r14),%xmm4
  mov    0x8(%r14),%rdx
  movsd  0x10(%r14),%xmm5
  movapd %xmm8,%xmm10
  mulsd  %xmm4,%xmm10
  movq   %rdx,%xmm3
  mulsd  %xmm1,%xmm3
  addsd  %xmm10,%xmm3
  movapd %xmm0,%xmm10
  mulsd  %xmm5,%xmm10
  addsd  %xmm10,%xmm3
  subsd  %xmm7,%xmm3
  movsd  %xmm3,0x8(%rsp)
  movsd  (%rbx),%xmm3
  movsd  0x8(%rbx),%xmm14
  movsd  0x10(%rbx),%xmm10
  movapd %xmm8,%xmm15
  mulsd  %xmm3,%xmm15
  movapd %xmm1,%xmm11
  mulsd  %xmm14,%xmm11
  addsd  %xmm15,%xmm11
  movapd %xmm0,%xmm15
  mulsd  %xmm10,%xmm15
  addsd  %xmm15,%xmm11
  subsd  %xmm7,%xmm11
  movsd  %xmm11,0x10(%rsp)
  movsd  (%rsp),%xmm7
  andpd  D5(%rip),%xmm7
  movsd  D14(%rip),%xmm11
  comisd %xmm7,%xmm11
  jbe    L0
  pxor   %xmm7,%xmm7
  movsd  %xmm7,(%rsp)
L0:
  movsd  0x8(%rsp),%xmm7
  andpd  D5(%rip),%xmm7
  movsd  D14(%rip),%xmm11
  comisd %xmm7,%xmm11
  jbe    L291
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
L291:
  movsd  0x10(%rsp),%xmm7
  andpd  D5(%rip),%xmm7
  movsd  D14(%rip),%xmm11
  comisd %xmm7,%xmm11
  jbe    L303
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x10(%rsp)
L303:
  movsd  (%rsp),%xmm7
  movapd %xmm7,%xmm15
  mulsd  0x8(%rsp),%xmm15
  movsd  %xmm15,0x28(%rsp)
  mulsd  0x10(%rsp),%xmm7
  movsd  %xmm7,0x30(%rsp)
  comisd D137(%rip),%xmm15
  jbe    L293
  movl   $0x0,0x1c(%rsp)
  comisd D137(%rip),%xmm7
  ja     L212
L293:
  movq   %rax,%xmm7
  subsd  %xmm7,%xmm4
  movq   %rdx,%xmm7
  subsd  %xmm9,%xmm7
  subsd  %xmm6,%xmm5
  movq   %rax,%xmm15
  subsd  %xmm15,%xmm3
  subsd  %xmm9,%xmm14
  subsd  %xmm6,%xmm10
  movapd %xmm7,%xmm11
  mulsd  %xmm10,%xmm11
  movapd %xmm5,%xmm15
  mulsd  %xmm14,%xmm15
  subsd  %xmm15,%xmm11
  mulsd  %xmm3,%xmm5
  mulsd  %xmm4,%xmm10
  subsd  %xmm10,%xmm5
  movapd %xmm5,%xmm15
  mulsd  %xmm14,%xmm4
  mulsd  %xmm3,%xmm7
  subsd  %xmm7,%xmm4
  movapd %xmm4,%xmm10
  movq   %rax,%xmm3
  mulsd  %xmm11,%xmm3
  mulsd  %xmm5,%xmm9
  addsd  %xmm3,%xmm9
  mulsd  %xmm4,%xmm6
  addsd  %xmm9,%xmm6
  mulsd  %xmm11,%xmm2
  mulsd  %xmm5,%xmm13
  addsd  %xmm13,%xmm2
  mulsd  %xmm4,%xmm12
  addsd  %xmm12,%xmm2
  subsd  %xmm6,%xmm2
  movapd %xmm2,%xmm3
  movq   %rcx,%xmm4
  mulsd  %xmm11,%xmm4
  movq   %rsi,%xmm2
  mulsd  %xmm5,%xmm2
  addsd  %xmm2,%xmm4
  movq   %rdi,%xmm2
  mulsd  %xmm10,%xmm2
  addsd  %xmm2,%xmm4
  subsd  %xmm6,%xmm4
  movq   %r10,%xmm5
  mulsd  %xmm11,%xmm5
  movq   %r8,%xmm2
  mulsd  %xmm15,%xmm2
  addsd  %xmm2,%xmm5
  movq   %r9,%xmm2
  mulsd  %xmm10,%xmm2
  addsd  %xmm2,%xmm5
  subsd  %xmm6,%xmm5
  movapd %xmm3,%xmm2
  andpd  D5(%rip),%xmm2
  movsd  D14(%rip),%xmm6
  comisd %xmm2,%xmm6
  jbe    L78
  pxor   %xmm3,%xmm3
L78:
  movapd %xmm4,%xmm2
  andpd  D5(%rip),%xmm2
  movsd  D14(%rip),%xmm6
  comisd %xmm2,%xmm6
  jbe    L134
  pxor   %xmm4,%xmm4
L134:
  movapd %xmm5,%xmm2
  andpd  D5(%rip),%xmm2
  movsd  D14(%rip),%xmm6
  comisd %xmm2,%xmm6
  jbe    L14
  pxor   %xmm5,%xmm5
L14:
  movapd %xmm3,%xmm6
  mulsd  %xmm4,%xmm6
  movapd %xmm3,%xmm7
  mulsd  %xmm5,%xmm7
  comisd D137(%rip),%xmm6
  jbe    L204
  movl   $0x0,0x1c(%rsp)
  comisd D137(%rip),%xmm7
  ja     L212
L204:
  movapd %xmm1,%xmm2
  mulsd  %xmm10,%xmm2
  movapd %xmm0,%xmm9
  mulsd  %xmm15,%xmm9
  subsd  %xmm9,%xmm2
  movq   D5(%rip),%xmm9
  andpd  %xmm9,%xmm2
  mulsd  %xmm11,%xmm0
  mulsd  %xmm8,%xmm10
  subsd  %xmm10,%xmm0
  andpd  %xmm9,%xmm0
  mulsd  %xmm15,%xmm8
  mulsd  %xmm11,%xmm1
  subsd  %xmm1,%xmm8
  andpd  %xmm9,%xmm8
  mov    $0x0,%eax
  comisd %xmm2,%xmm0
  jbe    L3
  movapd %xmm0,%xmm2
  mov    $0x1,%eax
L3:
  ucomisd %xmm2,%xmm8
  mov    $0x2,%edx
  cmova  %edx,%eax
  movswq %ax,%rax
  movsd  0x0(%r13,%rax,8),%xmm1
  movsd  %xmm1,0x48(%rsp)
  movsd  (%r14,%rax,8),%xmm1
  movsd  %xmm1,0x50(%rsp)
  movsd  (%rbx,%rax,8),%xmm1
  movsd  %xmm1,0x58(%rsp)
  lea    0x60(%rsp),%rcx
  movsd  0x0(%rbp,%rax,8),%xmm0
  sub    $0x8,%rsp
  lea    0xc8(%rsp),%rdx
  push   %rdx
  lea    0xb0(%rsp),%r9
  lea    0x78(%rsp),%r8
  movsd  (%r15,%rax,8),%xmm2
  movsd  (%r12,%rax,8),%xmm1
  mov    %r15,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  mov    $0x8,%eax
  call   <compute_intervals_isectline@plt>
  mov    %eax,0x2c(%rsp)
  mov    0x30(%rsp),%rsi
  mov    %eax,(%rsi)
  add    $0x10,%rsp
  test   %eax,%eax
  jne    L129
  lea    0x70(%rsp),%rcx
  sub    $0x8,%rsp
  lea    0x108(%rsp),%rax
  push   %rax
  lea    0xf0(%rsp),%r9
  lea    0x88(%rsp),%r8
  movsd  0x40(%rsp),%xmm7
  movsd  0x38(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm4
  movsd  0x10(%rsp),%xmm3
  movsd  0x68(%rsp),%xmm2
  movsd  0x60(%rsp),%xmm1
  movsd  0x58(%rsp),%xmm0
  mov    %rbx,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    $0x8,%eax
  call   <compute_intervals_isectline@plt>
  movsd  0x70(%rsp),%xmm0
  movsd  0x78(%rsp),%xmm1
  add    $0x10,%rsp
  comisd %xmm1,%xmm0
  jbe    L273
  movsd  %xmm1,0x60(%rsp)
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,0x68(%rsp)
  mov    $0x1,%edx
  jmp    L70
L129:
  lea    0x80(%rsp),%rdi
  sub    $0x8,%rsp
  push   %rbx
  mov    %r14,%r9
  mov    %r13,%r8
  mov    %r15,%rcx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x0,%eax
  call   <coplanar_tri_tri@plt>
  mov    %eax,0x2c(%rsp)
  add    $0x10,%rsp
L212:
  mov    0x118(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L149
  mov    0x1c(%rsp),%eax
  add    $0x128,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L273:
  mov    0x1c(%rsp),%edx
L70:
  movsd  0x70(%rsp),%xmm0
  movsd  0x78(%rsp),%xmm1
  comisd %xmm1,%xmm0
  jbe    L205
  movsd  %xmm1,0x70(%rsp)
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,0x78(%rsp)
  mov    $0x1,%eax
  jmp    L220
L205:
  mov    0x1c(%rsp),%eax
L220:
  movsd  0x68(%rsp),%xmm1
  movsd  0x70(%rsp),%xmm0
  comisd %xmm1,%xmm0
  ja     L212
  movsd  0x78(%rsp),%xmm3
  movsd  0x60(%rsp),%xmm2
  comisd %xmm3,%xmm2
  ja     L212
  comisd %xmm0,%xmm2
  jbe    L159
  test   %edx,%edx
  jne    L288
  movsd  0xa0(%rsp),%xmm0
  mov    0x38(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  comisd %xmm3,%xmm1
  jbe    L54
L284:
  test   %eax,%eax
  jne    L152
  movsd  0x100(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x108(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x1c(%rsp)
  jmp    L212
L288:
  movsd  0xc0(%rsp),%xmm0
  mov    0x38(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0xc8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xd0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  comisd %xmm3,%xmm1
  ja     L284
  movsd  0xa0(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    %edx,0x1c(%rsp)
  jmp    L212
L152:
  movsd  0xe0(%rsp),%xmm0
  mov    0x40(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0xe8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  mov    %eax,0x1c(%rsp)
  jmp    L212
L54:
  movsd  0xc0(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xc8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xd0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x1c(%rsp)
  jmp    L212
L159:
  test   %eax,%eax
  jne    L298
  movsd  0xe0(%rsp),%xmm0
  mov    0x38(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xe8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  comisd %xmm1,%xmm3
  jbe    L224
L63:
  test   %edx,%edx
  jne    L315
  movsd  0xc0(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xc8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xd0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x1c(%rsp)
  jmp    L212
L298:
  movsd  0x100(%rsp),%xmm0
  mov    0x38(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0x108(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  comisd %xmm1,%xmm3
  ja     L63
  movsd  0xe0(%rsp),%xmm0
  mov    0x40(%rsp),%rbx
  movsd  %xmm0,(%rbx)
  movsd  0xe8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rbx)
  movsd  0xf0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rbx)
  mov    %eax,0x1c(%rsp)
  jmp    L212
L315:
  movsd  0xa0(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    %edx,0x1c(%rsp)
  jmp    L212
L224:
  movsd  0x100(%rsp),%xmm0
  mov    0x40(%rsp),%rax
  movsd  %xmm0,(%rax)
  movsd  0x108(%rsp),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x110(%rsp),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x1,0x1c(%rsp)
  jmp    L212
L149:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D5
data_type: qword[2]
name: parse_data
arguments: data_tag: D14
data_type: f64
name: parse_data
arguments: data_tag: D137
data_type: f64[2]

tool: {"D5": [0x7fffffffffffffff,0x0000000000000000]}

tool: D14: 0.005

tool: {"D137": [0.0,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;
}
```