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
  movabs $0xef34ca9f65fb16,%rdx
  imul   %rdx,%rax
  movabs $0xdf61e99ee5b9fd1c,%rdx
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  movq   $0x0,-0x18(%rbp)
  jmp    L33
L49:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jbe    L43
  lea    -0x10(%rbp),%rax
  movzwl (%rax),%eax
  mov    %ax,-0x1c(%rbp)
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  lea    -0x10(%rbp),%rdx
  movzwl (%rax),%eax
  mov    %ax,(%rdx)
  lea    -0x10(%rbp),%rax
  add    $0x6,%rax
  movzwl -0x1c(%rbp),%edx
  mov    %dx,(%rax)
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  add    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L3
L43:
  mov    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rcx
  mov    %rdx,%rax
  sub    %rcx,%rax
  mov    %rax,-0x10(%rbp)
L3:
  mov    -0x10(%rbp),%rax
  cmp    %rax,-0x18(%rbp)
  jae    L30
  lea    -0x10(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1d(%rbp)
  lea    -0x10(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  movzbl -0x1d(%rbp),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1d(%rbp)
  lea    -0x10(%rbp),%rdx
  add    $0x1,%rdx
  lea    -0x10(%rbp),%rax
  add    $0x7,%rax
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  lea    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl -0x1d(%rbp),%edx
  mov    %dl,(%rax)
  mov    -0x18(%rbp),%rax
  mov    -0x10(%rbp,%rax,8),%rax
  mov    -0x10(%rbp),%rcx
  sub    %rcx,%rax
  mov    %rax,%rdx
  mov    -0x18(%rbp),%rax
  mov    %rdx,-0x10(%rbp,%rax,8)
  jmp    L54
L30:
  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)
  lea    -0x10(%rbp),%rdx
  mov    -0x18(%rbp),%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %al,-0x1e(%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 -0x1e(%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,-0x1e(%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 -0x1e(%rbp),%eax
  mov    %al,(%rdx)
L54:
  addq   $0x1,-0x18(%rbp)
L33:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jb     L49
  mov    -0x10(%rbp),%rax
  mov    $0xa392912d,%edx
  add    %rax,%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L67
  call   <__stack_chk_fail@plt>
L67:
  leave
  ret
```

assistant: ```c
void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  unsigned short copy11;
  char copy13;
  unsigned short copy14;
  char copy15;
  {
    state[0UL] = (input[0UL] + 914778474UL) * 67330564296145686UL;
    local1 = 0UL;
    while (local1 < input[1UL]) {
      if (state[0UL] < local1) {
        copy11 = *((unsigned short *)(&state[0UL]) + 0);
        *((unsigned short *)(&state[0UL]) + 0) = *((unsigned short *)(&state[0UL]) + 3);
        *((unsigned short *)(&state[0UL]) + 3) = copy11;
        state[local1] = state[0UL] + state[local1];
      } else {
        state[0UL] -= state[local1];
      }
      if (state[0UL] > local1) {
        copy13 = *((char *)(&state[0UL]) + 3);
        *((char *)(&state[0UL]) + 3) = *((char *)(&state[0UL]) + 0);
        *((char *)(&state[0UL]) + 0) = copy13;
        copy13 = *((char *)(&state[0UL]) + 7);
        *((char *)(&state[0UL]) + 7) = *((char *)(&state[0UL]) + 1);
        *((char *)(&state[0UL]) + 1) = copy13;
        state[local1] -= state[0UL];
      } else {
        copy14 = *((unsigned short *)(&state[local1]) + 0);
        *((unsigned short *)(&state[local1]) + 0) = *((unsigned short *)(&state[local1]) + 3);
        *((unsigned short *)(&state[local1]) + 3) = copy14;
        copy15 = *((char *)(&state[local1]) + 2);
        *((char *)(&state[local1]) + 2) = *((char *)(&state[local1]) + 5);
        *((char *)(&state[local1]) + 5) = copy15;
        copy15 = *((char *)(&state[local1]) + 3);
        *((char *)(&state[local1]) + 3) = *((char *)(&state[local1]) + 2);
        *((char *)(&state[local1]) + 2) = copy15;
      }
      local1++;
    }
    output[0UL] = (state[0UL] + 307931096UL) + 2436360533UL;
  }
}
```