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

```asm
<packforblock23_64>:
  endbr64
  push   %r14
  mov    %edi,%ecx
  mov    %rsi,%r10
  mov    %rdx,%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rsi),%rax
  mov    (%rdx),%r11
  mov    0xc(%rax),%esi
  mov    0x8(%rax),%edx
  mov    0x38(%rax),%r13d
  mov    0x44(%rax),%ebp
  sub    %ecx,%edx
  sub    %ecx,%esi
  mov    0x2c(%rax),%r14d
  mov    0x14(%rax),%r9d
  sar    $0x12,%edx
  shl    $0x5,%esi
  sub    %ecx,%r13d
  sub    %ecx,%ebp
  or     %edx,%esi
  mov    0x34(%rax),%edx
  shl    $0x2,%r13d
  sub    %ecx,%r14d
  shl    $0x7,%ebp
  sar    $0x3,%r14d
  mov    0x20(%rax),%r8d
  mov    0x4c(%rax),%r12d
  sub    %ecx,%edx
  mov    (%rax),%ebx
  sub    %ecx,%r9d
  sar    $0x15,%edx
  sub    %ecx,%r8d
  sub    %ecx,%r12d
  sar    $0xd,%r9d
  sar    $0xb,%r12d
  or     %edx,%r13d
  mov    0x40(%rax),%edx
  sub    %ecx,%ebx
  sar    $0x8,%r8d
  sub    %ecx,%edx
  sar    $0x10,%edx
  or     %edx,%ebp
  mov    0x30(%rax),%edx
  sub    %ecx,%edx
  shl    $0x14,%edx
  or     %r14d,%edx
  mov    0x58(%rax),%r14d
  movd   %edx,%xmm1
  mov    0x3c(%rax),%edx
  sub    %ecx,%edx
  shl    $0x19,%edx
  or     %edx,%r13d
  mov    0x48(%rax),%edx
  movd   %r13d,%xmm5
  mov    0x64(%rax),%r13d
  sub    %ecx,%edx
  punpckldq %xmm5,%xmm1
  shl    $0x1e,%edx
  or     %ebp,%edx
  mov    0x50(%rax),%ebp
  sub    %ecx,%r14d
  sub    %ecx,%r13d
  sar    $0x6,%r14d
  movd   %edx,%xmm0
  mov    0x6c(%rax),%edx
  sar    %r13d
  sub    %ecx,%ebp
  shl    $0xc,%ebp
  sub    %ecx,%edx
  or     %r12d,%ebp
  sar    $0x13,%edx
  mov    0x78(%rax),%r12d
  movd   %ebp,%xmm4
  mov    0x70(%rax),%ebp
  punpckldq %xmm4,%xmm0
  sub    %ecx,%r12d
  sub    %ecx,%ebp
  punpcklqdq %xmm0,%xmm1
  sar    $0xe,%r12d
  shl    $0x4,%ebp
  or     %edx,%ebp
  mov    0x5c(%rax),%edx
  sub    %ecx,%edx
  shl    $0x11,%edx
  or     %r14d,%edx
  movd   %edx,%xmm0
  mov    0x68(%rax),%edx
  sub    %ecx,%edx
  shl    $0x16,%edx
  or     %edx,%r13d
  mov    0x74(%rax),%edx
  movd   %r13d,%xmm7
  sub    %ecx,%edx
  punpckldq %xmm7,%xmm0
  shl    $0x1b,%edx
  or     %ebp,%edx
  mov    0x7c(%rax),%ebp
  movd   %edx,%xmm2
  mov    0x4(%rax),%edx
  sub    %ecx,%ebp
  shl    $0x9,%ebp
  sub    %ecx,%edx
  or     %r12d,%ebp
  shl    $0x17,%edx
  movd   %ebp,%xmm6
  or     %ebx,%edx
  punpckldq %xmm6,%xmm2
  punpcklqdq %xmm2,%xmm0
  movd   %edx,%xmm2
  mov    0x10(%rax),%edx
  sub    %ecx,%edx
  shl    $0x1c,%edx
  or     %edx,%esi
  mov    0x18(%rax),%edx
  sub    $0xffffffffffffff80,%rax
  movd   %esi,%xmm5
  sub    %ecx,%edx
  punpckldq %xmm5,%xmm2
  shl    $0xa,%edx
  or     %r9d,%edx
  mov    -0x5c(%rax),%r9d
  movups %xmm1,0x10(%r11)
  movd   %edx,%xmm3
  movups %xmm0,0x20(%r11)
  sub    %ecx,%r9d
  mov    %r9d,%ecx
  shl    $0xf,%ecx
  or     %r8d,%ecx
  movd   %ecx,%xmm4
  punpckldq %xmm4,%xmm3
  punpcklqdq %xmm3,%xmm2
  movups %xmm2,(%r11)
  pop    %rbx
  pop    %rbp
  mov    %rax,(%r10)
  pop    %r12
  addq   $0x170,(%rdi)
  pop    %r13
  pop    %r14
  ret
```

assistant: ```c
void packforblock23_64(const uint64_t base, const uint64_t **pin, uint8_t **pw) {
  uint64_t *pw64 = *(uint64_t **)pw;
  const uint64_t *in = *pin;
  uint64_t w0;
  uint64_t w1;
  uint64_t w2;
  uint64_t w3;
  uint64_t w4;
  uint64_t w5;
  uint64_t w6;
  uint64_t w7;
  uint64_t w8;
  uint64_t w9;
  uint64_t w10;
  uint64_t w11;
  w0 = (in[0] - base);
  w0 |= (in[1] - base) << 23;
  w0 |= (in[2] - base) << 46;
  w1 = (in[2] - base) >> 18;
  w1 |= (in[3] - base) << 5;
  w1 |= (in[4] - base) << 28;
  w1 |= (in[5] - base) << 51;
  w2 = (in[5] - base) >> 13;
  w2 |= (in[6] - base) << 10;
  w2 |= (in[7] - base) << 33;
  w2 |= (in[8] - base) << 56;
  w3 = (in[8] - base) >> 8;
  w3 |= (in[9] - base) << 15;
  w3 |= (in[10] - base) << 38;
  w3 |= (in[11] - base) << 61;
  w4 = (in[11] - base) >> 3;
  w4 |= (in[12] - base) << 20;
  w4 |= (in[13] - base) << 43;
  w5 = (in[13] - base) >> 21;
  w5 |= (in[14] - base) << 2;
  w5 |= (in[15] - base) << 25;
  w5 |= (in[16] - base) << 48;
  w6 = (in[16] - base) >> 16;
  w6 |= (in[17] - base) << 7;
  w6 |= (in[18] - base) << 30;
  w6 |= (in[19] - base) << 53;
  w7 = (in[19] - base) >> 11;
  w7 |= (in[20] - base) << 12;
  w7 |= (in[21] - base) << 35;
  w7 |= (in[22] - base) << 58;
  w8 = (in[22] - base) >> 6;
  w8 |= (in[23] - base) << 17;
  w8 |= (in[24] - base) << 40;
  w8 |= (in[25] - base) << 63;
  w9 = (in[25] - base) >> 1;
  w9 |= (in[26] - base) << 22;
  w9 |= (in[27] - base) << 45;
  w10 = (in[27] - base) >> 19;
  w10 |= (in[28] - base) << 4;
  w10 |= (in[29] - base) << 27;
  w10 |= (in[30] - base) << 50;
  w11 = (in[30] - base) >> 14;
  w11 |= (in[31] - base) << 9;
  pw64[0] = w0;
  pw64[1] = w1;
  pw64[2] = w2;
  pw64[3] = w3;
  pw64[4] = w4;
  pw64[5] = w5;
  pw64[6] = w6;
  pw64[7] = w7;
  pw64[8] = w8;
  pw64[9] = w9;
  pw64[10] = w10;
  pw64[11] = w11;
  *pin += 32;
  *pw += 92;
}
```