user: Please show me the C implementation that matches the assembly code listed below:

```asm
<CI_xIntercept>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %edx,%r12d
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %edx,%esi
  sub    $0x58,%rsp
  mov    %r8,0x38(%rsp)
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm2,0x28(%rsp)
  call   <mean@plt>
  movsd  %xmm0,0x18(%rsp)
  test   %r12d,%r12d
  jle    L68
  pxor   %xmm5,%xmm5
  lea    -0x1(%r12),%edx
  mov    %r13,%r14
  lea    0x8(%r13,%rdx,8),%rbp
  movsd  %xmm5,0x30(%rsp)
  movapd %xmm5,%xmm4
  movsd  %xmm5,(%rsp)
  nopl   0x0(%rax,%rax,1)
L25:
  movsd  (%r14),%xmm0
  subsd  0x18(%rsp),%xmm0
  add    $0x8,%r14
  add    $0x8,%rbx
  mov    $0x2,%edi
  movsd  %xmm4,0x8(%rsp)
  call   <pow@plt>
  addsd  (%rsp),%xmm0
  movsd  -0x8(%rbx),%xmm1
  movsd  0x20(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm2
  movsd  %xmm0,(%rsp)
  movsd  -0x8(%r14),%xmm0
  call   <residual@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  movsd  0x8(%rsp),%xmm4
  addsd  %xmm0,%xmm4
  cmp    %r14,%rbp
  jne    L25
L40:
  lea    -0x2(%r12),%edi
  pxor   %xmm0,%xmm0
  cvtsi2sd %edi,%xmm0
  divsd  %xmm0,%xmm4
  movsd  0x28(%rsp),%xmm0
  movsd  %xmm4,0x8(%rsp)
  call   <qt@plt>
  mov    $0x2,%edi
  movsd  %xmm0,0x40(%rsp)
  call   <pow@plt>
  mulsd  0x8(%rsp),%xmm0
  mov    $0x2,%edi
  movq   %xmm0,%rbx
  movsd  0x10(%rsp),%xmm0
  call   <pow@plt>
  mulsd  (%rsp),%xmm0
  mov    %r12d,%esi
  mov    %r13,%rdi
  movq   %rbx,%xmm6
  movsd  0x20(%rsp),%xmm1
  xorpd  D2(%rip),%xmm1
  divsd  0x10(%rsp),%xmm1
  movsd  %xmm1,0x20(%rsp)
  divsd  %xmm0,%xmm6
  movsd  %xmm6,0x28(%rsp)
  call   <mean@plt>
  movsd  0x30(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm5
  movsd  0x20(%rsp),%xmm1
  movsd  0x40(%rsp),%xmm3
  ucomisd %xmm5,%xmm7
  movapd %xmm1,%xmm2
  subsd  %xmm0,%xmm2
  mulsd  0x28(%rsp),%xmm2
  ja     L8
  sqrtsd %xmm5,%xmm5
  movapd %xmm5,%xmm0
L31:
  mulsd  %xmm0,%xmm3
  movapd %xmm1,%xmm0
  subsd  0x18(%rsp),%xmm0
  mov    $0x2,%edi
  divsd  0x10(%rsp),%xmm3
  movsd  %xmm2,0x20(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <pow@plt>
  pxor   %xmm5,%xmm5
  movsd  D10(%rip),%xmm3
  subsd  0x28(%rsp),%xmm3
  cvtsi2sd %r12d,%xmm5
  movapd %xmm0,%xmm4
  divsd  (%rsp),%xmm4
  movsd  0x30(%rsp),%xmm7
  movsd  0x10(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm2
  movapd %xmm3,%xmm0
  divsd  %xmm5,%xmm0
  addsd  %xmm4,%xmm0
  ucomisd %xmm0,%xmm7
  ja     L56
  sqrtsd %xmm0,%xmm0
L20:
  movsd  0x8(%rsp),%xmm4
  mov    0x38(%rsp),%rax
  mulsd  %xmm0,%xmm4
  movapd %xmm2,%xmm0
  addsd  %xmm4,%xmm0
  subsd  %xmm4,%xmm2
  divsd  %xmm3,%xmm0
  divsd  %xmm3,%xmm2
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%r15)
  addsd  %xmm1,%xmm2
  movsd  %xmm2,(%rax)
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L68:
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x30(%rsp)
  movapd %xmm6,%xmm4
  movsd  %xmm6,(%rsp)
  jmp    L40
L8:
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm2,0x48(%rsp)
  movsd  %xmm1,0x40(%rsp)
  movsd  %xmm3,0x20(%rsp)
  call   <sqrt@plt>
  movsd  0x48(%rsp),%xmm2
  movsd  0x40(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm3
  jmp    L31
L56:
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm3,(%rsp)
  call   <sqrt@plt>
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movsd  (%rsp),%xmm3
  jmp    L20
```

tool_calls: name: parse_data
arguments: data_tag: D2
data_type: f32[4]
name: parse_data
arguments: data_tag: D10
data_type: f64

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

tool: D10: 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);
}
```