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

```asm
<vorbis_lpc_from_data>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r14
  mov    %edx,%ebp
  mov    %ecx,%ebx
  mov    %r8d,0xc(%rsp)
  lea    0x1(%rcx),%eax
  mov    %eax,(%rsp)
  lea    0x0(,%rax,8),%edi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %ebx,0x8(%rsp)
  lea    0x0(,%rbx,8),%edi
  call   <malloc@plt>
  test   %r15,%r15
  je     L73
  movslq %ebx,%r13
  mov    %rax,%rbx
  test   %rax,%rax
  je     L73
  cmpl   $0x0,(%rsp)
  je     L176
  mov    0xc(%rsp),%esi
  mov    %esi,%r8d
  neg    %r8d
  movslq %r8d,%r8
  mov    0x8(%rsp),%eax
  mov    %eax,%ecx
  imul   %esi,%ecx
  movslq %ecx,%rcx
  lea    -0x1(%r13),%rdi
  mov    %eax,%eax
  sub    %rax,%rdi
  movslq %esi,%rsi
  shl    $0x2,%rsi
  jmp    L77
L67:
  pxor   %xmm0,%xmm0
  cvtss2sd (%rax,%rcx,4),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd (%rax),%xmm2
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  add    $0x1,%edx
  add    %rsi,%rax
  cmp    %edx,%ebp
  jne    L67
L5:
  movsd  %xmm1,(%r15,%r13,8)
  sub    $0x1,%r13
  add    %r8,%rcx
  cmp    %rdi,%r13
  je     L228
L77:
  mov    %r13d,%edx
  mov    %r12,%rax
  pxor   %xmm1,%xmm1
  cmp    %r13d,%ebp
  jg     L67
  jmp    L5
L228:
  movsd  (%r15),%xmm3
  movapd %xmm3,%xmm5
  mulsd  D8(%rip),%xmm5
  movsd  %xmm5,(%rsp)
  mulsd  D31(%rip),%xmm3
  addsd  D37(%rip),%xmm3
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  jle    L50
  mov    %r15,%r8
  mov    %rbx,%rbp
  mov    %eax,%r12d
  mov    %rbx,%r9
  mov    $0xffffffff,%r10d
  mov    $0x0,%esi
  movq   D51(%rip),%xmm4
  lea    0x8(%rbx),%r13
  movsd  D56(%rip),%xmm5
  jmp    L143
L164:
  mov    0x8(%rsp),%edx
  sub    %esi,%edx
  shl    $0x3,%edx
  lea    (%rbx,%rsi,8),%rdi
  mov    $0x0,%esi
  call   <memset@plt>
L14:
  mov    0x8(%rsp),%eax
  lea    (%rbx,%rax,8),%rax
  movsd  D57(%rip),%xmm0
  movapd %xmm0,%xmm2
L56:
  movapd %xmm0,%xmm1
  mulsd  0x0(%rbp),%xmm1
  movsd  %xmm1,0x0(%rbp)
  mulsd  %xmm2,%xmm0
  add    $0x8,%rbp
  cmp    %rbp,%rax
  jne    L56
  mov    $0x0,%eax
L131:
  pxor   %xmm0,%xmm0
  cvtsd2ss (%rbx,%rax,8),%xmm0
  movss  %xmm0,(%r14,%rax,4)
  add    $0x1,%rax
  cmp    %r12,%rax
  jne    L131
L50:
  mov    %r15,%rdi
  call   <free@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  pxor   %xmm0,%xmm0
  cvtsd2ss (%rsp),%xmm0
L1:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L121:
  mov    $0x0,%ecx
  jmp    L209
L62:
  mulsd  %xmm1,%xmm1
  movapd %xmm5,%xmm0
  subsd  %xmm1,%xmm0
  mulsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  add    $0x1,%rsi
  add    $0x8,%r8
  add    $0x8,%r9
  add    $0x1,%r10d
  cmp    %r12,%rsi
  je     L14
L143:
  mov    %esi,%edi
  movsd  0x8(%r8),%xmm1
  xorpd  %xmm4,%xmm1
  comisd (%rsp),%xmm3
  ja     L164
  mov    %esi,%r11d
  test   %esi,%esi
  jle    L39
  mov    %r10d,%eax
  lea    0x0(%r13,%rax,8),%rcx
  mov    %r8,%rdx
  mov    %rbp,%rax
L224:
  movsd  (%rax),%xmm0
  mulsd  (%rdx),%xmm0
  subsd  %xmm0,%xmm1
  add    $0x8,%rax
  sub    $0x8,%rdx
  cmp    %rcx,%rax
  jne    L224
L39:
  divsd  (%rsp),%xmm1
  movsd  %xmm1,(%r9)
  mov    %edi,%ecx
  shr    $0x1f,%ecx
  add    %edi,%ecx
  sar    %ecx
  cmp    $0x1,%r11d
  jle    L121
  mov    %r9,%rdx
  mov    $0x0,%eax
L24:
  movsd  (%rbx,%rax,8),%xmm0
  movapd %xmm1,%xmm2
  mulsd  -0x8(%rdx),%xmm2
  addsd  %xmm0,%xmm2
  movsd  %xmm2,(%rbx,%rax,8)
  mulsd  %xmm1,%xmm0
  addsd  -0x8(%rdx),%xmm0
  movsd  %xmm0,-0x8(%rdx)
  add    $0x1,%rax
  sub    $0x8,%rdx
  cmp    %eax,%ecx
  jg     L24
  test   %ecx,%ecx
  mov    $0x1,%eax
  cmovle %eax,%ecx
L209:
  test   $0x1,%dil
  je     L62
  movslq %ecx,%rcx
  lea    (%rbx,%rcx,8),%rax
  movsd  (%rax),%xmm2
  movapd %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  addsd  %xmm2,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L62
L73:
  pxor   %xmm0,%xmm0
  jmp    L1
L176:
  movsd  D8(%rip),%xmm0
  mulsd  (%r15),%xmm0
  movsd  %xmm0,(%rsp)
  jmp    L50
```

tool_calls: name: parse_data
arguments: data_label: D8
datatype: byte[8]
name: parse_data
arguments: data_label: D31
datatype: byte[8]
name: parse_data
arguments: data_label: D37
datatype: byte[8]
name: parse_data
arguments: data_label: D51
datatype: f32[2]
name: parse_data
arguments: data_label: D56
datatype: f64
name: parse_data
arguments: data_label: D57
datatype: byte[8]

tool: {"D8": [0x38,0xdf,0x06,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D31": [0x95,0xd6,0x26,0xe8,0x0b,0x2e,0x11,0x3e]}

tool: {"D37": [0xbb,0xbd,0xd7,0xd9,0xdf,0x7c,0xdb,0x3d]}

tool: {"D51": [0.0,-0.0]}

tool: D56: 1

tool: {"D57": [0xae,0x47,0xe1,0x7a,0x14,0xae,0xef,0x3f]}

assistant: ```c
float vorbis_lpc_from_data(float *data, float *lpci, int n, int m, int stride) {
  double *aut = malloc(sizeof(*aut) * (m + 1));
  double *lpc = malloc(sizeof(*lpc) * (m));
  double error;
  double epsilon;
  int i, j;
  if (!aut || !lpc)
    return 0;
  j = m + 1;
  while (j--) {
    double d = 0;
    for (i = j; i < n; i++)
      d += (double)data[i * stride] * data[(i - j) * stride];
    aut[j] = d;
  }
  error = aut[0] * (1. + 1e-10);
  epsilon = 1e-9 * aut[0] + 1e-10;
  for (i = 0; i < m; i++) {
    double r = -aut[i + 1];
    if (error < epsilon) {
      memset(lpc + i, 0, (m - i) * sizeof(*lpc));
      goto done;
    }
    for (j = 0; j < i; j++)
      r -= lpc[j] * aut[i - j];
    r /= error;
    lpc[i] = r;
    for (j = 0; j < i / 2; j++) {
      double tmp = lpc[j];
      lpc[j] += r * lpc[i - 1 - j];
      lpc[i - 1 - j] += r * tmp;
    }
    if (i & 1)
      lpc[j] += lpc[j] * r;
    error *= 1. - r * r;
  }
done : {
  double g = .99;
  double damp = g;
  for (j = 0; j < m; j++) {
    lpc[j] *= damp;
    damp *= g;
  }
}
  for (j = 0; j < m; j++)
    lpci[j] = (float)lpc[j];
  free(aut);
  free(lpc);
  return error;
}
```