#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void show_usage(const char *name) {
  fprintf(
      stderr,
      "Syntax:\n"
      "\n"
      "\t%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] "
      "[-e ENCODING] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]\n"
      "\n"
      "Options:\n"
      "\t-c COMPONENT  Only list/extract this component\n"
      "\t-d DIRECTORY  Extract files to DIRECTORY\n"
      "\t-D LEVEL      Set debug log level\n"
      "\t                0 - No logging (default)\n"
      "\t                1 - Errors only\n"
      "\t                2 - Errors and warnings\n"
      "\t                3 - Errors, warnings and debug messages\n"
      "\t-g GROUP      Only list/extract this file group\n"
      "\t-h            Show this help message\n"
      "\t-i VERSION    Force InstallShield version number (don't autodetect)\n"
      "\t-e ENCODING   Convert filename character encoding to local codepage "
      "from ENCODING (implicitly sets -R)\n"
      "\t-j            Junk paths (do not make directories)\n"
      "\t-L            Make file and directory names lowercase\n"
      "\t-O            Use old compression\n"
      "\t-r            Save raw data (do not decompress)\n"
      "\t-R            Don't do any conversion to file and directory names "
      "when extracting.\n"
      "\t-V            Print copyright and version information\n"
      "\n"
      "Commands:\n"
      "\tc             List components\n"
      "\tg             List file groups\n"
      "\tl             List files\n"
      "\tt             Test files\n"
      "\tx             Extract files\n"
      "\n"
      "Other:\n"
      "\tCABFILE       The file to list or extract contents of\n"
      "\tFILENAME...   Optionally specify names of specific files to extract"
      "\n",
      name);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [1320 x i8] c"Syntax:\0A\0A\09%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] [-e ENCODING] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]\0A\0AOptions:\0A\09-c COMPONENT Only list/extract this component\0A\09-d DIRECTORY Extract files to DIRECTORY\0A\09-D LEVEL Set debug log level\0A\09 0 - No logging (default)\0A\09 1 - Errors only\0A\09 2 - Errors and warnings\0A\09 3 - Errors, warnings and debug messages\0A\09-g GROUP Only list/extract this file group\0A\09-h Show this help message\0A\09-i VERSION Force InstallShield version number (don't autodetect)\0A\09-e ENCODING Convert filename character encoding to local codepage from ENCODING (implicitly sets -R)\0A\09-j Junk paths (do not make directories)\0A\09-L Make file and directory names lowercase\0A\09-O Use old compression\0A\09-r Save raw data (do not decompress)\0A\09-R Don't do any conversion to file and directory names when extracting.\0A\09-V Print copyright and version information\0A\0ACommands:\0A\09c List components\0A\09g List file groups\0A\09l List files\0A\09t Test files\0A\09x Extract files\0A\0AOther:\0A\09CABFILE The file to list or extract contents of\0A\09FILENAME... Optionally specify names of specific files to extract\0A\00"
define void @show_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1320 x i8], [1320 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1320 x i8] c"Syntax:\0A\0A\09%s [-c COMPONENT] [-d DIRECTORY] [-D LEVEL] [-g GROUP] [-i VERSION] [-e ENCODING] [-GhlOrV] c|g|l|t|x CABFILE [FILENAME...]\0A\0AOptions:\0A\09-c COMPONENT Only list/extract this component\0A\09-d DIRECTORY Extract files to DIRECTORY\0A\09-D LEVEL Set debug log level\0A\09 0 - No logging (default)\0A\09 1 - Errors only\0A\09 2 - Errors and warnings\0A\09 3 - Errors, warnings and debug messages\0A\09-g GROUP Only list/extract this file group\0A\09-h Show this help message\0A\09-i VERSION Force InstallShield version number (don't autodetect)\0A\09-e ENCODING Convert filename character encoding to local codepage from ENCODING (implicitly sets -R)\0A\09-j Junk paths (do not make directories)\0A\09-L Make file and directory names lowercase\0A\09-O Use old compression\0A\09-r Save raw data (do not decompress)\0A\09-R Don't do any conversion to file and directory names when extracting.\0A\09-V Print copyright and version information\0A\0ACommands:\0A\09c List components\0A\09g List file groups\0A\09l List files\0A\09t Test files\0A\09x Extract files\0A\0AOther:\0A\09CABFILE The file to list or extract contents of\0A\09FILENAME... Optionally specify names of specific files to extract\0A\00"
define void @show_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1320 x i8], [1320 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}