#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*/ printf(char *);
void print_help(void) {
  printf("usage: pkg-gloom [-p <patch.gobj> | -b <patch.gloom> | -d "
         "<patch.gloom> | -v | -h] \n");
  printf("\t-p,--patch\t\tSubmit Gloom patch\n");
  printf("\t-b,--build\t\tBuild Gloom patch object\n");
  printf("\t-d,--direct\t\tDirectly submit patch\n");
  printf("\n");
  printf("\t-v,--version\t\tPrint version string\n");
  printf("\t-h,--help\t\tThis message\n");
  printf("\t--verbose\t\tEnable verbose output\n");
  printf("\t--auto-load\t\tAttempts to automatically load the kgloom kernel "
         "module\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
lea    0xf34(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf5c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf74(%rip),%rdi
call   1040 <puts@plt>
lea    0xf81(%rip),%rdi
call   1040 <puts@plt>
lea    0xf97(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [85 x i8] c"usage: pkg-gloom [-p <patch.gobj> | -b <patch.gloom> | -d <patch.gloom> | -v | -h] \0A\00"
@.str.1 = [33 x i8] c"\09-p,--patch\09\09Submit Gloom patch\0A\00"
@.str.2 = [39 x i8] c"\09-b,--build\09\09Build Gloom patch object\0A\00"
@.str.3 = [37 x i8] c"\09-d,--direct\09\09Directly submit patch\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [37 x i8] c"\09-v,--version\09\09Print version string\0A\00"
@.str.6 = [26 x i8] c"\09-h,--help\09\09This message\0A\00"
@.str.7 = [35 x i8] c"\09--verbose\09\09Enable verbose output\0A\00"
@.str.8 = [71 x i8] c"\09--auto-load\09\09Attempts to automatically load the kgloom kernel module\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [84 x i8] c"usage: pkg-gloom [-p <patch.gobj> | -b <patch.gloom> | -d <patch.gloom> | -v | -h] \00"
@str.9 = [32 x i8] c"\09-p,--patch\09\09Submit Gloom patch\00"
@str.10 = [38 x i8] c"\09-b,--build\09\09Build Gloom patch object\00"
@str.11 = [36 x i8] c"\09-d,--direct\09\09Directly submit patch\00"
@str.12 = [36 x i8] c"\09-v,--version\09\09Print version string\00"
@str.13 = [25 x i8] c"\09-h,--help\09\09This message\00"
@str.14 = [34 x i8] c"\09--verbose\09\09Enable verbose output\00"
@str.15 = [70 x i8] c"\09--auto-load\09\09Attempts to automatically load the kgloom kernel module\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.9, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.10, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.11, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.14, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.15, i64 0, i64 0))
ret void
}