user: 请将以下的汇编代码转换成C语言代码:

```asm
<packforblock7>:
  endbr64
  push   %rbx
  mov    %rdi,%rax
  mov    %rsi,%r9
  mov    %rdx,%r8
  mov    (%rdx),%r10
  mov    (%rsi),%rdx
  mov    (%rdx),%edi
  sub    %eax,%edi
  mov    0x8(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x7,%ecx
  mov    0x10(%rdx),%esi
  sub    %eax,%esi
  shl    $0xe,%esi
  or     %esi,%ecx
  or     %edi,%ecx
  mov    0x18(%rdx),%r11d
  sub    %eax,%r11d
  shl    $0x15,%r11d
  or     %ecx,%r11d
  mov    0x48(%rdx),%esi
  sub    %eax,%esi
  sar    %esi
  mov    0x50(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x6,%ecx
  or     %esi,%ecx
  mov    0x58(%rdx),%esi
  sub    %eax,%esi
  shl    $0xd,%esi
  or     %ecx,%esi
  mov    0x60(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x14,%ecx
  or     %esi,%ecx
  mov    0x68(%rdx),%edi
  sub    %eax,%edi
  shl    $0x1b,%edi
  or     %ecx,%edi
  mov    0x90(%rdx),%esi
  sub    %eax,%esi
  sar    $0x2,%esi
  mov    0x98(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x5,%ecx
  or     %esi,%ecx
  mov    0xa0(%rdx),%esi
  sub    %eax,%esi
  shl    $0xc,%esi
  or     %ecx,%esi
  mov    0xa8(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x13,%ecx
  or     %esi,%ecx
  mov    0xb0(%rdx),%esi
  sub    %eax,%esi
  shl    $0x1a,%esi
  or     %ecx,%esi
  mov    0xd8(%rdx),%ecx
  sub    %eax,%ecx
  sar    $0x3,%ecx
  mov    0xe0(%rdx),%ebx
  sub    %eax,%ebx
  shl    $0x4,%ebx
  or     %ecx,%ebx
  mov    0xe8(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0xb,%ecx
  or     %ebx,%ecx
  mov    0xf0(%rdx),%ebx
  sub    %eax,%ebx
  shl    $0x12,%ebx
  or     %ecx,%ebx
  mov    0xf8(%rdx),%ecx
  sub    %eax,%ecx
  shl    $0x19,%ecx
  or     %ebx,%ecx
  mov    0x20(%rdx),%rdx
  sub    %eax,%edx
  mov    %edx,%eax
  shl    $0x1c,%eax
  or     %r11d,%eax
  mov    %eax,(%r10)
  mov    %edi,0x4(%r10)
  mov    %esi,0x8(%r10)
  mov    %ecx,0xc(%r10)
  addq   $0x100,(%r9)
  addq   $0x70,(%r8)
  pop    %rbx
  ret
```

assistant: ```c
void packforblock7(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;
  w0 = (uint64_t)(in[0] - base);
  w0 |= (uint64_t)(in[1] - base) << 7;
  w0 |= (uint64_t)(in[2] - base) << 14;
  w0 |= (uint64_t)(in[3] - base) << 21;
  w0 |= (uint64_t)(in[4] - base) << 28;
  w0 |= (uint64_t)(in[5] - base) << 35;
  w0 |= (uint64_t)(in[6] - base) << 42;
  w0 |= (uint64_t)(in[7] - base) << 49;
  w0 |= (uint64_t)(in[8] - base) << 56;
  w0 |= (uint64_t)(in[9] - base) << 63;
  w1 = (uint64_t)(in[9] - base) >> 1;
  w1 |= (uint64_t)(in[10] - base) << 6;
  w1 |= (uint64_t)(in[11] - base) << 13;
  w1 |= (uint64_t)(in[12] - base) << 20;
  w1 |= (uint64_t)(in[13] - base) << 27;
  w1 |= (uint64_t)(in[14] - base) << 34;
  w1 |= (uint64_t)(in[15] - base) << 41;
  w1 |= (uint64_t)(in[16] - base) << 48;
  w1 |= (uint64_t)(in[17] - base) << 55;
  w1 |= (uint64_t)(in[18] - base) << 62;
  w2 = (uint64_t)(in[18] - base) >> 2;
  w2 |= (uint64_t)(in[19] - base) << 5;
  w2 |= (uint64_t)(in[20] - base) << 12;
  w2 |= (uint64_t)(in[21] - base) << 19;
  w2 |= (uint64_t)(in[22] - base) << 26;
  w2 |= (uint64_t)(in[23] - base) << 33;
  w2 |= (uint64_t)(in[24] - base) << 40;
  w2 |= (uint64_t)(in[25] - base) << 47;
  w2 |= (uint64_t)(in[26] - base) << 54;
  w2 |= (uint64_t)(in[27] - base) << 61;
  w3 = (uint64_t)(in[27] - base) >> 3;
  w3 |= (uint64_t)(in[28] - base) << 4;
  w3 |= (uint64_t)(in[29] - base) << 11;
  w3 |= (uint64_t)(in[30] - base) << 18;
  w3 |= (uint64_t)(in[31] - base) << 25;
  pw64[0] = w0;
  pw64[1] = w1;
  pw64[2] = w2;
  pw64[3] = w3;
  *pin += 32;
  *pw += 28;
}
```