user: Translate the below assembly code into C programming language:

```asm
<SKP_Silk_NLSF_VQ_sum_error_FIX>:
  endbr64
  push   %r15
  mov    %rsi,%r11
  mov    %rdx,%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r9d,%edi
  sub    $0x58,%rsp
  mov    0x90(%rsp),%ebp
  mov    %rcx,0x18(%rsp)
  mov    %r8d,0x4(%rsp)
  mov    %ebp,%edx
  sar    %edx
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L95
  lea    -0x1(%rdx),%eax
  cmp    $0x2,%eax
  jbe    L44
  movdqu (%rsi),%xmm1
  movdqu 0x10(%rsi),%xmm3
  mov    %edx,%eax
  shr    $0x2,%eax
  movdqa %xmm1,%xmm0
  shufps $0x88,%xmm3,%xmm1
  shufps $0xdd,%xmm3,%xmm0
  pslld  $0x10,%xmm0
  por    %xmm1,%xmm0
  movaps %xmm0,0x20(%rsp)
  cmp    $0x1,%eax
  jne    L145
L6:
  mov    %edx,%ecx
  and    $0xfffffffc,%ecx
  mov    %ecx,%eax
  cmp    %edx,%ecx
  je     L95
L100:
  sub    %ecx,%edx
  cmp    $0x1,%edx
  je     L75
  lea    (%rsi,%rcx,8),%r8
  movq   (%r8),%xmm1
  movq   0x8(%r8),%xmm2
  movdqa %xmm1,%xmm0
  punpckldq %xmm2,%xmm1
  punpckldq %xmm2,%xmm0
  pshufd $0xe,%xmm0,%xmm0
  pslld  $0x10,%xmm0
  por    %xmm1,%xmm0
  movq   %xmm0,0x20(%rsp,%rcx,4)
  mov    %edx,%ecx
  and    $0xfffffffe,%ecx
  add    %ecx,%eax
  cmp    %edx,%ecx
  je     L95
L75:
  lea    (%rax,%rax,1),%edx
  movslq %eax,%rcx
  movslq %edx,%rdx
  mov    0x4(%rsi,%rdx,4),%eax
  shl    $0x10,%eax
  or     (%rsi,%rdx,4),%eax
  mov    %eax,0x20(%rsp,%rcx,4)
L95:
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L50
  movslq %edi,%rax
  shl    $0x2,%rax
  mov    %rax,0x8(%rsp)
  movslq %ebp,%rax
  shl    $0x2,%rax
  mov    %rax,0x10(%rsp)
  test   %edi,%edi
  jle    L50
  lea    -0x1(%rbp),%eax
  mov    %edi,%edi
  xor    %r15d,%r15d
  shr    %eax
  lea    (%rbx,%rdi,4),%r13
  lea    0x1(%rax),%r14d
  shl    $0x2,%r14
  nopl   (%rax)
L112:
  mov    0x18(%rsp),%r10
  mov    %rbx,%r12
  nopl   0x0(%rax,%rax,1)
L126:
  xor    %edx,%edx
  xor    %esi,%esi
  mov    %edx,%r8d
  test   %ebp,%ebp
  jle    L48
  nopl   0x0(%rax,%rax,1)
L57:
  mov    (%r11,%rsi,4),%ecx
  mov    %esi,%eax
  sub    (%r10,%rsi,2),%cx
  sar    %eax
  movswl %cx,%ecx
  imul   %ecx,%ecx
  cltq
  mov    0x20(%rsp,%rax,4),%edi
  mov    0x4(%r11,%rsi,4),%eax
  sub    0x2(%r10,%rsi,2),%ax
  add    $0x2,%rsi
  movswl %di,%r9d
  movzwl %cx,%edx
  cwtl
  sar    $0x10,%ecx
  imul   %r9d,%edx
  sar    $0x10,%edi
  imul   %eax,%eax
  imul   %r9d,%ecx
  sar    $0x10,%edx
  add    %ecx,%edx
  mov    %eax,%ecx
  movzwl %ax,%eax
  sar    $0x10,%ecx
  imul   %edi,%eax
  add    %r8d,%edx
  imul   %edi,%ecx
  sar    $0x10,%eax
  add    %ecx,%edx
  lea    (%rax,%rdx,1),%r8d
  cmp    %esi,%ebp
  jg     L57
  mov    %r8d,%edx
  add    %r14,%r10
L48:
  mov    %edx,(%r12)
  add    $0x4,%r12
  cmp    %r12,%r13
  jne    L126
  mov    0x8(%rsp),%rax
  add    0x10(%rsp),%r11
  add    $0x1,%r15d
  add    %rax,%rbx
  add    %rax,%r13
  cmp    %r15d,0x4(%rsp)
  jne    L112
L50:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L109
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L145:
  movdqu 0x20(%rsi),%xmm1
  movdqu 0x30(%rsi),%xmm5
  movdqa %xmm1,%xmm0
  shufps $0x88,%xmm5,%xmm1
  shufps $0xdd,%xmm5,%xmm0
  pslld  $0x10,%xmm0
  por    %xmm1,%xmm0
  movaps %xmm0,0x30(%rsp)
  jmp    L6
L44:
  xor    %ecx,%ecx
  xor    %eax,%eax
  jmp    L100
L109:
  call   <__stack_chk_fail@plt>
```

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