user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<packforblock35_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    0x4(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x1d,%ecx
  mov    0x8(%rax),%r12d
  sub    %edi,%r12d
  shl    $0x6,%r12d
  or     %ecx,%r12d
  mov    0xc(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x17,%ecx
  mov    0x10(%rax),%ebp
  sub    %edi,%ebp
  shl    $0xc,%ebp
  or     %ecx,%ebp
  mov    0x14(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x11,%ecx
  mov    0x18(%rax),%ebx
  sub    %edi,%ebx
  shl    $0x12,%ebx
  or     %ecx,%ebx
  mov    0x1c(%rax),%ecx
  sub    %edi,%ecx
  sar    $0xb,%ecx
  mov    0x20(%rax),%esi
  sub    %edi,%esi
  shl    $0x18,%esi
  or     %ecx,%esi
  mov    %esi,-0x28(%rsp)
  mov    0x24(%rax),%ecx
  sub    %edi,%ecx
  sar    $0x5,%ecx
  mov    %ecx,-0x24(%rsp)
  mov    0x28(%rax),%edi
  sub    %r13d,%edi
  mov    %edi,-0x2c(%rsp)
  mov    $0x22,%ecx
  sar    %cl,%edi
  mov    0x2c(%rax),%esi
  sub    %r13d,%esi
  add    %esi,%esi
  or     %edi,%esi
  mov    %esi,-0x20(%rsp)
  mov    0x30(%rax),%edi
  sub    %r13d,%edi
  mov    %edi,%esi
  sar    $0x1c,%esi
  mov    0x34(%rax),%edi
  sub    %r13d,%edi
  shl    $0x7,%edi
  or     %esi,%edi
  mov    %edi,-0x1c(%rsp)
  mov    0x38(%rax),%r8d
  sub    %r13d,%r8d
  mov    %r8d,%esi
  sar    $0x16,%esi
  mov    0x3c(%rax),%edi
  sub    %r13d,%edi
  shl    $0xd,%edi
  or     %esi,%edi
  mov    %edi,-0x18(%rsp)
  mov    0x40(%rax),%r9d
  sub    %r13d,%r9d
  mov    %r9d,%esi
  sar    $0x10,%esi
  mov    0x44(%rax),%r10d
  sub    %r13d,%r10d
  mov    %r10d,%edi
  shl    $0x13,%edi
  mov    %edi,%r11d
  or     %esi,%r11d
  mov    %r11d,-0x14(%rsp)
  mov    0x48(%rax),%r15d
  sub    %r13d,%r15d
  mov    %r15d,%esi
  sar    $0xa,%esi
  mov    0x4c(%rax),%r8d
  sub    %r13d,%r8d
  mov    %r8d,%r11d
  shl    $0x19,%r11d
  mov    %r11d,%r9d
  or     %esi,%r9d
  mov    %r9d,-0x10(%rsp)
  mov    0x50(%rax),%r10d
  sub    %r13d,%r10d
  mov    %r10d,%r15d
  sar    $0x4,%r15d
  mov    %r15d,-0xc(%rsp)
  mov    0x54(%rax),%r11d
  sub    %r13d,%r11d
  mov    %r11d,%r8d
  mov    $0x21,%ecx
  sar    %cl,%r8d
  mov    0x58(%rax),%r10d
  sub    %r13d,%r10d
  shl    $0x2,%r10d
  or     %r8d,%r10d
  mov    0x5c(%rax),%r8d
  sub    %r13d,%r8d
  mov    %r8d,%esi
  sar    $0x1b,%esi
  mov    0x60(%rax),%r9d
  sub    %r13d,%r9d
  shl    $0x8,%r9d
  or     %esi,%r9d
  mov    0x64(%rax),%r8d
  sub    %r13d,%r8d
  mov    %r8d,%esi
  sar    $0x15,%esi
  mov    0x68(%rax),%r8d
  sub    %r13d,%r8d
  shl    $0xe,%r8d
  or     %esi,%r8d
  mov    0x6c(%rax),%ecx
  sub    %r13d,%ecx
  mov    %ecx,%esi
  sar    $0xf,%esi
  mov    0x70(%rax),%edi
  sub    %r13d,%edi
  shl    $0x14,%edi
  or     %esi,%edi
  mov    0x74(%rax),%r15d
  sub    %r13d,%r15d
  sar    $0x9,%r15d
  mov    0x78(%rax),%ecx
  sub    %r13d,%ecx
  mov    %ecx,%esi
  shl    $0x1a,%esi
  or     %r15d,%esi
  mov    0x7c(%rax),%r15d
  sub    %r13d,%r15d
  sar    $0x3,%r15d
  mov    (%rax),%eax
  sub    %r13d,%eax
  mov    %eax,(%rdx)
  mov    %r12d,0x4(%rdx)
  mov    %ebp,0x8(%rdx)
  mov    %ebx,0xc(%rdx)
  mov    -0x28(%rsp),%ebx
  mov    %ebx,0x10(%rdx)
  mov    -0x2c(%rsp),%ecx
  shl    $0x1e,%ecx
  or     -0x24(%rsp),%ecx
  mov    %ecx,0x14(%rdx)
  mov    -0x20(%rsp),%ebx
  mov    %ebx,0x18(%rdx)
  mov    -0x1c(%rsp),%ebx
  mov    %ebx,0x1c(%rdx)
  mov    -0x18(%rsp),%ebx
  mov    %ebx,0x20(%rdx)
  mov    -0x14(%rsp),%ebx
  mov    %ebx,0x24(%rdx)
  mov    -0x10(%rsp),%ebx
  mov    %ebx,0x28(%rdx)
  shl    $0x1f,%r11d
  mov    %r11d,%eax
  or     -0xc(%rsp),%eax
  mov    %eax,0x2c(%rdx)
  mov    %r10d,0x30(%rdx)
  mov    %r9d,0x34(%rdx)
  mov    %r8d,0x38(%rdx)
  mov    %edi,0x3c(%rdx)
  mov    %esi,0x40(%rdx)
  mov    %r15d,0x44(%rdx)
  subq   $0xffffffffffffff80,(%r14)
  mov    -0x8(%rsp),%rax
  addq   $0x230,(%rax)
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void packforblock35_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;
  uint64_t w15;
  uint64_t w16;
  uint64_t w17;
  w0 = (in[0] - base);
  w0 |= (in[1] - base) << 35;
  w1 = (in[1] - base) >> 29;
  w1 |= (in[2] - base) << 6;
  w1 |= (in[3] - base) << 41;
  w2 = (in[3] - base) >> 23;
  w2 |= (in[4] - base) << 12;
  w2 |= (in[5] - base) << 47;
  w3 = (in[5] - base) >> 17;
  w3 |= (in[6] - base) << 18;
  w3 |= (in[7] - base) << 53;
  w4 = (in[7] - base) >> 11;
  w4 |= (in[8] - base) << 24;
  w4 |= (in[9] - base) << 59;
  w5 = (in[9] - base) >> 5;
  w5 |= (in[10] - base) << 30;
  w6 = (in[10] - base) >> 34;
  w6 |= (in[11] - base) << 1;
  w6 |= (in[12] - base) << 36;
  w7 = (in[12] - base) >> 28;
  w7 |= (in[13] - base) << 7;
  w7 |= (in[14] - base) << 42;
  w8 = (in[14] - base) >> 22;
  w8 |= (in[15] - base) << 13;
  w8 |= (in[16] - base) << 48;
  w9 = (in[16] - base) >> 16;
  w9 |= (in[17] - base) << 19;
  w9 |= (in[18] - base) << 54;
  w10 = (in[18] - base) >> 10;
  w10 |= (in[19] - base) << 25;
  w10 |= (in[20] - base) << 60;
  w11 = (in[20] - base) >> 4;
  w11 |= (in[21] - base) << 31;
  w12 = (in[21] - base) >> 33;
  w12 |= (in[22] - base) << 2;
  w12 |= (in[23] - base) << 37;
  w13 = (in[23] - base) >> 27;
  w13 |= (in[24] - base) << 8;
  w13 |= (in[25] - base) << 43;
  w14 = (in[25] - base) >> 21;
  w14 |= (in[26] - base) << 14;
  w14 |= (in[27] - base) << 49;
  w15 = (in[27] - base) >> 15;
  w15 |= (in[28] - base) << 20;
  w15 |= (in[29] - base) << 55;
  w16 = (in[29] - base) >> 9;
  w16 |= (in[30] - base) << 26;
  w16 |= (in[31] - base) << 61;
  w17 = (in[31] - base) >> 3;
  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;
  pw64[15] = w15;
  pw64[16] = w16;
  pw64[17] = w17;
  *pin += 32;
  *pw += 140;
}
```