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  D119(%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  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L299
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xb0(%rbp)
L299:
  movss  -0xac(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L191
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xac(%rbp)
L191:
  movss  -0xa8(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L77
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa8(%rbp)
L77:
  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    L240
  movss  -0x8c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L240
  mov    $0x0,%eax
  jmp    L448
L240:
  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  D119(%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  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L25
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa4(%rbp)
L25:
  movss  -0xa0(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L412
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0xa0(%rbp)
L412:
  movss  -0x9c(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D78(%rip),%xmm0
  comisd %xmm1,%xmm0
  jbe    L407
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x9c(%rbp)
L407:
  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    L265
  movss  -0x80(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L265
  mov    $0x0,%eax
  jmp    L448
L265:
  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  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x0,-0xb2(%rbp)
  movss  -0x10(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x7c(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  D3(%rip),%xmm1
  andps  %xmm1,%xmm0
  movss  %xmm0,-0x78(%rbp)
  movss  -0x7c(%rbp),%xmm0
  comiss -0x98(%rbp),%xmm0
  jbe    L484
  movss  -0x7c(%rbp),%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x1,-0xb2(%rbp)
L484:
  movss  -0x78(%rbp),%xmm0
  comiss -0x98(%rbp),%xmm0
  jbe    L223
  movss  -0x78(%rbp),%xmm0
  movss  %xmm0,-0x98(%rbp)
  movw   $0x2,-0xb2(%rbp)
L223:
  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    L325
  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    L40
L325:
  movss  -0x80(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L496
  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    L40
L496:
  movss  -0xa0(%rbp),%xmm0
  mulss  -0x9c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  ja     L359
  pxor   %xmm0,%xmm0
  ucomiss -0xa4(%rbp),%xmm0
  jp     L359
  pxor   %xmm0,%xmm0
  ucomiss -0xa4(%rbp),%xmm0
  je     L423
L359:
  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    L40
L423:
  pxor   %xmm0,%xmm0
  ucomiss -0xa0(%rbp),%xmm0
  jp     L442
  pxor   %xmm0,%xmm0
  ucomiss -0xa0(%rbp),%xmm0
  je     L424
L442:
  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    L40
L424:
  pxor   %xmm0,%xmm0
  ucomiss -0x9c(%rbp),%xmm0
  jp     L302
  pxor   %xmm0,%xmm0
  ucomiss -0x9c(%rbp),%xmm0
  je     L91
L302:
  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    L40
L91:
  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    L448
L40:
  movss  -0x90(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L33
  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    L123
L33:
  movss  -0x8c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L113
  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    L123
L113:
  movss  -0xac(%rbp),%xmm0
  mulss  -0xa8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  ja     L125
  pxor   %xmm0,%xmm0
  ucomiss -0xb0(%rbp),%xmm0
  jp     L125
  pxor   %xmm0,%xmm0
  ucomiss -0xb0(%rbp),%xmm0
  je     L377
L125:
  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    L123
L377:
  pxor   %xmm0,%xmm0
  ucomiss -0xac(%rbp),%xmm0
  jp     L152
  pxor   %xmm0,%xmm0
  ucomiss -0xac(%rbp),%xmm0
  je     L263
L152:
  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    L123
L263:
  pxor   %xmm0,%xmm0
  ucomiss -0xa8(%rbp),%xmm0
  jp     L201
  pxor   %xmm0,%xmm0
  ucomiss -0xa8(%rbp),%xmm0
  je     L458
L201:
  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    L123
L458:
  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    L448
L123:
  movss  -0x54(%rbp),%xmm0
  movss  -0x50(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L438
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x5c(%rbp)
  movss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x5c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
L438:
  movss  -0x4c(%rbp),%xmm0
  movss  -0x48(%rbp),%xmm1
  comiss %xmm1,%xmm0
  jbe    L221
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,-0x58(%rbp)
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x58(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
L221:
  movss  -0x50(%rbp),%xmm1
  movss  -0x4c(%rbp),%xmm0
  comiss %xmm1,%xmm0
  ja     L244
  movss  -0x48(%rbp),%xmm1
  movss  -0x54(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L17
L244:
  mov    $0x0,%eax
  jmp    L448
L17:
  mov    $0x1,%eax
L448:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L260
  call   <__stack_chk_fail@plt>
L260:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D119
type: byte[4]
name: extract_symbolic_data
arguments: label: D3
type: dword
name: extract_symbolic_data
arguments: label: D78
type: f64

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

tool: D3: 2147483647

tool: D78: 0.005

assistant: ```c
int tri_tri_intersect(const float V0[3], const float V1[3], const float V2[3], const float U0[3], const float U1[3], const 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.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.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.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.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;
}
```