#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *);
int /*<<< orphan*/ stderr;
void hc_usage(int code) {
  fprintf(stderr,
          "%s is a command line bhyve administration utility.\n"
          "\n"
          "Usage: %s <command> {params}\n"
          "\n"
          "Commands:\n"
          "  help        Prints usage infomration\n"
          "  list        Lists managed VM instances\n"
          "  build       Build and start managing a VM with honeycomb\n"
          "  destroy     Destroy a VM instance\n"
          "  start       Starts a stopped VM instance\n"
          "  stop        Stops a running VM instance\n"
          "  restart     Restarts a running VM instance\n"
          "  startall    Starts all available VM instances\n"
          "  stopall     Starts all available VM instances\n"
          "  restartall  Restarts all available VM instances\n"
          "\n"
          "To get more information about a specific command, you can specify\n"
          "the name of the command as the parameter to help:\n"
          "\n"
          "  %s help <command>\n"
          "\n",
          "Honeycomb", "hc", "hc");
  exit(code);
}


x86 assembly (clang, -O0):
<hc_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xec5(%rip),%rsi
lea    0x1169(%rip),%rdx
lea    0x116c(%rip),%r8
mov    %r8,%rcx
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<hc_usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
lea    0x1171(%rip),%rdx
lea    0x1174(%rip),%rcx
mov    %rcx,%r8
call   1030 <fprintf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [683 x i8] c"%s is a command line bhyve administration utility.\0A\0AUsage: %s <command> {params}\0A\0ACommands:\0A help Prints usage infomration\0A list Lists managed VM instances\0A build Build and start managing a VM with honeycomb\0A destroy Destroy a VM instance\0A start Starts a stopped VM instance\0A stop Stops a running VM instance\0A restart Restarts a running VM instance\0A startall Starts all available VM instances\0A stopall Starts all available VM instances\0A restartall Restarts all available VM instances\0A\0ATo get more information about a specific command, you can specify\0Athe name of the command as the parameter to help:\0A\0A %s help <command>\0A\0A\00"
@.str.1 = [10 x i8] c"Honeycomb\00"
@.str.2 = [3 x i8] c"hc\00"
define void @hc_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([683 x i8], [683 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32, i32* %2
%6 = call i32 @exit(i32 %5)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [683 x i8] c"%s is a command line bhyve administration utility.\0A\0AUsage: %s <command> {params}\0A\0ACommands:\0A help Prints usage infomration\0A list Lists managed VM instances\0A build Build and start managing a VM with honeycomb\0A destroy Destroy a VM instance\0A start Starts a stopped VM instance\0A stop Stops a running VM instance\0A restart Restarts a running VM instance\0A startall Starts all available VM instances\0A stopall Starts all available VM instances\0A restartall Restarts all available VM instances\0A\0ATo get more information about a specific command, you can specify\0Athe name of the command as the parameter to help:\0A\0A %s help <command>\0A\0A\00"
@.str.1 = [10 x i8] c"Honeycomb\00"
@.str.2 = [3 x i8] c"hc\00"
define void @hc_usage(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([683 x i8], [683 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @exit(i32 %0)
unreachable
}