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

```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    D3(%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    L67
  movslq 0x18(%rsp),%r10
  mov    0x10(%rsp),%rax
  mov    $0x2,%r12d
  shl    $0x3,%r10
  lea    -0x8(%rax,%r10,1),%r14
  lea    (%rax,%r10,1),%rbp
  nopl   0x0(%rax)
L87:
  lea    -0x8(,%r12,8),%edx
  mov    %r15,%rsi
  mov    %r13,%rdi
  movsd  %xmm0,(%rsp)
  call   <memcpy@plt>
  movq   $0x0,(%r15)
  movsd  (%rsp),%xmm0
  mov    $0x1,%eax
  pxor   %xmm5,%xmm5
  nopl   (%rax)
L60:
  movsd  0x0(%rbp,%rax,8),%xmm1
  movsd  (%r14,%rax,8),%xmm4
  ucomisd %xmm4,%xmm1
  jp     L108
  movapd %xmm5,%xmm2
  je     L78
L108:
  movapd %xmm1,%xmm2
  movsd  -0x8(%r13,%rax,8),%xmm3
  subsd  %xmm0,%xmm1
  subsd  %xmm4,%xmm2
  divsd  %xmm2,%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm4,%xmm2
  mulsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm2
  addsd  -0x8(%r15,%rax,8),%xmm1
  movsd  %xmm1,-0x8(%r15,%rax,8)
L78:
  movsd  %xmm2,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r12
  jne    L60
  add    $0x1,%r12
  sub    $0x8,%r14
  lea    -0x1(%r12),%eax
  cmp    %eax,%ebx
  jge    L87
L67:
  add    $0x1,%ebx
  cmp    %ebx,0xc(%rsp)
  jl     L85
  movslq 0x1c(%rsp),%rax
  movslq %ebx,%rsi
  mov    0x10(%rsp),%rdx
  lea    0x0(,%rbx,8),%r12d
  neg    %rsi
  lea    (%r15,%rax,8),%rcx
  movslq 0x18(%rsp),%rax
  shl    $0x3,%rax
  lea    (%rax,%rsi,8),%rbp
  add    %rdx,%rbp
  add    %rax,%rdx
  mov    %rdx,%r14
  nopl   0x0(%rax,%rax,1)
L91:
  mov    %r15,%rsi
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rcx,(%rsp)
  call   <memcpy@plt>
  lea    0x1(%rbx),%esi
  test   %ebx,%ebx
  mov    (%rsp),%rcx
  movq   $0x0,(%r15)
  mov    %rsi,%rdi
  mov    $0x1,%eax
  jg     L12
  jmp    L70
  xchg   %ax,%ax
L50:
  pxor   %xmm0,%xmm0
  subsd  %xmm2,%xmm1
  cvtsi2sd %ebx,%xmm0
  mulsd  -0x8(%r13,%rax,8),%xmm0
  divsd  %xmm1,%xmm0
  movsd  -0x8(%r15,%rax,8),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm0,(%r15,%rax,8)
  movsd  %xmm1,-0x8(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rsi,%rax
  je     L70
L12:
  movsd  (%r14,%rax,8),%xmm1
  movsd  0x0(%rbp,%rax,8),%xmm2
  ucomisd %xmm2,%xmm1
  jp     L50
  jne    L50
  add    $0x1,%rax
  movq   $0x0,(%rcx)
  cmp    %rsi,%rax
  jne    L12
L70:
  mov    %edi,%ebx
  add    $0x8,%r12d
  sub    $0x8,%rbp
  cmp    %edi,0xc(%rsp)
  jge    L91
L85:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D3
type_guessed: f64

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