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

```asm
<Encrypt>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x7(%rdx),%r13d
  test   %edx,%edx
  cmovns %edx,%r13d
  sar    $0x3,%r13d
  cmp    $0x7,%edx
  jle    L3
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    $0x0,%ebp
  lea    0x24(%rsp),%r14
L12:
  mov    (%rbx),%edx
  mov    0x4(%rbx),%eax
  lea    0x0(,%rdx,4),%r8d
  mov    %eax,%edi
  mov    $0x3e,%ecx
  sar    %cl,%edi
  xor    %edi,%r8d
  shl    $0x1d,%edx
  xor    %edx,%r8d
  mov    $0x23,%ecx
  sar    %cl,%eax
  xor    %eax,%r8d
  mov    0x8(%rbx),%edx
  mov    0xc(%rbx),%eax
  mov    %edx,%esi
  shl    $0x5,%esi
  mov    %eax,%edi
  mov    $0x3b,%ecx
  sar    %cl,%edi
  xor    %edi,%esi
  shl    $0x14,%edx
  xor    %edx,%esi
  mov    $0x2c,%ecx
  sar    %cl,%eax
  xor    %eax,%esi
  mov    0x14(%rbx),%eax
  mov    0x10(%rbx),%edi
  shl    $0x2,%edi
  mov    %eax,%edx
  mov    $0x3e,%ecx
  sar    %cl,%edx
  xor    %edx,%edi
  sar    $0x11,%eax
  xor    %eax,%edi
  mov    %r8d,%eax
  xor    %esi,%eax
  mov    %edi,0xc(%rsp)
  xor    %edi,%eax
  xor    %eax,(%r12,%rbp,4)
  mov    (%rbx),%edx
  mov    0x4(%rbx),%edi
  mov    0x8(%rbx),%r9d
  mov    0xc(%rbx),%r10d
  mov    %edx,%eax
  shl    $0x1b,%eax
  mov    %edi,%r11d
  mov    $0x25,%ecx
  sar    %cl,%r11d
  xor    %r11d,%eax
  mov    %edx,%r11d
  shl    $0x1c,%r11d
  mov    %edi,%r15d
  mov    $0x24,%ecx
  sar    %cl,%r15d
  xor    %r15d,%r11d
  and    %r11d,%eax
  mov    %r9d,%r11d
  shl    $0xe,%r11d
  mov    %r10d,%r15d
  mov    $0x32,%ecx
  sar    %cl,%r15d
  xor    %r15d,%r11d
  xor    %r11d,%eax
  xor    %r8d,%eax
  mov    %eax,0x1c(%rsp)
  mov    0x14(%rbx),%r8d
  mov    %r9d,%eax
  shl    $0x12,%eax
  mov    %r10d,%r11d
  mov    $0x2e,%ecx
  sar    %cl,%r11d
  xor    %r11d,%eax
  shl    $0x13,%r9d
  mov    $0x2d,%ecx
  sar    %cl,%r10d
  xor    %r10d,%r9d
  and    %r9d,%eax
  mov    0x10(%rbx),%r9d
  shl    $0x17,%r9d
  mov    %r8d,%r10d
  mov    $0x29,%ecx
  sar    %cl,%r10d
  xor    %r10d,%r9d
  xor    %r9d,%eax
  xor    %esi,%eax
  mov    %eax,0x20(%rsp)
  mov    %r8d,%eax
  sar    $0x13,%eax
  sar    $0x12,%r8d
  and    %r8d,%eax
  shl    $0x5,%edx
  mov    $0x3b,%ecx
  sar    %cl,%edi
  xor    %edi,%edx
  xor    %edx,%eax
  xor    0xc(%rsp),%eax
  mov    %eax,0x24(%rsp)
  lea    0x20(%rsp),%rdx
  lea    0x1c(%rsp),%rsi
  mov    %r14,%rcx
  mov    %rbx,%rdi
  call   <Rotate@plt>
  add    $0x1,%rbp
  cmp    %ebp,%r13d
  jg     L12
L3:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L6:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Encrypt(uint8_t *state, uint8_t *stream, uint16_t length) {
  uint16_t i;
  uint64_t t1, t2, t3;
  uint64_t x1, x2, x3, x4, x5;
  uint64_t *State = (uint64_t *)state;
  uint64_t *Stream = (uint64_t *)stream;
  for (i = 0; i < length / 8; i++) {
    x1 = (State[0] << 2) ^ (State[1] >> 62);
    x4 = (State[0] << 29) ^ (State[1] >> 35);
    t1 = x1 ^ x4;
    x1 = (State[2] << 5) ^ (State[3] >> 59);
    x4 = (State[2] << 20) ^ (State[3] >> 44);
    t2 = x1 ^ x4;
    x1 = (State[4] << 2) ^ (State[5] >> 62);
    x4 = (State[4] << 47) ^ (State[5] >> 17);
    t3 = x1 ^ x4;
    Stream[i] ^= t1 ^ t2 ^ t3;
    x2 = (State[0] << 27) ^ (State[1] >> 37);
    x3 = (State[0] << 28) ^ (State[1] >> 36);
    x5 = (State[2] << 14) ^ (State[3] >> 50);
    t1 = t1 ^ (x2 & x3) ^ x5;
    x2 = (State[2] << 18) ^ (State[3] >> 46);
    x3 = (State[2] << 19) ^ (State[3] >> 45);
    x5 = (State[4] << 23) ^ (State[5] >> 41);
    t2 = t2 ^ (x2 & x3) ^ x5;
    x2 = (State[4] << 45) ^ (State[5] >> 19);
    x3 = (State[4] << 46) ^ (State[5] >> 18);
    x5 = (State[0] << 5) ^ (State[1] >> 59);
    t3 = t3 ^ (x2 & x3) ^ x5;
    Rotate(State, &t1, &t2, &t3);
  }
}
```