#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 help() {
  fprintf(
      stderr,
      "Usage: hwinfo [options]\n"
      "Probe for hardware.\n"
      "  --short        just a short listing\n"
      "  --log logfile  write info to logfile\n"
      "  --debug level  set debuglevel\n"
      "  --version      show libhd version\n"
      "  --dump-db n    dump hardware data base, 0: external, 1: internal\n"
      "  --hw_item      probe for hw_item\n"
      "  hw_item is one of:\n"
      "   all, bios, block, bluetooth, braille, bridge, camera, cdrom, "
      "chipcard,\n"
      "   cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, "
      "hub,\n"
      "   ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, "
      "mouse,\n"
      "   netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, "
      "printer,\n"
      "   scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, "
      "usb-ctrl,\n"
      "   vbe, wlan, zip\n"
      "\n"
      "  Note: debug info is shown only in the log file. (If you specify a\n"
      "  log file the debug level is implicitly set to a reasonable value.)\n");
}


x86 assembly (clang, -O0):
<help>:
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):
<help>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [836 x i8] c"Usage: hwinfo [options]\0AProbe for hardware.\0A --short just a short listing\0A --log logfile write info to logfile\0A --debug level set debuglevel\0A --version show libhd version\0A --dump-db n dump hardware data base, 0: external, 1: internal\0A --hw_item probe for hw_item\0A hw_item is one of:\0A all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,\0A cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub,\0A ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse,\0A netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer,\0A scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl,\0A vbe, wlan, zip\0A\0A Note: debug info is shown only in the log file. (If you specify a\0A log file the debug level is implicitly set to a reasonable value.)\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([836 x i8], [836 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [836 x i8] c"Usage: hwinfo [options]\0AProbe for hardware.\0A --short just a short listing\0A --log logfile write info to logfile\0A --debug level set debuglevel\0A --version show libhd version\0A --dump-db n dump hardware data base, 0: external, 1: internal\0A --hw_item probe for hw_item\0A hw_item is one of:\0A all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard,\0A cpu, disk, dsl, dvb, fingerprint, floppy, framebuffer, gfxcard, hub,\0A ide, isapnp, isdn, joystick, keyboard, memory, modem, monitor, mouse,\0A netcard, network, partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer,\0A scanner, scsi, smp, sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl,\0A vbe, wlan, zip\0A\0A Note: debug info is shown only in the log file. (If you specify a\0A log file the debug level is implicitly set to a reasonable value.)\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([836 x i8], [836 x i8]* @.str, i64 0, i64 0))
ret void
}