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

```asm
<_deBoor_D>:
  endbr64
  push   %r15
  movslq %esi,%rax
  mov    %r8,%r15
  push   %r14
  push   %r13
  lea    0x8(%r8,%rax,8),%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    D8(%rip),%rax
  mov    %esi,0xc(%rsp)
  sub    %ecx,%esi
  mov    %rdi,0x10(%rsp)
  mov    %esi,%ebx
  mov    %edx,0x18(%rsp)
  mov    %ecx,0x1c(%rsp)
  mov    %rax,(%r8)
  test   %esi,%esi
  jle    L26
  movslq 0x18(%rsp),%r9
  mov    $0x2,%r12d
  shl    $0x3,%r9
  lea    -0x8(%rdi,%r9,1),%r14
  lea    (%rdi,%r9,1),%rbp
  nopl   0x0(%rax)
L146:
  lea    -0x8(,%r12,8),%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  movsd  %xmm0,(%rsp)
  call   <memcpy@plt>
  movsd  (%rsp),%xmm0
  mov    $0x1,%eax
  movq   $0x0,(%r15)
  nopl   0x0(%rax)
L66:
  movsd  0x0(%rbp,%rax,8),%xmm1
  movsd  (%r14,%rax,8),%xmm3
  ucomisd %xmm3,%xmm1
  jp     L37
  je     L95
L37:
  movapd %xmm1,%xmm4
  movsd  -0x8(%r13,%rax,8),%xmm2
  subsd  %xmm0,%xmm1
  subsd  %xmm3,%xmm4
  divsd  %xmm4,%xmm2
  mulsd  %xmm2,%xmm1
  addsd  -0x8(%r15,%rax,8),%xmm1
  movsd  %xmm1,-0x8(%r15,%rax,8)
  movapd %xmm0,%xmm1
  subsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  %xmm1,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L66
L112:
  add    $0x1,%r12
  sub    $0x8,%r14
  lea    -0x1(%r12),%eax
  cmp    %eax,%ebx
  jge    L146
L26:
  add    $0x1,%ebx
  cmp    %ebx,0xc(%rsp)
  jl     L129
  movslq 0x1c(%rsp),%rax
  movslq %ebx,%rcx
  mov    0x10(%rsp),%rdi
  lea    0x0(,%rbx,8),%r12d
  neg    %rcx
  lea    (%r15,%rax,8),%r8
  movslq 0x18(%rsp),%rax
  shl    $0x3,%rax
  lea    (%rax,%rcx,8),%rbp
  add    %rdi,%rbp
  add    %rax,%rdi
  mov    %rdi,%r14
L115:
  mov    %r12d,%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    %r8,(%rsp)
  call   <memcpy@plt>
  xor    %eax,%eax
  test   %ebx,%ebx
  movq   $0x0,(%r15)
  mov    (%rsp),%r8
  movslq %ebx,%rcx
  jg     L90
  jmp    L148
  nopl   0x0(%rax,%rax,1)
L101:
  pxor   %xmm0,%xmm0
  subsd  %xmm2,%xmm1
  cvtsi2sd %ebx,%xmm0
  mulsd  0x0(%r13,%rax,8),%xmm0
  divsd  %xmm1,%xmm0
  movsd  (%r15,%rax,8),%xmm1
  subsd  %xmm0,%xmm1
  unpcklpd %xmm0,%xmm1
  movups %xmm1,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  je     L148
L90:
  movsd  0x8(%r14,%rax,8),%xmm1
  movsd  0x8(%rbp,%rax,8),%xmm2
  ucomisd %xmm2,%xmm1
  jp     L101
  jne    L101
  add    $0x1,%rax
  movq   $0x0,(%r8)
  cmp    %rax,%rcx
  jne    L90
L148:
  add    $0x1,%ebx
  add    $0x8,%r12d
  sub    $0x8,%rbp
  cmp    %ebx,0xc(%rsp)
  jge    L115
L129:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L95:
  movq   $0x0,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L66
  jmp    L112
```

tool_calls: name: parse_data
arguments: label: D8
type_infered: f64

tool: D8: 1

assistant: ```c
void _deBoor_D(double *t, double x, int k, int ell, int m, double *result) {
  double *hh = result + k + 1;
  double *h = result;
  double xb, xa, w;
  int ind, j, n;
  result[0] = 1.0;
  for (j = 1; j <= k - m; j++) {
    memcpy(hh, h, j * sizeof(double));
    h[0] = 0.0;
    for (n = 1; n <= j; n++) {
      ind = ell + n;
      xb = t[ind];
      xa = t[ind - j];
      if (xb == xa) {
        h[n] = 0.0;
        continue;
      }
      w = hh[n - 1] / (xb - xa);
      h[n - 1] += w * (xb - x);
      h[n] = w * (x - xa);
    }
  }
  for (j = k - m + 1; j <= k; j++) {
    memcpy(hh, h, j * sizeof(double));
    h[0] = 0.0;
    for (n = 1; n <= j; n++) {
      ind = ell + n;
      xb = t[ind];
      xa = t[ind - j];
      if (xb == xa) {
        h[m] = 0.0;
        continue;
      }
      w = j * hh[n - 1] / (xb - xa);
      h[n - 1] -= w;
      h[n] = w;
    }
  }
}
```