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)22;
    local1 = 0UL;
    while (local1 < (unsigned char)0) {
      local2 = 0UL;
      while (local2 < (unsigned char)0) {
        state[local2] = state[0UL] + state[local2];
        local2++;
      }
      local1++;
    }
    output[0UL] = state[0UL] + (unsigned char)231;
  }
}


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
imul   $0x16,%rax,%rax
mov    %al,-0x11(%rbp)
movb   $0x0,-0x13(%rbp)
movzbl -0x13(%rbp),%eax
cmp    $0x0,%eax
jge    1175 <RandomFunc+0x75>
movb   $0x0,-0x12(%rbp)
movzbl -0x12(%rbp),%eax
cmp    $0x0,%eax
jge    1168 <RandomFunc+0x68>
movzbl -0x11(%rbp),%eax
movzbl -0x12(%rbp),%ecx
movzbl -0x11(%rbp,%rcx,1),%ecx
add    %ecx,%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    1135 <RandomFunc+0x35>
mov    -0x13(%rbp),%al
add    $0x1,%al
mov    %al,-0x13(%rbp)
jmp    1124 <RandomFunc+0x24>
movzbl -0x11(%rbp),%eax
add    $0xe7,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<RandomFunc>:
movzbl (%rdi),%eax
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,4),%ecx
add    %eax,%ecx
add    $0x3,%cl
mov    %cl,(%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 = mul i64 %12, 22
%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 = %41, %2
%17 = load i8, i8* %7
%18 = zext i8 %17 to i32
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %44
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 %41
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 = load i8, i8* %6
%30 = zext i8 %29 to i64
%31 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = add nsw i32 %28, %33
%35 = trunc i32 %34 to i8
%36 = load i8, i8* %6
%37 = zext i8 %36 to i64
%38 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 %37
store i8 %35, i8* %38
%39 = load i8, i8* %6
%40 = add i8 %39, 1
store i8 %40, i8* %6
br label %21
41: ; preds = %21
%42 = load i8, i8* %7
%43 = add i8 %42, 1
store i8 %43, i8* %7
br label %16
44: ; preds = %16
%45 = getelementptr inbounds [1 x i8], [1 x i8]* %5, i64 0, i64 0
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = add nsw i32 %47, 231
%49 = trunc i32 %48 to i8
%50 = load i8*, i8** %4
%51 = getelementptr inbounds i8, i8* %50, i64 0
store i8 %49, i8* %51
ret void
}

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