#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_sat_identify [--ck_cond] [--extend] [--help] [--hex] "
          "[--len=16|12]\n"
          "                       [--packet] [--raw] [--verbose] [--version] "
          "DEVICE\n"
          "  where:\n"
          "    --ck_cond|-c     sets ck_cond bit in cdb (def: 0)\n"
          "    --extend|-e      sets extend bit in cdb (def: 0)\n"
          "    --help|-h        print out usage message then exit\n"
          "    --hex|-H         output response in hex\n"
          "    --len=16|12 | -l 16|12    cdb length: 16 or 12 bytes "
          "(default: 16)\n"
          "    --packet|-p      do IDENTIFY PACKET DEVICE (def: IDENTIFY "
          "DEVICE) command\n"
          "    --raw|-r         output response in binary to stdout\n"
          "    --verbose|-v     increase verbosity\n"
          "    --version|-V     print version string and exit\n\n"
          "Performs a ATA IDENTIFY (PACKET) DEVICE command via a SAT "
          "layer\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 = [728 x i8] c"Usage: sg_sat_identify [--ck_cond] [--extend] [--help] [--hex] [--len=16|12]\0A [--packet] [--raw] [--verbose] [--version] DEVICE\0A where:\0A --ck_cond|-c sets ck_cond bit in cdb (def: 0)\0A --extend|-e sets extend bit in cdb (def: 0)\0A --help|-h print out usage message then exit\0A --hex|-H output response in hex\0A --len=16|12 | -l 16|12 cdb length: 16 or 12 bytes (default: 16)\0A --packet|-p do IDENTIFY PACKET DEVICE (def: IDENTIFY DEVICE) command\0A --raw|-r output response in binary to stdout\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerforms a ATA IDENTIFY (PACKET) DEVICE command via a SAT layer\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([728 x i8], [728 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [728 x i8] c"Usage: sg_sat_identify [--ck_cond] [--extend] [--help] [--hex] [--len=16|12]\0A [--packet] [--raw] [--verbose] [--version] DEVICE\0A where:\0A --ck_cond|-c sets ck_cond bit in cdb (def: 0)\0A --extend|-e sets extend bit in cdb (def: 0)\0A --help|-h print out usage message then exit\0A --hex|-H output response in hex\0A --len=16|12 | -l 16|12 cdb length: 16 or 12 bytes (default: 16)\0A --packet|-p do IDENTIFY PACKET DEVICE (def: IDENTIFY DEVICE) command\0A --raw|-r output response in binary to stdout\0A --verbose|-v increase verbosity\0A --version|-V print version string and exit\0A\0APerforms a ATA IDENTIFY (PACKET) DEVICE command via a SAT layer\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([728 x i8], [728 x i8]* @.str, i64 0, i64 0))
ret void
}