#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 */

/* Variables and functions */
int /*<<< orphan*/ ScreenQuadVBO_Bind();
int /*<<< orphan*/ ScreenQuadVBO_Draw();
int /*<<< orphan*/ ScreenQuadVBO_Unbind();
void Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw(int bindVBO,
                                                        int drawQuad,
                                                        int unbindVBO) {
  if (bindVBO)
    ScreenQuadVBO_Bind();
  if (drawQuad)
    ScreenQuadVBO_Draw();
  if (unbindVBO)
    ScreenQuadVBO_Unbind();
}


x86 assembly (clang, -O0):
<Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1152 <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x22>
mov    $0x0,%al
call   1040 <ScreenQuadVBO_Bind@plt>
cmpl   $0x0,-0x8(%rbp)
je     1163 <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x33>
mov    $0x0,%al
call   1050 <ScreenQuadVBO_Draw@plt>
cmpl   $0x0,-0xc(%rbp)
je     1174 <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x44>
mov    $0x0,%al
call   1030 <ScreenQuadVBO_Unbind@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
test   %edi,%edi
je     1142 <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x12>
xor    %eax,%eax
call   1040 <ScreenQuadVBO_Bind@plt>
test   %ebp,%ebp
je     114d <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x1d>
xor    %eax,%eax
call   1050 <ScreenQuadVBO_Draw@plt>
test   %ebx,%ebx
je     115e <Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw+0x2e>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <ScreenQuadVBO_Unbind@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = call i32 (...) @ScreenQuadVBO_Bind()
br label %11
11: ; preds = %9, %3
%12 = load i32, i32* %5
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @ScreenQuadVBO_Draw()
br label %16
16: ; preds = %14, %11
%17 = load i32, i32* %6
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @ScreenQuadVBO_Unbind()
br label %21
21: ; preds = %19, %16
ret void
}

LLVM IR (-O2):
define void @Dynamic_Resolution_LowLevel_FullScreenQuadVBO_Draw(i32 %0, i32 %1, i32 %2) {
%4 = icmp eq i32 %0, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 (...) @ScreenQuadVBO_Bind()
br label %7
7: ; preds = %5, %3
%8 = icmp eq i32 %1, 0
br i1 %8, label %11, label %9
9: ; preds = %7
%10 = tail call i32 (...) @ScreenQuadVBO_Draw()
br label %11
11: ; preds = %9, %7
%12 = icmp eq i32 %2, 0
br i1 %12, label %15, label %13
13: ; preds = %11
%14 = tail call i32 (...) @ScreenQuadVBO_Unbind()
br label %15
15: ; preds = %13, %11
ret void
}