void RandomFunc(unsigned int input[1], unsigned int output[1]) {
  unsigned int state[1];
  unsigned int local1;
  unsigned short copy11;
  {
    state[0UL] = (input[0UL] + 914778474UL) * 2674260758U;
    local1 = 0UL;
    while (local1 < 0U) {
      copy11 = *((unsigned short *)(&state[local1]) + 1);
      *((unsigned short *)(&state[local1]) + 1) =
          *((unsigned short *)(&state[local1]) + 0);
      *((unsigned short *)(&state[local1]) + 0) = copy11;
      local1++;
    }
    output[0UL] = state[0UL] * 1047729131UL + 3703211622U;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
add    $0x3686696a,%rax
movabs $0x9f65fb16,%rcx
imul   %rcx,%rax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jae    1170 <RandomFunc+0x70>
mov    -0x18(%rbp),%eax
mov    -0x12(%rbp,%rax,4),%ax
mov    %ax,-0x1a(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp,%rax,4),%cx
mov    -0x18(%rbp),%eax
mov    %cx,-0x12(%rbp,%rax,4)
mov    -0x1a(%rbp),%cx
mov    -0x18(%rbp),%eax
mov    %cx,-0x14(%rbp,%rax,4)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1130 <RandomFunc+0x30>
mov    -0x14(%rbp),%eax
imul   $0x3e7313eb,%rax,%rax
movabs $0xdcba8666,%rcx
add    %rcx,%rax
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
imul   $0x3221f32,(%rdi),%eax
add    $0x7d2f31a,%eax
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
define void @RandomFunc(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca [1 x i32]
%6 = alloca i32
%7 = alloca i16
store i32* %0, i32** %3
store i32* %1, i32** %4
%8 = load i32*, i32** %3
%9 = getelementptr inbounds i32, i32* %8, i64 0
%10 = load i32, i32* %9
%11 = zext i32 %10 to i64
%12 = add i64 %11, 914778474
%13 = mul i64 %12, 2674260758
%14 = trunc i64 %13 to i32
%15 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
store i32 %14, i32* %15
store i32 0, i32* %6
br label %16
16: ; preds = %19, %2
%17 = load i32, i32* %6
%18 = icmp ult i32 %17, 0
br i1 %18, label %19, label %45
19: ; preds = %16
%20 = load i32, i32* %6
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 %21
%23 = bitcast i32* %22 to i16*
%24 = getelementptr inbounds i16, i16* %23, i64 1
%25 = load i16, i16* %24
store i16 %25, i16* %7
%26 = load i32, i32* %6
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 %27
%29 = bitcast i32* %28 to i16*
%30 = getelementptr inbounds i16, i16* %29, i64 0
%31 = load i16, i16* %30
%32 = load i32, i32* %6
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 %33
%35 = bitcast i32* %34 to i16*
%36 = getelementptr inbounds i16, i16* %35, i64 1
store i16 %31, i16* %36
%37 = load i16, i16* %7
%38 = load i32, i32* %6
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 %39
%41 = bitcast i32* %40 to i16*
%42 = getelementptr inbounds i16, i16* %41, i64 0
store i16 %37, i16* %42
%43 = load i32, i32* %6
%44 = add i32 %43, 1
store i32 %44, i32* %6
br label %16
45: ; preds = %16
%46 = getelementptr inbounds [1 x i32], [1 x i32]* %5, i64 0, i64 0
%47 = load i32, i32* %46
%48 = zext i32 %47 to i64
%49 = mul i64 %48, 1047729131
%50 = add i64 %49, 3703211622
%51 = trunc i64 %50 to i32
%52 = load i32*, i32** %4
%53 = getelementptr inbounds i32, i32* %52, i64 0
store i32 %51, i32* %53
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
%4 = mul i32 %3, 52567858
%5 = add i32 %4, 131265306
store i32 %5, i32* %1
ret void
}