#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*/ gleIntClear();
int /*<<< orphan*/ gleIntLoadCore_1_1_Base();
int /*<<< orphan*/ gleIntLoadCore_1_2_Base();
int /*<<< orphan*/ gleIntLoadCore_1_3_Base();
int /*<<< orphan*/ gleIntLoadCore_1_4_Base();
int /*<<< orphan*/ gleIntLoadCore_1_5_Base();
int /*<<< orphan*/ gleIntLoadCore_2_0_Base();
int /*<<< orphan*/ gleIntLoadCore_2_1_Base();
int gleIntLoad_Version_2_1() {
  int bIsLoaded = 1;
  gleIntClear();
  if (!gleIntLoadCore_1_1_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_1_2_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_1_3_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_1_4_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_1_5_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_2_0_Base())
    bIsLoaded = 0;
  if (!gleIntLoadCore_2_1_Base())
    bIsLoaded = 0;
  return bIsLoaded;
}


x86 assembly (clang, -O0):
<gleIntLoad_Version_2_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
mov    $0x0,%al
call   1030 <gleIntClear@plt>
mov    $0x0,%al
call   1040 <gleIntLoadCore_1_1_Base@plt>
cmp    $0x0,%eax
jne    11ad <gleIntLoad_Version_2_1+0x2d>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <gleIntLoadCore_1_2_Base@plt>
cmp    $0x0,%eax
jne    11c4 <gleIntLoad_Version_2_1+0x44>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <gleIntLoadCore_1_3_Base@plt>
cmp    $0x0,%eax
jne    11db <gleIntLoad_Version_2_1+0x5b>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <gleIntLoadCore_1_4_Base@plt>
cmp    $0x0,%eax
jne    11f2 <gleIntLoad_Version_2_1+0x72>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <gleIntLoadCore_1_5_Base@plt>
cmp    $0x0,%eax
jne    1209 <gleIntLoad_Version_2_1+0x89>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <gleIntLoadCore_2_0_Base@plt>
cmp    $0x0,%eax
jne    1220 <gleIntLoad_Version_2_1+0xa0>
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1090 <gleIntLoadCore_2_1_Base@plt>
cmp    $0x0,%eax
jne    1237 <gleIntLoad_Version_2_1+0xb7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gleIntLoad_Version_2_1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <gleIntClear@plt>
xor    %eax,%eax
call   1040 <gleIntLoadCore_1_1_Base@plt>
test   %eax,%eax
setne  %bpl
xor    %eax,%eax
call   1080 <gleIntLoadCore_1_2_Base@plt>
test   %eax,%eax
setne  %r14b
xor    %eax,%eax
call   1070 <gleIntLoadCore_1_3_Base@plt>
test   %eax,%eax
setne  %bl
xor    %eax,%eax
call   1060 <gleIntLoadCore_1_4_Base@plt>
test   %eax,%eax
setne  %r15b
xor    %eax,%eax
call   1050 <gleIntLoadCore_1_5_Base@plt>
test   %eax,%eax
setne  %r12b
xor    %eax,%eax
call   10a0 <gleIntLoadCore_2_0_Base@plt>
test   %eax,%eax
setne  %r13b
xor    %eax,%eax
call   1090 <gleIntLoadCore_2_1_Base@plt>
test   %eax,%eax
setne  %al
and    %r13b,%al
and    %r15b,%r12b
and    %al,%r12b
and    %r14b,%bl
and    %bpl,%bl
and    %r12b,%bl
movzbl %bl,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @gleIntLoad_Version_2_1() {
%1 = alloca i32
store i32 1, i32* %1
%2 = call i32 (...) @gleIntClear()
%3 = call i32 (...) @gleIntLoadCore_1_1_Base()
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %0
store i32 0, i32* %1
br label %6
6: ; preds = %5, %0
%7 = call i32 (...) @gleIntLoadCore_1_2_Base()
%8 = icmp ne i32 %7, 0
br i1 %8, label %10, label %9
9: ; preds = %6
store i32 0, i32* %1
br label %10
10: ; preds = %9, %6
%11 = call i32 (...) @gleIntLoadCore_1_3_Base()
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %10
store i32 0, i32* %1
br label %14
14: ; preds = %13, %10
%15 = call i32 (...) @gleIntLoadCore_1_4_Base()
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %14
store i32 0, i32* %1
br label %18
18: ; preds = %17, %14
%19 = call i32 (...) @gleIntLoadCore_1_5_Base()
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %18
store i32 0, i32* %1
br label %22
22: ; preds = %21, %18
%23 = call i32 (...) @gleIntLoadCore_2_0_Base()
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %22
store i32 0, i32* %1
br label %26
26: ; preds = %25, %22
%27 = call i32 (...) @gleIntLoadCore_2_1_Base()
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %26
store i32 0, i32* %1
br label %30
30: ; preds = %29, %26
%31 = load i32, i32* %1
ret i32 %31
}

LLVM IR (-O2):
define i32 @gleIntLoad_Version_2_1() {
%1 = tail call i32 (...) @gleIntClear()
%2 = tail call i32 (...) @gleIntLoadCore_1_1_Base()
%3 = icmp ne i32 %2, 0
%4 = tail call i32 (...) @gleIntLoadCore_1_2_Base()
%5 = icmp ne i32 %4, 0
%6 = tail call i32 (...) @gleIntLoadCore_1_3_Base()
%7 = icmp ne i32 %6, 0
%8 = tail call i32 (...) @gleIntLoadCore_1_4_Base()
%9 = icmp ne i32 %8, 0
%10 = tail call i32 (...) @gleIntLoadCore_1_5_Base()
%11 = icmp ne i32 %10, 0
%12 = tail call i32 (...) @gleIntLoadCore_2_0_Base()
%13 = icmp ne i32 %12, 0
%14 = tail call i32 (...) @gleIntLoadCore_2_1_Base()
%15 = icmp ne i32 %14, 0
%16 = select i1 %15, i1 %13, i1 false
%17 = select i1 %16, i1 %11, i1 false
%18 = select i1 %17, i1 %9, i1 false
%19 = select i1 %18, i1 %7, i1 false
%20 = select i1 %19, i1 %5, i1 false
%21 = select i1 %20, i1 %3, i1 false
%22 = zext i1 %21 to i32
ret i32 %22
}