#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*/ printf(char *, ...);
void usage() {
  extern char *__progname;
  printf("%s [-a <auth-file>] -x proxy[:port] -d dest[:port] [-h]\n",
         __progname);
  printf("Tunnel arbitrary streams through HTTP proxies.\n");
  printf("\n");
  printf("Options:\n");
  printf("   -a <auth-file>  -- use HTTP Basic authentication, with the "
         "credentials in the given file (of the form 'user\\x00pass').\n");
  printf("   -x proxy[:port] -- tunnel through the given HTTP proxy (default "
         "port is %d).\n",
         8080);
  printf("   -d dest[:port]  -- tunnel through to the given destination "
         "address (default port is %d).\n",
         22);
  printf("   -h              -- print this help page and exit.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ebd(%rip),%rax
mov    (%rax),%rsi
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x1f90,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
mov    $0x16,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2ea0(%rip),%rax
mov    (%rax),%rsi
lea    0xebe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf97(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfad(%rip),%rdi
call   1040 <puts@plt>
lea    0xebb(%rip),%rdi
mov    $0x1f90,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x16,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xff5(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [57 x i8] c"%s [-a <auth-file>] -x proxy[:port] -d dest[:port] [-h]\0A\00"
@__progname = external global i8*
@.str.1 = [48 x i8] c"Tunnel arbitrary streams through HTTP proxies.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [123 x i8] c" -a <auth-file> -- use HTTP Basic authentication, with the credentials in the given file (of the form 'user\\x00pass').\0A\00"
@.str.5 = [81 x i8] c" -x proxy[:port] -- tunnel through the given HTTP proxy (default port is %d).\0A\00"
@.str.6 = [93 x i8] c" -d dest[:port] -- tunnel through to the given destination address (default port is %d).\0A\00"
@.str.7 = [54 x i8] c" -h -- print this help page and exit.\0A\00"
define void @usage() {
%1 = load i8*, i8** @__progname
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.5, i64 0, i64 0), i32 8080)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), i32 22)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [57 x i8] c"%s [-a <auth-file>] -x proxy[:port] -d dest[:port] [-h]\0A\00"
@__progname = external global i8*
@.str.5 = [81 x i8] c" -x proxy[:port] -- tunnel through the given HTTP proxy (default port is %d).\0A\00"
@.str.6 = [93 x i8] c" -d dest[:port] -- tunnel through to the given destination address (default port is %d).\0A\00"
@str = [47 x i8] c"Tunnel arbitrary streams through HTTP proxies.\00"
@str.8 = [9 x i8] c"Options:\00"
@str.9 = [122 x i8] c" -a <auth-file> -- use HTTP Basic authentication, with the credentials in the given file (of the form 'user\\x00pass').\00"
@str.10 = [53 x i8] c" -h -- print this help page and exit.\00"
define void @usage() {
%1 = load i8*, i8** @__progname
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.8, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([122 x i8], [122 x i8]* @str.9, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.5, i64 0, i64 0), i32 8080)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), i32 22)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.10, i64 0, i64 0))
ret void
}