#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*/ cctools_debug_flags_print(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void show_help(const char *cmd) {
  fprintf(stdout, "Use: %s [options]\n", cmd);
  fprintf(stdout, "Where options are:\n");
  fprintf(stdout, " %-30s This message\n", "-h,--help=<flag>");
  fprintf(stdout, " %-30s Debugging\n", "-d,--debug=<flag>");
  fprintf(stdout,
          " %-30s Send debugging to this file. (can also be :stderr, :stdout, "
          ":syslog, or :journal)\n",
          "-o,--debug-file=<file>");
  fprintf(stdout,
          " %-30s Rotate debug files of this size (default 10M, 0 disables)\n",
          "-O,--debug-rotate-max=<bytes>");
  fprintf(stdout, " %-30s Allow this auth type\n", "-a,--auth=<type>");
  fprintf(stdout, " %-30s Port number\n", "-p,--port=<num>");
  fprintf(stdout, " %-30s Remote host\n", "-r,--host=<host>");
  fprintf(stdout, "Where debug flags arg: ");
  cctools_debug_flags_print(stderr);
  fprintf(stdout, "\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
lea    0xeb9(%rip),%rsi
lea    0xec7(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%edi
lea    0xec1(%rip),%rsi
lea    0xecc(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xec7(%rip),%rsi
lea    0xf1a(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%edi
lea    0xf1a(%rip),%rsi
lea    0xf55(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dfb(%rip),%rax
mov    (%rax),%edi
lea    0xf5c(%rip),%rsi
lea    0xf72(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
lea    0xf6c(%rip),%rsi
lea    0xf79(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
lea    0xf72(%rip),%rsi
lea    0xf7f(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da1(%rip),%rax
mov    (%rax),%edi
lea    0xf79(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d92(%rip),%rax
mov    (%rax),%edi
call   1040 <cctools_debug_flags_print@plt>
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rbx
mov    %rdi,%rdx
mov    0x2ead(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed3(%rip),%rsi
lea    0xee1(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee2(%rip),%rsi
lea    0xeed(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeef(%rip),%rsi
lea    0xf42(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf49(%rip),%rsi
lea    0xf84(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf92(%rip),%rsi
lea    0xfa8(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa9(%rip),%rsi
lea    0xfb6(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb6(%rip),%rsi
lea    0xfc3(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc4(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
call   1040 <cctools_debug_flags_print@plt>
mov    (%rbx),%edi
lea    0xeb6(%rip),%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [19 x i8] c"Use: %s [options]\0A\00"
@.str.1 = [20 x i8] c"Where options are:\0A\00"
@.str.2 = [21 x i8] c" %-30s This message\0A\00"
@.str.3 = [17 x i8] c"-h,--help=<flag>\00"
@.str.4 = [18 x i8] c" %-30s Debugging\0A\00"
@.str.5 = [18 x i8] c"-d,--debug=<flag>\00"
@.str.6 = [90 x i8] c" %-30s Send debugging to this file. (can also be :stderr, :stdout, :syslog, or :journal)\0A\00"
@.str.7 = [23 x i8] c"-o,--debug-file=<file>\00"
@.str.8 = [66 x i8] c" %-30s Rotate debug files of this size (default 10M, 0 disables)\0A\00"
@.str.9 = [30 x i8] c"-O,--debug-rotate-max=<bytes>\00"
@.str.10 = [29 x i8] c" %-30s Allow this auth type\0A\00"
@.str.11 = [17 x i8] c"-a,--auth=<type>\00"
@.str.12 = [20 x i8] c" %-30s Port number\0A\00"
@.str.13 = [16 x i8] c"-p,--port=<num>\00"
@.str.14 = [20 x i8] c" %-30s Remote host\0A\00"
@.str.15 = [17 x i8] c"-r,--host=<host>\00"
@.str.16 = [24 x i8] c"Where debug flags arg: \00"
@stderr = global i32 0
@.str.17 = [2 x i8] c"\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 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @stdout
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 @cctools_debug_flags_print(i32 %24)
%26 = load i32, i32* @stdout
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [19 x i8] c"Use: %s [options]\0A\00"
@.str.1 = [20 x i8] c"Where options are:\0A\00"
@.str.2 = [21 x i8] c" %-30s This message\0A\00"
@.str.3 = [17 x i8] c"-h,--help=<flag>\00"
@.str.4 = [18 x i8] c" %-30s Debugging\0A\00"
@.str.5 = [18 x i8] c"-d,--debug=<flag>\00"
@.str.6 = [90 x i8] c" %-30s Send debugging to this file. (can also be :stderr, :stdout, :syslog, or :journal)\0A\00"
@.str.7 = [23 x i8] c"-o,--debug-file=<file>\00"
@.str.8 = [66 x i8] c" %-30s Rotate debug files of this size (default 10M, 0 disables)\0A\00"
@.str.9 = [30 x i8] c"-O,--debug-rotate-max=<bytes>\00"
@.str.10 = [29 x i8] c" %-30s Allow this auth type\0A\00"
@.str.11 = [17 x i8] c"-a,--auth=<type>\00"
@.str.12 = [20 x i8] c" %-30s Port number\0A\00"
@.str.13 = [16 x i8] c"-p,--port=<num>\00"
@.str.14 = [20 x i8] c" %-30s Remote host\0A\00"
@.str.15 = [17 x i8] c"-r,--host=<host>\00"
@.str.16 = [24 x i8] c"Where debug flags arg: \00"
@stderr = global i32 0
@.str.17 = [2 x i8] c"\0A\00"
define void @show_help(i8* %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stdout
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%8 = load i32, i32* @stdout
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%12 = load i32, i32* @stdout
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%14 = load i32, i32* @stdout
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%16 = load i32, i32* @stdout
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%18 = load i32, i32* @stdout
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%20 = load i32, i32* @stdout
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 @cctools_debug_flags_print(i32 %22)
%24 = load i32, i32* @stdout
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
ret void
}