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

```asm
<packforblock13>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rax
  mov    %rsi,%rbx
  mov    %rdx,%r11
  mov    (%rdx),%rcx
  mov    (%rsi),%rdx
  mov    (%rdx),%ebp
  sub    %edi,%ebp
  mov    0x20(%rdx),%esi
  sub    %edi,%esi
  sar    $0xc,%esi
  mov    0x28(%rdx),%edi
  sub    %eax,%edi
  add    %edi,%edi
  or     %esi,%edi
  mov    0x30(%rdx),%esi
  sub    %eax,%esi
  shl    $0xe,%esi
  or     %edi,%esi
  mov    0x38(%rdx),%r9d
  sub    %eax,%r9d
  shl    $0x1b,%r9d
  or     %esi,%r9d
  mov    0x48(%rdx),%esi
  sub    %eax,%esi
  sar    $0xb,%esi
  mov    0x50(%rdx),%edi
  sub    %eax,%edi
  shl    $0x2,%edi
  or     %esi,%edi
  mov    0x58(%rdx),%esi
  sub    %eax,%esi
  shl    $0xf,%esi
  or     %edi,%esi
  mov    0x60(%rdx),%r8d
  sub    %eax,%r8d
  shl    $0x1c,%r8d
  or     %esi,%r8d
  mov    0x70(%rdx),%esi
  sub    %eax,%esi
  sar    $0xa,%esi
  mov    0x78(%rdx),%edi
  sub    %eax,%edi
  shl    $0x3,%edi
  or     %esi,%edi
  mov    0x80(%rdx),%esi
  sub    %eax,%esi
  shl    $0x10,%esi
  or     %edi,%esi
  mov    0x88(%rdx),%edi
  sub    %eax,%edi
  shl    $0x1d,%edi
  or     %esi,%edi
  mov    0x98(%rdx),%r10d
  sub    %eax,%r10d
  sar    $0x9,%r10d
  mov    0xa0(%rdx),%esi
  sub    %eax,%esi
  shl    $0x4,%esi
  or     %r10d,%esi
  mov    0xa8(%rdx),%r10d
  sub    %eax,%r10d
  shl    $0x11,%r10d
  or     %esi,%r10d
  mov    0xb0(%rdx),%esi
  sub    %eax,%esi
  shl    $0x1e,%esi
  or     %r10d,%esi
  mov    0xc0(%rdx),%r10d
  sub    %eax,%r10d
  sar    $0x8,%r10d
  mov    0xc8(%rdx),%r12d
  sub    %eax,%r12d
  shl    $0x5,%r12d
  or     %r10d,%r12d
  mov    0xd0(%rdx),%r10d
  sub    %eax,%r10d
  shl    $0x12,%r10d
  or     %r12d,%r10d
  mov    0xd8(%rdx),%r12d
  sub    %eax,%r12d
  shl    $0x1f,%r12d
  or     %r10d,%r12d
  mov    0xe8(%rdx),%r13d
  sub    %eax,%r13d
  sar    $0x7,%r13d
  mov    0xf0(%rdx),%r10d
  sub    %eax,%r10d
  shl    $0x6,%r10d
  or     %r13d,%r10d
  mov    0xf8(%rdx),%r13d
  sub    %eax,%r13d
  shl    $0x13,%r13d
  or     %r10d,%r13d
  mov    0x8(%rdx),%r10d
  sub    %eax,%r10d
  shl    $0xd,%r10d
  mov    0x10(%rdx),%rdx
  sub    %eax,%edx
  mov    %edx,%eax
  shl    $0x1a,%eax
  or     %r10d,%eax
  or     %ebp,%eax
  mov    %eax,(%rcx)
  mov    %r9d,0x4(%rcx)
  mov    %r8d,0x8(%rcx)
  mov    %edi,0xc(%rcx)
  mov    %esi,0x10(%rcx)
  mov    %r12d,0x14(%rcx)
  mov    %r13d,0x18(%rcx)
  addq   $0x100,(%rbx)
  addq   $0xd0,(%r11)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void packforblock13(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;
  w0 = (uint64_t)(in[0] - base);
  w0 |= (uint64_t)(in[1] - base) << 13;
  w0 |= (uint64_t)(in[2] - base) << 26;
  w0 |= (uint64_t)(in[3] - base) << 39;
  w0 |= (uint64_t)(in[4] - base) << 52;
  w1 = (uint64_t)(in[4] - base) >> 12;
  w1 |= (uint64_t)(in[5] - base) << 1;
  w1 |= (uint64_t)(in[6] - base) << 14;
  w1 |= (uint64_t)(in[7] - base) << 27;
  w1 |= (uint64_t)(in[8] - base) << 40;
  w1 |= (uint64_t)(in[9] - base) << 53;
  w2 = (uint64_t)(in[9] - base) >> 11;
  w2 |= (uint64_t)(in[10] - base) << 2;
  w2 |= (uint64_t)(in[11] - base) << 15;
  w2 |= (uint64_t)(in[12] - base) << 28;
  w2 |= (uint64_t)(in[13] - base) << 41;
  w2 |= (uint64_t)(in[14] - base) << 54;
  w3 = (uint64_t)(in[14] - base) >> 10;
  w3 |= (uint64_t)(in[15] - base) << 3;
  w3 |= (uint64_t)(in[16] - base) << 16;
  w3 |= (uint64_t)(in[17] - base) << 29;
  w3 |= (uint64_t)(in[18] - base) << 42;
  w3 |= (uint64_t)(in[19] - base) << 55;
  w4 = (uint64_t)(in[19] - base) >> 9;
  w4 |= (uint64_t)(in[20] - base) << 4;
  w4 |= (uint64_t)(in[21] - base) << 17;
  w4 |= (uint64_t)(in[22] - base) << 30;
  w4 |= (uint64_t)(in[23] - base) << 43;
  w4 |= (uint64_t)(in[24] - base) << 56;
  w5 = (uint64_t)(in[24] - base) >> 8;
  w5 |= (uint64_t)(in[25] - base) << 5;
  w5 |= (uint64_t)(in[26] - base) << 18;
  w5 |= (uint64_t)(in[27] - base) << 31;
  w5 |= (uint64_t)(in[28] - base) << 44;
  w5 |= (uint64_t)(in[29] - base) << 57;
  w6 = (uint64_t)(in[29] - base) >> 7;
  w6 |= (uint64_t)(in[30] - base) << 6;
  w6 |= (uint64_t)(in[31] - base) << 19;
  pw64[0] = w0;
  pw64[1] = w1;
  pw64[2] = w2;
  pw64[3] = w3;
  pw64[4] = w4;
  pw64[5] = w5;
  pw64[6] = w6;
  *pin += 32;
  *pw += 52;
}
```