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

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