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

```asm
<packforblock30_64>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,%r13d
  mov    %rsi,%r14
  mov    %rdx,-0x8(%rsp)
  mov    (%rdx),%rdx
  mov    (%rsi),%rax
  mov    (%rax),%ebx
  sub    %edi,%ebx
  mov    %ebx,-0x1c(%rsp)
  mov    0x8(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x4,%ecx
  mov    0xc(%rax),%r12d
  sub    %edi,%r12d
  shl    $0x1a,%r12d
  or     %ecx,%r12d
  mov    0x10(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x8,%ecx
  mov    0x14(%rax),%ebp
  sub    %edi,%ebp
  shl    $0x16,%ebp
  or     %ecx,%ebp
  mov    0x18(%rax),%ecx
  sub    %edi,%ecx
  sar    $0xc,%ecx
  mov    0x1c(%rax),%edi
  sub    %r13d,%edi
  mov    %edi,%ebx
  shl    $0x12,%ebx
  or     %ecx,%ebx
  mov    0x20(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x10,%ecx
  mov    0x24(%rax),%r11d
  sub    %r13d,%r11d
  shl    $0xe,%r11d
  or     %ecx,%r11d
  mov    0x28(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x14,%ecx
  mov    0x2c(%rax),%esi
  sub    %r13d,%esi
  shl    $0xa,%esi
  or     %ecx,%esi
  mov    %esi,-0x18(%rsp)
  mov    0x30(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x18,%ecx
  mov    0x34(%rax),%edi
  sub    %r13d,%edi
  mov    %edi,%esi
  shl    $0x6,%esi
  mov    %esi,%edi
  or     %ecx,%edi
  mov    %edi,-0x14(%rsp)
  mov    0x38(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x1c,%ecx
  mov    0x3c(%rax),%esi
  sub    %r13d,%esi
  shl    $0x2,%esi
  or     %ecx,%esi
  mov    %esi,-0x10(%rsp)
  mov    0x44(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x2,%ecx
  mov    0x48(%rax),%r15d
  sub    %r13d,%r15d
  mov    %r15d,%esi
  shl    $0x1c,%esi
  mov    %esi,%r8d
  or     %ecx,%r8d
  mov    %r8d,-0xc(%rsp)
  mov    0x4c(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x6,%ecx
  mov    0x50(%rax),%r10d
  sub    %r13d,%r10d
  shl    $0x18,%r10d
  or     %ecx,%r10d
  mov    0x54(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0xa,%ecx
  mov    0x58(%rax),%r9d
  sub    %r13d,%r9d
  shl    $0x14,%r9d
  or     %ecx,%r9d
  mov    0x5c(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0xe,%ecx
  mov    0x60(%rax),%r15d
  sub    %r13d,%r15d
  mov    %r15d,%r8d
  shl    $0x10,%r8d
  or     %ecx,%r8d
  mov    0x64(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x12,%ecx
  mov    0x68(%rax),%edi
  sub    %r13d,%edi
  shl    $0xc,%edi
  or     %ecx,%edi
  mov    0x6c(%rax),%ecx
  sub    %r13d,%ecx
  sar    $0x16,%ecx
  mov    0x70(%rax),%r15d
  sub    %r13d,%r15d
  mov    %r15d,%esi
  shl    $0x8,%esi
  or     %ecx,%esi
  mov    0x74(%rax),%r15d
  sub    %r13d,%r15d
  sar    $0x1a,%r15d
  mov    0x78(%rax),%ecx
  sub    %r13d,%ecx
  shl    $0x4,%ecx
  or     %r15d,%ecx
  mov    0x4(%rax),%eax
  sub    %r13d,%eax
  shl    $0x1e,%eax
  or     -0x1c(%rsp),%eax
  mov    %eax,(%rdx)
  mov    %r12d,0x4(%rdx)
  mov    %ebp,0x8(%rdx)
  mov    %ebx,0xc(%rdx)
  mov    %r11d,0x10(%rdx)
  mov    -0x18(%rsp),%ebx
  mov    %ebx,0x14(%rdx)
  mov    -0x14(%rsp),%ebx
  mov    %ebx,0x18(%rdx)
  mov    -0x10(%rsp),%ebx
  mov    %ebx,0x1c(%rdx)
  mov    -0xc(%rsp),%ebx
  mov    %ebx,0x20(%rdx)
  mov    %r10d,0x24(%rdx)
  mov    %r9d,0x28(%rdx)
  mov    %r8d,0x2c(%rdx)
  mov    %edi,0x30(%rdx)
  mov    %esi,0x34(%rdx)
  mov    %ecx,0x38(%rdx)
  subq   $0xffffffffffffff80,(%r14)
  mov    -0x8(%rsp),%rax
  addq   $0x1e0,(%rax)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void packforblock30_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;
  uint64_t w3;
  uint64_t w4;
  uint64_t w5;
  uint64_t w6;
  uint64_t w7;
  uint64_t w8;
  uint64_t w9;
  uint64_t w10;
  uint64_t w11;
  uint64_t w12;
  uint64_t w13;
  uint64_t w14;
  w0 = (in[0] - base);
  w0 |= (in[1] - base) << 30;
  w0 |= (in[2] - base) << 60;
  w1 = (in[2] - base) >> 4;
  w1 |= (in[3] - base) << 26;
  w1 |= (in[4] - base) << 56;
  w2 = (in[4] - base) >> 8;
  w2 |= (in[5] - base) << 22;
  w2 |= (in[6] - base) << 52;
  w3 = (in[6] - base) >> 12;
  w3 |= (in[7] - base) << 18;
  w3 |= (in[8] - base) << 48;
  w4 = (in[8] - base) >> 16;
  w4 |= (in[9] - base) << 14;
  w4 |= (in[10] - base) << 44;
  w5 = (in[10] - base) >> 20;
  w5 |= (in[11] - base) << 10;
  w5 |= (in[12] - base) << 40;
  w6 = (in[12] - base) >> 24;
  w6 |= (in[13] - base) << 6;
  w6 |= (in[14] - base) << 36;
  w7 = (in[14] - base) >> 28;
  w7 |= (in[15] - base) << 2;
  w7 |= (in[16] - base) << 32;
  w7 |= (in[17] - base) << 62;
  w8 = (in[17] - base) >> 2;
  w8 |= (in[18] - base) << 28;
  w8 |= (in[19] - base) << 58;
  w9 = (in[19] - base) >> 6;
  w9 |= (in[20] - base) << 24;
  w9 |= (in[21] - base) << 54;
  w10 = (in[21] - base) >> 10;
  w10 |= (in[22] - base) << 20;
  w10 |= (in[23] - base) << 50;
  w11 = (in[23] - base) >> 14;
  w11 |= (in[24] - base) << 16;
  w11 |= (in[25] - base) << 46;
  w12 = (in[25] - base) >> 18;
  w12 |= (in[26] - base) << 12;
  w12 |= (in[27] - base) << 42;
  w13 = (in[27] - base) >> 22;
  w13 |= (in[28] - base) << 8;
  w13 |= (in[29] - base) << 38;
  w14 = (in[29] - base) >> 26;
  w14 |= (in[30] - base) << 4;
  w14 |= (in[31] - base) << 34;
  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;
  pw64[9] = w9;
  pw64[10] = w10;
  pw64[11] = w11;
  pw64[12] = w12;
  pw64[13] = w13;
  pw64[14] = w14;
  *pin += 32;
  *pw += 120;
}
```