void RandomFunc(unsigned long input[1], unsigned long output[1]) {
  unsigned long state[1];
  unsigned long local1;
  char copy12;
  {
    state[0UL] = (input[0UL] - 51238316UL) - 339126204UL;
    local1 = 0UL;
    while (local1 < 0UL) {
      copy12 = *((char *)(&state[0UL]) + 0);
      *((char *)(&state[0UL]) + 0) = *((char *)(&state[0UL]) + 5);
      *((char *)(&state[0UL]) + 5) = copy12;
      local1++;
    }
    output[0UL] = (state[0UL] | 985731240UL) * 947879471UL;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
sub    $0x30dd5ac,%rax
sub    $0x1436a7bc,%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jae    1159 <RandomFunc+0x59>
mov    -0x18(%rbp),%al
mov    %al,-0x21(%rbp)
mov    -0x13(%rbp),%al
mov    %al,-0x18(%rbp)
mov    -0x21(%rbp),%al
mov    %al,-0x13(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    112b <RandomFunc+0x2b>
mov    -0x18(%rbp),%rax
or     $0x3ac110a8,%rax
imul   $0x387f7e2f,%rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
mov    $0xffffffffe8bb8298,%rax
add    (%rdi),%rax
or     $0x3ac110a8,%rax
imul   $0x387f7e2f,%rax,%rax
mov    %rax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
%5 = alloca [1 x i64]
%6 = alloca i64
%7 = alloca i8
store i64* %0, i64** %3
store i64* %1, i64** %4
%8 = load i64*, i64** %3
%9 = getelementptr inbounds i64, i64* %8, i64 0
%10 = load i64, i64* %9
%11 = sub i64 %10, 51238316
%12 = sub i64 %11, 339126204
%13 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
store i64 %12, i64* %13
store i64 0, i64* %6
br label %14
14: ; preds = %17, %2
%15 = load i64, i64* %6
%16 = icmp ult i64 %15, 0
br i1 %16, label %17, label %35
17: ; preds = %14
%18 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
%19 = bitcast i64* %18 to i8*
%20 = getelementptr inbounds i8, i8* %19, i64 0
%21 = load i8, i8* %20
store i8 %21, i8* %7
%22 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
%23 = bitcast i64* %22 to i8*
%24 = getelementptr inbounds i8, i8* %23, i64 5
%25 = load i8, i8* %24
%26 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
%27 = bitcast i64* %26 to i8*
%28 = getelementptr inbounds i8, i8* %27, i64 0
store i8 %25, i8* %28
%29 = load i8, i8* %7
%30 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
%31 = bitcast i64* %30 to i8*
%32 = getelementptr inbounds i8, i8* %31, i64 5
store i8 %29, i8* %32
%33 = load i64, i64* %6
%34 = add i64 %33, 1
store i64 %34, i64* %6
br label %14
35: ; preds = %14
%36 = getelementptr inbounds [1 x i64], [1 x i64]* %5, i64 0, i64 0
%37 = load i64, i64* %36
%38 = or i64 %37, 985731240
%39 = mul i64 %38, 947879471
%40 = load i64*, i64** %4
%41 = getelementptr inbounds i64, i64* %40, i64 0
store i64 %39, i64* %41
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i64* nocapture %0, i64* nocapture writeonly %1) {
%3 = load i64, i64* %0
%4 = add i64 %3, -390364520
%5 = or i64 %4, 985731240
%6 = mul i64 %5, 947879471
store i64 %6, i64* %1
ret void
}