#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 *, char *);
void print_usage(int argc, char *argv[]) {
  printf("Usage: %s [OPTION]... [ACTION]... [FILE]...\n"
         "\n"
         "Decode XNB container FILE(s) or standard input\n"
         "\n"
         " Options:\n"
         " -f  --file FILE should be treated as a list of input files, one per "
         "line.\n"
         " -q  --quiet Suppress output\n"
         "\n"
         " Actions:\n"
         " -l --list Print information about the container\n"
         "         (this is the default action if another is not specified)\n"
         " -e --export[=basename] Export the container's object(s) to file(s), "
         "using\n"
         "         basename as the base filename if specified. Note that "
         "basename\n"
         "         may not be specified if there are multiple input files.\n"
         " -o --output-prefix=dir Prepend this path to all output filenames\n",
         argv[0]);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
mov    (%rsi),%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [612 x i8] c"Usage: %s [OPTION]... [ACTION]... [FILE]...\0A\0ADecode XNB container FILE(s) or standard input\0A\0A Options:\0A -f --file FILE should be treated as a list of input files, one per line.\0A -q --quiet Suppress output\0A\0A Actions:\0A -l --list Print information about the container\0A (this is the default action if another is not specified)\0A -e --export[=basename] Export the container's object(s) to file(s), using\0A basename as the base filename if specified. Note that basename\0A may not be specified if there are multiple input files.\0A -o --output-prefix=dir Prepend this path to all output filenames\0A\00"
define void @print_usage(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([612 x i8], [612 x i8]* @.str, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [612 x i8] c"Usage: %s [OPTION]... [ACTION]... [FILE]...\0A\0ADecode XNB container FILE(s) or standard input\0A\0A Options:\0A -f --file FILE should be treated as a list of input files, one per line.\0A -q --quiet Suppress output\0A\0A Actions:\0A -l --list Print information about the container\0A (this is the default action if another is not specified)\0A -e --export[=basename] Export the container's object(s) to file(s), using\0A basename as the base filename if specified. Note that basename\0A may not be specified if there are multiple input files.\0A -o --output-prefix=dir Prepend this path to all output filenames\0A\00"
define void @print_usage(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([612 x i8], [612 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}