#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_map26 [--dev_dir=DIR] [--given_is=0...1] [--help] "
          "[--result=0...3]\n"
          "                [--symlink] [--verbose] [--version] "
          "DEVICE\n"
          "  where:\n"
          "    --dev_dir=DIR | -d DIR    search in DIR for "
          "resulting special\n"
          "                            (def: directory of DEVICE "
          "or '/dev')\n"
          "    --given_is=0...1 | -g 0...1    variety of given "
          "DEVICE\n"
          "                                   0->block or char special "
          "(or symlink to)\n"
          "                                   1->sysfs device, 'dev' or "
          "parent\n"
          "    --help | -h       print out usage message\n"
          "    --result=0...3 | -r 0...3    variety of file(s) to "
          "find\n"
          "                                 0->mapped block or char "
          "special(def)\n"
          "                                 1->mapped sysfs path\n"
          "                                 2->matching block or "
          "char special\n"
          "                                 3->matching sysfs "
          "path\n"
          "    --symlink | -s    symlinks to special included in "
          "result\n"
          "    --verbose | -v    increase verbosity of output\n"
          "    --version | -V    print version string and exit\n\n"
          "Maps SCSI device node to corresponding generic node (and "
          "vv)\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 = [1059 x i8] c"Usage: sg_map26 [--dev_dir=DIR] [--given_is=0...1] [--help] [--result=0...3]\0A [--symlink] [--verbose] [--version] DEVICE\0A where:\0A --dev_dir=DIR | -d DIR search in DIR for resulting special\0A (def: directory of DEVICE or '/dev')\0A --given_is=0...1 | -g 0...1 variety of given DEVICE\0A 0->block or char special (or symlink to)\0A 1->sysfs device, 'dev' or parent\0A --help | -h print out usage message\0A --result=0...3 | -r 0...3 variety of file(s) to find\0A 0->mapped block or char special(def)\0A 1->mapped sysfs path\0A 2->matching block or char special\0A 3->matching sysfs path\0A --symlink | -s symlinks to special included in result\0A --verbose | -v increase verbosity of output\0A --version | -V print version string and exit\0A\0AMaps SCSI device node to corresponding generic node (and vv)\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1059 x i8], [1059 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1059 x i8] c"Usage: sg_map26 [--dev_dir=DIR] [--given_is=0...1] [--help] [--result=0...3]\0A [--symlink] [--verbose] [--version] DEVICE\0A where:\0A --dev_dir=DIR | -d DIR search in DIR for resulting special\0A (def: directory of DEVICE or '/dev')\0A --given_is=0...1 | -g 0...1 variety of given DEVICE\0A 0->block or char special (or symlink to)\0A 1->sysfs device, 'dev' or parent\0A --help | -h print out usage message\0A --result=0...3 | -r 0...3 variety of file(s) to find\0A 0->mapped block or char special(def)\0A 1->mapped sysfs path\0A 2->matching block or char special\0A 3->matching sysfs path\0A --symlink | -s symlinks to special included in result\0A --verbose | -v increase verbosity of output\0A --version | -V print version string and exit\0A\0AMaps SCSI device node to corresponding generic node (and vv)\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1059 x i8], [1059 x i8]* @.str, i64 0, i64 0))
ret void
}