user: What is the c source code of the assembly code below?

```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
  sub    $0x17447d68,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L25
L65:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jae    L26
  mov    -0x10(%rbp),%rsi
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  ror    %cl,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  and    $0x3f0,%eax
  or     %rsi,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L51
L26:
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x2,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x1a(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x2,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rax,%rdx
  movzwl -0x1a(%rbp),%eax
  mov    %ax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movzwl (%rax),%eax
  mov    %ax,-0x1a(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x4,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x4(%rax),%rdx
  movzwl -0x1a(%rbp),%eax
  mov    %ax,(%rdx)
L51:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jne    L23
  mov    -0x10(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  shr    $0x3,%rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  rol    %cl,%rdx
  mov    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L9
L23:
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  and    $0xe,%eax
  or     $0x1,%eax
  mov    %eax,%ecx
  rol    %cl,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
L9:
  addq   $0x1,-0x18(%rbp)
L25:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L65
  mov    -0x10(%rbp),%rax
  rol    $0x5,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L24
  call   <__stack_chk_fail@plt>
L24:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  unsigned short copy11;
  {
    state[0UL] = (input[0UL] - 51238316UL) - 339126204UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] > local1) {
        state[0UL] |= (((state[local1] >> ((state[local1] & 15UL) | 1UL)) | (state[local1] << (64 - ((state[local1] & 15UL) | 1UL)))) & 63UL) << 4UL;
      } else {
        copy11 = *((unsigned short *)(&state[local1]) + 1);
        *((unsigned short *)(&state[local1]) + 1) = *((unsigned short *)(&state[local1]) + 0);
        *((unsigned short *)(&state[local1]) + 0) = copy11;
        copy11 = *((unsigned short *)(&state[local1]) + 0);
        *((unsigned short *)(&state[local1]) + 0) = *((unsigned short *)(&state[local1]) + 2);
        *((unsigned short *)(&state[local1]) + 2) = copy11;
      }
      if (state[0UL] == local1) {
        state[0UL] = (state[0UL] << (((state[0UL] >> 3UL) & 15UL) | 1UL)) | (state[0UL] >> (64 - (((state[0UL] >> 3UL) & 15UL) | 1UL)));
      } else {
        state[local1] = (state[0UL] << ((state[local1] & 15UL) | 1UL)) | (state[0UL] >> (64 - ((state[local1] & 15UL) | 1UL)));
      }
      local1++;
    }
    output[0UL] = (state[0UL] << 5UL) | (state[0UL] >> 59UL);
  }
}
```