#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int fts_info;
  int /*<<< orphan*/ fts_path;
  int /*<<< orphan*/ fts_name;
};
typedef TYPE_1__ FTSENT;
typedef int /*<<< orphan*/ FTS;

/* Variables and functions */
#define FTS_D 135
#define FTS_DNR 134
#define FTS_DP 133
#define FTS_ERR 132
#define FTS_F 131
#define FTS_NS 130
int /*<<< orphan*/ FTS_PHYSICAL;
#define FTS_SL 129
#define FTS_SLNONE 128
int /*<<< orphan*/ PBRemoveDirectory(int /*<<< orphan*/);
scalar_t__ errno;
int /*<<< orphan*/ fts_close(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fts_open(char **, int /*<<< orphan*/, int /*<<< orphan*/);
TYPE_1__ *fts_read(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcasecmp(int /*<<< orphan*/, char *);
int /*<<< orphan*/ strcmp(int /*<<< orphan*/, char *);
int /*<<< orphan*/ unlink(int /*<<< orphan*/);
int PBClean(const char *inPath, int inCleanDSStore, int inCleanPBDevelopment,
            int inCleanCVSAndSVN) {
  FTS *ftsp;
  FTSENT *tFile;
  char *tPath[2] = {(char *)inPath, NULL};
  if ((ftsp = fts_open(tPath, FTS_PHYSICAL, 0)) == NULL) {
    return 1;
  }
  while ((tFile = fts_read(ftsp)) != NULL) {
    switch (tFile->fts_info) {
    case FTS_DNR:
    case FTS_ERR:
    case FTS_NS:
      fts_close(ftsp);
      return 1;
    case FTS_D:
    case FTS_SL:
    case FTS_SLNONE:
      continue;
    case FTS_F:
      if (inCleanDSStore == 1) {
        if (!strcasecmp(tFile->fts_name, ".DS_Store")) {
          unlink(tFile->fts_path);
          break;
        }
      }
      if (inCleanPBDevelopment == 1) {
        if (!strcasecmp(tFile->fts_name, "pbdevelopment.plist")) {
          unlink(tFile->fts_path);
          break;
        }
      }
      if (inCleanCVSAndSVN == 1) {
        if (!strcasecmp(tFile->fts_name, ".cvsignore") ||
            !strcasecmp(tFile->fts_name, ".cvspass")) {
          unlink(tFile->fts_path);
          break;
        }
      }
      break;
    case FTS_DP:
      if (inCleanCVSAndSVN == 1) {
        if (!strcmp(tFile->fts_name, "CVS") ||
            !strcmp(tFile->fts_name, ".svn")) {
          if (PBRemoveDirectory(tFile->fts_path) == 0) {
          }
        }
      }
      break;
    default:
      break;
    }
  }
  fts_close(ftsp);
  if (errno) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<PBClean>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
movq   $0x0,-0x38(%rbp)
lea    -0x40(%rbp),%rdi
mov    0x2e50(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1080 <fts_open@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11c3 <PBClean+0x53>
movl   $0x1,-0x4(%rbp)
jmp    139c <PBClean+0x22c>
jmp    11c8 <PBClean+0x58>
mov    -0x28(%rbp),%rdi
call   1060 <fts_read@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
je     136f <PBClean+0x1ff>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x7,%eax
ja     1365 <PBClean+0x1f5>
mov    -0x48(%rbp),%rax
lea    0xdfe(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x28(%rbp),%rdi
call   1050 <fts_close@plt>
movl   $0x1,-0x4(%rbp)
jmp    139c <PBClean+0x22c>
jmp    11c8 <PBClean+0x58>
cmpl   $0x1,-0x14(%rbp)
jne    1261 <PBClean+0xf1>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xde3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    125c <PBClean+0xec>
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%edi
call   1040 <unlink@plt>
jmp    136a <PBClean+0x1fa>
jmp    1261 <PBClean+0xf1>
cmpl   $0x1,-0x18(%rbp)
jne    129d <PBClean+0x12d>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xdb1(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1298 <PBClean+0x128>
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%edi
call   1040 <unlink@plt>
jmp    136a <PBClean+0x1fa>
jmp    129d <PBClean+0x12d>
cmpl   $0x1,-0x1c(%rbp)
jne    12f5 <PBClean+0x185>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xd89(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
je     12df <PBClean+0x16f>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xd78(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%eax
jne    12f0 <PBClean+0x180>
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%edi
call   1040 <unlink@plt>
jmp    136a <PBClean+0x1fa>
jmp    12f5 <PBClean+0x185>
jmp    136a <PBClean+0x1fa>
cmpl   $0x1,-0x1c(%rbp)
jne    1360 <PBClean+0x1f0>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xd40(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
je     133c <PBClean+0x1cc>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edi
lea    0xd28(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    135b <PBClean+0x1eb>
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%edi
call   1090 <PBRemoveDirectory@plt>
cmp    $0x0,%eax
jne    1356 <PBClean+0x1e6>
jmp    1356 <PBClean+0x1e6>
jmp    135b <PBClean+0x1eb>
jmp    1360 <PBClean+0x1f0>
jmp    136a <PBClean+0x1fa>
jmp    136a <PBClean+0x1fa>
jmp    11c8 <PBClean+0x58>
mov    -0x28(%rbp),%rdi
call   1050 <fts_close@plt>
mov    0x2c59(%rip),%rax
cmpq   $0x0,(%rax)
je     1395 <PBClean+0x225>
movl   $0x1,-0x4(%rbp)
jmp    139c <PBClean+0x22c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PBClean>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %ecx,%ebp
mov    %edx,0x8(%rsp)
mov    %esi,0xc(%rsp)
mov    %rdi,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    0x2e53(%rip),%rax
mov    (%rax),%esi
lea    0x10(%rsp),%rdi
xor    %edx,%edx
call   1080 <fts_open@plt>
mov    $0x1,%r12d
test   %rax,%rax
je     12f7 <PBClean+0x187>
mov    %rax,%rbx
mov    %rax,%rdi
call   1060 <fts_read@plt>
test   %rax,%rax
je     12d3 <PBClean+0x163>
mov    %rax,%r13
mov    $0xffffff7e,%r14d
lea    0xe22(%rip),%r15
jmp    1204 <PBClean+0x94>
mov    0x4(%r13),%edi
call   1040 <unlink@plt>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1060 <fts_read@plt>
mov    %rax,%r13
test   %rax,%rax
je     12d3 <PBClean+0x163>
mov    0x0(%r13),%eax
add    %r14d,%eax
cmp    $0x4,%eax
ja     11f0 <PBClean+0x80>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
cmpl   $0x1,0xc(%rsp)
jne    1234 <PBClean+0xc4>
mov    0x8(%r13),%edi
lea    0xde9(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     11e0 <PBClean+0x70>
cmpl   $0x1,0x8(%rsp)
jne    124f <PBClean+0xdf>
mov    0x8(%r13),%edi
lea    0xdd8(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     11e0 <PBClean+0x70>
cmp    $0x1,%ebp
jne    11f0 <PBClean+0x80>
mov    0x8(%r13),%edi
lea    0xdd3(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %eax,%eax
je     11e0 <PBClean+0x70>
mov    0x8(%r13),%edi
lea    0xdc6(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %eax,%eax
jne    11f0 <PBClean+0x80>
jmp    11e0 <PBClean+0x70>
nopl   0x0(%rax)
cmp    $0x1,%ebp
jne    11f0 <PBClean+0x80>
mov    0x8(%r13),%edi
lea    0xda2(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
je     12c5 <PBClean+0x155>
mov    0x8(%r13),%edi
lea    0xd92(%rip),%rsi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    11f0 <PBClean+0x80>
mov    0x4(%r13),%edi
call   1090 <PBRemoveDirectory@plt>
jmp    11f0 <PBClean+0x80>
mov    %rbx,%rdi
call   1050 <fts_close@plt>
mov    0x2cf6(%rip),%rax
xor    %r12d,%r12d
cmpq   $0x0,(%rax)
setne  %r12b
jmp    12f7 <PBClean+0x187>
mov    %rbx,%rdi
call   1050 <fts_close@plt>
mov    %r12d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32 }
@FTS_PHYSICAL = global i32 0
@.str = [10 x i8] c".DS_Store\00"
@.str.1 = [20 x i8] c"pbdevelopment.plist\00"
@.str.2 = [11 x i8] c".cvsignore\00"
@.str.3 = [9 x i8] c".cvspass\00"
@.str.4 = [4 x i8] c"CVS\00"
@.str.5 = [5 x i8] c".svn\00"
@errno = global i64 0
define i32 @PBClean(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca %struct.TYPE_3__*
%12 = alloca [2 x i8*]
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%13 = getelementptr inbounds [2 x i8*], [2 x i8*]* %12, i64 0, i64 0
%14 = load i8*, i8** %6
store i8* %14, i8** %13
%15 = getelementptr inbounds i8*, i8** %13, i64 1
store i8* null, i8** %15
%16 = getelementptr inbounds [2 x i8*], [2 x i8*]* %12, i64 0, i64 0
%17 = load i32, i32* @FTS_PHYSICAL
%18 = call i32* @fts_open(i8** %16, i32 %17, i32 0)
store i32* %18, i32** %10
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %21
20: ; preds = %4
store i32 1, i32* %5
br label %120
21: ; preds = %4
br label %22
22: ; preds = %112, %33, %21
%23 = load i32*, i32** %10
%24 = call %struct.TYPE_3__* @fts_read(i32* %23)
store %struct.TYPE_3__* %24, %struct.TYPE_3__** %11
%25 = icmp ne %struct.TYPE_3__* %24, null
br i1 %25, label %26, label %113
26: ; preds = %22
%27 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%28 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %27, i32 0, i32 0
%29 = load i32, i32* %28
switch i32 %29, label %111 [
i32 134, label %30
i32 132, label %30
i32 130, label %30
i32 135, label %33
i32 129, label %33
i32 128, label %33
i32 131, label %34
i32 133, label %86
]
30: ; preds = %26, %26, %26
%31 = load i32*, i32** %10
%32 = call i32 @fts_close(i32* %31)
store i32 1, i32* %5
br label %120
33: ; preds = %26, %26, %26
br label %22
34: ; preds = %26
%35 = load i32, i32* %7
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %49
37: ; preds = %34
%38 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%39 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %38, i32 0, i32 2
%40 = load i32, i32* %39
%41 = call i32 @strcasecmp(i32 %40, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%42 = icmp ne i32 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %37
%44 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%45 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %44, i32 0, i32 1
%46 = load i32, i32* %45
%47 = call i32 @unlink(i32 %46)
br label %112
48: ; preds = %37
br label %49
49: ; preds = %48, %34
%50 = load i32, i32* %8
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %64
52: ; preds = %49
%53 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%54 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %53, i32 0, i32 2
%55 = load i32, i32* %54
%56 = call i32 @strcasecmp(i32 %55, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%57 = icmp ne i32 %56, 0
br i1 %57, label %63, label %58
58: ; preds = %52
%59 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%60 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %59, i32 0, i32 1
%61 = load i32, i32* %60
%62 = call i32 @unlink(i32 %61)
br label %112
63: ; preds = %52
br label %64
64: ; preds = %63, %49
%65 = load i32, i32* %9
%66 = icmp eq i32 %65, 1
br i1 %66, label %67, label %85
67: ; preds = %64
%68 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%69 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %68, i32 0, i32 2
%70 = load i32, i32* %69
%71 = call i32 @strcasecmp(i32 %70, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %79
73: ; preds = %67
%74 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%75 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %74, i32 0, i32 2
%76 = load i32, i32* %75
%77 = call i32 @strcasecmp(i32 %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%78 = icmp ne i32 %77, 0
br i1 %78, label %84, label %79
79: ; preds = %73, %67
%80 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%81 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %80, i32 0, i32 1
%82 = load i32, i32* %81
%83 = call i32 @unlink(i32 %82)
br label %112
84: ; preds = %73
br label %85
85: ; preds = %84, %64
br label %112
86: ; preds = %26
%87 = load i32, i32* %9
%88 = icmp eq i32 %87, 1
br i1 %88, label %89, label %110
89: ; preds = %86
%90 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%91 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %90, i32 0, i32 2
%92 = load i32, i32* %91
%93 = call i32 @strcmp(i32 %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%94 = icmp ne i32 %93, 0
br i1 %94, label %95, label %101
95: ; preds = %89
%96 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%97 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %96, i32 0, i32 2
%98 = load i32, i32* %97
%99 = call i32 @strcmp(i32 %98, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%100 = icmp ne i32 %99, 0
br i1 %100, label %109, label %101
101: ; preds = %95, %89
%102 = load %struct.TYPE_3__*, %struct.TYPE_3__** %11
%103 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %102, i32 0, i32 1
%104 = load i32, i32* %103
%105 = call i32 @PBRemoveDirectory(i32 %104)
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %101
br label %108
108: ; preds = %107, %101
br label %109
109: ; preds = %108, %95
br label %110
110: ; preds = %109, %86
br label %112
111: ; preds = %26
br label %112
112: ; preds = %111, %110, %85, %79, %58, %43
br label %22
113: ; preds = %22
%114 = load i32*, i32** %10
%115 = call i32 @fts_close(i32* %114)
%116 = load i64, i64* @errno
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %119
118: ; preds = %113
store i32 1, i32* %5
br label %120
119: ; preds = %113
store i32 0, i32* %5
br label %120
120: ; preds = %119, %118, %30, %20
%121 = load i32, i32* %5
ret i32 %121
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32 }
@FTS_PHYSICAL = global i32 0
@.str = [10 x i8] c".DS_Store\00"
@.str.1 = [20 x i8] c"pbdevelopment.plist\00"
@.str.2 = [11 x i8] c".cvsignore\00"
@.str.3 = [9 x i8] c".cvspass\00"
@.str.4 = [4 x i8] c"CVS\00"
@.str.5 = [5 x i8] c".svn\00"
@errno = global i64 0
define i32 @PBClean(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [2 x i8*]
%6 = bitcast [2 x i8*]* %5 to i8*
%7 = getelementptr inbounds [2 x i8*], [2 x i8*]* %5, i64 0, i64 0
store i8* %0, i8** %7
%8 = getelementptr inbounds [2 x i8*], [2 x i8*]* %5, i64 0, i64 1
store i8* null, i8** %8
%9 = load i32, i32* @FTS_PHYSICAL
%10 = call i32* @fts_open(i8** %7, i32 %9, i32 0)
%11 = icmp eq i32* %10, null
br i1 %11, label %81, label %12
12: ; preds = %4
%13 = call %struct.TYPE_3__* @fts_read(i32* %10)
%14 = icmp eq %struct.TYPE_3__* %13, null
br i1 %14, label %76, label %15
15: ; preds = %12
%16 = icmp eq i32 %3, 1
%17 = icmp eq i32 %1, 1
%18 = icmp eq i32 %2, 1
br label %19
19: ; preds = %15, %25
%20 = phi %struct.TYPE_3__* [ %13, %15 ], [ %26, %25 ]
%21 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 0
%22 = load i32, i32* %21
switch i32 %22, label %25 [
i32 134, label %23
i32 132, label %23
i32 130, label %23
i32 133, label %62
i32 131, label %28
]
23: ; preds = %19, %19, %19
%24 = call i32 @fts_close(i32* %10)
br label %81
25: ; preds = %34, %44, %58, %54, %48, %68, %72, %62, %19
%26 = call %struct.TYPE_3__* @fts_read(i32* %10)
%27 = icmp eq %struct.TYPE_3__* %26, null
br i1 %27, label %76, label %19
28: ; preds = %19
br i1 %17, label %29, label %38
29: ; preds = %28
%30 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 2
%31 = load i32, i32* %30
%32 = call i32 @strcasecmp(i32 %31, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %38
34: ; preds = %29
%35 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 1
%36 = load i32, i32* %35
%37 = call i32 @unlink(i32 %36)
br label %25
38: ; preds = %29, %28
br i1 %18, label %39, label %48
39: ; preds = %38
%40 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 2
%41 = load i32, i32* %40
%42 = call i32 @strcasecmp(i32 %41, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %39
%45 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 1
%46 = load i32, i32* %45
%47 = call i32 @unlink(i32 %46)
br label %25
48: ; preds = %39, %38
br i1 %16, label %49, label %25
49: ; preds = %48
%50 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 2
%51 = load i32, i32* %50
%52 = call i32 @strcasecmp(i32 %51, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %49
%55 = load i32, i32* %50
%56 = call i32 @strcasecmp(i32 %55, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %25
58: ; preds = %54, %49
%59 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 1
%60 = load i32, i32* %59
%61 = call i32 @unlink(i32 %60)
br label %25
62: ; preds = %19
br i1 %16, label %63, label %25
63: ; preds = %62
%64 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 2
%65 = load i32, i32* %64
%66 = call i32 @strcmp(i32 %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%67 = icmp eq i32 %66, 0
br i1 %67, label %72, label %68
68: ; preds = %63
%69 = load i32, i32* %64
%70 = call i32 @strcmp(i32 %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%71 = icmp eq i32 %70, 0
br i1 %71, label %72, label %25
72: ; preds = %68, %63
%73 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %20, i64 0, i32 1
%74 = load i32, i32* %73
%75 = call i32 @PBRemoveDirectory(i32 %74)
br label %25
76: ; preds = %25, %12
%77 = call i32 @fts_close(i32* %10)
%78 = load i64, i64* @errno
%79 = icmp ne i64 %78, 0
%80 = zext i1 %79 to i32
br label %81
81: ; preds = %76, %4, %23
%82 = phi i32 [ 1, %23 ], [ 1, %4 ], [ %80, %76 ]
ret i32 %82
}