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

```asm
<packforblock17>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rax
  mov    %rsi,%r12
  mov    %rdx,%r13
  mov    (%rdx),%rcx
  mov    (%rsi),%rdx
  mov    (%rdx),%r14d
  sub    %edi,%r14d
  mov    0x18(%rdx),%edi
  sub    %eax,%edi
  sar    $0xd,%edi
  mov    0x20(%rdx),%esi
  sub    %eax,%esi
  shl    $0x4,%esi
  or     %edi,%esi
  mov    0x28(%rdx),%ebp
  sub    %eax,%ebp
  shl    $0x15,%ebp
  or     %esi,%ebp
  mov    0x38(%rdx),%edi
  sub    %eax,%edi
  sar    $0x9,%edi
  mov    0x40(%rdx),%esi
  sub    %eax,%esi
  shl    $0x8,%esi
  or     %edi,%esi
  mov    0x48(%rdx),%ebx
  sub    %eax,%ebx
  shl    $0x19,%ebx
  or     %esi,%ebx
  mov    0x58(%rdx),%edi
  sub    %eax,%edi
  sar    $0x5,%edi
  mov    0x60(%rdx),%esi
  sub    %eax,%esi
  shl    $0xc,%esi
  or     %edi,%esi
  mov    0x68(%rdx),%r11d
  sub    %eax,%r11d
  shl    $0x1d,%r11d
  or     %esi,%r11d
  mov    0x78(%rdx),%esi
  sub    %eax,%esi
  sar    %esi
  mov    0x80(%rdx),%r10d
  sub    %eax,%r10d
  shl    $0x10,%r10d
  or     %esi,%r10d
  mov    0x90(%rdx),%edi
  sub    %eax,%edi
  sar    $0xe,%edi
  mov    0x98(%rdx),%esi
  sub    %eax,%esi
  shl    $0x3,%esi
  or     %edi,%esi
  mov    0xa0(%rdx),%r9d
  sub    %eax,%r9d
  shl    $0x14,%r9d
  or     %esi,%r9d
  mov    0xb0(%rdx),%edi
  sub    %eax,%edi
  sar    $0xa,%edi
  mov    0xb8(%rdx),%esi
  sub    %eax,%esi
  shl    $0x7,%esi
  or     %edi,%esi
  mov    0xc0(%rdx),%r8d
  sub    %eax,%r8d
  shl    $0x18,%r8d
  or     %esi,%r8d
  mov    0xd0(%rdx),%edi
  sub    %eax,%edi
  sar    $0x6,%edi
  mov    0xd8(%rdx),%esi
  sub    %eax,%esi
  shl    $0xb,%esi
  or     %edi,%esi
  mov    0xe0(%rdx),%edi
  sub    %eax,%edi
  shl    $0x1c,%edi
  or     %esi,%edi
  mov    0xf0(%rdx),%r15d
  sub    %eax,%r15d
  sar    $0x2,%r15d
  mov    0xf8(%rdx),%esi
  sub    %eax,%esi
  shl    $0xf,%esi
  or     %r15d,%esi
  mov    0x8(%rdx),%rdx
  sub    %eax,%edx
  mov    %edx,%eax
  shl    $0x11,%eax
  or     %r14d,%eax
  mov    %eax,(%rcx)
  mov    %ebp,0x4(%rcx)
  mov    %ebx,0x8(%rcx)
  mov    %r11d,0xc(%rcx)
  mov    %r10d,0x10(%rcx)
  mov    %r9d,0x14(%rcx)
  mov    %r8d,0x18(%rcx)
  mov    %edi,0x1c(%rcx)
  mov    %esi,0x20(%rcx)
  addq   $0x100,(%r12)
  addq   $0x110,0x0(%r13)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void packforblock17(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;
  uint64_t w5;
  uint64_t w6;
  uint64_t w7;
  uint64_t w8;
  w0 = (uint64_t)(in[0] - base);
  w0 |= (uint64_t)(in[1] - base) << 17;
  w0 |= (uint64_t)(in[2] - base) << 34;
  w0 |= (uint64_t)(in[3] - base) << 51;
  w1 = (uint64_t)(in[3] - base) >> 13;
  w1 |= (uint64_t)(in[4] - base) << 4;
  w1 |= (uint64_t)(in[5] - base) << 21;
  w1 |= (uint64_t)(in[6] - base) << 38;
  w1 |= (uint64_t)(in[7] - base) << 55;
  w2 = (uint64_t)(in[7] - base) >> 9;
  w2 |= (uint64_t)(in[8] - base) << 8;
  w2 |= (uint64_t)(in[9] - base) << 25;
  w2 |= (uint64_t)(in[10] - base) << 42;
  w2 |= (uint64_t)(in[11] - base) << 59;
  w3 = (uint64_t)(in[11] - base) >> 5;
  w3 |= (uint64_t)(in[12] - base) << 12;
  w3 |= (uint64_t)(in[13] - base) << 29;
  w3 |= (uint64_t)(in[14] - base) << 46;
  w3 |= (uint64_t)(in[15] - base) << 63;
  w4 = (uint64_t)(in[15] - base) >> 1;
  w4 |= (uint64_t)(in[16] - base) << 16;
  w4 |= (uint64_t)(in[17] - base) << 33;
  w4 |= (uint64_t)(in[18] - base) << 50;
  w5 = (uint64_t)(in[18] - base) >> 14;
  w5 |= (uint64_t)(in[19] - base) << 3;
  w5 |= (uint64_t)(in[20] - base) << 20;
  w5 |= (uint64_t)(in[21] - base) << 37;
  w5 |= (uint64_t)(in[22] - base) << 54;
  w6 = (uint64_t)(in[22] - base) >> 10;
  w6 |= (uint64_t)(in[23] - base) << 7;
  w6 |= (uint64_t)(in[24] - base) << 24;
  w6 |= (uint64_t)(in[25] - base) << 41;
  w6 |= (uint64_t)(in[26] - base) << 58;
  w7 = (uint64_t)(in[26] - base) >> 6;
  w7 |= (uint64_t)(in[27] - base) << 11;
  w7 |= (uint64_t)(in[28] - base) << 28;
  w7 |= (uint64_t)(in[29] - base) << 45;
  w7 |= (uint64_t)(in[30] - base) << 62;
  w8 = (uint64_t)(in[30] - base) >> 2;
  w8 |= (uint64_t)(in[31] - base) << 15;
  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;
  *pin += 32;
  *pw += 68;
}
```