void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local1;
  {
    state[0UL] = (input[0UL] & 914778474UL) << (unsigned char)7;
    local1 = 0UL;
    while (local1 < 1UL) {
      state[0UL] &= state[local1];
      state[local1] =
          state[0UL] >>
          (((state[0UL] >> (unsigned char)3) & (unsigned char)7) | 1UL);
      local1++;
    }
    output[0UL] = (state[0UL] | 447621010UL) | (unsigned char)130;
  }
}


x86 assembly (clang, -O0):
<RandomFunc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
and    $0x3686696a,%rax
shl    $0x7,%rax
mov    %al,-0x11(%rbp)
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x1,%rax
jae    1172 <RandomFunc+0x72>
movzbl -0x12(%rbp),%eax
movzbl -0x11(%rbp,%rax,1),%ecx
movzbl -0x11(%rbp),%eax
and    %ecx,%eax
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
movzbl -0x11(%rbp),%ecx
sar    $0x3,%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
or     $0x1,%rcx
sar    %cl,%eax
mov    %al,%cl
movzbl -0x12(%rbp),%eax
mov    %cl,-0x11(%rbp,%rax,1)
mov    -0x12(%rbp),%al
add    $0x1,%al
mov    %al,-0x12(%rbp)
jmp    1124 <RandomFunc+0x24>
movzbl -0x11(%rbp),%eax
or     $0x1aae2792,%rax
or     $0x82,%rax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movb   $0x92,(%rsi)
ret

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

LLVM IR (-O2):
define void @RandomFunc(i8* nocapture readnone %0, i8* nocapture writeonly %1) {
store i8 -110, i8* %1
ret void
}