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 < (unsigned char)0) {
      state[0UL] &= state[local1];
      local1++;
    }
    local1 = 0UL;
    while (local1 < (unsigned char)0) {
      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    $0x0,%eax
jge    1150 <RandomFunc+0x50>
movzbl -0x12(%rbp),%eax
movzbl -0x11(%rbp,%rax,1),%ecx
movzbl -0x11(%rbp),%eax
and    %ecx,%eax
mov    %al,-0x11(%rbp)
mov    -0x12(%rbp),%al
add    $0x1,%al
mov    %al,-0x12(%rbp)
jmp    1124 <RandomFunc+0x24>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    118f <RandomFunc+0x8f>
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    1154 <RandomFunc+0x54>
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 i32
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %32
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 = load i8, i8* %6
%31 = add i8 %30, 1
store i8 %31, i8* %6
br label %15
32: ; preds = %15
store i8 0, i8* %6
br label %33
33: ; preds = %37, %32
%34 = load i8, i8* %6
%35 = zext i8 %34 to i32
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %56
37: ; preds = %33
%38 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%42 = load i8, i8* %41
%43 = zext i8 %42 to i32
%44 = ashr i32 %43, 3
%45 = and i32 %44, 7
%46 = sext i32 %45 to i64
%47 = or i64 %46, 1
%48 = trunc i64 %47 to i32
%49 = ashr i32 %40, %48
%50 = trunc i32 %49 to i8
%51 = load i8, i8* %6
%52 = zext i8 %51 to i64
%53 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %52
store i8 %50, i8* %53
%54 = load i8, i8* %6
%55 = add i8 %54, 1
store i8 %55, i8* %6
br label %33
56: ; preds = %33
%57 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%58 = load i8, i8* %57
%59 = zext i8 %58 to i64
%60 = or i64 %59, 447621010
%61 = or i64 %60, 130
%62 = trunc i64 %61 to i8
%63 = load i8*, i8** %4
%64 = getelementptr inbounds i8, i8* %63, i64 0
store i8 %62, i8* %64
ret void
}

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