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

```asm
<RandomFunc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  xor    $0x29be1cdb,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L59
L69:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  je     L8
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jne    L65
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x1a(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzwl (%rdx),%edx
  mov    %dx,(%rax)
  lea    -0x10(%rbp),%rax
  movzwl -0x1a(%rbp),%edx
  mov    %dx,(%rax)
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L50
L65:
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1b(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x6,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzbl -0x1b(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1b(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x5,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl -0x1b(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  xor    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L50
L8:
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  shr    $0x2,%rax
  and    $0x6,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1c(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x5,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl -0x1c(%rbp),%edx
  mov    %dl,(%rax)
L50:
  addq   $0x2,-0x18(%rbp)
L59:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L69
  mov    -0x10(%rbp),%rax
  or     $0x32f75143,%rax
  xor    $0xe161c,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  unsigned short copy11;
  char copy12;
  char copy13;
  {
    state[0UL] = input[0UL] ^ 700325083UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] != local1) {
        if (state[0UL] == local1) {
          copy11 = *((unsigned short *)(&state[0UL]) + 2);
          *((unsigned short *)(&state[0UL]) + 2) = *((unsigned short *)(&state[0UL]) + 0);
          *((unsigned short *)(&state[0UL]) + 0) = copy11;
          state[local1] <<= (state[local1] & 7UL) | 1UL;
        } else {
          copy12 = *((char *)(&state[0UL]) + 2);
          *((char *)(&state[0UL]) + 2) = *((char *)(&state[0UL]) + 6);
          *((char *)(&state[0UL]) + 6) = copy12;
          copy12 = *((char *)(&state[0UL]) + 7);
          *((char *)(&state[0UL]) + 7) = *((char *)(&state[0UL]) + 5);
          *((char *)(&state[0UL]) + 5) = copy12;
          state[local1] = state[0UL] ^ state[local1];
        }
      } else {
        state[local1] <<= ((state[local1] >> 2UL) & 7UL) | 1UL;
        copy13 = *((char *)(&state[0UL]) + 4);
        *((char *)(&state[0UL]) + 4) = *((char *)(&state[0UL]) + 5);
        *((char *)(&state[0UL]) + 5) = copy13;
      }
      local1 += 2UL;
    }
    output[0UL] = (state[0UL] | 855068995UL) ^ 923164UL;
  }
}
```