user: What would the C source look like for the assembly code provided here:

```asm
<main>:
  endbr64
  push   %r12
  lea    D66(%rip),%r12
  push   %rbp
  lea    D40(%rip),%rbp
  push   %rbx
  mov    D30(%rip),%rbx
  nopl   (%rax)
L72:
  mov    (%rbx),%ecx
  mov    $0x2000,%edx
  mov    $0x8,%esi
  mov    %r12,%rdi
  call   <fread@plt>
  mov    %rax,%rdx
  test   %rax,%rax
  je     L35
  lea    -0x1(%rdx),%rax
  cmp    $0x2,%rax
  jbe    L14
  mov    %rdx,%rsi
  lea    D66(%rip),%rax
  lea    D40(%rip),%rcx
  shr    $0x2,%rsi
  shl    $0x7,%rsi
  add    %r12,%rsi
  nopw   0x0(%rax,%rax,1)
L59:
  movdqa (%rax),%xmm1
  movdqa 0x20(%rax),%xmm6
  sub    $0xffffffffffffff80,%rax
  add    $0x10,%rcx
  movdqa -0x40(%rax),%xmm2
  movdqa -0x20(%rax),%xmm0
  movdqa %xmm1,%xmm3
  shufps $0x88,-0x70(%rax),%xmm3
  movdqa %xmm3,%xmm7
  movdqa %xmm6,%xmm8
  movdqa %xmm2,%xmm4
  shufps $0x88,-0x50(%rax),%xmm8
  shufps $0x88,-0x30(%rax),%xmm4
  shufps $0x88,%xmm8,%xmm7
  shufps $0xdd,%xmm8,%xmm3
  movdqa %xmm4,%xmm8
  shufps $0xdd,-0x70(%rax),%xmm1
  movdqa %xmm0,%xmm5
  shufps $0x88,-0x10(%rax),%xmm5
  shufps $0x88,%xmm5,%xmm8
  shufps $0xdd,%xmm5,%xmm4
  movdqa %xmm1,%xmm5
  shufps $0xdd,-0x50(%rax),%xmm6
  shufps $0xdd,-0x30(%rax),%xmm2
  shufps $0x88,%xmm6,%xmm5
  shufps $0xdd,%xmm6,%xmm1
  movdqa %xmm2,%xmm6
  shufps $0xdd,-0x10(%rax),%xmm0
  shufps $0xdd,%xmm0,%xmm2
  movdqa %xmm5,%xmm9
  shufps $0x88,%xmm0,%xmm6
  movdqa %xmm7,%xmm0
  shufps $0x88,%xmm6,%xmm9
  shufps $0xdd,%xmm6,%xmm5
  shufps $0x88,%xmm8,%xmm0
  psrad  $0x7,%xmm0
  psrad  $0x7,%xmm9
  shufps $0xdd,%xmm8,%xmm7
  pslld  $0x1,%xmm0
  psrad  $0x7,%xmm7
  por    %xmm9,%xmm0
  psrad  $0x7,%xmm5
  movdqa %xmm3,%xmm9
  shufps $0xdd,%xmm4,%xmm3
  pslld  $0x1,%xmm0
  shufps $0x88,%xmm4,%xmm9
  psrad  $0x7,%xmm9
  por    %xmm9,%xmm0
  psrad  $0x7,%xmm3
  movdqa %xmm1,%xmm9
  shufps $0xdd,%xmm2,%xmm1
  pslld  $0x1,%xmm0
  shufps $0x88,%xmm2,%xmm9
  psrad  $0x7,%xmm9
  por    %xmm9,%xmm0
  psrad  $0x7,%xmm1
  pslld  $0x1,%xmm0
  por    %xmm7,%xmm0
  pslld  $0x1,%xmm0
  por    %xmm5,%xmm0
  pslld  $0x1,%xmm0
  por    %xmm3,%xmm0
  pslld  $0x1,%xmm0
  por    %xmm1,%xmm0
  movaps %xmm0,-0x10(%rcx)
  cmp    %rax,%rsi
  jne    L59
  mov    %rdx,%rcx
  and    $0xfffffffffffffffc,%rcx
  mov    %rcx,%rax
  shl    $0x5,%rax
  add    %r12,%rax
  cmp    %rcx,%rdx
  je     L34
L27:
  mov    %rdx,%rsi
  sub    %rcx,%rsi
  cmp    $0x1,%rsi
  je     L57
  mov    %rcx,%rdi
  shl    $0x5,%rdi
  add    %r12,%rdi
  movq   (%rdi),%xmm1
  movq   0x8(%rdi),%xmm8
  movq   0x10(%rdi),%xmm7
  movq   0x18(%rdi),%xmm6
  movq   0x20(%rdi),%xmm3
  movdqa %xmm1,%xmm2
  movq   0x28(%rdi),%xmm4
  punpckldq %xmm8,%xmm1
  movq   0x30(%rdi),%xmm0
  punpckldq %xmm8,%xmm2
  movdqa %xmm7,%xmm8
  movq   0x38(%rdi),%xmm5
  punpckldq %xmm6,%xmm8
  punpckldq %xmm6,%xmm7
  movdqa %xmm3,%xmm6
  mov    %rsi,%rdi
  punpckldq %xmm4,%xmm6
  punpckldq %xmm4,%xmm3
  movdqa %xmm0,%xmm4
  and    $0xfffffffffffffffe,%rdi
  punpckldq %xmm5,%xmm4
  pshufd $0xe,%xmm1,%xmm1
  punpckldq %xmm5,%xmm0
  mov    %rdi,%r8
  pshufd $0xe,%xmm3,%xmm3
  movdqa %xmm2,%xmm5
  movdqa %xmm6,%xmm9
  shl    $0x5,%r8
  pshufd $0xe,%xmm7,%xmm7
  pshufd $0xe,%xmm0,%xmm0
  punpckldq %xmm8,%xmm5
  add    %r8,%rax
  punpckldq %xmm4,%xmm9
  punpckldq %xmm8,%xmm2
  punpckldq %xmm4,%xmm6
  movdqa %xmm3,%xmm8
  movdqa %xmm1,%xmm4
  punpckldq %xmm0,%xmm3
  punpckldq %xmm0,%xmm8
  punpckldq %xmm7,%xmm4
  movdqa %xmm5,%xmm0
  punpckldq %xmm7,%xmm1
  punpckldq %xmm9,%xmm0
  movdqa %xmm4,%xmm7
  psrad  $0x7,%xmm0
  punpckldq %xmm8,%xmm7
  pshufd $0xe,%xmm2,%xmm2
  psrad  $0x7,%xmm7
  pslld  $0x1,%xmm0
  pshufd $0xe,%xmm6,%xmm6
  por    %xmm7,%xmm0
  movdqa %xmm2,%xmm7
  pshufd $0xe,%xmm1,%xmm1
  punpckldq %xmm6,%xmm7
  pslld  $0x1,%xmm0
  pshufd $0xe,%xmm3,%xmm3
  psrad  $0x7,%xmm7
  punpckldq %xmm9,%xmm5
  punpckldq %xmm8,%xmm4
  por    %xmm7,%xmm0
  movdqa %xmm1,%xmm7
  pshufd $0xe,%xmm5,%xmm5
  punpckldq %xmm3,%xmm7
  pslld  $0x1,%xmm0
  pshufd $0xe,%xmm4,%xmm4
  psrad  $0x7,%xmm7
  psrad  $0x7,%xmm5
  punpckldq %xmm6,%xmm2
  por    %xmm7,%xmm0
  psrad  $0x7,%xmm4
  pshufd $0xe,%xmm2,%xmm2
  pslld  $0x1,%xmm0
  psrad  $0x7,%xmm2
  punpckldq %xmm3,%xmm1
  por    %xmm5,%xmm0
  pshufd $0xe,%xmm1,%xmm1
  pslld  $0x1,%xmm0
  psrad  $0x7,%xmm1
  por    %xmm4,%xmm0
  pslld  $0x1,%xmm0
  por    %xmm2,%xmm0
  pslld  $0x1,%xmm0
  por    %xmm1,%xmm0
  movq   %xmm0,0x0(%rbp,%rcx,4)
  add    %rdi,%rcx
  cmp    %rdi,%rsi
  je     L34
L57:
  mov    (%rax),%esi
  mov    0x4(%rax),%edi
  sar    $0x7,%esi
  sar    $0x7,%edi
  add    %esi,%esi
  or     %esi,%edi
  mov    0x8(%rax),%esi
  add    %edi,%edi
  sar    $0x7,%esi
  or     %edi,%esi
  mov    0xc(%rax),%edi
  add    %esi,%esi
  sar    $0x7,%edi
  or     %esi,%edi
  mov    0x10(%rax),%esi
  add    %edi,%edi
  sar    $0x7,%esi
  or     %edi,%esi
  mov    0x14(%rax),%edi
  add    %esi,%esi
  sar    $0x7,%edi
  or     %esi,%edi
  mov    0x18(%rax),%esi
  mov    0x1c(%rax),%eax
  add    %edi,%edi
  sar    $0x7,%esi
  sar    $0x7,%eax
  or     %edi,%esi
  add    %esi,%esi
  or     %esi,%eax
  mov    %eax,0x0(%rbp,%rcx,4)
L34:
  mov    D24(%rip),%rax
  mov    $0x1,%esi
  mov    %rbp,%rdi
  mov    (%rax),%ecx
  call   <fwrite@plt>
  jmp    L72
L35:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  ret
L14:
  xor    %ecx,%ecx
  lea    D66(%rip),%rax
  jmp    L27
```

assistant: ```c
int main(void) {
  static uint8_t inbuf[8192 * 8];
  static uint8_t outbuf[8192];
  size_t n;
  while ((n = fread(inbuf, 8, 8192, stdin))) {
    uint8_t *p = inbuf;
    for (size_t i = 0; i < n; i++) {
      uint8_t pack = 0;
      for (int j = 0; j < 8; j++) {
        pack <<= 1;
        pack |= (*p++) >> 7;
      }
      outbuf[i] = pack;
    }
    fwrite(outbuf, 1, n, stdout);
  }
}
```