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

```asm
<Encrypt>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %rdx,%rdx
  je     L4
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    %rdx,%r13
  mov    $0x0,%ebp
  lea    0x14(%rsp),%r14
L26:
  mov    0x1c(%rbx),%eax
  lea    0x0(,%rax,4),%ecx
  mov    0x20(%rbx),%eax
  sar    $0x6,%eax
  xor    %eax,%ecx
  mov    0x28(%rbx),%eax
  shl    $0x5,%eax
  xor    %eax,%ecx
  mov    0x2c(%rbx),%eax
  sar    $0x3,%eax
  xor    %eax,%ecx
  mov    0x4c(%rbx),%edx
  shl    $0x5,%edx
  mov    0x50(%rbx),%eax
  sar    $0x3,%eax
  xor    %eax,%edx
  mov    0x54(%rbx),%eax
  shl    $0x4,%eax
  xor    %eax,%edx
  mov    0x58(%rbx),%eax
  sar    $0x4,%eax
  xor    %eax,%edx
  mov    0x78(%rbx),%eax
  shl    $0x2,%eax
  mov    0x7c(%rbx),%esi
  sar    $0x6,%esi
  xor    %esi,%eax
  mov    0x8c(%rbx),%esi
  shl    $0x7,%esi
  xor    %esi,%eax
  mov    0x90(%rbx),%esi
  sar    %esi
  xor    %esi,%eax
  mov    %ecx,%esi
  xor    %edx,%esi
  xor    %eax,%esi
  xor    %esi,(%r12,%rbp,4)
  mov    0x28(%rbx),%r8d
  mov    0x2c(%rbx),%r9d
  mov    0x54(%rbx),%edi
  lea    0x0(,%r8,8),%esi
  mov    %r9d,%r10d
  sar    $0x5,%r10d
  xor    %r10d,%esi
  shl    $0x4,%r8d
  sar    $0x4,%r9d
  xor    %r9d,%r8d
  and    %r8d,%esi
  mov    0x50(%rbx),%r8d
  shl    $0x6,%r8d
  mov    %edi,%r9d
  sar    $0x2,%r9d
  xor    %r9d,%r8d
  xor    %r8d,%esi
  xor    %esi,%ecx
  mov    %ecx,0xc(%rsp)
  mov    0x58(%rbx),%esi
  lea    0x0(,%rdi,4),%ecx
  mov    %esi,%r8d
  sar    $0x6,%r8d
  xor    %r8d,%ecx
  shl    $0x3,%edi
  sar    $0x5,%esi
  xor    %esi,%edi
  and    %edi,%ecx
  mov    0x80(%rbx),%esi
  shl    $0x7,%esi
  mov    0x84(%rbx),%edi
  sar    %edi
  xor    %edi,%esi
  xor    %esi,%ecx
  xor    %ecx,%edx
  mov    %edx,0x10(%rsp)
  mov    0x8c(%rbx),%ecx
  mov    0x90(%rbx),%esi
  mov    %ecx,%edx
  shl    $0x5,%edx
  mov    %esi,%edi
  sar    $0x3,%edi
  xor    %edi,%edx
  shl    $0x6,%ecx
  sar    $0x2,%esi
  xor    %esi,%ecx
  and    %ecx,%edx
  mov    0x1c(%rbx),%ecx
  shl    $0x5,%ecx
  mov    0x20(%rbx),%esi
  sar    $0x3,%esi
  xor    %esi,%ecx
  xor    %ecx,%edx
  xor    %edx,%eax
  mov    %eax,0x14(%rsp)
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  mov    %r14,%rcx
  mov    %rbx,%rdi
  call   <Rotate@plt>
  add    $0x1,%rbp
  cmp    %rbp,%r13
  jne    L26
L4:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void Encrypt(uint8_t *state, uint8_t *stream, uint16_t length) {
  uint16_t i;
  uint8_t t1, t2, t3;
  uint8_t x1, x2, x3, x4, x5;
  for (i = 0; i < length; i++) {
    x1 = (state[7] << 2) ^ (state[8] >> 6);
    x4 = (state[10] << 5) ^ (state[11] >> 3);
    t1 = x1 ^ x4;
    x1 = (state[19] << 5) ^ (state[20] >> 3);
    x4 = (state[21] << 4) ^ (state[22] >> 4);
    t2 = x1 ^ x4;
    x1 = (state[30] << 2) ^ (state[31] >> 6);
    x4 = (state[35] << 7) ^ (state[36] >> 1);
    t3 = x1 ^ x4;
    stream[i] ^= t1 ^ t2 ^ t3;
    x2 = (state[10] << 3) ^ (state[11] >> 5);
    x3 = (state[10] << 4) ^ (state[11] >> 4);
    x5 = (state[20] << 6) ^ (state[21] >> 2);
    t1 = t1 ^ (x2 & x3) ^ x5;
    x2 = (state[21] << 2) ^ (state[22] >> 6);
    x3 = (state[21] << 3) ^ (state[22] >> 5);
    x5 = (state[32] << 7) ^ (state[33] >> 1);
    t2 = t2 ^ (x2 & x3) ^ x5;
    x2 = (state[35] << 5) ^ (state[36] >> 3);
    x3 = (state[35] << 6) ^ (state[36] >> 2);
    x5 = (state[7] << 5) ^ (state[8] >> 3);
    t3 = t3 ^ (x2 & x3) ^ x5;
    Rotate(state, &t1, &t2, &t3);
  }
}
```