user: 请从给定的汇编指令推导出C源代码:

```asm
<packforblock10>:
  endbr64
  push   %rbp
  mov    %rdi,%rcx
  mov    %rsi,%r8
  mov    %rdx,%r9
  push   %rbx
  mov    (%rsi),%rax
  mov    (%rdx),%rdi
  mov    0x8(%rax),%esi
  mov    0x10(%rax),%edx
  mov    (%rax),%r10d
  mov    0x40(%rax),%ebp
  sub    %ecx,%esi
  sub    %ecx,%edx
  mov    0x70(%rax),%ebx
  mov    0xa8(%rax),%r11d
  shl    $0x14,%edx
  shl    $0xa,%esi
  sub    %ecx,%r10d
  sub    %ecx,%ebp
  or     %edx,%esi
  mov    0x38(%rax),%edx
  shl    $0x10,%ebp
  sub    %ecx,%ebx
  or     %r10d,%esi
  mov    0x30(%rax),%r10d
  shl    $0xc,%ebx
  sub    %ecx,%r11d
  sub    %ecx,%edx
  shl    $0x12,%r11d
  sub    %ecx,%r10d
  shl    $0x6,%edx
  sar    $0x4,%r10d
  or     %r10d,%edx
  mov    0x60(%rax),%r10d
  or     %edx,%ebp
  mov    0x68(%rax),%edx
  sub    %ecx,%r10d
  sub    %ecx,%edx
  sar    $0x8,%r10d
  shl    $0x2,%edx
  or     %r10d,%edx
  mov    0x98(%rax),%r10d
  or     %edx,%ebx
  mov    0xa0(%rax),%edx
  sub    %ecx,%r10d
  sub    %ecx,%edx
  sar    $0x2,%r10d
  shl    $0x8,%edx
  or     %r10d,%edx
  mov    0xd0(%rax),%r10d
  or     %edx,%r11d
  mov    0xc8(%rax),%edx
  sub    %ecx,%edx
  sar    $0x6,%edx
  sub    %ecx,%r10d
  add    $0x100,%rax
  add    $0xa0,%rdi
  shl    $0x4,%r10d
  or     %edx,%r10d
  mov    -0x28(%rax),%edx
  sub    %ecx,%edx
  shl    $0xe,%edx
  or     %r10d,%edx
  mov    -0x20(%rax),%r10d
  sub    %ecx,%r10d
  shl    $0x18,%r10d
  or     %edx,%r10d
  mov    -0xe8(%rax),%edx
  sub    %ecx,%edx
  shl    $0x1e,%edx
  or     %esi,%edx
  movd   %edx,%xmm0
  mov    -0xb8(%rax),%edx
  sub    %ecx,%edx
  shl    $0x1a,%edx
  mov    %edx,%esi
  mov    -0x88(%rax),%edx
  or     %ebp,%esi
  sub    %ecx,%edx
  movd   %esi,%xmm3
  shl    $0x16,%edx
  punpckldq %xmm3,%xmm0
  or     %ebx,%edx
  mov    -0x50(%rax),%ebx
  mov    %r10d,-0x90(%rdi)
  movd   %edx,%xmm1
  sub    %ecx,%ebx
  shl    $0x1c,%ebx
  mov    %ebx,%ecx
  or     %r11d,%ecx
  movd   %ecx,%xmm2
  punpckldq %xmm2,%xmm1
  punpcklqdq %xmm1,%xmm0
  movups %xmm0,-0xa0(%rdi)
  pop    %rbx
  pop    %rbp
  mov    %rax,(%r8)
  mov    %rdi,(%r9)
  ret
```

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