#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
void usage(int status) {
  if (status)
    fprintf(stderr, "Try ``mbchk --help'' for more information.\n");
  else
    printf("Usage: mbchk [OPTION]... [FILE]...\n"
           "Check if the format of FILE complies with the Multiboot "
           "Specification.\n"
           "\n"
           "-q, --quiet                suppress all normal output\n"
           "-h, --help                 display this help and exit\n"
           "-v, --version              output version information and exit.\n"
           "\n"
           "Report bugs to <bug-grub@gnu.org>.\n");
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     115f <usage+0x2f>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
call   1040 <fprintf@plt>
jmp    116b <usage+0x3b>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    114a <usage+0x1a>
lea    0xeee(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [44 x i8] c"Try ``mbchk --help'' for more information.\0A\00"
@.str.1 = [316 x i8] c"Usage: mbchk [OPTION]... [FILE]...\0ACheck if the format of FILE complies with the Multiboot Specification.\0A\0A-q, --quiet suppress all normal output\0A-h, --help display this help and exit\0A-v, --version output version information and exit.\0A\0AReport bugs to <bug-grub@gnu.org>.\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([316 x i8], [316 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = load i32, i32* %2
%12 = call i32 @exit(i32 %11)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [44 x i8] c"Try ``mbchk --help'' for more information.\0A\00"
@str = [315 x i8] c"Usage: mbchk [OPTION]... [FILE]...\0ACheck if the format of FILE complies with the Multiboot Specification.\0A\0A-q, --quiet suppress all normal output\0A-h, --help display this help and exit\0A-v, --version output version information and exit.\0A\0AReport bugs to <bug-grub@gnu.org>.\00"
define void @usage(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([315 x i8], [315 x i8]* @str, i64 0, i64 0))
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @exit(i32 %0)
unreachable
}