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

```asm
<l_coeff>:
  endbr64
  push   %r14
  movq   %xmm0,%r14
  push   %r12
  lea    0x1(%rsi),%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  mov    D12(%rip),%rax
  mov    %rax,(%rdi)
  mov    %r12d,%eax
  imul   %r12d,%eax
  cmp    $0x1,%eax
  jbe    L41
  lea    -0x1(%rax),%edx
  lea    0x8(%rdi),%rdi
  xor    %esi,%esi
  movsd  %xmm1,0x8(%rsp)
  shl    $0x3,%rdx
  call   <memset@plt>
  movsd  0x8(%rsp),%xmm1
L41:
  test   %ebx,%ebx
  je     L82
  movq   %r14,%xmm0
  xorpd  D22(%rip),%xmm0
  mov    %ebx,%eax
  lea    0x8(,%rax,8),%r9
  divsd  %xmm1,%xmm0
  lea    0x0(%rbp,%r9,1),%rcx
  movsd  %xmm0,0x0(%rbp,%rax,8)
  movsd  D12(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp,%r12,8)
  cmp    $0x1,%ebx
  je     L82
  mov    %rbp,%rdx
  lea    0x10(%rcx,%rax,8),%rsi
  mov    $0x1,%edi
  mov    $0x2,%r8d
  mov    $0x3,%r10d
  nopl   0x0(%rax,%rax,1)
L69:
  pxor   %xmm0,%xmm0
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  mov    %rcx,%r11
  cvtsi2sd %edi,%xmm0
  mulsd  (%rdx),%xmm0
  lea    0x10(%rdx),%rax
  add    %r9,%rcx
  cvtsi2sd %r8d,%xmm2
  cvtsi2sd %r10d,%xmm1
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %rax,%rsi
  je     L77
  cmp    $0x1,%edi
  je     L77
  mov    %edi,%ebp
  movapd %xmm1,%xmm4
  movapd %xmm2,%xmm3
  xor    %eax,%eax
  shr    %ebp
  unpcklpd %xmm4,%xmm4
  unpcklpd %xmm3,%xmm3
  shl    $0x4,%rbp
  nopl   0x0(%rax)
L53:
  movupd (%r11,%rax,1),%xmm0
  movupd 0x8(%rdx,%rax,1),%xmm5
  mulpd  %xmm4,%xmm0
  addpd  %xmm5,%xmm0
  divpd  %xmm3,%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rbp
  jne    L53
  mov    %edi,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%dil
  je     L92
  mulsd  (%r11,%rax,8),%xmm1
  movsd  0x8(%rdx,%rax,8),%xmm0
  addsd  %xmm1,%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,0x8(%rcx,%rax,8)
L92:
  add    $0x1,%edi
  add    %r9,%rdx
  add    $0x2,%r10d
  add    %r9,%rsi
  add    $0x1,%r8
  cmp    %ebx,%edi
  jne    L69
L82:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r14
  ret
  cs nopw 0x0(%rax,%rax,1)
L77:
  mov    $0x1,%eax
  nopl   (%rax)
L21:
  movsd  -0x8(%r11,%rax,8),%xmm0
  mulsd  %xmm1,%xmm0
  addsd  (%rdx,%rax,8),%xmm0
  divsd  %xmm2,%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L21
  jmp    L92
```

tool_calls: name: retrieve_data
arguments: label: D12
data_type: byte[8]
name: retrieve_data
arguments: label: D22
data_type: byte[16]

tool: {"D12": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D22": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void l_coeff(double *CC, unsigned int order, double CENTER, double WIDTH) {
  CC[0] = 1;
  unsigned int size = (order + 1) * (order + 1);
  for (unsigned int i = 1; i < size; ++i)
    CC[i] = 0;
  if (order == 0)
    return;
  CC[order] = -CENTER / WIDTH;
  CC[order + 1] = 1 / WIDTH;
  double *prev = CC;
  double *current = CC + order + 1;
  for (int n = 1; n < order; ++n) {
    double *next = current + order + 1;
    next[0] = n * prev[0] / (n + 1);
    for (int i = 0; i < n; ++i)
      next[i + 1] = ((2 * n + 1) * current[i] + prev[i + 1]) / (n + 1);
    prev = current;
    current = next;
  }
}
```