#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 const *,
                           char const *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *name) {
  fprintf(
      stderr,
      "usage: %s [-p initial_pc] [-s|-t] [-m symbol_file] [-b] [file]\n"
      "       %s [-p initial_pc] [-s|-t] [-m symbol_file] -e byte ...\n"
      "       %s -V\n\n"
      "  -b             override file type detection and force binary mode\n"
      "  -e             use the following bytes as code\n"
      "  -m symbol_file load the symbol map from the specified file\n"
      "  -p initial_pc  set the initial PC to this value, accepts hexadecimal\n"
      "                 with leading \"0x\" (default: 0)\n"
      "  -s             short output, do not include PC and code\n"
      "  -t             include instruction timing\n"
      "  -V             only print the version number and exit\n"
      "  file           binary or hex file to read, \"-\" for stdin (default:\n"
      "                 stdin)\n"
      "  byte           hexadecimal code byte, use of \"0x\" is optional\n",
      name, name, name);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    0xeb8(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rcx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [753 x i8] c"usage: %s [-p initial_pc] [-s|-t] [-m symbol_file] [-b] [file]\0A %s [-p initial_pc] [-s|-t] [-m symbol_file] -e byte ...\0A %s -V\0A\0A -b override file type detection and force binary mode\0A -e use the following bytes as code\0A -m symbol_file load the symbol map from the specified file\0A -p initial_pc set the initial PC to this value, accepts hexadecimal\0A with leading \220x\22 (default: 0)\0A -s short output, do not include PC and code\0A -t include instruction timing\0A -V only print the version number and exit\0A file binary or hex file to read, \22-\22 for stdin (default:\0A stdin)\0A byte hexadecimal code byte, use of \220x\22 is optional\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([753 x i8], [753 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6)
%8 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [753 x i8] c"usage: %s [-p initial_pc] [-s|-t] [-m symbol_file] [-b] [file]\0A %s [-p initial_pc] [-s|-t] [-m symbol_file] -e byte ...\0A %s -V\0A\0A -b override file type detection and force binary mode\0A -e use the following bytes as code\0A -m symbol_file load the symbol map from the specified file\0A -p initial_pc set the initial PC to this value, accepts hexadecimal\0A with leading \220x\22 (default: 0)\0A -s short output, do not include PC and code\0A -t include instruction timing\0A -V only print the version number and exit\0A file binary or hex file to read, \22-\22 for stdin (default:\0A stdin)\0A byte hexadecimal code byte, use of \220x\22 is optional\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([753 x i8], [753 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}