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),%eax
  sub    $0x17447d68,%eax
  mov    %eax,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L40
L30:
  movl   $0x0,-0x14(%rbp)
  jmp    L50
L0:
  mov    -0xc(%rbp),%edx
  mov    -0x14(%rbp),%eax
  imul   -0x10(%rbp),%eax
  cmp    %eax,%edx
  jne    L5
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x15(%rbp)
  lea    -0xc(%rbp),%rdx
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  movzbl -0x15(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L53
L5:
  mov    -0x14(%rbp),%eax
  mov    -0xc(%rbp,%rax,4),%edx
  mov    -0x10(%rbp),%eax
  mov    -0xc(%rbp,%rax,4),%ecx
  mov    -0x14(%rbp),%eax
  mov    -0xc(%rbp,%rax,4),%eax
  add    %ecx,%eax
  shl    $0x3,%eax
  movzbl %al,%eax
  or     %eax,%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,-0xc(%rbp,%rax,4)
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x16(%rbp)
  lea    -0xc(%rbp),%rdx
  add    $0x1,%rdx
  lea    -0xc(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl -0x16(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %al,-0x16(%rbp)
  lea    -0xc(%rbp),%rdx
  lea    -0xc(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0xc(%rbp),%rax
  movzbl -0x16(%rbp),%edx
  mov    %dl,(%rax)
L53:
  addl   $0x2,-0x14(%rbp)
L50:
  cmpl   $0x0,-0x14(%rbp)
  je     L0
  addl   $0x1,-0x10(%rbp)
L40:
  cmpl   $0x0,-0x10(%rbp)
  je     L30
  mov    -0xc(%rbp),%eax
  lea    0x5dc2c1a0(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%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 int input[1], unsigned int output[1]) {
  unsigned int state[1];
  unsigned int local2;
  unsigned int local1;
  char copy11;
  char copy12;
  {
    state[0UL] = (input[0UL] - 51238316UL) - 339126204U;
    local1 = 0UL;
    while (local1 < 1UL) {
      local2 = 0UL;
      while (local2 < 1UL) {
        if (state[0UL] == local2 * local1) {
          copy11 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy11;
          state[0UL] += state[0UL];
        } else {
          state[local2] |= ((state[local1] + state[local2]) & 31U) << 3UL;
          copy12 = *((char *)(&state[0UL]) + 2);
          *((char *)(&state[0UL]) + 2) = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = copy12;
          copy12 = *((char *)(&state[0UL]) + 1);
          *((char *)(&state[0UL]) + 1) = *((char *)(&state[0UL]) + 0);
          *((char *)(&state[0UL]) + 0) = copy12;
        }
        local2 += 2UL;
      }
      local1++;
    }
    output[0UL] = state[0UL] - 2721922656U;
  }
}
```