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
  shr    $0x3,%rax
  or     $0x61bab5,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L42
L17:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jae    L12
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %al,-0x19(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x7,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x4,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x7(%rax),%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  mov    %al,-0x19(%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    $0x7,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rax,%rdx
  movzbl -0x19(%rbp),%eax
  mov    %al,(%rdx)
  jmp    L3
L12:
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1a(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x5,%rax
  lea    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  shl    $0x3,%rdx
  add    %rcx,%rdx
  add    $0x2,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  lea    0x5(%rax),%rdx
  movzbl -0x1a(%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,-0x1a(%rbp)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x7,%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    0x7(%rax),%rdx
  movzbl -0x1a(%rbp),%eax
  mov    %al,(%rdx)
L3:
  addq   $0x2,-0x18(%rbp)
L42:
  cmpq   $0x0,-0x18(%rbp)
  je     L17
  mov    -0x10(%rbp),%rax
  and    $0x2406009,%eax
  or     $0x509894e4,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L41
  call   <__stack_chk_fail@plt>
L41:
  leave
  ret
```

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