void RandomFunc(unsigned char input[1], unsigned char output[1]) {
  unsigned char state[1];
  unsigned char local2;
  unsigned char local1;
  {
    state[0UL] = (input[0UL] + 914778474UL) ^ (unsigned char)11;
    local1 = 0UL;
    while (local1 < (unsigned char)0) {
      local2 = 0UL;
      while (local2 < (unsigned char)0) {
        state[local2] |= (state[0UL] & (unsigned char)63) << 4UL;
        local2 += 2UL;
      }
      local1++;
    }
    output[0UL] =
        (state[0UL] << (unsigned char)5) | (state[0UL] >> (unsigned char)3);
  }
}


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
add    $0x3686696a,%rax
xor    $0xb,%rax
mov    %al,-0x11(%rbp)
movb   $0x0,-0x13(%rbp)
movzbl -0x13(%rbp),%eax
cmp    $0x0,%eax
jge    1178 <RandomFunc+0x78>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    116b <RandomFunc+0x6b>
movzbl -0x11(%rbp),%edx
and    $0x3f,%edx
shl    $0x4,%edx
movzbl -0x12(%rbp),%eax
movzbl -0x11(%rbp,%rax,1),%ecx
or     %edx,%ecx
mov    %cl,-0x11(%rbp,%rax,1)
movzbl -0x12(%rbp),%eax
add    $0x2,%rax
mov    %al,-0x12(%rbp)
jmp    1135 <RandomFunc+0x35>
mov    -0x13(%rbp),%al
add    $0x1,%al
mov    %al,-0x13(%rbp)
jmp    1124 <RandomFunc+0x24>
movzbl -0x11(%rbp),%eax
shl    $0x5,%eax
movzbl -0x11(%rbp),%ecx
sar    $0x3,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
mov    (%rdi),%al
add    $0x6a,%al
xor    $0xb,%al
rol    $0x5,%al
mov    %al,(%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
%7 = alloca i8
store i8* %0, i8** %3
store i8* %1, i8** %4
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = zext i8 %10 to i64
%12 = add i64 %11, 914778474
%13 = xor i64 %12, 11
%14 = trunc i64 %13 to i8
%15 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
store i8 %14, i8* %15
store i8 0, i8* %7
br label %16
16: ; preds = %42, %2
%17 = load i8, i8* %7
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %45
20: ; preds = %16
store i8 0, i8* %6
br label %21
21: ; preds = %25, %20
%22 = load i8, i8* %6
%23 = zext i8 %22 to i32
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %42
25: ; preds = %21
%26 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%27 = load i8, i8* %26
%28 = zext i8 %27 to i32
%29 = and i32 %28, 63
%30 = shl i32 %29, 4
%31 = load i8, i8* %6
%32 = zext i8 %31 to i64
%33 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = or i32 %35, %30
%37 = trunc i32 %36 to i8
store i8 %37, i8* %33
%38 = load i8, i8* %6
%39 = zext i8 %38 to i64
%40 = add i64 %39, 2
%41 = trunc i64 %40 to i8
store i8 %41, i8* %6
br label %21
42: ; preds = %21
%43 = load i8, i8* %7
%44 = add i8 %43, 1
store i8 %44, i8* %7
br label %16
45: ; preds = %16
%46 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
%49 = shl i32 %48, 5
%50 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%51 = load i8, i8* %50
%52 = zext i8 %51 to i32
%53 = ashr i32 %52, 3
%54 = or i32 %49, %53
%55 = trunc i32 %54 to i8
%56 = load i8*, i8** %4
%57 = getelementptr inbounds i8, i8* %56, i64 0
store i8 %55, i8* %57
ret void
}

LLVM IR (-O2):
define void @RandomFunc(i8* nocapture %0, i8* nocapture writeonly %1) {
%3 = load i8, i8* %0
%4 = add i8 %3, 106
%5 = xor i8 %4, 11
%6 = tail call i8 @llvm.fshl.i8(i8 %5, i8 %5, i8 5)
store i8 %6, i8* %1
ret void
}