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

```asm
<CI_xIntercept>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %edx,-0x64(%rbp)
  movsd  %xmm0,-0x70(%rbp)
  movsd  %xmm1,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %r8,-0x88(%rbp)
  movsd  %xmm2,-0x90(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mean@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L2
L11:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  subsd  -0x30(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movsd  -0x78(%rbp),%xmm2
  movsd  -0x70(%rbp),%xmm1
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <residual@plt>
  movq   %xmm0,%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x44(%rbp)
L2:
  mov    -0x44(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L11
  mov    -0x64(%rbp),%eax
  sub    $0x2,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  movsd  -0x38(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x64(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x90(%rbp),%rax
  mov    %edx,%edi
  movq   %rax,%xmm0
  call   <qt@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm4
  mulsd  -0x38(%rbp),%xmm4
  movsd  %xmm4,-0x98(%rbp)
  mov    -0x70(%rbp),%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  mulsd  -0x40(%rbp),%xmm1
  movsd  -0x98(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x78(%rbp),%xmm0
  movq   D28(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  divsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x64(%rbp),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mean@plt>
  movsd  -0x18(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  -0x20(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mulsd  -0x28(%rbp),%xmm0
  divsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x98(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movapd %xmm0,%xmm6
  subsd  -0x30(%rbp),%xmm6
  movq   %xmm6,%rax
  mov    $0x2,%edi
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  divsd  -0x40(%rbp),%xmm1
  movsd  D3(%rip),%xmm0
  subsd  -0x20(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x64(%rbp),%xmm2
  divsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  mulsd  -0x98(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x10(%rbp),%xmm0
  addsd  -0x8(%rbp),%xmm0
  movsd  D3(%rip),%xmm1
  subsd  -0x20(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  addsd  -0x18(%rbp),%xmm0
  mov    -0x80(%rbp),%rax
  movsd  %xmm0,(%rax)
  movsd  -0x10(%rbp),%xmm0
  subsd  -0x8(%rbp),%xmm0
  movsd  D3(%rip),%xmm1
  subsd  -0x20(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  addsd  -0x18(%rbp),%xmm0
  mov    -0x88(%rbp),%rax
  movsd  %xmm0,(%rax)
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D28
type_guessed: f32[2]
name: retrieve_data
arguments: label: D3
type_guessed: f64

tool: {"D28": [0.0,-0.0]}

tool: D3: 1

assistant: ```c
void CI_xIntercept(double *x, double *y, int n, double slope, double intercept, double *lower, double *upper, double alpha) {
  double meanX = mean(x, n);
  double m11 = 0;
  double ss = 0;
  for (int i = 0; i < n; i++) {
    m11 += pow(x[i] - meanX, 2);
    ss += pow(residual(x[i], y[i], slope, intercept), 2);
  }
  ss /= (n - 2);
  double tstar = qt(alpha, n - 2);
  double g = (pow(tstar, 2) * ss) / (pow(slope, 2) * m11);
  double xIntercept = -intercept / slope;
  double left = (xIntercept - mean(x, n)) * g;
  double right = (tstar * sqrt(ss) / slope) * sqrt(pow((xIntercept - meanX), 2) / m11 + (1 - g) / n);
  *lower = xIntercept + (left + right) / (1 - g);
  *upper = xIntercept + (left - right) / (1 - g);
}
```