#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*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ leads(char *, char *);
int lgetxattr(char *, char *, char *, int);
int lsetxattr(char *, char *, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ rules(char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  int rc;
  int argi;
  int transmute = 0;
  char buffer[23 + 1];
  char *access = NULL;
  char *mm = NULL;
  char *execute = NULL;
  for (argi = 1; argi < argc; argi++) {
    if (strcmp(argv[argi], "-a") == 0)
      access = argv[++argi];
    else if (leads(argv[argi], "--access="))
      access = argv[argi] + strlen("--access=");
    else if (strcmp(argv[argi], "-e") == 0)
      execute = argv[++argi];
    else if (leads(argv[argi], "--exec="))
      execute = argv[argi] + strlen("--exec=");
    else if (leads(argv[argi], "--execute="))
      execute = argv[argi] + strlen("--execute=");
    else if (strcmp(argv[argi], "-m") == 0)
      mm = argv[++argi];
    else if (leads(argv[argi], "--mmap="))
      mm = argv[argi] + strlen("--mmap=");
    else if (strcmp(argv[argi], "-t") == 0)
      transmute = 1;
    else if (strcmp(argv[argi], "--transmute") == 0)
      transmute = 1;
    else if (*argv[argi] == '-') {
      fprintf(stderr, "Invalid argument \"%s\".\n", argv[argi]);
      exit(1);
    } else
      break;
  }
  if (argi >= argc) {
    fprintf(stderr, "No files specified.\n");
    exit(1);
  }
  if (access != NULL && rules(access)) {
    fprintf(stderr, "Access label \"%s\" violates SMACK label rules.\n",
            access);
    exit(1);
  }
  if (mm != NULL && rules(mm)) {
    fprintf(stderr, "mmap label \"%s\" violates SMACK label rules.\n", mm);
    exit(1);
  }
  if (execute != NULL && rules(execute)) {
    fprintf(stderr, "execute label \"%s\" violates SMACK label rules.\n",
            execute);
    exit(1);
  }
  for (; argi < argc; argi++) {
    if (access == NULL && mm == NULL && execute == NULL && !transmute) {
      printf("%s", argv[argi]);
      rc = lgetxattr(argv[argi], "security.SMACK64", buffer, 23 + 1);
      if (rc > 0) {
        buffer[rc] = '\0';
        printf(" access=\"%s\"", buffer);
      }
      rc = lgetxattr(argv[argi], "security.SMACK64EXEC", buffer, 23 + 1);
      if (rc > 0) {
        buffer[rc] = '\0';
        printf(" execute=\"%s\"", buffer);
      }
      rc = lgetxattr(argv[argi], "security.SMACK64MMAP", buffer, 23 + 1);
      if (rc > 0) {
        buffer[rc] = '\0';
        printf(" mmap=\"%s\"", buffer);
      }
      rc = lgetxattr(argv[argi], "security.SMACK64TRANSMUTE", buffer, 23 + 1);
      if (rc > 0) {
        buffer[rc] = '\0';
        printf(" transmute=\"%s\"", buffer);
      }
      printf("\n");
      continue;
    }
    if (access != NULL) {
      rc = lsetxattr(argv[argi], "security.SMACK64", access, strlen(access) + 1,
                     0);
      if (rc < 0)
        perror(argv[argi]);
    }
    if (execute != NULL) {
      rc = lsetxattr(argv[argi], "security.SMACK64EXEC", execute,
                     strlen(execute) + 1, 0);
      if (rc < 0)
        perror(argv[argi]);
    }
    if (mm != NULL) {
      rc = lsetxattr(argv[argi], "security.SMACK64MMAP", mm, strlen(mm) + 1, 0);
      if (rc < 0)
        perror(argv[argi]);
    }
    if (transmute) {
      rc = lsetxattr(argv[argi], "security.SMACK64TRANSMUTE", "TRUE", 4, 0);
      if (rc < 0)
        perror(argv[argi]);
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
movq   $0x0,-0x58(%rbp)
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    14d5 <main+0x335>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe02(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    122a <main+0x8a>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
jmp    14c2 <main+0x322>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdc6(%rip),%rsi
call   1060 <leads@plt>
cmp    $0x0,%rax
je     127d <main+0xdd>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x60(%rbp)
lea    0xda0(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
jmp    14bd <main+0x31d>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd7d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12bc <main+0x11c>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x58(%rbp)
jmp    14b8 <main+0x318>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xd41(%rip),%rsi
call   1060 <leads@plt>
cmp    $0x0,%rax
je     130f <main+0x16f>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x68(%rbp)
lea    0xd1b(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    14b3 <main+0x313>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcf6(%rip),%rsi
call   1060 <leads@plt>
cmp    $0x0,%rax
je     1362 <main+0x1c2>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x70(%rbp)
lea    0xcd0(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x70(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    14ae <main+0x30e>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcae(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13a1 <main+0x201>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x18(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x50(%rbp)
jmp    14a9 <main+0x309>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc72(%rip),%rsi
call   1060 <leads@plt>
cmp    $0x0,%rax
je     13f4 <main+0x254>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x78(%rbp)
lea    0xc4c(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x78(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
jmp    14a4 <main+0x304>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc27(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1422 <main+0x282>
movl   $0x1,-0x1c(%rbp)
jmp    149f <main+0x2ff>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xbfc(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1450 <main+0x2b0>
movl   $0x1,-0x1c(%rbp)
jmp    149a <main+0x2fa>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1495 <main+0x2f5>
mov    0x2b71(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xbb9(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
jmp    14d5 <main+0x335>
jmp    149f <main+0x2ff>
jmp    14a4 <main+0x304>
jmp    14a9 <main+0x309>
jmp    14ae <main+0x30e>
jmp    14b3 <main+0x313>
jmp    14b8 <main+0x318>
jmp    14bd <main+0x31d>
jmp    14c2 <main+0x322>
jmp    14c7 <main+0x327>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11df <main+0x3f>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     1502 <main+0x362>
mov    0x2af8(%rip),%rax
mov    (%rax),%edi
lea    0xb64(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
cmpq   $0x0,-0x48(%rbp)
je     1545 <main+0x3a5>
mov    -0x48(%rbp),%rdi
call   1090 <rules@plt>
cmp    $0x0,%rax
je     1545 <main+0x3a5>
mov    0x2ab9(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%rdx
lea    0xb36(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
cmpq   $0x0,-0x50(%rbp)
je     1588 <main+0x3e8>
mov    -0x50(%rbp),%rdi
call   1090 <rules@plt>
cmp    $0x0,%rax
je     1588 <main+0x3e8>
mov    0x2a76(%rip),%rax
mov    (%rax),%edi
mov    -0x50(%rbp),%rdx
lea    0xb22(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
cmpq   $0x0,-0x58(%rbp)
je     15cb <main+0x42b>
mov    -0x58(%rbp),%rdi
call   1090 <rules@plt>
cmp    $0x0,%rax
je     15cb <main+0x42b>
mov    0x2a33(%rip),%rax
mov    (%rax),%edi
mov    -0x58(%rbp),%rdx
lea    0xb0c(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
jmp    15d0 <main+0x430>
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    191e <main+0x77e>
cmpq   $0x0,-0x48(%rbp)
jne    1758 <main+0x5b8>
cmpq   $0x0,-0x50(%rbp)
jne    1758 <main+0x5b8>
cmpq   $0x0,-0x58(%rbp)
jne    1758 <main+0x5b8>
cmpl   $0x0,-0x1c(%rbp)
jne    1758 <main+0x5b8>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xadc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x40(%rbp),%rdx
lea    0xac1(%rip),%rsi
mov    $0x18,%ecx
call   1030 <lgetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    166a <main+0x4ca>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rsi
lea    0xaa7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x40(%rbp),%rdx
lea    0xa96(%rip),%rsi
mov    $0x18,%ecx
call   1030 <lgetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    16b3 <main+0x513>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rsi
lea    0xa80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x40(%rbp),%rdx
lea    0xa70(%rip),%rsi
mov    $0x18,%ecx
call   1030 <lgetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    16fc <main+0x55c>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rsi
lea    0xa5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x40(%rbp),%rdx
lea    0xa47(%rip),%rsi
mov    $0x18,%ecx
call   1030 <lgetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    1745 <main+0x5a5>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rsi
lea    0xa36(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x907(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1910 <main+0x770>
cmpq   $0x0,-0x48(%rbp)
je     17c9 <main+0x629>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x88(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x48(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x88(%rbp),%rdi
mov    -0x80(%rbp),%rdx
mov    %eax,%ecx
add    $0x1,%ecx
lea    0x95b(%rip),%rsi
xor    %r8d,%r8d
call   10a0 <lsetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    17c4 <main+0x624>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <perror@plt>
jmp    17c9 <main+0x629>
cmpq   $0x0,-0x58(%rbp)
je     1840 <main+0x6a0>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x98(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x58(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x98(%rbp),%rdi
mov    -0x90(%rbp),%rdx
mov    %eax,%ecx
add    $0x1,%ecx
lea    0x902(%rip),%rsi
xor    %r8d,%r8d
call   10a0 <lsetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    183b <main+0x69b>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <perror@plt>
jmp    1840 <main+0x6a0>
cmpq   $0x0,-0x50(%rbp)
je     18b7 <main+0x717>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x50(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xa8(%rbp),%rdi
mov    -0xa0(%rbp),%rdx
mov    %eax,%ecx
add    $0x1,%ecx
lea    0x8ae(%rip),%rsi
xor    %r8d,%r8d
call   10a0 <lsetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    18b2 <main+0x712>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <perror@plt>
jmp    18b7 <main+0x717>
cmpl   $0x0,-0x1c(%rbp)
je     190b <main+0x76b>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0x886(%rip),%rsi
lea    0x8a9(%rip),%rdx
mov    $0x4,%ecx
xor    %r8d,%r8d
call   10a0 <lsetxattr@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1906 <main+0x766>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <perror@plt>
jmp    190b <main+0x76b>
jmp    1910 <main+0x770>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15d0 <main+0x430>
xor    %edi,%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdi,0x28(%rsp)
cmp    $0x2,%edi
jl     13b3 <main+0x203>
mov    %rsi,%rbp
mov    $0x1,%r13d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
lea    0xe20(%rip),%r14
xor    %eax,%eax
mov    %rax,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
movl   $0x0,0xc(%rsp)
mov    %rsi,(%rsp)
jmp    121d <main+0x6d>
nop
add    $0x1,%r13d
mov    0x8(%rbp,%r15,8),%rax
mov    %rax,0x20(%rsp)
add    $0x1,%r13d
cmp    0x28(%rsp),%r13d
jge    13b3 <main+0x203>
movslq %r13d,%r15
mov    0x0(%rbp,%r15,8),%rdi
lea    0xdd4(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1200 <main+0x50>
mov    0x0(%rbp,%r15,8),%rdi
mov    %r14,%r12
mov    %r14,%rsi
call   1070 <leads@plt>
mov    0x0(%rbp,%r15,8),%rbp
test   %rax,%rax
je     1270 <main+0xc0>
mov    %r12,%rdi
call   1050 <strlen@plt>
cltq
add    %rax,%rbp
mov    %rbp,0x20(%rsp)
mov    %r12,%r14
mov    (%rsp),%rbp
jmp    120e <main+0x5e>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
lea    0xd93(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12bf <main+0x10f>
mov    (%rsp),%rbx
mov    (%rbx,%r15,8),%rdi
lea    0xd7d(%rip),%rsi
call   1070 <leads@plt>
mov    %rbx,%rbp
mov    (%rbx,%r15,8),%r12
test   %rax,%rax
je     12d6 <main+0x126>
lea    0xd65(%rip),%rdi
call   1050 <strlen@plt>
cltq
add    %rax,%r12
mov    %r12,0x10(%rsp)
jmp    120e <main+0x5e>
add    $0x1,%r13d
mov    (%rsp),%rbp
mov    0x8(%rbp,%r15,8),%rax
mov    %rax,0x10(%rsp)
jmp    120e <main+0x5e>
mov    %r12,%rdi
lea    0xd38(%rip),%rbx
mov    %rbx,%rsi
call   1070 <leads@plt>
mov    0x0(%rbp,%r15,8),%rbp
test   %rax,%rax
je     1309 <main+0x159>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
add    %rax,%rbp
mov    %rbp,0x10(%rsp)
jmp    1265 <main+0xb5>
mov    %rbp,%rdi
lea    0xd10(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1354 <main+0x1a4>
mov    (%rsp),%rbx
mov    (%rbx,%r15,8),%rdi
lea    0xcfa(%rip),%r12
mov    %r12,%rsi
call   1070 <leads@plt>
mov    (%rbx,%r15,8),%rbp
test   %rax,%rax
je     136b <main+0x1bb>
mov    %r12,%rdi
call   1050 <strlen@plt>
cltq
add    %rax,%rbp
mov    %rbp,0x18(%rsp)
jmp    1265 <main+0xb5>
add    $0x1,%r13d
mov    (%rsp),%rbp
mov    0x8(%rbp,%r15,8),%rax
mov    %rax,0x18(%rsp)
jmp    120e <main+0x5e>
mov    %rbp,%rdi
lea    0xcb9(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     13a6 <main+0x1f6>
mov    (%rsp),%rbp
mov    0x0(%rbp,%r15,8),%rdi
lea    0xca2(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    13d4 <main+0x224>
movl   $0x1,0xc(%rsp)
jmp    120e <main+0x5e>
movl   $0x1,0xc(%rsp)
jmp    1265 <main+0xb5>
mov    0x2c26(%rip),%rax
mov    (%rax),%edi
lea    0xc92(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    0x0(%rbp,%r15,8),%rdx
cmpb   $0x2d,(%rdx)
jne    13f3 <main+0x243>
mov    0x2bfb(%rip),%rax
mov    (%rax),%edi
lea    0xc4f(%rip),%rsi
jmp    16f3 <main+0x543>
mov    0x20(%rsp),%rbp
test   %rbp,%rbp
je     140e <main+0x25e>
mov    %rbp,%rdi
call   10a0 <rules@plt>
test   %rax,%rax
jne    16bc <main+0x50c>
mov    0x18(%rsp),%rbp
test   %rbp,%rbp
je     1429 <main+0x279>
mov    %rbp,%rdi
call   10a0 <rules@plt>
test   %rax,%rax
jne    16ce <main+0x51e>
mov    0x10(%rsp),%rbp
test   %rbp,%rbp
je     1444 <main+0x294>
mov    %rbp,%rdi
call   10a0 <rules@plt>
test   %rax,%rax
jne    16e0 <main+0x530>
cmp    0x28(%rsp),%r13d
jge    16b5 <main+0x505>
mov    0x20(%rsp),%rax
or     0x18(%rsp),%rax
or     0x10(%rsp),%rax
setne  %al
cmpl   $0x0,0xc(%rsp)
setne  %bpl
or     %al,%bpl
mov    (%rsp),%rax
lea    (%rax,%r15,8),%r14
mov    0x28(%rsp),%rax
sub    %r13d,%eax
mov    %rax,0x28(%rsp)
lea    0x30(%rsp),%r12
xor    %ebx,%ebx
jmp    14a8 <main+0x2f8>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %ebx,0x28(%rsp)
je     16b5 <main+0x505>
test   %bpl,%bpl
je     15a0 <main+0x3f0>
mov    %ebp,%r13d
mov    0x20(%rsp),%rbp
test   %rbp,%rbp
je     14ea <main+0x33a>
mov    (%r14,%rbx,8),%r15
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%ecx
mov    %r15,%rdi
lea    0xc22(%rip),%rsi
mov    %rbp,%rdx
xor    %r8d,%r8d
call   10b0 <lsetxattr@plt>
test   %eax,%eax
js     168b <main+0x4db>
mov    0x10(%rsp),%rbp
test   %rbp,%rbp
je     1520 <main+0x370>
mov    (%r14,%rbx,8),%r15
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%ecx
mov    %r15,%rdi
lea    0xc0a(%rip),%rsi
mov    %rbp,%rdx
xor    %r8d,%r8d
call   10b0 <lsetxattr@plt>
test   %eax,%eax
js     1699 <main+0x4e9>
mov    0x18(%rsp),%rbp
test   %rbp,%rbp
je     1556 <main+0x3a6>
mov    (%r14,%rbx,8),%r15
mov    %rbp,%rdi
call   1050 <strlen@plt>
lea    0x1(%rax),%ecx
mov    %r15,%rdi
lea    0xbf7(%rip),%rsi
mov    %rbp,%rdx
xor    %r8d,%r8d
call   10b0 <lsetxattr@plt>
test   %eax,%eax
js     16a7 <main+0x4f7>
cmpl   $0x0,0xc(%rsp)
mov    %r13d,%ebp
je     149a <main+0x2ea>
mov    (%r14,%rbx,8),%rdi
lea    0xbeb(%rip),%rsi
lea    0xc0e(%rip),%rdx
mov    $0x4,%ecx
xor    %r8d,%r8d
call   10b0 <lsetxattr@plt>
test   %eax,%eax
jns    149a <main+0x2ea>
mov    (%r14,%rbx,8),%rdi
call   10c0 <perror@plt>
jmp    149a <main+0x2ea>
nopl   0x0(%rax)
mov    (%r14,%rbx,8),%rsi
lea    0xb4b(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14,%rbx,8),%rdi
lea    0xb3c(%rip),%rsi
mov    %r12,%rdx
mov    $0x18,%ecx
call   1040 <lgetxattr@plt>
test   %eax,%eax
jle    15e6 <main+0x436>
mov    %eax,%eax
movb   $0x0,0x30(%rsp,%rax,1)
lea    0xb2e(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14,%rbx,8),%rdi
lea    0xb26(%rip),%rsi
mov    %r12,%rdx
mov    $0x18,%ecx
call   1040 <lgetxattr@plt>
test   %eax,%eax
jle    161a <main+0x46a>
mov    %eax,%eax
movb   $0x0,0x30(%rsp,%rax,1)
lea    0xb1c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14,%rbx,8),%rdi
lea    0xb15(%rip),%rsi
mov    %r12,%rdx
mov    $0x18,%ecx
call   1040 <lgetxattr@plt>
test   %eax,%eax
jle    164e <main+0x49e>
mov    %eax,%eax
movb   $0x0,0x30(%rsp,%rax,1)
lea    0xb0b(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r14,%rbx,8),%rdi
lea    0xb01(%rip),%rsi
mov    %r12,%rdx
mov    $0x18,%ecx
call   1040 <lgetxattr@plt>
test   %eax,%eax
jle    1490 <main+0x2e0>
mov    %eax,%eax
movb   $0x0,0x30(%rsp,%rax,1)
lea    0xaf8(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1490 <main+0x2e0>
mov    (%r14,%rbx,8),%rdi
call   10c0 <perror@plt>
jmp    14ea <main+0x33a>
mov    (%r14,%rbx,8),%rdi
call   10c0 <perror@plt>
jmp    1520 <main+0x370>
mov    (%r14,%rbx,8),%rdi
call   10c0 <perror@plt>
jmp    1556 <main+0x3a6>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    0x291d(%rip),%rax
mov    (%rax),%edi
lea    0x99e(%rip),%rsi
jmp    16f0 <main+0x540>
mov    0x290b(%rip),%rax
mov    (%rax),%edi
lea    0x9bb(%rip),%rsi
jmp    16f0 <main+0x540>
mov    0x28f9(%rip),%rax
mov    (%rax),%edi
lea    0x9d6(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-a\00"
@.str.1 = [10 x i8] c"--access=\00"
@.str.2 = [3 x i8] c"-e\00"
@.str.3 = [8 x i8] c"--exec=\00"
@.str.4 = [11 x i8] c"--execute=\00"
@.str.5 = [3 x i8] c"-m\00"
@.str.6 = [8 x i8] c"--mmap=\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [12 x i8] c"--transmute\00"
@stderr = global i32 0
@.str.9 = [24 x i8] c"Invalid argument \22%s\22.\0A\00"
@.str.10 = [21 x i8] c"No files specified.\0A\00"
@.str.11 = [47 x i8] c"Access label \22%s\22 violates SMACK label rules.\0A\00"
@.str.12 = [45 x i8] c"mmap label \22%s\22 violates SMACK label rules.\0A\00"
@.str.13 = [48 x i8] c"execute label \22%s\22 violates SMACK label rules.\0A\00"
@.str.14 = [3 x i8] c"%s\00"
@.str.15 = [17 x i8] c"security.SMACK64\00"
@.str.16 = [13 x i8] c" access=\22%s\22\00"
@.str.17 = [21 x i8] c"security.SMACK64EXEC\00"
@.str.18 = [14 x i8] c" execute=\22%s\22\00"
@.str.19 = [21 x i8] c"security.SMACK64MMAP\00"
@.str.20 = [11 x i8] c" mmap=\22%s\22\00"
@.str.21 = [26 x i8] c"security.SMACK64TRANSMUTE\00"
@.str.22 = [16 x i8] c" transmute=\22%s\22\00"
@.str.23 = [2 x i8] c"\0A\00"
@.str.24 = [5 x i8] c"TRUE\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [24 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i8* null, i8** %10
store i8* null, i8** %11
store i8* null, i8** %12
store i32 1, i32* %7
br label %13
13: ; preds = %176, %2
%14 = load i32, i32* %7
%15 = load i32, i32* %4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %179
17: ; preds = %13
%18 = load i8**, i8*** %5
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %18, i64 %20
%22 = load i8*, i8** %21
%23 = call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %17
%26 = load i8**, i8*** %5
%27 = load i32, i32* %7
%28 = add nsw i32 %27, 1
store i32 %28, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %26, i64 %29
%31 = load i8*, i8** %30
store i8* %31, i8** %10
br label %175
32: ; preds = %17
%33 = load i8**, i8*** %5
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %33, i64 %35
%37 = load i8*, i8** %36
%38 = call i64 @leads(i8* %37, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %49
40: ; preds = %32
%41 = load i8**, i8*** %5
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8*, i8** %41, i64 %43
%45 = load i8*, i8** %44
%46 = call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %45, i64 %47
store i8* %48, i8** %10
br label %174
49: ; preds = %32
%50 = load i8**, i8*** %5
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8*, i8** %50, i64 %52
%54 = load i8*, i8** %53
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %64
57: ; preds = %49
%58 = load i8**, i8*** %5
%59 = load i32, i32* %7
%60 = add nsw i32 %59, 1
store i32 %60, i32* %7
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8*, i8** %58, i64 %61
%63 = load i8*, i8** %62
store i8* %63, i8** %12
br label %173
64: ; preds = %49
%65 = load i8**, i8*** %5
%66 = load i32, i32* %7
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8*, i8** %65, i64 %67
%69 = load i8*, i8** %68
%70 = call i64 @leads(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %81
72: ; preds = %64
%73 = load i8**, i8*** %5
%74 = load i32, i32* %7
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %73, i64 %75
%77 = load i8*, i8** %76
%78 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %77, i64 %79
store i8* %80, i8** %12
br label %172
81: ; preds = %64
%82 = load i8**, i8*** %5
%83 = load i32, i32* %7
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %82, i64 %84
%86 = load i8*, i8** %85
%87 = call i64 @leads(i8* %86, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %98
89: ; preds = %81
%90 = load i8**, i8*** %5
%91 = load i32, i32* %7
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8*, i8** %90, i64 %92
%94 = load i8*, i8** %93
%95 = call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, i8* %94, i64 %96
store i8* %97, i8** %12
br label %171
98: ; preds = %81
%99 = load i8**, i8*** %5
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8*, i8** %99, i64 %101
%103 = load i8*, i8** %102
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %113
106: ; preds = %98
%107 = load i8**, i8*** %5
%108 = load i32, i32* %7
%109 = add nsw i32 %108, 1
store i32 %109, i32* %7
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8*, i8** %107, i64 %110
%112 = load i8*, i8** %111
store i8* %112, i8** %11
br label %170
113: ; preds = %98
%114 = load i8**, i8*** %5
%115 = load i32, i32* %7
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8*, i8** %114, i64 %116
%118 = load i8*, i8** %117
%119 = call i64 @leads(i8* %118, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %130
121: ; preds = %113
%122 = load i8**, i8*** %5
%123 = load i32, i32* %7
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8*, i8** %122, i64 %124
%126 = load i8*, i8** %125
%127 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, i8* %126, i64 %128
store i8* %129, i8** %11
br label %169
130: ; preds = %113
%131 = load i8**, i8*** %5
%132 = load i32, i32* %7
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8*, i8** %131, i64 %133
%135 = load i8*, i8** %134
%136 = call i64 @strcmp(i8* %135, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %139
138: ; preds = %130
store i32 1, i32* %8
br label %168
139: ; preds = %130
%140 = load i8**, i8*** %5
%141 = load i32, i32* %7
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8*, i8** %140, i64 %142
%144 = load i8*, i8** %143
%145 = call i64 @strcmp(i8* %144, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %148
147: ; preds = %139
store i32 1, i32* %8
br label %167
148: ; preds = %139
%149 = load i8**, i8*** %5
%150 = load i32, i32* %7
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i8*, i8** %149, i64 %151
%153 = load i8*, i8** %152
%154 = load i8, i8* %153
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 45
br i1 %156, label %157, label %166
157: ; preds = %148
%158 = load i32, i32* @stderr
%159 = load i8**, i8*** %5
%160 = load i32, i32* %7
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds i8*, i8** %159, i64 %161
%163 = load i8*, i8** %162
%164 = call i32 (i32, i8*, ...) @fprintf(i32 %158, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %163)
%165 = call i32 @exit(i32 1)
unreachable
166: ; preds = %148
br label %179
167: ; preds = %147
br label %168
168: ; preds = %167, %138
br label %169
169: ; preds = %168, %121
br label %170
170: ; preds = %169, %106
br label %171
171: ; preds = %170, %89
br label %172
172: ; preds = %171, %72
br label %173
173: ; preds = %172, %57
br label %174
174: ; preds = %173, %40
br label %175
175: ; preds = %174, %25
br label %176
176: ; preds = %175
%177 = load i32, i32* %7
%178 = add nsw i32 %177, 1
store i32 %178, i32* %7
br label %13
179: ; preds = %166, %13
%180 = load i32, i32* %7
%181 = load i32, i32* %4
%182 = icmp sge i32 %180, %181
br i1 %182, label %183, label %187
183: ; preds = %179
%184 = load i32, i32* @stderr
%185 = call i32 (i32, i8*, ...) @fprintf(i32 %184, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%186 = call i32 @exit(i32 1)
unreachable
187: ; preds = %179
%188 = load i8*, i8** %10
%189 = icmp ne i8* %188, null
br i1 %189, label %190, label %199
190: ; preds = %187
%191 = load i8*, i8** %10
%192 = call i64 @rules(i8* %191)
%193 = icmp ne i64 %192, 0
br i1 %193, label %194, label %199
194: ; preds = %190
%195 = load i32, i32* @stderr
%196 = load i8*, i8** %10
%197 = call i32 (i32, i8*, ...) @fprintf(i32 %195, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i8* %196)
%198 = call i32 @exit(i32 1)
unreachable
199: ; preds = %190, %187
%200 = load i8*, i8** %11
%201 = icmp ne i8* %200, null
br i1 %201, label %202, label %211
202: ; preds = %199
%203 = load i8*, i8** %11
%204 = call i64 @rules(i8* %203)
%205 = icmp ne i64 %204, 0
br i1 %205, label %206, label %211
206: ; preds = %202
%207 = load i32, i32* @stderr
%208 = load i8*, i8** %11
%209 = call i32 (i32, i8*, ...) @fprintf(i32 %207, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0), i8* %208)
%210 = call i32 @exit(i32 1)
unreachable
211: ; preds = %202, %199
%212 = load i8*, i8** %12
%213 = icmp ne i8* %212, null
br i1 %213, label %214, label %223
214: ; preds = %211
%215 = load i8*, i8** %12
%216 = call i64 @rules(i8* %215)
%217 = icmp ne i64 %216, 0
br i1 %217, label %218, label %223
218: ; preds = %214
%219 = load i32, i32* @stderr
%220 = load i8*, i8** %12
%221 = call i32 (i32, i8*, ...) @fprintf(i32 %219, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0), i8* %220)
%222 = call i32 @exit(i32 1)
unreachable
223: ; preds = %214, %211
br label %224
224: ; preds = %405, %223
%225 = load i32, i32* %7
%226 = load i32, i32* %4
%227 = icmp slt i32 %225, %226
br i1 %227, label %228, label %408
228: ; preds = %224
%229 = load i8*, i8** %10
%230 = icmp eq i8* %229, null
br i1 %230, label %231, label %312
231: ; preds = %228
%232 = load i8*, i8** %11
%233 = icmp eq i8* %232, null
br i1 %233, label %234, label %312
234: ; preds = %231
%235 = load i8*, i8** %12
%236 = icmp eq i8* %235, null
br i1 %236, label %237, label %312
237: ; preds = %234
%238 = load i32, i32* %8
%239 = icmp ne i32 %238, 0
br i1 %239, label %312, label %240
240: ; preds = %237
%241 = load i8**, i8*** %5
%242 = load i32, i32* %7
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i8*, i8** %241, i64 %243
%245 = load i8*, i8** %244
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %245)
%247 = load i8**, i8*** %5
%248 = load i32, i32* %7
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds i8*, i8** %247, i64 %249
%251 = load i8*, i8** %250
%252 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%253 = call i32 @lgetxattr(i8* %251, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %252, i32 24)
store i32 %253, i32* %6
%254 = load i32, i32* %6
%255 = icmp sgt i32 %254, 0
br i1 %255, label %256, label %262
256: ; preds = %240
%257 = load i32, i32* %6
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 %258
store i8 0, i8* %259
%260 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%261 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %260)
br label %262
262: ; preds = %256, %240
%263 = load i8**, i8*** %5
%264 = load i32, i32* %7
%265 = sext i32 %264 to i64
%266 = getelementptr inbounds i8*, i8** %263, i64 %265
%267 = load i8*, i8** %266
%268 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%269 = call i32 @lgetxattr(i8* %267, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %268, i32 24)
store i32 %269, i32* %6
%270 = load i32, i32* %6
%271 = icmp sgt i32 %270, 0
br i1 %271, label %272, label %278
272: ; preds = %262
%273 = load i32, i32* %6
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 %274
store i8 0, i8* %275
%276 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%277 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i8* %276)
br label %278
278: ; preds = %272, %262
%279 = load i8**, i8*** %5
%280 = load i32, i32* %7
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i8*, i8** %279, i64 %281
%283 = load i8*, i8** %282
%284 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%285 = call i32 @lgetxattr(i8* %283, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0), i8* %284, i32 24)
store i32 %285, i32* %6
%286 = load i32, i32* %6
%287 = icmp sgt i32 %286, 0
br i1 %287, label %288, label %294
288: ; preds = %278
%289 = load i32, i32* %6
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 %290
store i8 0, i8* %291
%292 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%293 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i8* %292)
br label %294
294: ; preds = %288, %278
%295 = load i8**, i8*** %5
%296 = load i32, i32* %7
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds i8*, i8** %295, i64 %297
%299 = load i8*, i8** %298
%300 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%301 = call i32 @lgetxattr(i8* %299, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* %300, i32 24)
store i32 %301, i32* %6
%302 = load i32, i32* %6
%303 = icmp sgt i32 %302, 0
br i1 %303, label %304, label %310
304: ; preds = %294
%305 = load i32, i32* %6
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 %306
store i8 0, i8* %307
%308 = getelementptr inbounds [24 x i8], [24 x i8]* %9, i64 0, i64 0
%309 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i8* %308)
br label %310
310: ; preds = %304, %294
%311 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %405
312: ; preds = %237, %234, %231, %228
%313 = load i8*, i8** %10
%314 = icmp ne i8* %313, null
br i1 %314, label %315, label %336
315: ; preds = %312
%316 = load i8**, i8*** %5
%317 = load i32, i32* %7
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds i8*, i8** %316, i64 %318
%320 = load i8*, i8** %319
%321 = load i8*, i8** %10
%322 = load i8*, i8** %10
%323 = call i32 @strlen(i8* %322)
%324 = add nsw i32 %323, 1
%325 = call i32 @lsetxattr(i8* %320, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %321, i32 %324, i32 0)
store i32 %325, i32* %6
%326 = load i32, i32* %6
%327 = icmp slt i32 %326, 0
br i1 %327, label %328, label %335
328: ; preds = %315
%329 = load i8**, i8*** %5
%330 = load i32, i32* %7
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds i8*, i8** %329, i64 %331
%333 = load i8*, i8** %332
%334 = call i32 @perror(i8* %333)
br label %335
335: ; preds = %328, %315
br label %336
336: ; preds = %335, %312
%337 = load i8*, i8** %12
%338 = icmp ne i8* %337, null
br i1 %338, label %339, label %360
339: ; preds = %336
%340 = load i8**, i8*** %5
%341 = load i32, i32* %7
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds i8*, i8** %340, i64 %342
%344 = load i8*, i8** %343
%345 = load i8*, i8** %12
%346 = load i8*, i8** %12
%347 = call i32 @strlen(i8* %346)
%348 = add nsw i32 %347, 1
%349 = call i32 @lsetxattr(i8* %344, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %345, i32 %348, i32 0)
store i32 %349, i32* %6
%350 = load i32, i32* %6
%351 = icmp slt i32 %350, 0
br i1 %351, label %352, label %359
352: ; preds = %339
%353 = load i8**, i8*** %5
%354 = load i32, i32* %7
%355 = sext i32 %354 to i64
%356 = getelementptr inbounds i8*, i8** %353, i64 %355
%357 = load i8*, i8** %356
%358 = call i32 @perror(i8* %357)
br label %359
359: ; preds = %352, %339
br label %360
360: ; preds = %359, %336
%361 = load i8*, i8** %11
%362 = icmp ne i8* %361, null
br i1 %362, label %363, label %384
363: ; preds = %360
%364 = load i8**, i8*** %5
%365 = load i32, i32* %7
%366 = sext i32 %365 to i64
%367 = getelementptr inbounds i8*, i8** %364, i64 %366
%368 = load i8*, i8** %367
%369 = load i8*, i8** %11
%370 = load i8*, i8** %11
%371 = call i32 @strlen(i8* %370)
%372 = add nsw i32 %371, 1
%373 = call i32 @lsetxattr(i8* %368, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0), i8* %369, i32 %372, i32 0)
store i32 %373, i32* %6
%374 = load i32, i32* %6
%375 = icmp slt i32 %374, 0
br i1 %375, label %376, label %383
376: ; preds = %363
%377 = load i8**, i8*** %5
%378 = load i32, i32* %7
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds i8*, i8** %377, i64 %379
%381 = load i8*, i8** %380
%382 = call i32 @perror(i8* %381)
br label %383
383: ; preds = %376, %363
br label %384
384: ; preds = %383, %360
%385 = load i32, i32* %8
%386 = icmp ne i32 %385, 0
br i1 %386, label %387, label %404
387: ; preds = %384
%388 = load i8**, i8*** %5
%389 = load i32, i32* %7
%390 = sext i32 %389 to i64
%391 = getelementptr inbounds i8*, i8** %388, i64 %390
%392 = load i8*, i8** %391
%393 = call i32 @lsetxattr(i8* %392, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 4, i32 0)
store i32 %393, i32* %6
%394 = load i32, i32* %6
%395 = icmp slt i32 %394, 0
br i1 %395, label %396, label %403
396: ; preds = %387
%397 = load i8**, i8*** %5
%398 = load i32, i32* %7
%399 = sext i32 %398 to i64
%400 = getelementptr inbounds i8*, i8** %397, i64 %399
%401 = load i8*, i8** %400
%402 = call i32 @perror(i8* %401)
br label %403
403: ; preds = %396, %387
br label %404
404: ; preds = %403, %384
br label %405
405: ; preds = %404, %310
%406 = load i32, i32* %7
%407 = add nsw i32 %406, 1
store i32 %407, i32* %7
br label %224
408: ; preds = %224
%409 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"-a\00"
@.str.1 = [10 x i8] c"--access=\00"
@.str.2 = [3 x i8] c"-e\00"
@.str.3 = [8 x i8] c"--exec=\00"
@.str.4 = [11 x i8] c"--execute=\00"
@.str.5 = [3 x i8] c"-m\00"
@.str.6 = [8 x i8] c"--mmap=\00"
@.str.7 = [3 x i8] c"-t\00"
@.str.8 = [12 x i8] c"--transmute\00"
@stderr = global i32 0
@.str.9 = [24 x i8] c"Invalid argument \22%s\22.\0A\00"
@.str.10 = [21 x i8] c"No files specified.\0A\00"
@.str.11 = [47 x i8] c"Access label \22%s\22 violates SMACK label rules.\0A\00"
@.str.12 = [45 x i8] c"mmap label \22%s\22 violates SMACK label rules.\0A\00"
@.str.13 = [48 x i8] c"execute label \22%s\22 violates SMACK label rules.\0A\00"
@.str.14 = [3 x i8] c"%s\00"
@.str.15 = [17 x i8] c"security.SMACK64\00"
@.str.16 = [13 x i8] c" access=\22%s\22\00"
@.str.17 = [21 x i8] c"security.SMACK64EXEC\00"
@.str.18 = [14 x i8] c" execute=\22%s\22\00"
@.str.19 = [21 x i8] c"security.SMACK64MMAP\00"
@.str.20 = [11 x i8] c" mmap=\22%s\22\00"
@.str.21 = [26 x i8] c"security.SMACK64TRANSMUTE\00"
@.str.22 = [16 x i8] c" transmute=\22%s\22\00"
@.str.24 = [5 x i8] c"TRUE\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [24 x i8]
%4 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 0
%5 = icmp sgt i32 %0, 1
br i1 %5, label %6, label %96
6: ; preds = %2, %88
%7 = phi i8* [ %93, %88 ], [ null, %2 ]
%8 = phi i8* [ %92, %88 ], [ null, %2 ]
%9 = phi i8* [ %91, %88 ], [ null, %2 ]
%10 = phi i32 [ %90, %88 ], [ 0, %2 ]
%11 = phi i32 [ %94, %88 ], [ 1, %2 ]
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8*, i8** %1, i64 %12
%14 = load i8*, i8** %13
%15 = tail call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %22
17: ; preds = %6
%18 = add nsw i32 %11, 1
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %1, i64 %19
%21 = load i8*, i8** %20
br label %88
22: ; preds = %6
%23 = load i8*, i8** %13
%24 = tail call i64 @leads(i8* %23, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
%26 = load i8*, i8** %13
br i1 %25, label %31, label %27
27: ; preds = %22
%28 = tail call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, i8* %26, i64 %29
br label %88
31: ; preds = %22
%32 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %31
%35 = add nsw i32 %11, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %1, i64 %36
%38 = load i8*, i8** %37
br label %88
39: ; preds = %31
%40 = load i8*, i8** %13
%41 = tail call i64 @leads(i8* %40, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
%43 = load i8*, i8** %13
br i1 %42, label %48, label %44
44: ; preds = %39
%45 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, i8* %43, i64 %46
br label %88
48: ; preds = %39
%49 = tail call i64 @leads(i8* %43, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
%51 = load i8*, i8** %13
br i1 %50, label %56, label %52
52: ; preds = %48
%53 = tail call i32 @strlen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %51, i64 %54
br label %88
56: ; preds = %48
%57 = tail call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = add nsw i32 %11, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8*, i8** %1, i64 %61
%63 = load i8*, i8** %62
br label %88
64: ; preds = %56
%65 = load i8*, i8** %13
%66 = tail call i64 @leads(i8* %65, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
%68 = load i8*, i8** %13
br i1 %67, label %73, label %69
69: ; preds = %64
%70 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %68, i64 %71
br label %88
73: ; preds = %64
%74 = tail call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %88, label %76
76: ; preds = %73
%77 = load i8*, i8** %13
%78 = tail call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %88, label %80
80: ; preds = %76
%81 = load i8*, i8** %13
%82 = load i8, i8* %81
%83 = icmp eq i8 %82, 45
br i1 %83, label %84, label %100
84: ; preds = %80
%85 = load i32, i32* @stderr
%86 = tail call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %81)
%87 = tail call i32 @exit(i32 1)
unreachable
88: ; preds = %76, %73, %17, %34, %52, %69, %59, %44, %27
%89 = phi i32 [ %18, %17 ], [ %11, %27 ], [ %35, %34 ], [ %11, %44 ], [ %11, %52 ], [ %60, %59 ], [ %11, %69 ], [ %11, %73 ], [ %11, %76 ]
%90 = phi i32 [ %10, %17 ], [ %10, %27 ], [ %10, %34 ], [ %10, %44 ], [ %10, %52 ], [ %10, %59 ], [ %10, %69 ], [ 1, %73 ], [ 1, %76 ]
%91 = phi i8* [ %21, %17 ], [ %30, %27 ], [ %9, %34 ], [ %9, %44 ], [ %9, %52 ], [ %9, %59 ], [ %9, %69 ], [ %9, %73 ], [ %9, %76 ]
%92 = phi i8* [ %8, %17 ], [ %8, %27 ], [ %8, %34 ], [ %8, %44 ], [ %8, %52 ], [ %63, %59 ], [ %72, %69 ], [ %8, %73 ], [ %8, %76 ]
%93 = phi i8* [ %7, %17 ], [ %7, %27 ], [ %38, %34 ], [ %47, %44 ], [ %55, %52 ], [ %7, %59 ], [ %7, %69 ], [ %7, %73 ], [ %7, %76 ]
%94 = add nsw i32 %89, 1
%95 = icmp slt i32 %94, %0
br i1 %95, label %6, label %96
96: ; preds = %88, %2
%97 = load i32, i32* @stderr
%98 = tail call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%99 = tail call i32 @exit(i32 1)
unreachable
100: ; preds = %80
%101 = icmp eq i8* %9, null
br i1 %101, label %109, label %102
102: ; preds = %100
%103 = tail call i64 @rules(i8* %9)
%104 = icmp eq i64 %103, 0
br i1 %104, label %109, label %105
105: ; preds = %102
%106 = load i32, i32* @stderr
%107 = tail call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0), i8* %9)
%108 = tail call i32 @exit(i32 1)
unreachable
109: ; preds = %102, %100
%110 = icmp eq i8* %8, null
br i1 %110, label %118, label %111
111: ; preds = %109
%112 = tail call i64 @rules(i8* %8)
%113 = icmp eq i64 %112, 0
br i1 %113, label %118, label %114
114: ; preds = %111
%115 = load i32, i32* @stderr
%116 = tail call i32 (i32, i8*, ...) @fprintf(i32 %115, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0), i8* %8)
%117 = tail call i32 @exit(i32 1)
unreachable
118: ; preds = %111, %109
%119 = icmp eq i8* %7, null
br i1 %119, label %127, label %120
120: ; preds = %118
%121 = tail call i64 @rules(i8* %7)
%122 = icmp eq i64 %121, 0
br i1 %122, label %127, label %123
123: ; preds = %120
%124 = load i32, i32* @stderr
%125 = tail call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0), i8* %7)
%126 = tail call i32 @exit(i32 1)
unreachable
127: ; preds = %120, %118
%128 = icmp slt i32 %11, %0
br i1 %128, label %129, label %222
129: ; preds = %127
%130 = icmp ne i8* %9, null
%131 = icmp ne i8* %8, null
%132 = select i1 %130, i1 true, i1 %131
%133 = icmp ne i8* %7, null
%134 = select i1 %132, i1 true, i1 %133
%135 = icmp ne i32 %10, 0
%136 = select i1 %134, i1 true, i1 %135
br label %137
137: ; preds = %129, %218
%138 = phi i64 [ %12, %129 ], [ %219, %218 ]
br i1 %136, label %176, label %139
139: ; preds = %137
%140 = getelementptr inbounds i8*, i8** %1, i64 %138
%141 = load i8*, i8** %140
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %141)
%143 = load i8*, i8** %140
%144 = call i32 @lgetxattr(i8* %143, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %4, i32 24)
%145 = icmp sgt i32 %144, 0
br i1 %145, label %146, label %150
146: ; preds = %139
%147 = zext i32 %144 to i64
%148 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 %147
store i8 0, i8* %148
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %4)
br label %150
150: ; preds = %146, %139
%151 = load i8*, i8** %140
%152 = call i32 @lgetxattr(i8* %151, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %4, i32 24)
%153 = icmp sgt i32 %152, 0
br i1 %153, label %154, label %158
154: ; preds = %150
%155 = zext i32 %152 to i64
%156 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 %155
store i8 0, i8* %156
%157 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0), i8* %4)
br label %158
158: ; preds = %154, %150
%159 = load i8*, i8** %140
%160 = call i32 @lgetxattr(i8* %159, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0), i8* %4, i32 24)
%161 = icmp sgt i32 %160, 0
br i1 %161, label %162, label %166
162: ; preds = %158
%163 = zext i32 %160 to i64
%164 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 %163
store i8 0, i8* %164
%165 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0), i8* %4)
br label %166
166: ; preds = %162, %158
%167 = load i8*, i8** %140
%168 = call i32 @lgetxattr(i8* %167, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* %4, i32 24)
%169 = icmp sgt i32 %168, 0
br i1 %169, label %170, label %174
170: ; preds = %166
%171 = zext i32 %168 to i64
%172 = getelementptr inbounds [24 x i8], [24 x i8]* %3, i64 0, i64 %171
store i8 0, i8* %172
%173 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i8* %4)
br label %174
174: ; preds = %170, %166
%175 = call i32 @putchar(i32 10)
br label %218
176: ; preds = %137
br i1 %101, label %187, label %177
177: ; preds = %176
%178 = getelementptr inbounds i8*, i8** %1, i64 %138
%179 = load i8*, i8** %178
%180 = call i32 @strlen(i8* %9)
%181 = add nsw i32 %180, 1
%182 = call i32 @lsetxattr(i8* %179, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0), i8* %9, i32 %181, i32 0)
%183 = icmp slt i32 %182, 0
br i1 %183, label %184, label %187
184: ; preds = %177
%185 = load i8*, i8** %178
%186 = call i32 @perror(i8* %185)
br label %187
187: ; preds = %177, %184, %176
br i1 %119, label %198, label %188
188: ; preds = %187
%189 = getelementptr inbounds i8*, i8** %1, i64 %138
%190 = load i8*, i8** %189
%191 = call i32 @strlen(i8* %7)
%192 = add nsw i32 %191, 1
%193 = call i32 @lsetxattr(i8* %190, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %7, i32 %192, i32 0)
%194 = icmp slt i32 %193, 0
br i1 %194, label %195, label %198
195: ; preds = %188
%196 = load i8*, i8** %189
%197 = call i32 @perror(i8* %196)
br label %198
198: ; preds = %188, %195, %187
br i1 %110, label %209, label %199
199: ; preds = %198
%200 = getelementptr inbounds i8*, i8** %1, i64 %138
%201 = load i8*, i8** %200
%202 = call i32 @strlen(i8* %8)
%203 = add nsw i32 %202, 1
%204 = call i32 @lsetxattr(i8* %201, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.19, i64 0, i64 0), i8* %8, i32 %203, i32 0)
%205 = icmp slt i32 %204, 0
br i1 %205, label %206, label %209
206: ; preds = %199
%207 = load i8*, i8** %200
%208 = call i32 @perror(i8* %207)
br label %209
209: ; preds = %199, %206, %198
br i1 %135, label %210, label %218
210: ; preds = %209
%211 = getelementptr inbounds i8*, i8** %1, i64 %138
%212 = load i8*, i8** %211
%213 = call i32 @lsetxattr(i8* %212, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i32 4, i32 0)
%214 = icmp slt i32 %213, 0
br i1 %214, label %215, label %218
215: ; preds = %210
%216 = load i8*, i8** %211
%217 = call i32 @perror(i8* %216)
br label %218
218: ; preds = %209, %215, %210, %174
%219 = add nsw i64 %138, 1
%220 = trunc i64 %219 to i32
%221 = icmp eq i32 %220, %0
br i1 %221, label %222, label %137
222: ; preds = %218, %127
%223 = call i32 @exit(i32 0)
unreachable
}