user: Converte this assembly snippet into its equivalent C code:

```asm
<packforblock10>:
  endbr64
  push   %rbp
  mov    %rdx,%r11
  mov    %rdi,%rcx
  push   %rbx
  mov    %rsi,%rbx
  mov    (%rdx),%rsi
  mov    (%rbx),%rax
  mov    (%rax),%r8d
  mov    0x8(%rax),%edx
  mov    0x48(%rax),%r10d
  mov    0x78(%rax),%r9d
  sub    %edi,%r8d
  sub    %edi,%edx
  mov    0x10(%rax),%edi
  mov    0xc8(%rax),%ebp
  shl    $0xa,%edx
  sub    %ecx,%r10d
  sub    %ecx,%r9d
  shl    $0x1a,%r10d
  sub    %ecx,%edi
  shl    $0x16,%r9d
  shl    $0x14,%edi
  or     %edi,%edx
  mov    0x30(%rax),%edi
  or     %r8d,%edx
  mov    0x38(%rax),%r8d
  sub    %ecx,%edi
  sub    %ecx,%r8d
  sar    $0x4,%edi
  shl    $0x6,%r8d
  or     %edi,%r8d
  mov    0x40(%rax),%edi
  sub    %ecx,%edi
  shl    $0x10,%edi
  or     %r8d,%edi
  mov    0x68(%rax),%r8d
  or     %edi,%r10d
  mov    0x60(%rax),%edi
  sub    %ecx,%r8d
  sub    %ecx,%edi
  shl    $0x2,%r8d
  sar    $0x8,%edi
  or     %edi,%r8d
  mov    0x70(%rax),%edi
  sub    %ecx,%edi
  shl    $0xc,%edi
  or     %r8d,%edi
  mov    0xa0(%rax),%r8d
  or     %edi,%r9d
  mov    0x98(%rax),%edi
  sub    %ecx,%r8d
  sub    %ecx,%edi
  sar    $0x2,%edi
  shl    $0x8,%r8d
  sub    %ecx,%ebp
  add    $0x100,%rax
  or     %edi,%r8d
  mov    -0x58(%rax),%edi
  sar    $0x6,%ebp
  add    $0xa0,%rsi
  sub    %ecx,%edi
  shl    $0x12,%edi
  or     %r8d,%edi
  mov    -0x50(%rax),%r8d
  sub    %ecx,%r8d
  shl    $0x1c,%r8d
  or     %edi,%r8d
  mov    -0x30(%rax),%edi
  sub    %ecx,%edi
  shl    $0x4,%edi
  or     %ebp,%edi
  mov    -0x28(%rax),%ebp
  sub    %ecx,%ebp
  shl    $0xe,%ebp
  or     %edi,%ebp
  mov    -0x20(%rax),%edi
  sub    %ecx,%edi
  shl    $0x18,%edi
  or     %ebp,%edi
  mov    -0xe8(%rax),%ebp
  mov    %r10d,-0x9c(%rsi)
  mov    %r9d,-0x98(%rsi)
  sub    %ecx,%ebp
  mov    %r8d,-0x94(%rsi)
  mov    %ebp,%ecx
  mov    %edi,-0x90(%rsi)
  shl    $0x1e,%ecx
  or     %ecx,%edx
  mov    %edx,-0xa0(%rsi)
  mov    %rax,(%rbx)
  pop    %rbx
  mov    %rsi,(%r11)
  pop    %rbp
  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;
}
```