int main(int argc, char **argv) {
  if (argv == ((void *)0)) {
    return -1;
  } else if (argc < 2) {
    return -1;
  } else if (initrd_image_release_p(argc, argv)) {
    initrd_image_release("initrd.img");
    return 0;
  } else {
    initrd_image_make(argc, argv);
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115d <main+0x2d>
movl   $0xffffffff,-0x4(%rbp)
jmp    11b9 <main+0x89>
cmpl   $0x2,-0x8(%rbp)
jge    1173 <main+0x43>
movl   $0xffffffff,-0x4(%rbp)
jmp    11b9 <main+0x89>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <initrd_image_release_p@plt>
cmp    $0x0,%eax
je     11a4 <main+0x74>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <initrd_image_release@plt>
movl   $0x0,-0x4(%rbp)
jmp    11b9 <main+0x89>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <initrd_image_make@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0xffffffff,%r14d
cmp    $0x2,%edi
jl     1179 <main+0x49>
mov    %rsi,%rbx
test   %rsi,%rsi
je     1179 <main+0x49>
mov    %edi,%ebp
xor    %r14d,%r14d
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <initrd_image_release_p@plt>
test   %eax,%eax
je     116a <main+0x3a>
lea    0xe9f(%rip),%rdi
xor    %eax,%eax
call   1030 <initrd_image_release@plt>
jmp    1179 <main+0x49>
xor    %r14d,%r14d
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <initrd_image_make@plt>
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"initrd.img\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = icmp eq i8** %6, null
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 -1, i32* %3
br label %24
9: ; preds = %2
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 -1, i32* %3
br label %24
13: ; preds = %9
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 (i32, i8**, ...) bitcast (i32 (...)* @initrd_image_release_p to i32 (i32, i8**, ...)*)(i32 %14, i8** %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @initrd_image_release to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %24
20: ; preds = %13
%21 = load i32, i32* %4
%22 = load i8**, i8*** %5
%23 = call i32 (i32, i8**, ...) bitcast (i32 (...)* @initrd_image_make to i32 (i32, i8**, ...)*)(i32 %21, i8** %22)
store i32 0, i32* %3
br label %24
24: ; preds = %20, %18, %12, %8
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
@.str = [11 x i8] c"initrd.img\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp eq i8** %1, null
%4 = icmp slt i32 %0, 2
%5 = or i1 %4, %3
br i1 %5, label %13, label %6
6: ; preds = %2
%7 = tail call i32 (i32, i8**, ...) bitcast (i32 (...)* @initrd_image_release_p to i32 (i32, i8**, ...)*)(i32 %0, i8** %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @initrd_image_release to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %13
11: ; preds = %6
%12 = tail call i32 (i32, i8**, ...) bitcast (i32 (...)* @initrd_image_make to i32 (i32, i8**, ...)*)(i32 %0, i8** %1)
br label %13
13: ; preds = %2, %11, %9
%14 = phi i32 [ 0, %9 ], [ 0, %11 ], [ -1, %2 ]
ret i32 %14
}