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

```asm
<bs_conv_14le_8>:
  endbr64
  push   %r15
  lea    0x7(%rsi),%eax
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  mov    %esi,%edx
  push   %rbx
  sub    $0x18,%rsp
  test   %esi,%esi
  cmovns %esi,%eax
  sar    $0x1f,%edx
  mov    %esi,0x4(%rsp)
  shr    $0x1d,%edx
  mov    %eax,%r15d
  lea    (%rsi,%rdx,1),%r14d
  and    $0xfffffff8,%eax
  sar    $0x3,%r15d
  and    $0x7,%r14d
  sub    %edx,%r14d
  sub    %r15d,%eax
  add    %r14d,%eax
  mov    %eax,(%rsp)
  test   %r15d,%r15d
  je     L62
  mov    %r15d,%eax
  mov    %rbp,%rbx
  mov    %rax,0x8(%rsp)
  lea    (%rdi,%rax,8),%r12
  nopw   0x0(%rax,%rax,1)
L31:
  mov    0x0(%r13),%edi
  add    $0x8,%r13
  add    $0x7,%rbx
  call   <spdif_swab_s32@plt>
  mov    -0x4(%r13),%edi
  mov    %eax,%r15d
  call   <spdif_swab_s32@plt>
  mov    %r15d,%edx
  mov    %eax,%ecx
  shr    $0x8,%eax
  shl    $0x8,%ecx
  and    $0xff00ff,%eax
  shl    $0x8,%edx
  and    $0xff00ff00,%ecx
  and    $0xff00ff00,%edx
  or     %ecx,%eax
  mov    %r15d,%ecx
  shr    $0x8,%ecx
  mov    %eax,%r9d
  and    $0x3fff,%eax
  and    $0xff00ff,%ecx
  shr    $0x2,%r9d
  or     %ecx,%edx
  and    $0xfffc000,%r9d
  shl    $0x1c,%ecx
  lea    0x0(,%rdx,4),%edi
  shl    $0x4,%edx
  or     %ecx,%eax
  mov    %r9d,%r15d
  and    $0x3fff0,%edx
  and    $0xfffc0000,%edi
  or     %eax,%r15d
  or     %edx,%edi
  call   <spdif_swab_s32@plt>
  mov    %r15d,%edi
  mov    %eax,-0x7(%rbx)
  call   <spdif_swab_s32@plt>
  mov    %eax,-0x4(%rbx)
  cmp    %r12,%r13
  jne    L31
  mov    0x8(%rsp),%rax
  lea    0x0(%rbp,%rax,8),%rbp
  sub    %rax,%rbp
L50:
  testb  $0x7,0x4(%rsp)
  je     L71
  mov    %r14d,%edx
  test   %r14d,%r14d
  je     L67
  mov    %r14d,%esi
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L61:
  movzbl (%r12,%rax,1),%ecx
  mov    %cl,0x0(%rbp,%rax,1)
  add    $0x1,%rax
  cmp    %rsi,%rax
  jne    L61
  cmp    $0x7,%r14d
  ja     L77
  nopl   0x0(%rax,%rax,1)
L67:
  mov    %edx,%eax
  add    $0x1,%edx
  movb   $0x0,0x0(%rbp,%rax,1)
  cmp    $0x8,%edx
  jne    L67
L77:
  mov    0x0(%rbp),%edi
  call   <spdif_swab_s32@plt>
  mov    0x4(%rbp),%edi
  mov    %eax,%ebx
  call   <spdif_swab_s32@plt>
  mov    %eax,%edx
  shr    $0x8,%eax
  shl    $0x8,%edx
  and    $0xff00ff,%eax
  and    $0xff00ff00,%edx
  or     %edx,%eax
  mov    %ebx,%edx
  shl    $0x8,%ebx
  shr    $0x8,%edx
  and    $0xff00ff00,%ebx
  mov    %eax,%ecx
  and    $0x3fff,%eax
  and    $0xff00ff,%edx
  mov    %eax,%r12d
  shr    $0x2,%ecx
  or     %edx,%ebx
  shl    $0x1c,%edx
  and    $0xfffc000,%ecx
  lea    0x0(,%rbx,4),%edi
  shl    $0x4,%ebx
  or     %edx,%r12d
  and    $0xfffc0000,%edi
  and    $0x3fff0,%ebx
  or     %ecx,%r12d
  or     %ebx,%edi
  call   <spdif_swab_s32@plt>
  mov    %r12d,%edi
  mov    %eax,0x0(%rbp)
  call   <spdif_swab_s32@plt>
  mov    %eax,0x3(%rbp)
L71:
  mov    (%rsp),%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L62:
  mov    %rdi,%r12
  jmp    L50
```

assistant: ```c
int bs_conv_14le_8(const unsigned char *in_buf, int size, unsigned char *out_buf) {
  int n = size / 8;
  int r = size % 8;
  const unsigned char *src = in_buf;
  unsigned char *dst = out_buf;
  unsigned int i, w1, w2;
  size = n * 7 + r;
  while (n--) {
    w1 = spdif_swab_s32(*(unsigned int *)(src + 0));
    w2 = spdif_swab_s32(*(unsigned int *)(src + 4));
    w2 = ((w2 & 0xff00ff00) >> 8) | ((w2 & 0x00ff00ff) << 8);
    w1 = ((w1 & 0xff00ff00) >> 8) | ((w1 & 0x00ff00ff) << 8);
    w2 = ((w2 & 0x3fff0000) >> 2) | (w2 & 0x00003fff) | (w1 << 28);
    w1 = ((w1 & 0x3fff0000) << 2) | ((w1 & 0x00003fff) << 4);
    (*(unsigned int *)(dst + 0)) = spdif_swab_s32(w1);
    (*(unsigned int *)(dst + 3)) = spdif_swab_s32(w2);
    src += 8;
    dst += 7;
  }
  if (r) {
    i = 0;
    for (; i < r; i++)
      dst[i] = src[i];
    for (; i < 8; i++)
      dst[i] = 0;
    w1 = spdif_swab_s32(*(unsigned int *)(dst + 0));
    w2 = spdif_swab_s32(*(unsigned int *)(dst + 4));
    w2 = ((w2 & 0xff00ff00) >> 8) | ((w2 & 0x00ff00ff) << 8);
    w1 = ((w1 & 0xff00ff00) >> 8) | ((w1 & 0x00ff00ff) << 8);
    w2 = ((w2 & 0x3fff0000) >> 2) | (w2 & 0x00003fff) | (w1 << 28);
    w1 = ((w1 & 0x3fff0000) << 2) | ((w1 & 0x00003fff) << 4);
    (*(unsigned int *)(dst + 0)) = spdif_swab_s32(w1);
    (*(unsigned int *)(dst + 3)) = spdif_swab_s32(w2);
  }
  return size;
}
```