#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*/ printf(char *);
int /*<<< orphan*/ stderr;
void print_help(char **argv) {
  printf("openvpn udp proxy trunk. Creates multiple TCP connections "
         "via HTTP Proxy using CONNECT and tunnels UDP packets "
         "through them.\n");
  printf("Version "
         "0.1.0-dev"
         "\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Usage: %s [-ldcsknph]\n", argv[0]);
  fprintf(stderr, "\n");
  fprintf(stderr, "\t-h  Print this help.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Common options:\n");
  fprintf(stderr,
          "\t-l  <udp_listen_host>:<udp_listen_port> UDP address to listen.\n");
  fprintf(stderr, "\t-d  <addr>:<port> Where to send incoming UDP. If absent, "
                  "will be determined from the first received packet.\n");
  fprintf(stderr, "\t-k  <shared_secret> Common shared secret between client "
                  "and server.\n");
  fprintf(stderr, "\t-b  Daemonize.\n");
  fprintf(stderr, "\t-P  <pidfile> Create pidfile upon successful start.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Client options:\n");
  fprintf(stderr, "\t-c  <dest_host>:<dest_port> Client mode.\n");
  fprintf(stderr,
          "\t-n  <client_connection_number> Number of TCP connections to "
          "maintain (not more than %d).\n",
          20);
  fprintf(stderr, "\t-p  <client_proxy_host>:<client_proxy_port> HTTP proxy to "
                  "connect via (if needed).\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Server options:\n");
  fprintf(stderr, "\t-s  <listen_addr>:<listen_port> Server mode. TCP socket "
                  "to listen on.\n");
  fprintf(stderr, "\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
lea    0x114d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xf1f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
lea    0x1118(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0x10ea(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
lea    0xef1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e04(%rip),%rax
mov    (%rax),%edi
lea    0xeeb(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
lea    0xf15(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dd6(%rip),%rax
mov    (%rax),%edi
lea    0xf6c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
lea    0xf9b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2da8(%rip),%rax
mov    (%rax),%edi
lea    0xf95(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
lea    0x1049(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
lea    0xf9d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d63(%rip),%rax
mov    (%rax),%edi
lea    0xf97(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xfab(%rip),%rsi
mov    $0x14,%edx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d30(%rip),%rax
mov    (%rax),%edi
lea    0xfea(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
lea    0xfd1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
lea    0x1011(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2ceb(%rip),%rax
mov    (%rax),%edi
lea    0x100b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2cd4(%rip),%rax
mov    (%rax),%edi
lea    0xf8c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
lea    0x1191(%rip),%rdi
call   1030 <puts@plt>
lea    0x1202(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e99(%rip),%rbx
mov    (%rbx),%edi
lea    0x10c0(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    (%r15),%rdx
lea    0xe9a(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe95(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe90(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe91(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xec2(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf20(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf56(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf57(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf71(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf72(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf8d(%rip),%rsi
mov    $0x14,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd3(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100c(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100d(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@.str = [126 x i8] c"openvpn udp proxy trunk. Creates multiple TCP connections via HTTP Proxy using CONNECT and tunnels UDP packets through them.\0A\00"
@.str.1 = [19 x i8] c"Version 0.1.0-dev\0A\00"
@stderr = global i32 0
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [23 x i8] c"Usage: %s [-ldcsknph]\0A\00"
@.str.4 = [23 x i8] c"\09-h Print this help.\0A\00"
@.str.5 = [17 x i8] c"Common options:\0A\00"
@.str.6 = [65 x i8] c"\09-l <udp_listen_host>:<udp_listen_port> UDP address to listen.\0A\00"
@.str.7 = [110 x i8] c"\09-d <addr>:<port> Where to send incoming UDP. If absent, will be determined from the first received packet.\0A\00"
@.str.8 = [70 x i8] c"\09-k <shared_secret> Common shared secret between client and server.\0A\00"
@.str.9 = [17 x i8] c"\09-b Daemonize.\0A\00"
@.str.10 = [54 x i8] c"\09-P <pidfile> Create pidfile upon successful start.\0A\00"
@.str.11 = [17 x i8] c"Client options:\0A\00"
@.str.12 = [43 x i8] c"\09-c <dest_host>:<dest_port> Client mode.\0A\00"
@.str.13 = [91 x i8] c"\09-n <client_connection_number> Number of TCP connections to maintain (not more than %d).\0A\00"
@.str.14 = [85 x i8] c"\09-p <client_proxy_host>:<client_proxy_port> HTTP proxy to connect via (if needed).\0A\00"
@.str.15 = [17 x i8] c"Server options:\0A\00"
@.str.16 = [72 x i8] c"\09-s <listen_addr>:<listen_port> Server mode. TCP socket to listen on.\0A\00"
define void @print_help(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = load i8**, i8*** %2
%9 = getelementptr inbounds i8*, i8** %8, i64 0
%10 = load i8*, i8** %9
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.7, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0), i32 20)
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.14, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.16, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [23 x i8] c"Usage: %s [-ldcsknph]\0A\00"
@.str.4 = [23 x i8] c"\09-h Print this help.\0A\00"
@.str.5 = [17 x i8] c"Common options:\0A\00"
@.str.6 = [65 x i8] c"\09-l <udp_listen_host>:<udp_listen_port> UDP address to listen.\0A\00"
@.str.7 = [110 x i8] c"\09-d <addr>:<port> Where to send incoming UDP. If absent, will be determined from the first received packet.\0A\00"
@.str.8 = [70 x i8] c"\09-k <shared_secret> Common shared secret between client and server.\0A\00"
@.str.9 = [17 x i8] c"\09-b Daemonize.\0A\00"
@.str.10 = [54 x i8] c"\09-P <pidfile> Create pidfile upon successful start.\0A\00"
@.str.11 = [17 x i8] c"Client options:\0A\00"
@.str.12 = [43 x i8] c"\09-c <dest_host>:<dest_port> Client mode.\0A\00"
@.str.13 = [91 x i8] c"\09-n <client_connection_number> Number of TCP connections to maintain (not more than %d).\0A\00"
@.str.14 = [85 x i8] c"\09-p <client_proxy_host>:<client_proxy_port> HTTP proxy to connect via (if needed).\0A\00"
@.str.15 = [17 x i8] c"Server options:\0A\00"
@.str.16 = [72 x i8] c"\09-s <listen_addr>:<listen_port> Server mode. TCP socket to listen on.\0A\00"
@str = [125 x i8] c"openvpn udp proxy trunk. Creates multiple TCP connections via HTTP Proxy using CONNECT and tunnels UDP packets through them.\00"
@str.17 = [18 x i8] c"Version 0.1.0-dev\00"
define void @print_help(i8** nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([125 x i8], [125 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.17, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %0
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.7, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0), i32 20)
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.14, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.16, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
ret void
}