#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 *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *arg0) {
  fprintf(stderr,
          "usage: %s [-146dvh] [-s sourcehost] [-l localhost] [-i pass]\n"
          "           [-I pass] [-L limit] [-A filename] [-p pidfile]\n"
          "           [-m mapfile] localport remotehost [remoteport]\n"
          "\n"
          "  -1  allow only single connection and quit\n"
          "  -4  connect to IPv4 endpoints (default: connect to IPv6)\n"
          "  -6  bind to IPv6 address (default: bind to IPv4)\n"
          "  -d  don't detach\n"
          "  -f  force tunneling (even if remotehost isn't resolvable)\n"
          "  -h  print hex dump of packets\n"
          "  -u  change UID and GID after bind()\n"
          "  -i  act like irc proxy and ask for password\n"
          "  -I  send specified password to the irc server\n"
          "  -l  bind to specified address\n"
          "  -L  limit simultaneous connections\n"
          "  -p  write down pid to specified file\n"
          "  -s  connect using specified address\n"
          "  -m  read specified IPv4-to-IPv6 map file\n"
          "  -v  be verbose\n"
          "\n",
          arg0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [784 x i8] c"usage: %s [-146dvh] [-s sourcehost] [-l localhost] [-i pass]\0A [-I pass] [-L limit] [-A filename] [-p pidfile]\0A [-m mapfile] localport remotehost [remoteport]\0A\0A -1 allow only single connection and quit\0A -4 connect to IPv4 endpoints (default: connect to IPv6)\0A -6 bind to IPv6 address (default: bind to IPv4)\0A -d don't detach\0A -f force tunneling (even if remotehost isn't resolvable)\0A -h print hex dump of packets\0A -u change UID and GID after bind()\0A -i act like irc proxy and ask for password\0A -I send specified password to the irc server\0A -l bind to specified address\0A -L limit simultaneous connections\0A -p write down pid to specified file\0A -s connect using specified address\0A -m read specified IPv4-to-IPv6 map file\0A -v be verbose\0A\0A\00"
define void @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 ([784 x i8], [784 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [784 x i8] c"usage: %s [-146dvh] [-s sourcehost] [-l localhost] [-i pass]\0A [-I pass] [-L limit] [-A filename] [-p pidfile]\0A [-m mapfile] localport remotehost [remoteport]\0A\0A -1 allow only single connection and quit\0A -4 connect to IPv4 endpoints (default: connect to IPv6)\0A -6 bind to IPv6 address (default: bind to IPv4)\0A -d don't detach\0A -f force tunneling (even if remotehost isn't resolvable)\0A -h print hex dump of packets\0A -u change UID and GID after bind()\0A -i act like irc proxy and ask for password\0A -I send specified password to the irc server\0A -l bind to specified address\0A -L limit simultaneous connections\0A -p write down pid to specified file\0A -s connect using specified address\0A -m read specified IPv4-to-IPv6 map file\0A -v be verbose\0A\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([784 x i8], [784 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}