#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 FRESHPLAYERPLUGIN();
int FRESHWRAPPER();
int PLUGINS();
int /*<<< orphan*/ system(char *);
int SEEKER(void) {
  int freshplayerplugin, plugins, freshwrapper;
  freshplayerplugin = FRESHPLAYERPLUGIN();
  plugins = PLUGINS();
  freshwrapper = FRESHWRAPPER();
  if (freshplayerplugin == 0) {
    if (plugins == 0) {
      system("mkdir ~/.mozilla/plugins");
      return 1;
    } else {
      if (freshwrapper == 0) {
        return 1;
      } else {
        system("rm -R ~/.mozilla/plugins/libfreshwrapper-pepperflash.so");
        return 1;
      }
    }
  } else {
    system("rm -R ~/freshplayerplugin");
    if (plugins == 0) {
      system("mkdir ~/.mozilla/plugins");
      return 1;
    } else {
      if (freshwrapper == 0) {
        return 1;
      } else {
        system("rm -R ~/.mozilla/plugins/libfreshwrapper-pepperflash.so");
        return 1;
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<SEEKER>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <FRESHPLAYERPLUGIN@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <PLUGINS@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1050 <FRESHWRAPPER@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    11c0 <SEEKER+0x80>
cmpl   $0x0,-0xc(%rbp)
jne    1192 <SEEKER+0x52>
lea    0xe7f(%rip),%rdi
call   1040 <system@plt>
movl   $0x1,-0x4(%rbp)
jmp    1217 <SEEKER+0xd7>
cmpl   $0x0,-0x10(%rbp)
jne    11a8 <SEEKER+0x68>
movl   $0x1,-0x4(%rbp)
jmp    1217 <SEEKER+0xd7>
lea    0xe6a(%rip),%rdi
call   1040 <system@plt>
movl   $0x1,-0x4(%rbp)
jmp    1217 <SEEKER+0xd7>
lea    0xe8a(%rip),%rdi
call   1040 <system@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11ee <SEEKER+0xae>
lea    0xe23(%rip),%rdi
call   1040 <system@plt>
movl   $0x1,-0x4(%rbp)
jmp    1217 <SEEKER+0xd7>
cmpl   $0x0,-0x10(%rbp)
jne    1204 <SEEKER+0xc4>
movl   $0x1,-0x4(%rbp)
jmp    1217 <SEEKER+0xd7>
lea    0xe0e(%rip),%rdi
call   1040 <system@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SEEKER>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1060 <FRESHPLAYERPLUGIN@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <PLUGINS@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <FRESHWRAPPER@plt>
mov    %eax,%r14d
test   %ebx,%ebx
je     1182 <SEEKER+0x42>
lea    0xee6(%rip),%rdi
call   1040 <system@plt>
test   %ebp,%ebp
je     1186 <SEEKER+0x46>
test   %r14d,%r14d
je     1192 <SEEKER+0x52>
lea    0xe99(%rip),%rdi
jmp    118d <SEEKER+0x4d>
test   %ebp,%ebp
jne    1174 <SEEKER+0x34>
lea    0xe73(%rip),%rdi
call   1040 <system@plt>
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"mkdir ~/.mozilla/plugins\00"
@.str.1 = [56 x i8] c"rm -R ~/.mozilla/plugins/libfreshwrapper-pepperflash.so\00"
@.str.2 = [26 x i8] c"rm -R ~/freshplayerplugin\00"
define i32 @SEEKER() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (...) @FRESHPLAYERPLUGIN()
store i32 %5, i32* %2
%6 = call i32 (...) @PLUGINS()
store i32 %6, i32* %3
%7 = call i32 (...) @FRESHWRAPPER()
store i32 %7, i32* %4
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %21
10: ; preds = %0
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %33
15: ; preds = %10
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 1, i32* %1
br label %33
19: ; preds = %15
%20 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %33
21: ; preds = %0
%22 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%23 = load i32, i32* %3
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %33
27: ; preds = %21
%28 = load i32, i32* %4
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %27
store i32 1, i32* %1
br label %33
31: ; preds = %27
%32 = call i32 @system(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %33
33: ; preds = %31, %30, %25, %19, %18, %13
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
@.str = [25 x i8] c"mkdir ~/.mozilla/plugins\00"
@.str.1 = [56 x i8] c"rm -R ~/.mozilla/plugins/libfreshwrapper-pepperflash.so\00"
@.str.2 = [26 x i8] c"rm -R ~/freshplayerplugin\00"
define i32 @SEEKER() {
%1 = tail call i32 (...) @FRESHPLAYERPLUGIN()
%2 = tail call i32 (...) @PLUGINS()
%3 = tail call i32 (...) @FRESHWRAPPER()
%4 = icmp eq i32 %1, 0
br i1 %4, label %5, label %9
5: ; preds = %0
%6 = icmp eq i32 %2, 0
br i1 %6, label %14, label %7
7: ; preds = %5
%8 = icmp eq i32 %3, 0
br i1 %8, label %17, label %14
9: ; preds = %0
%10 = tail call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i32 %2, 0
br i1 %11, label %14, label %12
12: ; preds = %9
%13 = icmp eq i32 %3, 0
br i1 %13, label %17, label %14
14: ; preds = %12, %9, %7, %5
%15 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), %5 ], [ getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), %7 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), %9 ], [ getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), %12 ]
%16 = tail call i32 @system(i8* %15)
br label %17
17: ; preds = %14, %12, %7
ret i32 1
}