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

```asm
<packforblock6_64>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x6,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0xc,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x12,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x18,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x1e,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x24,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x1c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x2a,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x30,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x24,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x36,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x3c,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x1c(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  sar    $0x4,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x2c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x2,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x30,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x8,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x34,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0xe,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x38,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x14,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x3c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x1a,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x40,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x20,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x44,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x26,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x48,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x2c,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x4c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x32,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x50,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x38,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x54,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x3e,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x54,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  sar    $0x2,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x58,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x4,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x5c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0xa,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x60,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x10,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x64,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x16,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x68,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  shl    $0x1c,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x6c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x22,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x70,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x28,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x74,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x2e,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x78,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x34,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x7c,%rax
  mov    (%rax),%eax
  sub    -0x24(%rbp),%eax
  mov    $0x3a,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  or     %eax,-0x14(%rbp)
  mov    -0x10(%rbp),%rax
  mov    -0x1c(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%rax
  lea    0x4(%rax),%rdx
  mov    -0x18(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  lea    0x80(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  lea    0x60(%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  pop    %rbp
  ret
```

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