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

```asm
<packforblock17>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x11,%eax
  or     %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x22,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x33,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x34(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0xd,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x4,%eax
  or     %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x15,%eax
  or     %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x30,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x26,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x38,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x37,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x30(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x38,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0x9,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x40,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x8,%eax
  or     %eax,-0x2c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x48,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x19,%eax
  or     %eax,-0x2c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x50,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x2a,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x2c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x58,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x3b,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x2c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x58,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0x5,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x60,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0xc,%eax
  or     %eax,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x68,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x1d,%eax
  or     %eax,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x70,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x2e,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x78,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x3f,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x28(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x78,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    %eax
  mov    %eax,-0x24(%rbp)
  mov    -0x8(%rbp),%rax
  sub    $0xffffffffffffff80,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x10,%eax
  or     %eax,-0x24(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x88,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x21,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x24(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x90,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x32,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x24(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x90,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0xe,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x98,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x3,%eax
  or     %eax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xa0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x14,%eax
  or     %eax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xa8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x25,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xb0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x36,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x20(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xb0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0xa,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xb8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x7,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xc0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x18,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xc8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x29,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xd0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x3a,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xd0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0x6,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xd8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0xb,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xe0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0x1c,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xe8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x2d,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xf0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,%edx
  mov    $0x3e,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xf0,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  sar    $0x2,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xf8,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  shl    $0xf,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%rax
  mov    -0x34(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x30(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x2c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0xc(%rax),%rdx
  mov    -0x28(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x10(%rax),%rdx
  mov    -0x24(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x14(%rax),%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x18(%rax),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x1c(%rax),%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x20(%rax),%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%rax
  lea    0x100(%rax),%rdx
  mov    -0x50(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  lea    0x110(%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  pop    %rbp
  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;
}
```