#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 *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr,
          "Usage: "
          "sg_write_buffer [--help] [--id=ID] [--in=FILE] "
          "[--length=LEN]\n"
          "                       [--mode=MO] [--offset=OFF] [--raw] "
          "[--skip=SKIP]\n"
          "                       [--verbose] [--version] DEVICE\n"
          "  where:\n"
          "    --help|-h              print out usage message then exit\n"
          "    --id=ID|-i ID          buffer identifier (0 (default) to "
          "255)\n"
          "    --in=FILE|-I FILE      read from FILE ('-I -' read "
          "from stdin)\n"
          "    --length=LEN|-l LEN    length in bytes to write; may be "
          "deduced from FILE\n"
          "    --mode=MO|-m MO        write buffer mode, MO is number or "
          "acronym (def: 0)\n"
          "    --off=OFF|-o OFF       buffer offset (unit: bytes, def: 0)\n"
          "    --raw|-r               read from stdin (same as '-I -')\n"
          "    --skip=SKIP|-s SKIP    bytes in file FILE to skip before "
          "reading\n"
          "    --verbose|-v           increase verbosity\n"
          "    --version|-V           print version string and exit\n\n"
          "  Numbers given in options are decimal unless they have a "
          "hex indicator\n"
          "Performs a SCSI WRITE BUFFER command\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [961 x i8] c"Usage: sg_write_buffer [--help] [--id=ID] [--in=FILE] [--length=LEN]\0A [--mode=MO] [--offset=OFF] [--raw] [--skip=SKIP]\0A [--verbose] [--version] DEVICE\0A where:\0A --help|-h print out usage message then exit\0A --id=ID|-i ID buffer identifier (0 (default) to 255)\0A --in=FILE|-I FILE read from FILE ('-I -' read from stdin)\0A --length=LEN|-l LEN length in bytes to write; may be deduced from FILE\0A --mode=MO|-m MO write buffer mode, MO is number or acronym (def: 0)\0A --off=OFF|-o OFF buffer offset (unit: bytes, def: 0)\0A --raw|-r read from stdin (same as '-I -')\0A --skip=SKIP|-s SKIP bytes in file FILE to skip before reading\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0A Numbers given in options are decimal unless they have a hex indicator\0APerforms a SCSI WRITE BUFFER command\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([961 x i8], [961 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [961 x i8] c"Usage: sg_write_buffer [--help] [--id=ID] [--in=FILE] [--length=LEN]\0A [--mode=MO] [--offset=OFF] [--raw] [--skip=SKIP]\0A [--verbose] [--version] DEVICE\0A where:\0A --help|-h print out usage message then exit\0A --id=ID|-i ID buffer identifier (0 (default) to 255)\0A --in=FILE|-I FILE read from FILE ('-I -' read from stdin)\0A --length=LEN|-l LEN length in bytes to write; may be deduced from FILE\0A --mode=MO|-m MO write buffer mode, MO is number or acronym (def: 0)\0A --off=OFF|-o OFF buffer offset (unit: bytes, def: 0)\0A --raw|-r read from stdin (same as '-I -')\0A --skip=SKIP|-s SKIP bytes in file FILE to skip before reading\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0A Numbers given in options are decimal unless they have a hex indicator\0APerforms a SCSI WRITE BUFFER command\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([961 x i8], [961 x i8]* @.str, i64 0, i64 0))
ret void
}