#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void print_usage(const char *progname) {
  fprintf(stderr,
          "Usage: %s [-fhswvV] modulename ...\n"
          " -f (or --force) forces a module unload, and may crash your\n"
          "    machine.  This requires the Forced Module Removal option\n"
          "    when the kernel was compiled.\n"
          " -h (or --help) prints this help text\n"
          " -s (or --syslog) says use syslog, not stderr\n"
          " -v (or --verbose) enables more messages\n"
          " -V (or --version) prints the version code\n"
          " -w (or --wait) begins a module removal even if it is used\n"
          "    and will stop new users from accessing the module (so it\n"
          "    should eventually fall to zero).\n",
          progname);
  exit(1);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [516 x i8] c"Usage: %s [-fhswvV] modulename ...\0A -f (or --force) forces a module unload, and may crash your\0A machine. This requires the Forced Module Removal option\0A when the kernel was compiled.\0A -h (or --help) prints this help text\0A -s (or --syslog) says use syslog, not stderr\0A -v (or --verbose) enables more messages\0A -V (or --version) prints the version code\0A -w (or --wait) begins a module removal even if it is used\0A and will stop new users from accessing the module (so it\0A should eventually fall to zero).\0A\00"
define void @print_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([516 x i8], [516 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [516 x i8] c"Usage: %s [-fhswvV] modulename ...\0A -f (or --force) forces a module unload, and may crash your\0A machine. This requires the Forced Module Removal option\0A when the kernel was compiled.\0A -h (or --help) prints this help text\0A -s (or --syslog) says use syslog, not stderr\0A -v (or --verbose) enables more messages\0A -V (or --version) prints the version code\0A -w (or --wait) begins a module removal even if it is used\0A and will stop new users from accessing the module (so it\0A should eventually fall to zero).\0A\00"
define void @print_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([516 x i8], [516 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}