user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<unpackforblock24_64>:
  endbr64
  push   %r15
  movd   %edi,%xmm4
  push   %r14
  mov    %rsi,%r14
  pshufd $0x0,%xmm4,%xmm1
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    (%rsi),%rax
  mov    %rdx,%rbx
  mov    (%rdx),%r11
  mov    0x18(%rax),%edi
  mov    (%rax),%r15d
  add    $0x180,%rax
  mov    -0x17c(%rax),%r10d
  mov    -0x170(%rax),%r9d
  mov    %edi,-0x10(%rsp)
  mov    -0x164(%rax),%r8d
  mov    -0x158(%rax),%edi
  mov    -0x178(%rax),%r13d
  mov    -0x174(%rax),%esi
  mov    -0x16c(%rax),%r12d
  mov    -0x160(%rax),%ebp
  mov    -0x15c(%rax),%edx
  mov    -0x154(%rax),%ecx
  mov    %rax,(%r14)
  mov    %r15d,%eax
  and    $0xffffff,%eax
  movd   %eax,%xmm0
  mov    %r15d,%eax
  mov    %ecx,-0xc(%rsp)
  mov    $0x30,%ecx
  sar    $0x18,%eax
  sar    %cl,%r15d
  mov    $0x20,%ecx
  and    $0xffffff,%eax
  movd   %eax,%xmm3
  mov    %r10d,%eax
  shl    $0x10,%eax
  punpckldq %xmm3,%xmm0
  or     %eax,%r15d
  mov    %r10d,%eax
  mov    %r15d,%r14d
  shr    $0x8,%eax
  and    $0xffffff,%r14d
  movd   %eax,%xmm5
  mov    %r10d,%eax
  movd   %r14d,%xmm2
  sar    %cl,%eax
  mov    $0x38,%ecx
  punpckldq %xmm5,%xmm2
  and    $0xffffff,%eax
  sar    %cl,%r10d
  mov    $0x28,%ecx
  punpcklqdq %xmm2,%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,(%r11)
  movd   %eax,%xmm0
  mov    %r13d,%eax
  shl    $0x8,%eax
  or     %eax,%r10d
  mov    %r13d,%eax
  sar    %cl,%r13d
  mov    $0x30,%ecx
  sar    $0x10,%eax
  and    $0xffffff,%r10d
  movd   %r13d,%xmm6
  and    $0xffffff,%eax
  movd   %r10d,%xmm7
  mov    %r9d,%r10d
  movd   %eax,%xmm2
  mov    %esi,%eax
  punpckldq %xmm7,%xmm0
  shl    $0x10,%r10d
  punpckldq %xmm6,%xmm2
  and    $0xffffff,%eax
  punpcklqdq %xmm2,%xmm0
  movd   %eax,%xmm2
  mov    %esi,%eax
  sar    %cl,%esi
  sar    $0x18,%eax
  or     %r10d,%esi
  mov    %r9d,%r10d
  mov    $0x20,%ecx
  and    $0xffffff,%eax
  and    $0xffffff,%esi
  paddd  %xmm1,%xmm0
  shr    $0x8,%r10d
  movd   %eax,%xmm4
  mov    %r9d,%eax
  movups %xmm0,0x10(%r11)
  movd   %r10d,%xmm3
  sar    %cl,%eax
  movd   %esi,%xmm0
  punpckldq %xmm4,%xmm2
  mov    $0x38,%ecx
  punpckldq %xmm3,%xmm0
  and    $0xffffff,%eax
  sar    %cl,%r9d
  mov    -0x10(%rsp),%esi
  punpcklqdq %xmm0,%xmm2
  movd   %eax,%xmm0
  mov    %r12d,%eax
  mov    $0x28,%ecx
  shl    $0x8,%eax
  paddd  %xmm1,%xmm2
  or     %eax,%r9d
  mov    %r12d,%eax
  movups %xmm2,0x20(%r11)
  and    $0xffffff,%r9d
  sar    $0x10,%eax
  and    $0xffffff,%eax
  sar    %cl,%r12d
  movd   %r9d,%xmm6
  mov    $0x30,%ecx
  movd   %r12d,%xmm5
  movd   %eax,%xmm2
  punpckldq %xmm6,%xmm0
  mov    %esi,%eax
  punpckldq %xmm5,%xmm2
  and    $0xffffff,%eax
  punpcklqdq %xmm2,%xmm0
  movd   %eax,%xmm2
  mov    %esi,%eax
  sar    %cl,%esi
  mov    %esi,%ecx
  mov    %r8d,%esi
  sar    $0x18,%eax
  paddd  %xmm1,%xmm0
  shl    $0x10,%esi
  and    $0xffffff,%eax
  movups %xmm0,0x30(%r11)
  or     %esi,%ecx
  mov    %r8d,%esi
  movd   %eax,%xmm3
  mov    %r8d,%eax
  and    $0xffffff,%ecx
  shr    $0x8,%esi
  punpckldq %xmm3,%xmm2
  movd   %ecx,%xmm0
  mov    $0x20,%ecx
  movd   %esi,%xmm7
  mov    %edi,%esi
  sar    %cl,%eax
  punpckldq %xmm7,%xmm0
  mov    $0x38,%ecx
  shl    $0x10,%esi
  and    $0xffffff,%eax
  punpcklqdq %xmm0,%xmm2
  sar    %cl,%r8d
  mov    $0x28,%ecx
  movd   %eax,%xmm0
  mov    %ebp,%eax
  paddd  %xmm1,%xmm2
  shl    $0x8,%eax
  movups %xmm2,0x40(%r11)
  or     %eax,%r8d
  mov    %ebp,%eax
  sar    %cl,%ebp
  mov    $0x30,%ecx
  sar    $0x10,%eax
  and    $0xffffff,%r8d
  movd   %ebp,%xmm4
  and    $0xffffff,%eax
  movd   %r8d,%xmm5
  movd   %eax,%xmm2
  mov    %edx,%eax
  punpckldq %xmm5,%xmm0
  punpckldq %xmm4,%xmm2
  and    $0xffffff,%eax
  punpcklqdq %xmm2,%xmm0
  movd   %eax,%xmm2
  mov    %edx,%eax
  sar    %cl,%edx
  sar    $0x18,%eax
  or     %esi,%edx
  mov    %edi,%esi
  mov    $0x20,%ecx
  and    $0xffffff,%eax
  and    $0xffffff,%edx
  paddd  %xmm1,%xmm0
  shr    $0x8,%esi
  movd   %eax,%xmm7
  mov    %edi,%eax
  movups %xmm0,0x50(%r11)
  movd   %esi,%xmm6
  sar    %cl,%eax
  movd   %edx,%xmm0
  mov    -0xc(%rsp),%edx
  punpckldq %xmm7,%xmm2
  and    $0xffffff,%eax
  punpckldq %xmm6,%xmm0
  mov    $0x38,%ecx
  punpcklqdq %xmm0,%xmm2
  movd   %eax,%xmm0
  mov    %edx,%eax
  sar    %cl,%edi
  shl    $0x8,%eax
  mov    $0x28,%ecx
  paddd  %xmm1,%xmm2
  or     %eax,%edi
  mov    %edx,%eax
  sar    %cl,%edx
  movups %xmm2,0x60(%r11)
  sar    $0x10,%eax
  and    $0xffffff,%edi
  movd   %edx,%xmm3
  and    $0xffffff,%eax
  movd   %edi,%xmm4
  movd   %eax,%xmm2
  punpckldq %xmm4,%xmm0
  punpckldq %xmm3,%xmm2
  punpcklqdq %xmm2,%xmm0
  paddd  %xmm1,%xmm0
  movups %xmm0,0x70(%r11)
  subq   $0xffffffffffffff80,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void unpackforblock24_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 = (16777215ULL);
  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];
  uint64_t w5 = pw64[5];
  uint64_t w6 = pw64[6];
  uint64_t w7 = pw64[7];
  uint64_t w8 = pw64[8];
  uint64_t w9 = pw64[9];
  uint64_t w10 = pw64[10];
  uint64_t w11 = pw64[11];
  *pw += 96;
  out[0] = base + ((w0)&mask);
  out[1] = base + ((w0 >> 24) & mask);
  out[2] = base + (((w0 >> 48) | (w1 << 16)) & mask);
  out[3] = base + ((w1 >> 8) & mask);
  out[4] = base + ((w1 >> 32) & mask);
  out[5] = base + (((w1 >> 56) | (w2 << 8)) & mask);
  out[6] = base + ((w2 >> 16) & mask);
  out[7] = base + (w2 >> 40);
  out[8] = base + ((w3)&mask);
  out[9] = base + ((w3 >> 24) & mask);
  out[10] = base + (((w3 >> 48) | (w4 << 16)) & mask);
  out[11] = base + ((w4 >> 8) & mask);
  out[12] = base + ((w4 >> 32) & mask);
  out[13] = base + (((w4 >> 56) | (w5 << 8)) & mask);
  out[14] = base + ((w5 >> 16) & mask);
  out[15] = base + (w5 >> 40);
  out[16] = base + ((w6)&mask);
  out[17] = base + ((w6 >> 24) & mask);
  out[18] = base + (((w6 >> 48) | (w7 << 16)) & mask);
  out[19] = base + ((w7 >> 8) & mask);
  out[20] = base + ((w7 >> 32) & mask);
  out[21] = base + (((w7 >> 56) | (w8 << 8)) & mask);
  out[22] = base + ((w8 >> 16) & mask);
  out[23] = base + (w8 >> 40);
  out[24] = base + ((w9)&mask);
  out[25] = base + ((w9 >> 24) & mask);
  out[26] = base + (((w9 >> 48) | (w10 << 16)) & mask);
  out[27] = base + ((w10 >> 8) & mask);
  out[28] = base + ((w10 >> 32) & mask);
  out[29] = base + (((w10 >> 56) | (w11 << 8)) & mask);
  out[30] = base + ((w11 >> 16) & mask);
  out[31] = base + (w11 >> 40);
  *pout += 32;
}
```