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

```asm
<Encrypt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  movl   $0x0,-0x30(%rbp)
  jmp    L5
L8:
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  lea    0x0(,%rax,4),%esi
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    $0x3e,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x1d,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    $0x23,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  xor    -0x28(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  mov    $0x3b,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0x14,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  mov    $0x2c,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  xor    -0x28(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  lea    0x0(,%rax,4),%esi
  mov    -0x18(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  mov    $0x3e,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  mov    $0x2f,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  sar    $0x11,%eax
  xor    %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x2c(%rbp),%eax
  xor    -0x28(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x3c(%rbp),%ecx
  mov    -0x38(%rbp),%eax
  xor    %eax,%ecx
  mov    -0x34(%rbp),%eax
  xor    %eax,%ecx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rsi
  mov    -0x10(%rbp),%rax
  add    %rsi,%rax
  xor    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x1b,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    $0x25,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x1c,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    $0x24,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0xe,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  mov    $0x32,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  and    -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  xor    %edx,%eax
  xor    -0x1c(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0x12,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  mov    $0x2e,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0x13,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%eax
  mov    $0x2d,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  shl    $0x17,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  mov    $0x29,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  and    -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  xor    %edx,%eax
  xor    -0x1c(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  mov    $0x2d,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  sar    $0x13,%eax
  xor    %edx,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  mov    $0x2e,%edx
  mov    %edx,%ecx
  shl    %cl,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  sar    $0x12,%eax
  xor    %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x5,%eax
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    $0x3b,%edx
  mov    %edx,%ecx
  sar    %cl,%eax
  xor    %esi,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x24(%rbp),%eax
  and    -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  xor    %edx,%eax
  xor    -0x1c(%rbp),%eax
  mov    %eax,-0x34(%rbp)
  lea    -0x34(%rbp),%rcx
  lea    -0x38(%rbp),%rdx
  lea    -0x3c(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <Rotate@plt>
  addl   $0x1,-0x30(%rbp)
L5:
  mov    -0x54(%rbp),%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cmp    %eax,-0x30(%rbp)
  jl     L8
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  leave
  ret
```

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);
  }
}
```