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
  add    $0x136ff696,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L29
L36:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jbe    L5
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1c(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x3,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x5,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x3(%rax),%rdx
  movzbl -0x1c(%rbp),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1c(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x2,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x3,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x2(%rax),%rdx
  movzbl -0x1c(%rbp),%eax
  mov    %al,(%rdx)
  jmp    L48
L5:
  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    $0x6,%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    0x6(%rax),%rdx
  movzwl -0x1a(%rbp),%eax
  mov    %ax,(%rdx)
L48:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L15
  mov    -0x10(%rbp),%rax
  lea    (%rax,%rax,1),%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L1
L15:
  lea    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x1b(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  lea    -0x10(%rbp),%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  movzbl -0x1b(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1b(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x7,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x5,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl -0x1b(%rbp),%edx
  mov    %dl,(%rax)
L1:
  addq   $0x2,-0x18(%rbp)
L29:
  cmpq   $0x0,-0x18(%rbp)
  je     L36
  mov    -0x10(%rbp),%rax
  lea    0x32060f04(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  char copy11;
  unsigned short copy12;
  char copy13;
  {
    state[0UL] = (input[0UL] + 51238316UL) + 274866410UL;
    local1 = 0UL;
    while (local1 < 1UL) {
      if (state[0UL] < local1) {
        copy11 = *((char *)(&state[local1]) + 5);
        *((char *)(&state[local1]) + 5) = *((char *)(&state[local1]) + 3);
        *((char *)(&state[local1]) + 3) = copy11;
        copy11 = *((char *)(&state[local1]) + 3);
        *((char *)(&state[local1]) + 3) = *((char *)(&state[local1]) + 2);
        *((char *)(&state[local1]) + 2) = copy11;
      } else {
        copy12 = *((unsigned short *)(&state[local1]) + 0);
        *((unsigned short *)(&state[local1]) + 0) = *((unsigned short *)(&state[local1]) + 3);
        *((unsigned short *)(&state[local1]) + 3) = copy12;
      }
      if (state[0UL] <= local1) {
        state[local1] = state[0UL] + state[0UL];
      } else {
        copy13 = *((char *)(&state[0UL]) + 0);
        *((char *)(&state[0UL]) + 0) = *((char *)(&state[0UL]) + 4);
        *((char *)(&state[0UL]) + 4) = copy13;
        copy13 = *((char *)(&state[0UL]) + 5);
        *((char *)(&state[0UL]) + 5) = *((char *)(&state[0UL]) + 7);
        *((char *)(&state[0UL]) + 7) = copy13;
      }
      local1 += 2UL;
    }
    output[0UL] = state[0UL] + 839257860UL;
  }
}
```