user: Converte this assembly snippet into its equivalent C code:

```asm
<_deBoor_D>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  movsd  %xmm0,(%rsp)
  mov    %esi,0xc(%rsp)
  mov    %edx,0x18(%rsp)
  mov    %ecx,0x1c(%rsp)
  mov    %r8,%rbx
  movslq %esi,%rax
  lea    0x8(%r8,%rax,8),%rbp
  mov    D0(%rip),%rax
  mov    %rax,(%r8)
  sub    %ecx,%esi
  mov    %esi,0x8(%rsp)
  test   %esi,%esi
  jle    L7
  movslq %edx,%r14
  shl    $0x3,%r14
  lea    -0x8(%rdi,%r14,1),%r13
  add    %rdi,%r14
  mov    $0x2,%r12d
  mov    $0x1,%r15d
  jmp    L5
L62:
  movapd %xmm0,%xmm3
  subsd  %xmm1,%xmm3
  movsd  -0x8(%rbp,%rax,8),%xmm2
  divsd  %xmm3,%xmm2
  movsd  (%rsp),%xmm4
  subsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  -0x8(%rbx,%rax,8),%xmm0
  movsd  %xmm0,-0x8(%rbx,%rax,8)
  subsd  %xmm1,%xmm4
  movapd %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
L104:
  add    $0x1,%rax
  cmp    %r12,%rax
  je     L175
L126:
  movsd  (%r14,%rax,8),%xmm0
  movsd  0x0(%r13,%rax,8),%xmm1
  ucomisd %xmm1,%xmm0
  jp     L62
  jne    L62
  movq   $0x0,(%rbx,%rax,8)
  jmp    L104
L175:
  add    $0x1,%r15d
  add    $0x1,%r12
  sub    $0x8,%r13
  cmp    0x8(%rsp),%r15d
  jg     L7
L5:
  lea    0x0(,%r15,8),%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  movq   $0x0,(%rbx)
  test   %r15d,%r15d
  jle    L175
  mov    $0x1,%eax
  jmp    L126
L7:
  mov    0x8(%rsp),%r12d
  add    $0x1,%r12d
  cmp    %r12d,0xc(%rsp)
  jl     L109
  movslq 0x1c(%rsp),%rax
  lea    (%rbx,%rax,8),%r15
  movslq %r12d,%rax
  lea    0x0(,%r12,8),%ecx
  mov    %ecx,(%rsp)
  movslq 0x18(%rsp),%r14
  shl    $0x3,%r14
  neg    %rax
  lea    (%r14,%rax,8),%r13
  mov    0x10(%rsp),%rax
  add    %rax,%r13
  add    %rax,%r14
  jmp    L50
L57:
  pxor   %xmm1,%xmm1
  cvtsi2sd %r12d,%xmm1
  mulsd  -0x8(%rbp,%rax,8),%xmm1
  subsd  %xmm2,%xmm0
  divsd  %xmm0,%xmm1
  movsd  -0x8(%rbx,%rax,8),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbx,%rax,8)
  movsd  %xmm1,(%rbx,%rax,8)
L156:
  add    $0x1,%rax
  cmp    %rax,%rdx
  je     L75
L144:
  movsd  (%r14,%rax,8),%xmm0
  movsd  0x0(%r13,%rax,8),%xmm2
  ucomisd %xmm2,%xmm0
  jp     L57
  jne    L57
  movq   $0x0,(%r15)
  jmp    L156
L75:
  add    $0x1,%r12d
  addl   $0x8,(%rsp)
  sub    $0x8,%r13
  cmp    %r12d,0xc(%rsp)
  jl     L109
L50:
  mov    (%rsp),%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  movq   $0x0,(%rbx)
  test   %r12d,%r12d
  jle    L75
  lea    0x1(%r12),%edx
  mov    $0x1,%eax
  jmp    L144
L109:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D0
type_guessed: f64

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