#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 */
scalar_t__ backup_boot_region_init();
scalar_t__ bitMapTable_init();
scalar_t__ clusterHeap_init();
scalar_t__ fat1_init();
scalar_t__ fat2_init();
scalar_t__ main_boot_region_init();
int /*<<< orphan*/ printf(char *);
scalar_t__ rootDir_init();
bool mount_NGEF() {
  if (main_boot_region_init() && backup_boot_region_init() && fat1_init() &&
      fat2_init() && clusterHeap_init() && bitMapTable_init() &&
      rootDir_init()) {
    printf("NewGen ExFAT is sucessfully mounted on the partition !\n");
    return true;
  } else {
    printf("Some error occured. Unable to mount file system.\n");
    return false;
  }
}


x86 assembly (clang, -O0):
<mount_NGEF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <main_boot_region_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   1090 <backup_boot_region_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   1050 <fat1_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   10a0 <fat2_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   1080 <clusterHeap_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   1070 <bitMapTable_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
mov    $0x0,%al
call   1030 <rootDir_init@plt>
cmp    $0x0,%rax
je     1217 <mount_NGEF+0x97>
lea    0xdfa(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    122a <mount_NGEF+0xaa>
lea    0xe1a(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mount_NGEF>:
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <main_boot_region_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   1090 <backup_boot_region_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   1050 <fat1_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   10a0 <fat2_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   1080 <clusterHeap_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   1070 <bitMapTable_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
xor    %eax,%eax
call   1040 <rootDir_init@plt>
test   %rax,%rax
je     11e5 <mount_NGEF+0x65>
mov    $0x1,%ebx
lea    0xe4e(%rip),%rdi
jmp    11ec <mount_NGEF+0x6c>
lea    0xe14(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [56 x i8] c"NewGen ExFAT is sucessfully mounted on the partition !\0A\00"
@.str.1 = [50 x i8] c"Some error occured. Unable to mount file system.\0A\00"
define i32 @mount_NGEF() {
%1 = alloca i32
%2 = call i64 (...) @main_boot_region_init()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %24
4: ; preds = %0
%5 = call i64 (...) @backup_boot_region_init()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %24
7: ; preds = %4
%8 = call i64 (...) @fat1_init()
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %24
10: ; preds = %7
%11 = call i64 (...) @fat2_init()
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = call i64 (...) @clusterHeap_init()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %24
16: ; preds = %13
%17 = call i64 (...) @bitMapTable_init()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = call i64 (...) @rootDir_init()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %26
24: ; preds = %19, %16, %13, %10, %7, %4, %0
%25 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %26
26: ; preds = %24, %22
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@str = [49 x i8] c"Some error occured. Unable to mount file system.\00"
@str.2 = [55 x i8] c"NewGen ExFAT is sucessfully mounted on the partition !\00"
define i32 @mount_NGEF() {
%1 = tail call i64 (...) @main_boot_region_init()
%2 = icmp eq i64 %1, 0
br i1 %2, label %21, label %3
3: ; preds = %0
%4 = tail call i64 (...) @backup_boot_region_init()
%5 = icmp eq i64 %4, 0
br i1 %5, label %21, label %6
6: ; preds = %3
%7 = tail call i64 (...) @fat1_init()
%8 = icmp eq i64 %7, 0
br i1 %8, label %21, label %9
9: ; preds = %6
%10 = tail call i64 (...) @fat2_init()
%11 = icmp eq i64 %10, 0
br i1 %11, label %21, label %12
12: ; preds = %9
%13 = tail call i64 (...) @clusterHeap_init()
%14 = icmp eq i64 %13, 0
br i1 %14, label %21, label %15
15: ; preds = %12
%16 = tail call i64 (...) @bitMapTable_init()
%17 = icmp eq i64 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = tail call i64 (...) @rootDir_init()
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %18, %15, %12, %9, %6, %3, %0
br label %22
22: ; preds = %18, %21
%23 = phi i8* [ getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0), %21 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @str.2, i64 0, i64 0), %18 ]
%24 = phi i32 [ 0, %21 ], [ 1, %18 ]
%25 = tail call i32 @puts(i8* dereferenceable(1) %23)
ret i32 %24
}