user: Please show me the C implementation that matches the assembly code listed below:

```asm
<unpackforblock3_64>:
  endbr64
  mov    %edi,%eax
  mov    %rdx,%r8
  mov    (%rsi),%r9
  mov    (%rdx),%rdx
  mov    (%r9),%r10d
  mov    0x4(%r9),%edi
  add    $0x30,%r9
  mov    %r9,(%rsi)
  mov    %r10d,%ecx
  and    $0x7,%ecx
  mov    %ecx,%esi
  add    %eax,%esi
  mov    %esi,(%rdx)
  mov    %r10d,%ecx
  sar    $0x3,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x4(%rdx)
  mov    %r10d,%ecx
  sar    $0x6,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x8(%rdx)
  mov    %r10d,%ecx
  sar    $0x9,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0xc(%rdx)
  mov    %r10d,%ecx
  sar    $0xc,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x10(%rdx)
  mov    %r10d,%ecx
  sar    $0xf,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x14(%rdx)
  mov    %r10d,%ecx
  sar    $0x12,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x18(%rdx)
  mov    %r10d,%ecx
  sar    $0x15,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x1c(%rdx)
  mov    %r10d,%ecx
  sar    $0x18,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x20(%rdx)
  mov    %r10d,%ecx
  sar    $0x1b,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x24(%rdx)
  mov    %r10d,%ecx
  sar    $0x1e,%ecx
  mov    %ecx,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x28(%rdx)
  mov    %r10d,%esi
  mov    $0x21,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x2c(%rdx)
  mov    %r10d,%esi
  mov    $0x24,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x30(%rdx)
  mov    %r10d,%esi
  mov    $0x27,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x34(%rdx)
  mov    %r10d,%esi
  mov    $0x2a,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x38(%rdx)
  mov    %r10d,%esi
  mov    $0x2d,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x3c(%rdx)
  mov    %r10d,%esi
  mov    $0x30,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x40(%rdx)
  mov    %r10d,%esi
  mov    $0x33,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x44(%rdx)
  mov    %r10d,%esi
  mov    $0x36,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x48(%rdx)
  mov    %r10d,%esi
  mov    $0x39,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x4c(%rdx)
  mov    %r10d,%esi
  mov    $0x3c,%ecx
  sar    %cl,%esi
  and    $0x7,%esi
  add    %eax,%esi
  mov    %esi,0x50(%rdx)
  mov    $0x3f,%ecx
  sar    %cl,%r10d
  mov    %r10d,%ecx
  lea    (%rdi,%rdi,1),%esi
  or     %esi,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x54(%rdx)
  mov    %edi,%ecx
  sar    $0x2,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x58(%rdx)
  mov    %edi,%ecx
  sar    $0x5,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x5c(%rdx)
  mov    %edi,%ecx
  sar    $0x8,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x60(%rdx)
  mov    %edi,%ecx
  sar    $0xb,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x64(%rdx)
  mov    %edi,%ecx
  sar    $0xe,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x68(%rdx)
  mov    %edi,%ecx
  sar    $0x11,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x6c(%rdx)
  mov    %edi,%ecx
  sar    $0x14,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x70(%rdx)
  mov    %edi,%ecx
  sar    $0x17,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x74(%rdx)
  mov    %edi,%ecx
  sar    $0x1a,%ecx
  and    $0x7,%ecx
  add    %eax,%ecx
  mov    %ecx,0x78(%rdx)
  shr    $0x1d,%edi
  add    %eax,%edi
  mov    %edi,0x7c(%rdx)
  subq   $0xffffffffffffff80,(%r8)
  ret
```

assistant: ```c
void unpackforblock3_64(const uint64_t base, const uint8_t **pw, uint64_t **pout) {
  const uint64_t *pw64 = *(const uint64_t **)pw;
  uint64_t *out = *pout;
  const uint64_t mask = (7ULL);
  uint64_t w0 = pw64[0];
  uint64_t w1 = pw64[1];
  *pw += 12;
  out[0] = base + ((w0)&mask);
  out[1] = base + ((w0 >> 3) & mask);
  out[2] = base + ((w0 >> 6) & mask);
  out[3] = base + ((w0 >> 9) & mask);
  out[4] = base + ((w0 >> 12) & mask);
  out[5] = base + ((w0 >> 15) & mask);
  out[6] = base + ((w0 >> 18) & mask);
  out[7] = base + ((w0 >> 21) & mask);
  out[8] = base + ((w0 >> 24) & mask);
  out[9] = base + ((w0 >> 27) & mask);
  out[10] = base + ((w0 >> 30) & mask);
  out[11] = base + ((w0 >> 33) & mask);
  out[12] = base + ((w0 >> 36) & mask);
  out[13] = base + ((w0 >> 39) & mask);
  out[14] = base + ((w0 >> 42) & mask);
  out[15] = base + ((w0 >> 45) & mask);
  out[16] = base + ((w0 >> 48) & mask);
  out[17] = base + ((w0 >> 51) & mask);
  out[18] = base + ((w0 >> 54) & mask);
  out[19] = base + ((w0 >> 57) & mask);
  out[20] = base + ((w0 >> 60) & mask);
  out[21] = base + (((w0 >> 63) | (w1 << 1)) & mask);
  out[22] = base + ((w1 >> 2) & mask);
  out[23] = base + ((w1 >> 5) & mask);
  out[24] = base + ((w1 >> 8) & mask);
  out[25] = base + ((w1 >> 11) & mask);
  out[26] = base + ((w1 >> 14) & mask);
  out[27] = base + ((w1 >> 17) & mask);
  out[28] = base + ((w1 >> 20) & mask);
  out[29] = base + ((w1 >> 23) & mask);
  out[30] = base + ((w1 >> 26) & mask);
  out[31] = base + ((w1 >> 29) & mask);
  *pout += 32;
}
```