user: Translate the below assembly code into C programming language:

```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    $0x3f60a4d,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L43
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L8
  mov    -0x10(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  je     L12
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L51
L12:
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rdx),%edx
  mov    %edx,(%rax)
  lea    -0x10(%rbp),%rax
  mov    -0x14(%rbp),%edx
  mov    %edx,(%rax)
  lea    -0x10(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  lea    -0x10(%rbp),%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    -0x14(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L51
L8:
  mov    -0x10(%rbp),%rax
  and    $0x4,%eax
  test   %rax,%rax
  je     L21
  lea    -0x10(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  lea    -0x10(%rbp),%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  lea    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L51
L21:
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x19(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x7,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl -0x19(%rbp),%edx
  mov    %dl,(%rax)
  jmp    L51
L43:
  mov    -0x10(%rbp),%rax
  add    %rax,%rax
  mov    %rax,-0x10(%rbp)
L51:
  mov    -0x10(%rbp),%rax
  lea    0x25cb9705(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L83
  call   <__stack_chk_fail@plt>
L83:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned int copy11;
  unsigned int copy12;
  char copy13;
  {
    state[0UL] = (input[0UL] + 914778474UL) - 981234615UL;
    if (state[0UL] & 1UL) {
      if (state[0UL] & 1UL) {
        if (state[0UL] & 1UL) {
          state[0UL] += state[0UL];
        } else {
          copy11 = *((unsigned int *)(&state[0UL]) + 1);
          *((unsigned int *)(&state[0UL]) + 1) = *((unsigned int *)(&state[0UL]) + 0);
          *((unsigned int *)(&state[0UL]) + 0) = copy11;
          copy11 = *((unsigned int *)(&state[0UL]) + 0);
          *((unsigned int *)(&state[0UL]) + 0) = *((unsigned int *)(&state[0UL]) + 1);
          *((unsigned int *)(&state[0UL]) + 1) = copy11;
        }
      } else if ((state[0UL] >> 2UL) & 1UL) {
        copy12 = *((unsigned int *)(&state[0UL]) + 0);
        *((unsigned int *)(&state[0UL]) + 0) = *((unsigned int *)(&state[0UL]) + 1);
        *((unsigned int *)(&state[0UL]) + 1) = copy12;
      } else {
        copy13 = *((char *)(&state[0UL]) + 2);
        *((char *)(&state[0UL]) + 2) = *((char *)(&state[0UL]) + 7);
        *((char *)(&state[0UL]) + 7) = copy13;
      }
    } else {
      state[0UL] += state[0UL];
    }
    output[0UL] = state[0UL] + 634099461UL;
  }
}
```