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

```asm
<unpackforblock10_64>:
  endbr64
  push   %r14
  mov    %edi,%r8d
  movd   %edi,%xmm4
  mov    %rdx,%r10
  push   %rbx
  mov    (%rsi),%rbx
  mov    $0x28,%ecx
  pshufd $0x0,%xmm4,%xmm2
  mov    (%rdx),%rdi
  movdqa D4(%rip),%xmm3
  mov    (%rbx),%r11d
  mov    0x4(%rbx),%r14d
  add    $0xa0,%rbx
  mov    -0x98(%rbx),%eax
  mov    -0x94(%rbx),%edx
  mov    -0x90(%rbx),%r9d
  mov    %rbx,(%rsi)
  mov    %r11d,%ebx
  mov    %r11d,%esi
  sar    $0x14,%ebx
  sar    $0xa,%esi
  movd   %r11d,%xmm0
  movd   %ebx,%xmm1
  mov    %r11d,%ebx
  movd   %esi,%xmm6
  mov    %r11d,%esi
  sar    $0x1e,%ebx
  punpckldq %xmm6,%xmm0
  movd   %ebx,%xmm5
  mov    %r11d,%ebx
  sar    %cl,%ebx
  punpckldq %xmm5,%xmm1
  mov    $0x32,%ecx
  sar    %cl,%esi
  punpcklqdq %xmm1,%xmm0
  movd   %ebx,%xmm1
  mov    $0x3c,%ecx
  mov    %r14d,%ebx
  sar    %cl,%r11d
  pand   %xmm3,%xmm0
  movd   %esi,%xmm4
  shl    $0x4,%ebx
  paddd  %xmm2,%xmm0
  punpckldq %xmm4,%xmm1
  mov    %r14d,%ecx
  or     %ebx,%r11d
  mov    %r14d,%ebx
  movups %xmm0,(%rdi)
  sar    $0x10,%ecx
  sar    $0x6,%ebx
  movd   %r11d,%xmm0
  mov    %r14d,%esi
  mov    %r14d,%r11d
  movd   %ebx,%xmm7
  mov    %r14d,%ebx
  sar    $0x1a,%esi
  punpckldq %xmm7,%xmm0
  movd   %esi,%xmm6
  mov    %eax,%esi
  punpcklqdq %xmm0,%xmm1
  shl    $0x8,%esi
  pand   %xmm3,%xmm1
  movdqa %xmm1,%xmm0
  paddd  %xmm2,%xmm0
  movups %xmm0,0x10(%rdi)
  movd   %ecx,%xmm0
  mov    $0x24,%ecx
  sar    %cl,%ebx
  mov    $0x2e,%ecx
  punpckldq %xmm6,%xmm0
  sar    %cl,%r11d
  mov    $0x38,%ecx
  movd   %ebx,%xmm1
  mov    %eax,%ebx
  sar    %cl,%r14d
  movd   %r11d,%xmm5
  mov    %eax,%r11d
  mov    %r14d,%ecx
  punpckldq %xmm5,%xmm1
  or     %esi,%ecx
  punpcklqdq %xmm1,%xmm0
  mov    %eax,%esi
  and    $0x3ff,%ecx
  pand   %xmm3,%xmm0
  shr    $0x16,%esi
  add    %r8d,%ecx
  paddd  %xmm2,%xmm0
  mov    %ecx,0x30(%rdi)
  mov    %eax,%ecx
  sar    $0x2,%ecx
  movups %xmm0,0x20(%rdi)
  movd   %esi,%xmm0
  and    $0x3ff,%ecx
  add    %r8d,%ecx
  mov    %ecx,0x34(%rdi)
  mov    %eax,%ecx
  sar    $0xc,%ecx
  and    $0x3ff,%ecx
  add    %r8d,%ecx
  mov    %ecx,0x38(%rdi)
  mov    $0x20,%ecx
  sar    %cl,%ebx
  mov    $0x2a,%ecx
  mov    %ebx,%esi
  mov    %eax,%ebx
  sar    %cl,%ebx
  and    $0x3ff,%esi
  mov    %ebx,%ecx
  movd   %esi,%xmm3
  mov    %edx,%esi
  mov    %r9d,%ebx
  and    $0x3ff,%ecx
  punpckldq %xmm3,%xmm0
  movd   %ecx,%xmm5
  mov    $0x34,%ecx
  sar    %cl,%r11d
  movdqa %xmm5,%xmm1
  mov    $0x3e,%ecx
  and    $0x3ff,%r11d
  sar    %cl,%eax
  lea    0x0(,%rdx,4),%ecx
  movd   %r11d,%xmm7
  or     %ecx,%eax
  sar    $0x1c,%esi
  punpckldq %xmm7,%xmm1
  and    $0x3ff,%eax
  and    $0x3ff,%esi
  punpcklqdq %xmm1,%xmm0
  movd   %esi,%xmm4
  paddd  %xmm2,%xmm0
  movups %xmm0,0x3c(%rdi)
  movd   %eax,%xmm0
  mov    %edx,%eax
  sar    $0x8,%eax
  and    $0x3ff,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sar    $0x12,%eax
  movd   %ecx,%xmm5
  mov    $0x26,%ecx
  and    $0x3ff,%eax
  punpckldq %xmm5,%xmm0
  movd   %eax,%xmm1
  mov    %edx,%eax
  sar    %cl,%eax
  punpckldq %xmm4,%xmm1
  mov    $0x30,%ecx
  and    $0x3ff,%eax
  punpcklqdq %xmm1,%xmm0
  movd   %eax,%xmm1
  mov    %edx,%eax
  paddd  %xmm2,%xmm0
  sar    %cl,%eax
  mov    $0x3a,%ecx
  movups %xmm0,0x4c(%rdi)
  sar    %cl,%edx
  mov    %r9d,%ecx
  and    $0x3ff,%eax
  shl    $0x6,%ecx
  movd   %eax,%xmm7
  mov    %r9d,%eax
  or     %ecx,%edx
  mov    %r9d,%ecx
  sar    $0xe,%eax
  punpckldq %xmm7,%xmm1
  sar    $0x4,%ecx
  and    $0x3ff,%edx
  and    $0x3ff,%eax
  and    $0x3ff,%ecx
  movd   %edx,%xmm0
  movd   %ecx,%xmm6
  mov    $0x22,%ecx
  punpckldq %xmm6,%xmm0
  punpcklqdq %xmm0,%xmm1
  movd   %eax,%xmm0
  mov    %r9d,%eax
  sar    $0x18,%eax
  paddd  %xmm2,%xmm1
  and    $0x3ff,%eax
  movups %xmm1,0x5c(%rdi)
  mov    %eax,%edx
  mov    %r9d,%eax
  sar    %cl,%eax
  mov    $0x2c,%ecx
  movd   %edx,%xmm4
  sar    %cl,%ebx
  and    $0x3ff,%eax
  punpckldq %xmm4,%xmm0
  mov    %ebx,%ecx
  movd   %eax,%xmm1
  and    $0x3ff,%ecx
  movd   %ecx,%xmm3
  mov    $0x36,%ecx
  punpckldq %xmm3,%xmm1
  sar    %cl,%r9d
  punpcklqdq %xmm1,%xmm0
  add    %r8d,%r9d
  paddd  %xmm2,%xmm0
  mov    %r9d,0x7c(%rdi)
  movups %xmm0,0x6c(%rdi)
  pop    %rbx
  pop    %r14
  subq   $0xffffffffffffff80,(%r10)
  ret
```

tool_calls: name: read_data
arguments: tag: D4
type_guessed: byte[16]

tool: {"D4": [0xff,0x03,0x00,0x00,0xff,0x03,0x00,0x00,0xff,0x03,0x00,0x00,0xff,0x03,0x00,0x00]}

assistant: ```c
void unpackforblock10_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 = (1023ULL);
  uint64_t w0 = pw64[0];
  uint64_t w1 = pw64[1];
  uint64_t w2 = pw64[2];
  uint64_t w3 = pw64[3];
  uint64_t w4 = pw64[4];
  *pw += 40;
  out[0] = base + ((w0)&mask);
  out[1] = base + ((w0 >> 10) & mask);
  out[2] = base + ((w0 >> 20) & mask);
  out[3] = base + ((w0 >> 30) & mask);
  out[4] = base + ((w0 >> 40) & mask);
  out[5] = base + ((w0 >> 50) & mask);
  out[6] = base + (((w0 >> 60) | (w1 << 4)) & mask);
  out[7] = base + ((w1 >> 6) & mask);
  out[8] = base + ((w1 >> 16) & mask);
  out[9] = base + ((w1 >> 26) & mask);
  out[10] = base + ((w1 >> 36) & mask);
  out[11] = base + ((w1 >> 46) & mask);
  out[12] = base + (((w1 >> 56) | (w2 << 8)) & mask);
  out[13] = base + ((w2 >> 2) & mask);
  out[14] = base + ((w2 >> 12) & mask);
  out[15] = base + ((w2 >> 22) & mask);
  out[16] = base + ((w2 >> 32) & mask);
  out[17] = base + ((w2 >> 42) & mask);
  out[18] = base + ((w2 >> 52) & mask);
  out[19] = base + (((w2 >> 62) | (w3 << 2)) & mask);
  out[20] = base + ((w3 >> 8) & mask);
  out[21] = base + ((w3 >> 18) & mask);
  out[22] = base + ((w3 >> 28) & mask);
  out[23] = base + ((w3 >> 38) & mask);
  out[24] = base + ((w3 >> 48) & mask);
  out[25] = base + (((w3 >> 58) | (w4 << 6)) & mask);
  out[26] = base + ((w4 >> 4) & mask);
  out[27] = base + ((w4 >> 14) & mask);
  out[28] = base + ((w4 >> 24) & mask);
  out[29] = base + ((w4 >> 34) & mask);
  out[30] = base + ((w4 >> 44) & mask);
  out[31] = base + (w4 >> 54);
  *pout += 32;
}
```