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

```asm
<SKP_Silk_NLSF_VQ_sum_error_FIX>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8d,-0x74(%rbp)
  mov    %r9d,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x48(%rbp)
  jmp    L62
L63:
  mov    -0x48(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x68(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x48(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x48(%rbp)
L62:
  mov    0x10(%rbp),%eax
  sar    %eax
  cmp    %eax,-0x48(%rbp)
  jl     L63
  movl   $0x0,-0x4c(%rbp)
  jmp    L86
L23:
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x50(%rbp)
  jmp    L83
L57:
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L21
L59:
  mov    -0x48(%rbp),%eax
  sar    %eax
  cltq
  mov    -0x30(%rbp,%rax,4),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  movswl %ax,%edx
  mov    -0x3c(%rbp),%eax
  cwtl
  imul   %edx,%eax
  sar    $0x10,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  cwtl
  mov    %edx,%ecx
  imul   %eax,%ecx
  mov    -0x3c(%rbp),%eax
  movswl %ax,%edx
  mov    -0x3c(%rbp),%eax
  cwtl
  imul   %edx,%eax
  movzwl %ax,%edx
  mov    -0x40(%rbp),%eax
  cwtl
  imul   %edx,%eax
  sar    $0x10,%eax
  add    %ecx,%eax
  add    %eax,-0x44(%rbp)
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x60(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x38(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    %rdx,-0x38(%rbp)
  movzwl (%rax),%eax
  movswl %ax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  movswl %ax,%edx
  mov    -0x3c(%rbp),%eax
  cwtl
  imul   %edx,%eax
  sar    $0x10,%eax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  sar    $0x10,%eax
  imul   %eax,%edx
  mov    -0x44(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x3c(%rbp),%eax
  movswl %ax,%edx
  mov    -0x3c(%rbp),%eax
  cwtl
  imul   %edx,%eax
  movzwl %ax,%eax
  mov    -0x40(%rbp),%edx
  sar    $0x10,%edx
  imul   %edx,%eax
  sar    $0x10,%eax
  add    %ecx,%eax
  mov    %eax,-0x44(%rbp)
  addl   $0x2,-0x48(%rbp)
L21:
  mov    -0x48(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jl     L59
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x44(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x50(%rbp)
L83:
  mov    -0x50(%rbp),%eax
  cmp    -0x78(%rbp),%eax
  jl     L57
  mov    -0x78(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x58(%rbp)
  mov    0x10(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x60(%rbp)
  addl   $0x1,-0x4c(%rbp)
L86:
  mov    -0x4c(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L23
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L61
  call   <__stack_chk_fail@plt>
L61:
  leave
  ret
```

assistant: ```c
void SKP_Silk_NLSF_VQ_sum_error_FIX(int *err_Q20, const int *in_Q15, const int *w_Q6, const short *pCB_Q15, const int N, const int K, const int LPC_order) {
  int i, n, m;
  int diff_Q15, sum_error, Wtmp_Q6;
  int Wcpy_Q6[16 / 2];
  const short *cb_vec_Q15;
  ;
  ;
  for (m = 0; m < ((LPC_order) >> (1)); m++) {
    Wcpy_Q6[m] = w_Q6[2 * m] | (((int)w_Q6[2 * m + 1]) << (16));
  }
  for (n = 0; n < N; n++) {
    cb_vec_Q15 = pCB_Q15;
    for (i = 0; i < K; i++) {
      sum_error = 0;
      for (m = 0; m < LPC_order; m += 2) {
        Wtmp_Q6 = Wcpy_Q6[((m) >> (1))];
        diff_Q15 = in_Q15[m] - *cb_vec_Q15++;
        sum_error = ((sum_error) + ((((((int)((short)(diff_Q15)) * (int)((short)(diff_Q15)))) >> 16) * (int)((short)(Wtmp_Q6))) + ((((((int)((short)(diff_Q15)) * (int)((short)(diff_Q15)))) & 0x0000FFFF) * (int)((short)(Wtmp_Q6))) >> 16)));
        diff_Q15 = in_Q15[m + 1] - *cb_vec_Q15++;
        sum_error = ((sum_error) + (((((int)((short)(diff_Q15)) * (int)((short)(diff_Q15)))) >> 16) * ((Wtmp_Q6) >> 16)) + ((((((int)((short)(diff_Q15)) * (int)((short)(diff_Q15)))) & 0x0000FFFF) * ((Wtmp_Q6) >> 16)) >> 16));
      };
      err_Q20[i] = sum_error;
    }
    err_Q20 += K;
    in_Q15 += LPC_order;
  }
}
```