user: 请从给定的汇编指令推导出C源代码：

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