#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: hwscan [options]\n"
          "Show information about currently known hardware.\n"
          "  --list            show list of known hardware\n"
          "  --version         show libhd version\n"
          "  --silent          don't show hardware config changes\n"
          "  --boot            run only if we haven't been disabled via "
          "'hwprobe=-scan'\n"
          "  --cfg=state id    change 'configured' status; id is one of the\n"
          "                    ids from 'hwscan --list'\n"
          "                    state is one of new, no, yes\n"
          "  --avail=state id  change 'available' status\n"
          "  --need=state id   change 'needed' status\n"
          "  --active=state id change 'active' status\n"
          "  --hw_item         probe for hw_item and update status info\n"
          "  hw_item is one of:\n"
          "    all, bios, block, bluetooth, braille, bridge, camera, cdrom, "
          "chipcard, cpu,\n"
          "    disk, dsl, dvb, floppy, framebuffer, gfxcard, hub, ide, isapnp, "
          "isdn,\n"
          "    joystick, keyboard, memory, modem, monitor, mouse, netcard, "
          "network,\n"
          "    partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, scanner, "
          "scsi, smp,\n"
          "    sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl, vbe, wlan, "
          "zip\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 = [1040 x i8] c"Usage: hwscan [options]\0AShow information about currently known hardware.\0A --list show list of known hardware\0A --version show libhd version\0A --silent don't show hardware config changes\0A --boot run only if we haven't been disabled via 'hwprobe=-scan'\0A --cfg=state id change 'configured' status; id is one of the\0A ids from 'hwscan --list'\0A state is one of new, no, yes\0A --avail=state id change 'available' status\0A --need=state id change 'needed' status\0A --active=state id change 'active' status\0A --hw_item probe for hw_item and update status info\0A hw_item is one of:\0A all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu,\0A disk, dsl, dvb, floppy, framebuffer, gfxcard, hub, ide, isapnp, isdn,\0A joystick, keyboard, memory, modem, monitor, mouse, netcard, network,\0A partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, scanner, scsi, smp,\0A sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl, vbe, wlan, zip\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1040 x i8], [1040 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [1040 x i8] c"Usage: hwscan [options]\0AShow information about currently known hardware.\0A --list show list of known hardware\0A --version show libhd version\0A --silent don't show hardware config changes\0A --boot run only if we haven't been disabled via 'hwprobe=-scan'\0A --cfg=state id change 'configured' status; id is one of the\0A ids from 'hwscan --list'\0A state is one of new, no, yes\0A --avail=state id change 'available' status\0A --need=state id change 'needed' status\0A --active=state id change 'active' status\0A --hw_item probe for hw_item and update status info\0A hw_item is one of:\0A all, bios, block, bluetooth, braille, bridge, camera, cdrom, chipcard, cpu,\0A disk, dsl, dvb, floppy, framebuffer, gfxcard, hub, ide, isapnp, isdn,\0A joystick, keyboard, memory, modem, monitor, mouse, netcard, network,\0A partition, pci, pcmcia, pcmcia-ctrl, pppoe, printer, scanner, scsi, smp,\0A sound, storage-ctrl, sys, tape, tv, usb, usb-ctrl, vbe, wlan, zip\0A\00"
define void @help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1040 x i8], [1040 x i8]* @.str, i64 0, i64 0))
ret void
}