#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*/ system(char *);
int main(int argc, const char *argv[]) {
  system("/sbin/kextunload /System/Library/Extensions/if2kext.kext");
  system("/bin/launchctl unload com.internetfilter.if2kd");
  system("/bin/launchctl stop com.internetfilter.if2kd");
  system("rm -r -f /System/Library/Extensions/if2kext.kext");
  system("rm -r -f /Library/LaunchDaemons/com.internetfilter.if2kd.plist");
  system("rm -r -f /Library/If2k");
  system("rm -r -f /Library/Receipts/if2ksystem.pkg");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <system@plt>
lea    0xf00(%rip),%rdi
call   1030 <system@plt>
lea    0xf23(%rip),%rdi
call   1030 <system@plt>
lea    0xf44(%rip),%rdi
call   1030 <system@plt>
lea    0xf69(%rip),%rdi
call   1030 <system@plt>
lea    0xf9c(%rip),%rdi
call   1030 <system@plt>
lea    0xfa7(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <system@plt>
lea    0xf15(%rip),%rdi
call   1030 <system@plt>
lea    0xf38(%rip),%rdi
call   1030 <system@plt>
lea    0xf59(%rip),%rdi
call   1030 <system@plt>
lea    0xf7e(%rip),%rdi
call   1030 <system@plt>
lea    0xfb1(%rip),%rdi
call   1030 <system@plt>
lea    0xfbc(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [57 x i8] c"/sbin/kextunload /System/Library/Extensions/if2kext.kext\00"
@.str.1 = [47 x i8] c"/bin/launchctl unload com.internetfilter.if2kd\00"
@.str.2 = [45 x i8] c"/bin/launchctl stop com.internetfilter.if2kd\00"
@.str.3 = [49 x i8] c"rm -r -f /System/Library/Extensions/if2kext.kext\00"
@.str.4 = [63 x i8] c"rm -r -f /Library/LaunchDaemons/com.internetfilter.if2kd.plist\00"
@.str.5 = [23 x i8] c"rm -r -f /Library/If2k\00"
@.str.6 = [42 x i8] c"rm -r -f /Library/Receipts/if2ksystem.pkg\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @system(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @system(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [57 x i8] c"/sbin/kextunload /System/Library/Extensions/if2kext.kext\00"
@.str.1 = [47 x i8] c"/bin/launchctl unload com.internetfilter.if2kd\00"
@.str.2 = [45 x i8] c"/bin/launchctl stop com.internetfilter.if2kd\00"
@.str.3 = [49 x i8] c"rm -r -f /System/Library/Extensions/if2kext.kext\00"
@.str.4 = [63 x i8] c"rm -r -f /Library/LaunchDaemons/com.internetfilter.if2kd.plist\00"
@.str.5 = [23 x i8] c"rm -r -f /Library/If2k\00"
@.str.6 = [42 x i8] c"rm -r -f /Library/Receipts/if2ksystem.pkg\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @system(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @system(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @system(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @system(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 @system(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}