user: 请从给定的汇编指令推导出C源代码:

```asm
<LineIntersect>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x8,%rsp
  movsd  %xmm0,-0x38(%rbp)
  movsd  %xmm1,-0x40(%rbp)
  movsd  %xmm2,-0x48(%rbp)
  movsd  %xmm3,-0x50(%rbp)
  movsd  %xmm4,-0x58(%rbp)
  movsd  %xmm5,-0x60(%rbp)
  movsd  %xmm6,-0x68(%rbp)
  movsd  %xmm7,-0x70(%rbp)
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x60(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x68(%rbp),%xmm1
  movapd %xmm1,%xmm2
  subsd  -0x58(%rbp),%xmm2
  movsd  -0x50(%rbp),%xmm1
  subsd  -0x40(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x68(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x58(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x70(%rbp),%xmm1
  movapd %xmm1,%xmm2
  subsd  -0x60(%rbp),%xmm2
  movsd  -0x38(%rbp),%xmm1
  subsd  -0x58(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x48(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x38(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  subsd  -0x60(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x50(%rbp),%xmm1
  movapd %xmm1,%xmm2
  subsd  -0x40(%rbp),%xmm2
  movsd  -0x38(%rbp),%xmm1
  subsd  -0x58(%rbp),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x20(%rbp),%xmm0
  jbe    L152
  movsd  -0x20(%rbp),%xmm0
  comisd D39(%rip),%xmm0
  seta   %al
  jmp    L70
L152:
  movsd  D110(%rip),%xmm0
  comisd -0x20(%rbp),%xmm0
  seta   %al
L70:
  test   %al,%al
  je     L174
  pxor   %xmm0,%xmm0
  comisd -0x18(%rbp),%xmm0
  jbe    L93
  movsd  -0x18(%rbp),%xmm0
  comisd D39(%rip),%xmm0
  seta   %al
  jmp    L47
L93:
  movsd  D110(%rip),%xmm0
  comisd -0x18(%rbp),%xmm0
  seta   %al
L47:
  test   %al,%al
  je     L174
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L6
  movsd  -0x28(%rbp),%xmm0
  comisd D39(%rip),%xmm0
  seta   %al
  jmp    L64
L6:
  movsd  D110(%rip),%xmm0
  comisd -0x28(%rbp),%xmm0
  seta   %al
L64:
  test   %al,%al
  je     L174
  movsd  -0x38(%rbp),%xmm0
  addsd  -0x48(%rbp),%xmm0
  movsd  D68(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x78(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x40(%rbp),%xmm0
  addsd  -0x50(%rbp),%xmm0
  movsd  D68(%rip),%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x80(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    $0x1,%eax
  jmp    L137
L174:
  pxor   %xmm0,%xmm0
  comisd -0x28(%rbp),%xmm0
  jbe    L104
  movsd  -0x28(%rbp),%xmm0
  comisd D39(%rip),%xmm0
  seta   %al
  jmp    L183
L104:
  movsd  D110(%rip),%xmm0
  comisd -0x28(%rbp),%xmm0
  seta   %al
L183:
  test   %al,%al
  je     L56
  mov    -0x78(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x80(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    $0x0,%eax
  jmp    L137
L56:
  movsd  -0x20(%rbp),%xmm0
  divsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x18(%rbp),%xmm0
  divsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x10(%rbp),%xmm0
  ja     L10
  movsd  -0x10(%rbp),%xmm0
  movsd  D99(%rip),%xmm1
  comisd %xmm1,%xmm0
  ja     L10
  pxor   %xmm0,%xmm0
  comisd -0x8(%rbp),%xmm0
  ja     L10
  movsd  -0x8(%rbp),%xmm0
  movsd  D99(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L187
L10:
  mov    -0x78(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x80(%rbp),%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  mov    $0x0,%eax
  jmp    L137
L187:
  movsd  -0x48(%rbp),%xmm0
  subsd  -0x38(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  mov    -0x78(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x50(%rbp),%xmm0
  subsd  -0x40(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  addsd  -0x40(%rbp),%xmm0
  mov    -0x80(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    $0x1,%eax
L137:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D39
type: byte[16]
name: disassemble_data
arguments: data_tag: D110
type: f64
name: disassemble_data
arguments: data_tag: D68
type: byte[8]
name: disassemble_data
arguments: data_tag: D99
type: byte[8]

tool: {"D39": [0xf1,0x68,0xe3,0x88,0xb5,0xf8,0xe4,0xbe,0xf1,0x68,0xe3,0x88,0xb5,0xf8,0xe4,0x3e]}

tool: D110: 1e-05

tool: {"D68": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D99": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
int LineIntersect(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double *x, double *y) {
  double mua, mub;
  double denom, numera, numerb;
  denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
  numera = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3);
  numerb = (x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3);
  if ((numera < 0 ? -(numera) : (numera)) < 0.00001 && (numerb < 0 ? -(numerb) : (numerb)) < 0.00001 && (denom < 0 ? -(denom) : (denom)) < 0.00001) {
    *x = (x1 + x2) / 2;
    *y = (y1 + y2) / 2;
    return (1);
  }
  if ((denom < 0 ? -(denom) : (denom)) < 0.00001) {
    *x = 0;
    *y = 0;
    return (0);
  }
  mua = numera / denom;
  mub = numerb / denom;
  if (mua < 0 || mua > 1 || mub < 0 || mub > 1) {
    *x = 0;
    *y = 0;
    return (0);
  }
  *x = x1 + mua * (x2 - x1);
  *y = y1 + mua * (y2 - y1);
  return (1);
}
```