user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<tri_tri_intersect>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %rsi,-0xd0(%rbp)
  mov    %rdx,-0xd8(%rbp)
  mov    %rcx,-0xe0(%rbp)
  mov    %r8,-0xe8(%rbp)
  mov    %r9,-0xf0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0xd0(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x44(%rbp)
  mov    -0xd0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x40(%rbp)
  mov    -0xd0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x3c(%rbp)
  mov    -0xd8(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0xd8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0xd8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0xc8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  -0x40(%rbp),%xmm1
  movss  -0x30(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x3c(%rbp),%xmm2
  movss  -0x34(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  -0x3c(%rbp),%xmm1
  movss  -0x38(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x44(%rbp),%xmm2
  movss  -0x30(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  -0x44(%rbp),%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x40(%rbp),%xmm2
  movss  -0x38(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  -0x2c(%rbp),%xmm1
  mov    -0xc8(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm2
  mov    -0xc8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm2
  mov    -0xc8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  D16(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x94(%rbp)
  movss  -0x2c(%rbp),%xmm1
  mov    -0xe0(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm2
  mov    -0xe0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm2
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x94(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xb0(%rbp)
  movss  -0x2c(%rbp),%xmm1
  mov    -0xe8(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm2
  mov    -0xe8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm2
  mov    -0xe8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x94(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xac(%rbp)
  movss  -0x2c(%rbp),%xmm1
  mov    -0xf0(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x28(%rbp),%xmm2
  mov    -0xf0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x24(%rbp),%xmm2
  mov    -0xf0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x94(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xa8(%rbp)
  movss  -0xb0(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L493
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xb0(%rbp)
L493:
  movss  -0xac(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L329
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xac(%rbp)
L329:
  movss  -0xa8(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L58
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa8(%rbp)
L58:
  movss  -0xb0(%rbp),%xmm0
  mulss  -0xac(%rbp),%xmm0
  movss  %xmm0,-0x90(%rbp)
  movss  -0xb0(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  movss  %xmm0,-0x8c(%rbp)
  movss  -0x90(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L491
  movss  -0x8c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L491
  mov    $0x0,%eax
  jmp    L223
L491:
  mov    -0xe8(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x44(%rbp)
  mov    -0xe8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x40(%rbp)
  mov    -0xe8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x3c(%rbp)
  mov    -0xf0(%rbp),%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0xf0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0xf0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  -0x40(%rbp),%xmm1
  movss  -0x30(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x3c(%rbp),%xmm2
  movss  -0x34(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  -0x3c(%rbp),%xmm1
  movss  -0x38(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x44(%rbp),%xmm2
  movss  -0x30(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x44(%rbp),%xmm1
  movss  -0x34(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x40(%rbp),%xmm2
  movss  -0x38(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x20(%rbp),%xmm1
  mov    -0xe0(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm2
  mov    -0xe0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm2
  mov    -0xe0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  D16(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x88(%rbp)
  movss  -0x20(%rbp),%xmm1
  mov    -0xc8(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm2
  mov    -0xc8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm2
  mov    -0xc8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x88(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xa4(%rbp)
  movss  -0x20(%rbp),%xmm1
  mov    -0xd0(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm2
  mov    -0xd0(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm2
  mov    -0xd0(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x88(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0xa0(%rbp)
  movss  -0x20(%rbp),%xmm1
  mov    -0xd8(%rbp),%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x1c(%rbp),%xmm2
  mov    -0xd8(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm2
  mov    -0xd8(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm1,%xmm0
  movss  -0x88(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x9c(%rbp)
  movss  -0xa4(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L183
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa4(%rbp)
L183:
  movss  -0xa0(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L201
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa0(%rbp)
L201:
  movss  -0x9c(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D30(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L332
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x9c(%rbp)
L332:
  movss  -0xa4(%rbp),%xmm0
  mulss  -0xa0(%rbp),%xmm0
  movss  %xmm0,-0x84(%rbp)
  movss  -0xa4(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  movss  %xmm0,-0x80(%rbp)
  movss  -0x84(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L99
  movss  -0x80(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L99
  mov    $0x0,%eax
  jmp    L223
L99:
  movss  -0x28(%rbp),%xmm1
  movss  -0x18(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x24(%rbp),%xmm2
  movss  -0x1c(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  movss  -0x24(%rbp),%xmm1
  movss  -0x20(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x2c(%rbp),%xmm2
  movss  -0x18(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x2c(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x28(%rbp),%xmm2
  movss  -0x20(%rbp),%xmm1
  mulss  %xmm2,%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x0,-0xb2(%rbp)
  movss  -0x10(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x7c(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  D75(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x78(%rbp)
  movss  -0x7c(%rbp),%xmm0
  comiss -0x98(%rbp),%xmm0
  jbe    L434
  movss  -0x7c(%rbp),%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x1,-0xb2(%rbp)
L434:
  movss  -0x78(%rbp),%xmm0
  comiss -0x98(%rbp),%xmm0
  jbe    L372
  movss  -0x78(%rbp),%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x2,-0xb2(%rbp)
L372:
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x74(%rbp)
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xd0(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x70(%rbp)
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x6c(%rbp)
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xe0(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x68(%rbp)
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x64(%rbp)
  movswq -0xb2(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0xf0(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x60(%rbp)
  movss  -0x84(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L466
  movss  -0x74(%rbp),%xmm0
  subss  -0x6c(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  movss  -0x9c(%rbp),%xmm1
  subss  -0xa4(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x70(%rbp),%xmm0
  subss  -0x6c(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  movss  -0x9c(%rbp),%xmm1
  subss  -0xa0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  jmp    L411
L466:
  movss  -0x80(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L143
  movss  -0x74(%rbp),%xmm0
  subss  -0x70(%rbp),%xmm0
  mulss  -0xa0(%rbp),%xmm0
  movss  -0xa0(%rbp),%xmm1
  subss  -0xa4(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x6c(%rbp),%xmm0
  subss  -0x70(%rbp),%xmm0
  mulss  -0xa0(%rbp),%xmm0
  movss  -0xa0(%rbp),%xmm1
  subss  -0x9c(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  jmp    L411
L143:
  movss  -0xa0(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  ja     L126
  pxor   %xmm0,%xmm0
  ucomiss -0xa4(%rbp),%xmm0
  jp     L126
  pxor   %xmm0,%xmm0
  ucomiss -0xa4(%rbp),%xmm0
  je     L420
L126:
  movss  -0x70(%rbp),%xmm0
  subss  -0x74(%rbp),%xmm0
  mulss  -0xa4(%rbp),%xmm0
  movss  -0xa4(%rbp),%xmm1
  subss  -0xa0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x74(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x6c(%rbp),%xmm0
  subss  -0x74(%rbp),%xmm0
  mulss  -0xa4(%rbp),%xmm0
  movss  -0xa4(%rbp),%xmm1
  subss  -0x9c(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x74(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  jmp    L411
L420:
  pxor   %xmm0,%xmm0
  ucomiss -0xa0(%rbp),%xmm0
  jp     L324
  pxor   %xmm0,%xmm0
  ucomiss -0xa0(%rbp),%xmm0
  je     L211
L324:
  movss  -0x74(%rbp),%xmm0
  subss  -0x70(%rbp),%xmm0
  mulss  -0xa0(%rbp),%xmm0
  movss  -0xa0(%rbp),%xmm1
  subss  -0xa4(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x6c(%rbp),%xmm0
  subss  -0x70(%rbp),%xmm0
  mulss  -0xa0(%rbp),%xmm0
  movss  -0xa0(%rbp),%xmm1
  subss  -0x9c(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  jmp    L411
L211:
  pxor   %xmm0,%xmm0
  ucomiss -0x9c(%rbp),%xmm0
  jp     L294
  pxor   %xmm0,%xmm0
  ucomiss -0x9c(%rbp),%xmm0
  je     L322
L294:
  movss  -0x74(%rbp),%xmm0
  subss  -0x6c(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  movss  -0x9c(%rbp),%xmm1
  subss  -0xa4(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x70(%rbp),%xmm0
  subss  -0x6c(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  movss  -0x9c(%rbp),%xmm1
  subss  -0xa0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  jmp    L411
L322:
  mov    -0xe8(%rbp),%r8
  mov    -0xe0(%rbp),%rdi
  mov    -0xd8(%rbp),%rcx
  mov    -0xd0(%rbp),%rdx
  mov    -0xc8(%rbp),%rsi
  lea    -0x2c(%rbp),%rax
  sub    $0x8,%rsp
  push   -0xf0(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <coplanar_tri_tri@plt>
  add    $0x10,%rsp
  jmp    L223
L411:
  movss  -0x90(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L423
  movss  -0x68(%rbp),%xmm0
  subss  -0x60(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  movss  -0xa8(%rbp),%xmm1
  subss  -0xb0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x60(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x64(%rbp),%xmm0
  subss  -0x60(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  movss  -0xa8(%rbp),%xmm1
  subss  -0xac(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x60(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L78
L423:
  movss  -0x8c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L263
  movss  -0x68(%rbp),%xmm0
  subss  -0x64(%rbp),%xmm0
  mulss  -0xac(%rbp),%xmm0
  movss  -0xac(%rbp),%xmm1
  subss  -0xb0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x60(%rbp),%xmm0
  subss  -0x64(%rbp),%xmm0
  mulss  -0xac(%rbp),%xmm0
  movss  -0xac(%rbp),%xmm1
  subss  -0xa8(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L78
L263:
  movss  -0xac(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  ja     L274
  pxor   %xmm0,%xmm0
  ucomiss -0xb0(%rbp),%xmm0
  jp     L274
  pxor   %xmm0,%xmm0
  ucomiss -0xb0(%rbp),%xmm0
  je     L94
L274:
  movss  -0x64(%rbp),%xmm0
  subss  -0x68(%rbp),%xmm0
  mulss  -0xb0(%rbp),%xmm0
  movss  -0xb0(%rbp),%xmm1
  subss  -0xac(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x68(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x60(%rbp),%xmm0
  subss  -0x68(%rbp),%xmm0
  mulss  -0xb0(%rbp),%xmm0
  movss  -0xb0(%rbp),%xmm1
  subss  -0xa8(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x68(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L78
L94:
  pxor   %xmm0,%xmm0
  ucomiss -0xac(%rbp),%xmm0
  jp     L224
  pxor   %xmm0,%xmm0
  ucomiss -0xac(%rbp),%xmm0
  je     L276
L224:
  movss  -0x68(%rbp),%xmm0
  subss  -0x64(%rbp),%xmm0
  mulss  -0xac(%rbp),%xmm0
  movss  -0xac(%rbp),%xmm1
  subss  -0xb0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x60(%rbp),%xmm0
  subss  -0x64(%rbp),%xmm0
  mulss  -0xac(%rbp),%xmm0
  movss  -0xac(%rbp),%xmm1
  subss  -0xa8(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L78
L276:
  pxor   %xmm0,%xmm0
  ucomiss -0xa8(%rbp),%xmm0
  jp     L366
  pxor   %xmm0,%xmm0
  ucomiss -0xa8(%rbp),%xmm0
  je     L164
L366:
  movss  -0x68(%rbp),%xmm0
  subss  -0x60(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  movss  -0xa8(%rbp),%xmm1
  subss  -0xb0(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x60(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x64(%rbp),%xmm0
  subss  -0x60(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  movss  -0xa8(%rbp),%xmm1
  subss  -0xac(%rbp),%xmm1
  divss  %xmm1,%xmm0
  addss  -0x60(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L78
L164:
  mov    -0xe8(%rbp),%r8
  mov    -0xe0(%rbp),%rdi
  mov    -0xd8(%rbp),%rcx
  mov    -0xd0(%rbp),%rdx
  mov    -0xc8(%rbp),%rsi
  lea    -0x2c(%rbp),%rax
  sub    $0x8,%rsp
  push   -0xf0(%rbp)
  mov    %r8,%r9
  mov    %rdi,%r8
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <coplanar_tri_tri@plt>
  add    $0x10,%rsp
  jmp    L223
L78:
  movss  -0x54(%rbp),%xmm0
  movss  -0x50(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L195
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x5c(%rbp)
  movss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x5c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
L195:
  movss  -0x4c(%rbp),%xmm0
  movss  -0x48(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L464
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,-0x58(%rbp)
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x58(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
L464:
  movss  -0x50(%rbp),%xmm1
  movss  -0x4c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  ja     L236
  movss  -0x48(%rbp),%xmm1
  movss  -0x54(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L9
L236:
  mov    $0x0,%eax
  jmp    L223
L9:
  mov    $0x1,%eax
L223:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L49
  call   <__stack_chk_fail@plt>
L49:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D16
type_guessed: byte[4]
name: read_data
arguments: data_label: D75
type_guessed: dword
name: read_data
arguments: data_label: D30
type_guessed: f64

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

tool: D75: 2147483647

tool: D30: 1e-06

assistant: ```c
int tri_tri_intersect(float V0[3], float V1[3], float V2[3], float U0[3], float U1[3], float U2[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 du0du1, du0du2, dv0dv1, dv0dv2;
  short index;
  float vp0, vp1, vp2;
  float up0, up1, up2;
  float b, c, max;
  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];
  if (dv0dv1 > 0.0f) {
    isect1[0] = vp2 + (vp0 - vp2) * dv2 / (dv2 - dv0);
    isect1[1] = vp2 + (vp1 - vp2) * dv2 / (dv2 - dv1);
    ;
  } else if (dv0dv2 > 0.0f) {
    isect1[0] = vp1 + (vp0 - vp1) * dv1 / (dv1 - dv0);
    isect1[1] = vp1 + (vp2 - vp1) * dv1 / (dv1 - dv2);
    ;
  } else if (dv1 * dv2 > 0.0f || dv0 != 0.0f) {
    isect1[0] = vp0 + (vp1 - vp0) * dv0 / (dv0 - dv1);
    isect1[1] = vp0 + (vp2 - vp0) * dv0 / (dv0 - dv2);
    ;
  } else if (dv1 != 0.0f) {
    isect1[0] = vp1 + (vp0 - vp1) * dv1 / (dv1 - dv0);
    isect1[1] = vp1 + (vp2 - vp1) * dv1 / (dv1 - dv2);
    ;
  } else if (dv2 != 0.0f) {
    isect1[0] = vp2 + (vp0 - vp2) * dv2 / (dv2 - dv0);
    isect1[1] = vp2 + (vp1 - vp2) * dv2 / (dv2 - dv1);
    ;
  } else {
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  };
  if (du0du1 > 0.0f) {
    isect2[0] = up2 + (up0 - up2) * du2 / (du2 - du0);
    isect2[1] = up2 + (up1 - up2) * du2 / (du2 - du1);
    ;
  } else if (du0du2 > 0.0f) {
    isect2[0] = up1 + (up0 - up1) * du1 / (du1 - du0);
    isect2[1] = up1 + (up2 - up1) * du1 / (du1 - du2);
    ;
  } else if (du1 * du2 > 0.0f || du0 != 0.0f) {
    isect2[0] = up0 + (up1 - up0) * du0 / (du0 - du1);
    isect2[1] = up0 + (up2 - up0) * du0 / (du0 - du2);
    ;
  } else if (du1 != 0.0f) {
    isect2[0] = up1 + (up0 - up1) * du1 / (du1 - du0);
    isect2[1] = up1 + (up2 - up1) * du1 / (du1 - du2);
    ;
  } else if (du2 != 0.0f) {
    isect2[0] = up2 + (up0 - up2) * du2 / (du2 - du0);
    isect2[1] = up2 + (up1 - up2) * du2 / (du2 - du1);
    ;
  } else {
    return coplanar_tri_tri(N1, V0, V1, V2, U0, U1, U2);
  };
  if (isect1[0] > isect1[1]) {
    float c;
    c = isect1[0];
    isect1[0] = isect1[1];
    isect1[1] = c;
  };
  if (isect2[0] > isect2[1]) {
    float c;
    c = isect2[0];
    isect2[0] = isect2[1];
    isect2[1] = c;
  };
  if (isect1[1] < isect2[0] || isect2[1] < isect1[0])
    return 0;
  return 1;
}
```