#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 CreateBitBlt(FILE *Out, unsigned Bpp) {
  ;
  Output(Out, "\n");
  Output(Out, "BOOLEAN\n");
  Output(Out, "DIB_%uBPP_BitBlt(PBLTINFO BltInfo)\n", Bpp);
  Output(Out, "{\n");
  Output(Out, "PrimitivesTable[BltInfo->Rop4 & 0xff](BltInfo);\n");
  Output(Out, "\n");
  Output(Out, "return TRUE;\n");
  Output(Out, "}\n");
}


x86 assembly (clang, -O0):
<CreateBitBlt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xf01(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xeb8(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xeca(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xebb(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xea4(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec8(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
mov    -0x8(%rbp),%rdi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1030 <Output@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CreateBitBlt>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xf0b(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xecf(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xeca(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Output@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xedd(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <Output@plt>
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Output@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [9 x i8] c"BOOLEAN\0A\00"
@.str.2 = [36 x i8] c"DIB_%uBPP_BitBlt(PBLTINFO BltInfo)\0A\00"
@.str.3 = [3 x i8] c"{\0A\00"
@.str.4 = [49 x i8] c"PrimitivesTable[BltInfo->Rop4 & 0xff](BltInfo);\0A\00"
@.str.5 = [14 x i8] c"return TRUE;\0A\00"
@.str.6 = [3 x i8] c"}\0A\00"
define void @CreateBitBlt(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32*, i32** %3
%6 = call i32 (i32*, i8*, ...) @Output(i32* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = load i32*, i32** %3
%8 = call i32 (i32*, i8*, ...) @Output(i32* %7, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32*, i32** %3
%10 = load i32, i32* %4
%11 = call i32 (i32*, i8*, ...) @Output(i32* %9, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32*, i32** %3
%13 = call i32 (i32*, i8*, ...) @Output(i32* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32*, i32** %3
%15 = call i32 (i32*, i8*, ...) @Output(i32* %14, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32*, i32** %3
%17 = call i32 (i32*, i8*, ...) @Output(i32* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = load i32*, i32** %3
%19 = call i32 (i32*, i8*, ...) @Output(i32* %18, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32*, i32** %3
%21 = call i32 (i32*, i8*, ...) @Output(i32* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [9 x i8] c"BOOLEAN\0A\00"
@.str.2 = [36 x i8] c"DIB_%uBPP_BitBlt(PBLTINFO BltInfo)\0A\00"
@.str.3 = [3 x i8] c"{\0A\00"
@.str.4 = [49 x i8] c"PrimitivesTable[BltInfo->Rop4 & 0xff](BltInfo);\0A\00"
@.str.5 = [14 x i8] c"return TRUE;\0A\00"
@.str.6 = [3 x i8] c"}\0A\00"
define void @CreateBitBlt(i32* %0, i32 %1) {
%3 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %1)
%6 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 (i32*, i8*, ...) @Output(i32* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
ret void
}