#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ Output(int /*<<< orphan*/ *, char *);
void CreateShiftTables(FILE *Out) {
  Output(Out, "\n");
  Output(Out, "static unsigned Shift1Bpp[] =\n");
  Output(Out, "{\n");
  Output(Out, "0,\n");
  Output(Out,
         "24, 25, 26, 27, 28, 29, 30, 31, 16, 17, 18, 19, 20, 21, 22, 23,\n");
  Output(Out, "8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7\n");
  Output(Out, "};\n");
  Output(Out, "static unsigned Shift4Bpp[] =\n");
  Output(Out, "{\n");
  Output(Out, "0,\n");
  Output(Out, "24, 28, 16, 20, 8, 12, 0, 4\n");
  Output(Out, "};\n");
  Output(Out, "static unsigned Shift8Bpp[] =\n");
  Output(Out, "{\n");
  Output(Out, "0,\n");
  Output(Out, "24, 16, 8, 0\n");
  Output(Out, "};\n");
  Output(Out, "static unsigned Shift16Bpp[] =\n");
  Output(Out, "{\n");
  Output(Out, "0,\n");
  Output(Out, "16, 0\n");
  Output(Out, "};\n");
}


x86 assembly (clang, -O0):
<CreateShiftTables>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xefd(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xed8(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xecb(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xebf(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xef0(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xf16(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xf0a(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe78(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe6b(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xef9(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec6(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xef6(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe28(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe1b(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xee5(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe76(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xed3(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xdcb(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xe26(%rip),%rsi
call   1030 <Output@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateShiftTables>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xf02(%rip),%rsi
call   1030 <Output@plt>
lea    0xed2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
lea    0xee2(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <Output@plt>
lea    0xed3(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <Output@plt>
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
lea    0xef7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
lea    0xf1e(%rip),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <Output@plt>
lea    0xf10(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <Output@plt>
lea    0xf0a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <Output@plt>
lea    0xf0d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <Output@plt>
lea    0xf07(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <Output@plt>
lea    0xefb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <Output@plt>
lea    0xef6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <Output@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [31 x i8] c"static unsigned Shift1Bpp[] =\0A\00"
@.str.2 = [3 x i8] c"{\0A\00"
@.str.3 = [4 x i8] c"0,\0A\00"
@.str.4 = [65 x i8] c"24, 25, 26, 27, 28, 29, 30, 31, 16, 17, 18, 19, 20, 21, 22, 23,\0A\00"
@.str.5 = [54 x i8] c"8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7\0A\00"
@.str.6 = [4 x i8] c"};\0A\00"
@.str.7 = [31 x i8] c"static unsigned Shift4Bpp[] =\0A\00"
@.str.8 = [29 x i8] c"24, 28, 16, 20, 8, 12, 0, 4\0A\00"
@.str.9 = [31 x i8] c"static unsigned Shift8Bpp[] =\0A\00"
@.str.10 = [14 x i8] c"24, 16, 8, 0\0A\00"
@.str.11 = [32 x i8] c"static unsigned Shift16Bpp[] =\0A\00"
@.str.12 = [7 x i8] c"16, 0\0A\00"
define void @CreateShiftTables(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @Output(i32* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @Output(i32* %5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @Output(i32* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32*, i32** %2
%10 = call i32 @Output(i32* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32*, i32** %2
%12 = call i32 @Output(i32* %11, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32*, i32** %2
%14 = call i32 @Output(i32* %13, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32*, i32** %2
%16 = call i32 @Output(i32* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32*, i32** %2
%18 = call i32 @Output(i32* %17, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32*, i32** %2
%20 = call i32 @Output(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%21 = load i32*, i32** %2
%22 = call i32 @Output(i32* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32*, i32** %2
%24 = call i32 @Output(i32* %23, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%25 = load i32*, i32** %2
%26 = call i32 @Output(i32* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%27 = load i32*, i32** %2
%28 = call i32 @Output(i32* %27, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%29 = load i32*, i32** %2
%30 = call i32 @Output(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%31 = load i32*, i32** %2
%32 = call i32 @Output(i32* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%33 = load i32*, i32** %2
%34 = call i32 @Output(i32* %33, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%35 = load i32*, i32** %2
%36 = call i32 @Output(i32* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%37 = load i32*, i32** %2
%38 = call i32 @Output(i32* %37, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%39 = load i32*, i32** %2
%40 = call i32 @Output(i32* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%41 = load i32*, i32** %2
%42 = call i32 @Output(i32* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32*, i32** %2
%44 = call i32 @Output(i32* %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%45 = load i32*, i32** %2
%46 = call i32 @Output(i32* %45, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [31 x i8] c"static unsigned Shift1Bpp[] =\0A\00"
@.str.2 = [3 x i8] c"{\0A\00"
@.str.3 = [4 x i8] c"0,\0A\00"
@.str.4 = [65 x i8] c"24, 25, 26, 27, 28, 29, 30, 31, 16, 17, 18, 19, 20, 21, 22, 23,\0A\00"
@.str.5 = [54 x i8] c"8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7\0A\00"
@.str.6 = [4 x i8] c"};\0A\00"
@.str.7 = [31 x i8] c"static unsigned Shift4Bpp[] =\0A\00"
@.str.8 = [29 x i8] c"24, 28, 16, 20, 8, 12, 0, 4\0A\00"
@.str.9 = [31 x i8] c"static unsigned Shift8Bpp[] =\0A\00"
@.str.10 = [14 x i8] c"24, 16, 8, 0\0A\00"
@.str.11 = [32 x i8] c"static unsigned Shift16Bpp[] =\0A\00"
@.str.12 = [7 x i8] c"16, 0\0A\00"
define void @CreateShiftTables(i32* %0) {
%2 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0))
%13 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%14 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0))
%15 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%17 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
%18 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%19 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%20 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%21 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%22 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%23 = tail call i32 @Output(i32* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
ret void
}