#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 *const);
int /*<<< orphan*/ stdout;
void show_help(const char *const p_cmd) {
  fprintf(
      stdout,
      "%s [-v] [-h] [-t] [-f <fn>] [-r [dir] [-p]] [-a [dir]] [-d] [-l] [-s "
      "<c>]\n"
      " -v       : Show version information\n"
      " -h       : Show usage help\n"
      " -d       : Dump bookmark list\n"
      " -c       : Escape output\n"
      " -C       : Double escape output\n"
      " -t       : Store access times for bookmarks\n"
      " -l <f>   : List paths & bookmark names (generally for use in tab\n"
      "             expansion)\n"
      "             f=l : Output paths and bookmarks each on separate lines\n"
      "             f=p : Output paths only\n"
      "             f=b : Output bookmarks only\n"
      " -e <t>   : Filter output by entity type\n"
      "             t=a : All types\n"
      "             t=f : Files only\n"
      "             t=d : Directories only\n"
      "             t=F : Files and unknowns\n"
      "             t=D : Directories and unknowns\n"
      " -s <c>   : Format paths for cygwin\n"
      " -g <id>  : Get bookmark path.  ID can be index, name or path\n"
      " -n <nam> : Get bookmark path with specified shortcut name\n"
      " -p       : Prompt for input (can be used with -r instead of "
      "specifying\n"
      "             path\n"
      " -f <fn>  : Use file <fn> for storing bookmarks\n"
      " -r [dir] : Remove specified path or current directory if none\n"
      " -a [dir] : Add specified path or current directory if none\n"
      "             specified\n",
      p_cmd);
}


x86 assembly (clang, -O0):
<show_help>:
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_help>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [1171 x i8] c"%s [-v] [-h] [-t] [-f <fn>] [-r [dir] [-p]] [-a [dir]] [-d] [-l] [-s <c>]\0A -v : Show version information\0A -h : Show usage help\0A -d : Dump bookmark list\0A -c : Escape output\0A -C : Double escape output\0A -t : Store access times for bookmarks\0A -l <f> : List paths & bookmark names (generally for use in tab\0A expansion)\0A f=l : Output paths and bookmarks each on separate lines\0A f=p : Output paths only\0A f=b : Output bookmarks only\0A -e <t> : Filter output by entity type\0A t=a : All types\0A t=f : Files only\0A t=d : Directories only\0A t=F : Files and unknowns\0A t=D : Directories and unknowns\0A -s <c> : Format paths for cygwin\0A -g <id> : Get bookmark path. ID can be index, name or path\0A -n <nam> : Get bookmark path with specified shortcut name\0A -p : Prompt for input (can be used with -r instead of specifying\0A path\0A -f <fn> : Use file <fn> for storing bookmarks\0A -r [dir] : Remove specified path or current directory if none\0A -a [dir] : Add specified path or current directory if none\0A specified\0A\00"
define void @show_help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stdout
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([1171 x i8], [1171 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [1171 x i8] c"%s [-v] [-h] [-t] [-f <fn>] [-r [dir] [-p]] [-a [dir]] [-d] [-l] [-s <c>]\0A -v : Show version information\0A -h : Show usage help\0A -d : Dump bookmark list\0A -c : Escape output\0A -C : Double escape output\0A -t : Store access times for bookmarks\0A -l <f> : List paths & bookmark names (generally for use in tab\0A expansion)\0A f=l : Output paths and bookmarks each on separate lines\0A f=p : Output paths only\0A f=b : Output bookmarks only\0A -e <t> : Filter output by entity type\0A t=a : All types\0A t=f : Files only\0A t=d : Directories only\0A t=F : Files and unknowns\0A t=D : Directories and unknowns\0A -s <c> : Format paths for cygwin\0A -g <id> : Get bookmark path. ID can be index, name or path\0A -n <nam> : Get bookmark path with specified shortcut name\0A -p : Prompt for input (can be used with -r instead of specifying\0A path\0A -f <fn> : Use file <fn> for storing bookmarks\0A -r [dir] : Remove specified path or current directory if none\0A -a [dir] : Add specified path or current directory if none\0A specified\0A\00"
define void @show_help(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1171 x i8], [1171 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}