#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 print_start_help(const char *name) {
  const char *usage =
      "   Valid options (default: "
      "-CMSdgimptu"
      "):\n    -s|--switch    make the walnut active\n    -w|--wait      wait "
      "for the walnut to start before returning\n    -C             enable "
      "walnut console\n    -D|--defaults  use default options (shown above)\n  "
      "  -H             share Dalvik cache between walnuts\n    -M             "
      "mount unionfs (aufs) filesystem\n    -P <pid-file>  file in which to "
      "write global pid of init\n    -S             use "
      "/mnt/shell/emulated/walnuts"
      "/<name>/sdcard as the walnut's SDCARD\n    -U             userid "
      "namespace\n    -d             mount tmpfs on <root>/dev\n    -g         "
      "    launch in new cgroup\n    -i             ipc namespace\n    -m      "
      "       mount namespace\n    -n             network namespace\n    -p    "
      "         pid namespace (implies -m)\n    -t             mount new "
      "devpts (implies -m)\n    -u             utsname namespace\n";
  fprintf(stderr, "Usage: %s start <name> [options]\n", name);
  fprintf(stderr, "%s", usage);
}


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

x86 assembly (clang, -O2):
<print_start_help>:
push   %rbx
mov    %rdi,%rdx
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%edi
lea    0x1233(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1247(%rip),%rsi
lea    0xec7(%rip),%rdx
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [855 x i8] c" Valid options (default: -CMSdgimptu):\0A -s|--switch make the walnut active\0A -w|--wait wait for the walnut to start before returning\0A -C enable walnut console\0A -D|--defaults use default options (shown above)\0A -H share Dalvik cache between walnuts\0A -M mount unionfs (aufs) filesystem\0A -P <pid-file> file in which to write global pid of init\0A -S use /mnt/shell/emulated/walnuts/<name>/sdcard as the walnut's SDCARD\0A -U userid namespace\0A -d mount tmpfs on <root>/dev\0A -g launch in new cgroup\0A -i ipc namespace\0A -m mount namespace\0A -n network namespace\0A -p pid namespace (implies -m)\0A -t mount new devpts (implies -m)\0A -u utsname namespace\0A\00"
@stderr = global i32 0
@.str.1 = [34 x i8] c"Usage: %s start <name> [options]\0A\00"
@.str.2 = [3 x i8] c"%s\00"
define void @print_start_help(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([855 x i8], [855 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i32, i32* @stderr
%5 = load i8*, i8** %2
%6 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %3
%9 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %8)
ret void
}

LLVM IR (-O2):
@.str = [855 x i8] c" Valid options (default: -CMSdgimptu):\0A -s|--switch make the walnut active\0A -w|--wait wait for the walnut to start before returning\0A -C enable walnut console\0A -D|--defaults use default options (shown above)\0A -H share Dalvik cache between walnuts\0A -M mount unionfs (aufs) filesystem\0A -P <pid-file> file in which to write global pid of init\0A -S use /mnt/shell/emulated/walnuts/<name>/sdcard as the walnut's SDCARD\0A -U userid namespace\0A -d mount tmpfs on <root>/dev\0A -g launch in new cgroup\0A -i ipc namespace\0A -m mount namespace\0A -n network namespace\0A -p pid namespace (implies -m)\0A -t mount new devpts (implies -m)\0A -u utsname namespace\0A\00"
@stderr = global i32 0
@.str.1 = [34 x i8] c"Usage: %s start <name> [options]\0A\00"
@.str.2 = [3 x i8] c"%s\00"
define void @print_start_help(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([855 x i8], [855 x i8]* @.str, i64 0, i64 0))
ret void
}