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

```asm
<l_coeff>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  movsd  %xmm0,-0x48(%rbp)
  movsd  %xmm1,-0x50(%rbp)
  mov    -0x38(%rbp),%rax
  movsd  D27(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x3c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  mov    %eax,-0x1c(%rbp)
  movl   $0x1,-0x28(%rbp)
  jmp    L20
L50:
  mov    -0x28(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x28(%rbp)
L20:
  mov    -0x28(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jb     L50
  cmpl   $0x0,-0x3c(%rbp)
  je     L47
  movsd  -0x48(%rbp),%xmm0
  movq   D2(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  mov    -0x3c(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x3c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  D27(%rip),%xmm0
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x3c(%rbp),%eax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x1,-0x24(%rbp)
  jmp    L63
L45:
  mov    -0x3c(%rbp),%eax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x24(%rbp),%xmm1
  mov    -0x18(%rbp),%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  divsd  %xmm1,%xmm0
  mov    -0x8(%rbp),%rax
  movsd  %xmm0,(%rax)
  movl   $0x0,-0x20(%rbp)
  jmp    L15
L31:
  mov    -0x24(%rbp),%eax
  add    %eax,%eax
  add    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm1,%xmm0
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    -0x20(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x20(%rbp)
L15:
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L31
  mov    -0x10(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  addl   $0x1,-0x24(%rbp)
L63:
  mov    -0x24(%rbp),%eax
  cmp    %eax,-0x3c(%rbp)
  ja     L45
  jmp    L30
L47:
  nop
L30:
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D27
datatype: byte[8]
name: retrieve_data
arguments: data_label: D2
datatype: byte[8]

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

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

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;
  }
}
```