user: Demonstrate the C code that generates the assembly output below:

```asm
<bs_conv_14le_8>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x4c(%rbp),%eax
  cltd
  shr    $0x1d,%edx
  add    %edx,%eax
  and    $0x7,%eax
  sub    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x34(%rbp),%edx
  mov    %edx,%eax
  shl    $0x3,%eax
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  add    %ecx,%eax
  mov    %eax,-0x4c(%rbp)
  jmp    L20
L6:
  mov    -0x20(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff00ff00,%eax
  or     %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff00ff00,%eax
  or     %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x24(%rbp),%eax
  shr    $0x2,%eax
  and    $0xfffc000,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  and    $0x3fff,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x1c,%eax
  or     %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  shl    $0x2,%eax
  and    $0xfffc0000,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x4,%eax
  and    $0x3fff0,%eax
  or     %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    -0x18(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%rax
  lea    0x3(%rax),%rbx
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,(%rbx)
  addq   $0x8,-0x20(%rbp)
  addq   $0x7,-0x18(%rbp)
L20:
  mov    -0x34(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x34(%rbp)
  test   %eax,%eax
  jne    L6
  cmpl   $0x0,-0x2c(%rbp)
  je     L13
  movl   $0x0,-0x30(%rbp)
  jmp    L53
L59:
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    -0x30(%rbp),%ecx
  mov    -0x18(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  addl   $0x1,-0x30(%rbp)
L53:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x30(%rbp)
  jb     L59
  jmp    L64
L10:
  mov    -0x30(%rbp),%edx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  addl   $0x1,-0x30(%rbp)
L64:
  cmpl   $0x7,-0x30(%rbp)
  jbe    L10
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff00ff00,%eax
  or     %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  shr    $0x8,%eax
  and    $0xff00ff,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x8,%eax
  and    $0xff00ff00,%eax
  or     %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x24(%rbp),%eax
  shr    $0x2,%eax
  and    $0xfffc000,%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  and    $0x3fff,%eax
  or     %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x1c,%eax
  or     %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  shl    $0x2,%eax
  and    $0xfffc0000,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  shl    $0x4,%eax
  and    $0x3fff0,%eax
  or     %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    -0x18(%rbp),%rdx
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%rax
  lea    0x3(%rax),%rbx
  mov    -0x24(%rbp),%eax
  mov    %eax,%edi
  call   <spdif_swab_s32@plt>
  mov    %eax,(%rbx)
L13:
  mov    -0x4c(%rbp),%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

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