#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 */
typedef int ssize_t;

/* Variables and functions */
scalar_t__ ENODATA;
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ errno;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
int getxattr(char *, char *, char *, int);
int listxattr(char *, char *, int);
char *malloc(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printUsageGeneral(char *);
int /*<<< orphan*/ printUsageGet(char *);
int /*<<< orphan*/ printUsageList(char *);
int /*<<< orphan*/ printUsageRem(char *);
int /*<<< orphan*/ printUsageSet(char *);
scalar_t__ removexattr(char *, char *);
scalar_t__ setxattr(char *, char *, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main(int argc, char *argv[]) {
  char *lst = NULL;
  char *chr = NULL;
  char *start = NULL;
  char *tmpstr = NULL;
  char *tmpval = NULL;
  ssize_t cnt = 0;
  ssize_t lstsize = 0;
  ssize_t valsize = 0;
  if (argc < 2) {
    printUsageGeneral(argv[0]);
    exit(EXIT_FAILURE);
  }
  if (!strcmp(argv[1], "-l")) {
    if (argc != 3) {
      printUsageList(argv[0]);
      exit(EXIT_FAILURE);
    }
    lstsize = listxattr(argv[2], NULL, 0);
    if (lstsize < 0) {
      perror("listxattr error");
      fprintf(stderr, "path  = %s\n", argv[2]);
      exit(EXIT_FAILURE);
    }
    lst = malloc(sizeof(*lst) * lstsize);
    if (!lst) {
      perror("malloc of 'lst' error");
      exit(EXIT_FAILURE);
    }
    lstsize = listxattr(argv[2], lst, lstsize);
    if (lstsize < 0 || !lst) {
      perror("listxattr error");
      fprintf(stderr, "path  = %s\n", argv[2]);
      exit(EXIT_FAILURE);
    }
    chr = start = lst;
    cnt = 0;
    while (cnt < lstsize) {
      fprintf(stdout, "%s\n", start);
      while (*chr != '\0') {
        chr++;
        cnt++;
      }
      start = ++chr;
      cnt++;
    }
  } else if (!strcmp(argv[1], "-s")) {
    if (argc != 5) {
      printUsageSet(argv[0]);
      exit(EXIT_FAILURE);
    }
    tmpstr = malloc(strlen(argv[2]) + (sizeof("user.") - 1) + 1);
    if (!tmpstr) {
      perror("malloc of 'tmpstr' error");
      exit(EXIT_FAILURE);
    }
    strcpy(tmpstr, "user.");
    strcat(tmpstr, argv[2]);
    if (setxattr(argv[4], tmpstr, argv[3], strlen(argv[3]), 0)) {
      perror("setxattr error");
      fprintf(stderr, "path  = %s\n", argv[4]);
      fprintf(stderr, "name  = %s\n", tmpstr);
      fprintf(stderr, "value = %s\n", argv[3]);
      fprintf(stderr, "size  = %zd\n", strlen(argv[3]));
      exit(EXIT_FAILURE);
    }
    free(tmpstr);
  } else if (!strcmp(argv[1], "-g")) {
    if (argc != 4) {
      printUsageGet(argv[0]);
      exit(EXIT_FAILURE);
    }
    tmpstr = malloc(strlen(argv[2]) + (sizeof("user.") - 1) + 1);
    if (!tmpstr) {
      perror("malloc of 'tmpstr' error");
      exit(EXIT_FAILURE);
    }
    strcpy(tmpstr, "user.");
    strcat(tmpstr, argv[2]);
    valsize = getxattr(argv[3], tmpstr, NULL, 0);
    if (valsize < 0) {
      if (errno == ENODATA) {
        fprintf(stdout, "No %s attribute set on %s\n", tmpstr, argv[3]);
        free(tmpstr);
        return EXIT_SUCCESS;
      } else {
        perror("getxattr error");
        fprintf(stderr, "path  = %s\n", argv[3]);
        fprintf(stderr, "name  = %s\n", tmpstr);
        fprintf(stderr, "value = %s\n", "NULL");
        fprintf(stderr, "size  = %zd\n", valsize);
        exit(EXIT_FAILURE);
      }
    }
    tmpval = malloc(sizeof(*tmpval) * (valsize + 1));
    if (!tmpval) {
      perror("malloc of 'tmpval' error");
      exit(EXIT_FAILURE);
    }
    valsize = getxattr(argv[3], tmpstr, tmpval, valsize);
    if (valsize < 0) {
      if (errno == ENODATA) {
        fprintf(stdout, "No %s attribute set on %s\n", tmpstr, argv[3]);
        free(tmpval);
        free(tmpstr);
        return EXIT_SUCCESS;
      } else {
        perror("getxattr error");
        fprintf(stderr, "path  = %s\n", argv[3]);
        fprintf(stderr, "name  = %s\n", tmpstr);
        fprintf(stderr, "value = %s\n", tmpval);
        fprintf(stderr, "size  = %zd\n", valsize);
        exit(EXIT_FAILURE);
      }
    }
    tmpval[valsize] = '\0';
    fprintf(stdout, "%s = %s\n", tmpstr, tmpval);
    free(tmpval);
    free(tmpstr);
  } else if (!strcmp(argv[1], "-r")) {
    if (argc != 4) {
      printUsageRem(argv[0]);
      exit(EXIT_FAILURE);
    }
    tmpstr = malloc(strlen(argv[2]) + (sizeof("user.") - 1) + 1);
    if (!tmpstr) {
      perror("malloc of 'tmpstr' error");
      exit(EXIT_FAILURE);
    }
    strcpy(tmpstr, "user.");
    strcat(tmpstr, argv[2]);
    if (removexattr(argv[3], tmpstr)) {
      if (errno == ENODATA) {
        fprintf(stdout, "No %s attribute set on %s\n", tmpstr, argv[3]);
        free(tmpstr);
        return EXIT_SUCCESS;
      } else {
        perror("removexattr error");
        fprintf(stderr, "path  = %s\n", argv[3]);
        fprintf(stderr, "name  = %s\n", tmpstr);
        exit(EXIT_FAILURE);
      }
    }
    free(tmpstr);
  } else {
    fprintf(stderr, "Unrecognized option\n");
    exit(EXIT_FAILURE);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1297 <main+0x77>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10c0 <printUsageGeneral@plt>
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5a(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1455 <main+0x235>
cmpl   $0x3,-0x8(%rbp)
je     12d8 <main+0xb8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1070 <printUsageList@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1050 <listxattr@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
jge    1331 <main+0x111>
lea    0xd04(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xcf7(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2c9e(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
movslq -0x40(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1369 <main+0x149>
lea    0xcc9(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2c66(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x40(%rbp),%edx
call   1050 <listxattr@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
jl     1395 <main+0x175>
cmpq   $0x0,-0x18(%rbp)
jne    13ce <main+0x1ae>
lea    0xc67(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xc5a(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2c01(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    1450 <main+0x230>
mov    0x2bcc(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xc6d(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1432 <main+0x212>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1408 <main+0x1e8>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13e1 <main+0x1c1>
jmp    1ae5 <main+0x8c5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbd1(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    15f8 <main+0x3d8>
cmpl   $0x5,-0x8(%rbp)
je     1496 <main+0x276>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10b0 <printUsageSet@plt>
mov    0x2b39(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cltq
add    $0x5,%rax
add    $0x1,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    14dd <main+0x2bd>
lea    0xb6e(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x30(%rbp),%rdi
lea    0xb69(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1100 <strcat@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x60(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <strlen@plt>
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    %eax,%ecx
xor    %r8d,%r8d
call   1130 <setxattr@plt>
cmp    $0x0,%rax
je     15ea <main+0x3ca>
lea    0xb05(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2a7a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
lea    0xaa4(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2a5b(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0xadc(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2a40(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0xac9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2a21(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <strlen@plt>
mov    -0x64(%rbp),%edi
mov    %eax,%edx
lea    0xaa9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x29e5(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    1ae0 <main+0x8c0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xa84(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1934 <main+0x714>
cmpl   $0x4,-0x8(%rbp)
je     1639 <main+0x419>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10f0 <printUsageGet@plt>
mov    0x2996(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cltq
add    $0x5,%rax
add    $0x1,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1680 <main+0x460>
lea    0x9cb(%rip),%rdi
call   10e0 <perror@plt>
mov    0x294f(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x30(%rbp),%rdi
lea    0x9c6(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1100 <strcat@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    -0x30(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
call   1110 <getxattr@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jge    17a8 <main+0x588>
mov    0x2904(%rip),%rax
mov    (%rax),%rax
mov    0x2912(%rip),%rcx
cmp    (%rcx),%rax
jne    171c <main+0x4fc>
mov    0x28da(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
lea    0x993(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    0x28a6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1af1 <main+0x8d1>
lea    0x986(%rip),%rdi
call   10e0 <perror@plt>
mov    0x28a9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0x8d3(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x288a(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0x90b(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x286f(%rip),%rax
mov    (%rax),%edi
lea    0x900(%rip),%rsi
lea    0x93f(%rip),%rdx
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2851(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
lea    0x8eb(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2827(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    17e4 <main+0x5c4>
lea    0x8ec(%rip),%rdi
call   10e0 <perror@plt>
mov    0x27eb(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x44(%rbp),%ecx
call   1110 <getxattr@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jge    18f2 <main+0x6d2>
mov    0x27c0(%rip),%rax
mov    (%rax),%rax
mov    0x27ce(%rip),%rcx
cmp    (%rcx),%rax
jne    1869 <main+0x649>
mov    0x2796(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
lea    0x84f(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    0x2759(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1af1 <main+0x8d1>
lea    0x839(%rip),%rdi
call   10e0 <perror@plt>
mov    0x275c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0x786(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x273d(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0x7be(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2722(%rip),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%rdx
lea    0x7af(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2707(%rip),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%edx
lea    0x7a1(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x26dd(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    0x26bb(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    0x7c0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    1adb <main+0x8bb>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x79c(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1ab1 <main+0x891>
cmpl   $0x4,-0x8(%rbp)
je     1975 <main+0x755>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1140 <printUsageRem@plt>
mov    0x265a(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cltq
add    $0x5,%rax
add    $0x1,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    19bc <main+0x79c>
lea    0x68f(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2613(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x30(%rbp),%rdi
lea    0x68a(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1100 <strcat@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    -0x30(%rbp),%rsi
call   10d0 <removexattr@plt>
cmp    $0x0,%rax
je     1aa3 <main+0x883>
mov    0x25d1(%rip),%rax
mov    (%rax),%rax
mov    0x25df(%rip),%rcx
cmp    (%rcx),%rax
jne    1a4f <main+0x82f>
mov    0x25a7(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
lea    0x660(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    0x2573(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1af1 <main+0x8d1>
lea    0x68c(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2576(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0x5a0(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x2557(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0x5d8(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x252c(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    1ad6 <main+0x8b6>
mov    0x2520(%rip),%rax
mov    (%rax),%edi
lea    0x633(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    0x24f9(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
jmp    1adb <main+0x8bb>
jmp    1ae0 <main+0x8c0>
jmp    1ae5 <main+0x8c5>
mov    0x24cc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
cmp    $0x1,%edi
jle    1619 <main+0x3f9>
mov    %edi,%ebx
mov    0x8(%r12),%rbp
lea    0xdbb(%rip),%rsi
mov    %rbp,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     1346 <main+0x126>
lea    0xdd9(%rip),%rsi
mov    %rbp,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     13f2 <main+0x1d2>
lea    0xe18(%rip),%rsi
mov    %rbp,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
je     14d6 <main+0x2b6>
lea    0xe55(%rip),%rsi
mov    %rbp,%rdi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    167c <main+0x45c>
cmp    $0x4,%ebx
jne    1695 <main+0x475>
mov    0x10(%r12),%rdi
call   1060 <strlen@plt>
lea    0x6(%rax),%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     164e <main+0x42e>
mov    %rax,%r14
lea    0xd89(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcpy@plt>
mov    0x10(%r12),%rsi
mov    %r14,%rdi
call   1100 <strcat@plt>
mov    0x18(%r12),%rdi
mov    %r14,%rsi
call   10d0 <removexattr@plt>
test   %rax,%rax
je     15f9 <main+0x3d9>
mov    0x2cd6(%rip),%rax
mov    (%rax),%rax
mov    0x2ce4(%rip),%rcx
cmp    (%rcx),%rax
je     1597 <main+0x377>
lea    0xdce(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2cb8(%rip),%rbx
mov    (%rbx),%edi
mov    0x18(%r12),%rdx
lea    0xce5(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd28(%rip),%rsi
mov    %r14,%rdx
jmp    1645 <main+0x425>
cmp    $0x3,%ebx
jne    1657 <main+0x437>
mov    0x10(%r12),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <listxattr@plt>
test   %eax,%eax
js     1624 <main+0x404>
mov    %eax,%ebp
mov    %eax,%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     1662 <main+0x442>
mov    %rax,%rbx
mov    0x10(%r12),%rdi
mov    %rax,%rsi
mov    %ebp,%edx
call   1050 <listxattr@plt>
test   %eax,%eax
js     1624 <main+0x404>
je     1601 <main+0x3e1>
mov    %eax,%r13d
mov    0x2c1f(%rip),%r15
lea    0xcc6(%rip),%r14
xor    %ebp,%ebp
jmp    13c6 <main+0x1a6>
nopl   0x0(%rax)
mov    %rbx,%rax
add    $0x1,%rax
add    $0x1,%ebp
mov    %rax,%rbx
cmp    %r13d,%ebp
jge    1601 <main+0x3e1>
mov    (%r15),%edi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
cmpb   $0x0,(%rbx)
je     13b0 <main+0x190>
nopl   0x0(%rax,%rax,1)
lea    0x1(%rbx),%rax
add    $0x1,%ebp
cmpb   $0x0,0x1(%rbx)
mov    %rax,%rbx
jne    13e0 <main+0x1c0>
jmp    13b3 <main+0x193>
cmp    $0x5,%ebx
jne    16a0 <main+0x480>
mov    0x10(%r12),%rdi
call   1060 <strlen@plt>
lea    0x6(%rax),%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     164e <main+0x42e>
mov    %rax,%r14
lea    0xc31(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcpy@plt>
mov    0x10(%r12),%rsi
mov    %r14,%rdi
call   1100 <strcat@plt>
mov    0x18(%r12),%rbx
mov    0x20(%r12),%rbp
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %eax,%ecx
xor    %r8d,%r8d
call   1130 <setxattr@plt>
test   %rax,%rax
je     15f9 <main+0x3d9>
lea    0xbed(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2b62(%rip),%rbx
mov    (%rbx),%edi
mov    0x20(%r12),%rdx
lea    0xb8f(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
lea    0xbd2(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
mov    0x18(%r12),%rdx
lea    0xbc6(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%ebx
mov    0x18(%r12),%rdi
call   1060 <strlen@plt>
lea    0xbb8(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    166e <main+0x44e>
cmp    $0x4,%ebx
jne    16ab <main+0x48b>
mov    0x10(%r12),%rdi
call   1060 <strlen@plt>
lea    0x6(%rax),%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     164e <main+0x42e>
mov    %rax,%r14
lea    0xb4d(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcpy@plt>
mov    0x10(%r12),%rsi
mov    %r14,%rdi
call   1100 <strcat@plt>
mov    0x18(%r12),%rdi
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
call   1110 <getxattr@plt>
mov    %eax,%ebp
test   %eax,%eax
js     157d <main+0x35d>
mov    %ebp,%edi
add    $0x1,%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     16b6 <main+0x496>
mov    %rax,%r15
mov    0x18(%r12),%rdi
mov    %r14,%rsi
mov    %rax,%rdx
mov    %ebp,%ecx
call   1110 <getxattr@plt>
mov    %eax,%ebx
test   %eax,%eax
js     15b8 <main+0x398>
mov    %ebx,%eax
movb   $0x0,(%r15,%rax,1)
mov    0x2a54(%rip),%rax
mov    (%rax),%edi
lea    0xb61(%rip),%rsi
mov    %r14,%rdx
mov    %r15,%rcx
jmp    15ea <main+0x3ca>
mov    0x2a4c(%rip),%rax
mov    (%rax),%rax
mov    0x2a5a(%rip),%rcx
cmp    (%rcx),%rax
jne    16bf <main+0x49f>
mov    0x2a22(%rip),%rax
mov    (%rax),%edi
mov    0x18(%r12),%rcx
lea    0xae2(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    15f9 <main+0x3d9>
mov    0x2a11(%rip),%rax
mov    (%rax),%rax
mov    0x2a1f(%rip),%rcx
cmp    (%rcx),%rax
jne    1721 <main+0x501>
mov    0x29e7(%rip),%rax
mov    (%rax),%edi
mov    0x18(%r12),%rcx
lea    0xaa7(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    0x29b0(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%r12),%rdi
call   10c0 <printUsageGeneral@plt>
jmp    166e <main+0x44e>
lea    0x9d8(%rip),%rdi
call   10e0 <perror@plt>
mov    0x29a1(%rip),%rax
mov    (%rax),%edi
mov    0x10(%r12),%rdx
lea    0x9ce(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    166e <main+0x44e>
lea    0x9e3(%rip),%rdi
jmp    1669 <main+0x449>
mov    (%r12),%rdi
call   1070 <printUsageList@plt>
jmp    166e <main+0x44e>
lea    0x9b6(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2953(%rip),%rax
mov    (%rax),%edi
call   1120 <exit@plt>
mov    0x2955(%rip),%rax
mov    (%rax),%edi
lea    0xa68(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    166e <main+0x44e>
mov    (%r12),%rdi
call   1140 <printUsageRem@plt>
jmp    166e <main+0x44e>
mov    (%r12),%rdi
call   10b0 <printUsageSet@plt>
jmp    166e <main+0x44e>
mov    (%r12),%rdi
call   10f0 <printUsageGet@plt>
jmp    166e <main+0x44e>
lea    0xa00(%rip),%rdi
jmp    1669 <main+0x449>
lea    0x9e3(%rip),%rdi
call   10e0 <perror@plt>
mov    0x2906(%rip),%rbx
mov    (%rbx),%edi
mov    0x18(%r12),%rdx
lea    0x933(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
lea    0x976(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
lea    0x96f(%rip),%rsi
lea    0x9ae(%rip),%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    (%rbx),%edi
lea    0x964(%rip),%rsi
mov    %ebp,%edx
jmp    14ca <main+0x2aa>
lea    0x981(%rip),%rdi
call   10e0 <perror@plt>
mov    0x28a4(%rip),%rbp
mov    0x0(%rbp),%edi
mov    0x18(%r12),%rdx
lea    0x8d0(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x912(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x90a(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x902(%rip),%rsi
mov    %ebx,%edx
jmp    14ca <main+0x2aa>

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

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [3 x i8] c"-l\00"
@.str.1 = [16 x i8] c"listxattr error\00"
@stderr = global i32 0
@.str.2 = [12 x i8] c"path = %s\0A\00"
@.str.3 = [22 x i8] c"malloc of 'lst' error\00"
@stdout = global i32 0
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [3 x i8] c"-s\00"
@.str.6 = [25 x i8] c"malloc of 'tmpstr' error\00"
@.str.7 = [6 x i8] c"user.\00"
@.str.8 = [15 x i8] c"setxattr error\00"
@.str.9 = [12 x i8] c"name = %s\0A\00"
@.str.10 = [12 x i8] c"value = %s\0A\00"
@.str.11 = [13 x i8] c"size = %zd\0A\00"
@.str.12 = [3 x i8] c"-g\00"
@errno = global i64 0
@ENODATA = global i64 0
@.str.13 = [27 x i8] c"No %s attribute set on %s\0A\00"
@EXIT_SUCCESS = global i32 0
@.str.14 = [15 x i8] c"getxattr error\00"
@.str.15 = [5 x i8] c"NULL\00"
@.str.16 = [25 x i8] c"malloc of 'tmpval' error\00"
@.str.17 = [9 x i8] c"%s = %s\0A\00"
@.str.18 = [3 x i8] c"-r\00"
@.str.19 = [18 x i8] c"removexattr error\00"
@.str.20 = [21 x i8] c"Unrecognized option\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %9
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @printUsageGeneral(i8* %5)
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %73
14: ; preds = %9
%15 = icmp eq i32 %0, 3
br i1 %15, label %21, label %16
16: ; preds = %14
%17 = load i8*, i8** %1
%18 = tail call i32 @printUsageList(i8* %17)
%19 = load i32, i32* @EXIT_FAILURE
%20 = tail call i32 @exit(i32 %19)
unreachable
21: ; preds = %14
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = tail call i32 @listxattr(i8* %23, i8* null, i32 0)
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %33
26: ; preds = %21
%27 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = load i8*, i8** %22
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %29)
%31 = load i32, i32* @EXIT_FAILURE
%32 = tail call i32 @exit(i32 %31)
unreachable
33: ; preds = %21
%34 = tail call i8* @malloc(i32 %24)
%35 = icmp eq i8* %34, null
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = tail call i32 @perror(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%38 = load i32, i32* @EXIT_FAILURE
%39 = tail call i32 @exit(i32 %38)
unreachable
40: ; preds = %33
%41 = load i8*, i8** %22
%42 = tail call i32 @listxattr(i8* %41, i8* %34, i32 %24)
%43 = icmp sgt i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = icmp eq i32 %42, 0
br i1 %45, label %265, label %53
46: ; preds = %40
%47 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = load i8*, i8** %22
%50 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %49)
%51 = load i32, i32* @EXIT_FAILURE
%52 = tail call i32 @exit(i32 %51)
unreachable
53: ; preds = %44, %67
%54 = phi i32 [ %71, %67 ], [ 0, %44 ]
%55 = phi i8* [ %70, %67 ], [ %34, %44 ]
%56 = load i32, i32* @stdout
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %55)
%58 = load i8, i8* %55
%59 = icmp eq i8 %58, 0
br i1 %59, label %67, label %60
60: ; preds = %53, %60
%61 = phi i32 [ %64, %60 ], [ %54, %53 ]
%62 = phi i8* [ %63, %60 ], [ %55, %53 ]
%63 = getelementptr inbounds i8, i8* %62, i64 1
%64 = add nsw i32 %61, 1
%65 = load i8, i8* %63
%66 = icmp eq i8 %65, 0
br i1 %66, label %67, label %60
67: ; preds = %60, %53
%68 = phi i8* [ %55, %53 ], [ %63, %60 ]
%69 = phi i32 [ %54, %53 ], [ %64, %60 ]
%70 = getelementptr inbounds i8, i8* %68, i64 1
%71 = add nsw i32 %69, 1
%72 = icmp slt i32 %71, %42
br i1 %72, label %53, label %265
73: ; preds = %9
%74 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %121
76: ; preds = %73
%77 = icmp eq i32 %0, 5
br i1 %77, label %83, label %78
78: ; preds = %76
%79 = load i8*, i8** %1
%80 = tail call i32 @printUsageSet(i8* %79)
%81 = load i32, i32* @EXIT_FAILURE
%82 = tail call i32 @exit(i32 %81)
unreachable
83: ; preds = %76
%84 = getelementptr inbounds i8*, i8** %1, i64 2
%85 = load i8*, i8** %84
%86 = tail call i32 @strlen(i8* %85)
%87 = add i32 %86, 6
%88 = tail call i8* @malloc(i32 %87)
%89 = icmp eq i8* %88, null
br i1 %89, label %90, label %94
90: ; preds = %83
%91 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%92 = load i32, i32* @EXIT_FAILURE
%93 = tail call i32 @exit(i32 %92)
unreachable
94: ; preds = %83
%95 = tail call i32 @strcpy(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%96 = load i8*, i8** %84
%97 = tail call i32 @strcat(i8* %88, i8* %96)
%98 = getelementptr inbounds i8*, i8** %1, i64 4
%99 = load i8*, i8** %98
%100 = getelementptr inbounds i8*, i8** %1, i64 3
%101 = load i8*, i8** %100
%102 = tail call i32 @strlen(i8* %101)
%103 = tail call i64 @setxattr(i8* %99, i8* %88, i8* %101, i32 %102, i32 0)
%104 = icmp eq i64 %103, 0
br i1 %104, label %262, label %105
105: ; preds = %94
%106 = tail call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0))
%107 = load i32, i32* @stderr
%108 = load i8*, i8** %98
%109 = tail call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %108)
%110 = load i32, i32* @stderr
%111 = tail call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %88)
%112 = load i32, i32* @stderr
%113 = load i8*, i8** %100
%114 = tail call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* %113)
%115 = load i32, i32* @stderr
%116 = load i8*, i8** %100
%117 = tail call i32 @strlen(i8* %116)
%118 = tail call i32 (i32, i8*, ...) @fprintf(i32 %115, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %117)
%119 = load i32, i32* @EXIT_FAILURE
%120 = tail call i32 @exit(i32 %119)
unreachable
121: ; preds = %73
%122 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%123 = icmp eq i32 %122, 0
br i1 %123, label %124, label %211
124: ; preds = %121
%125 = icmp eq i32 %0, 4
br i1 %125, label %131, label %126
126: ; preds = %124
%127 = load i8*, i8** %1
%128 = tail call i32 @printUsageGet(i8* %127)
%129 = load i32, i32* @EXIT_FAILURE
%130 = tail call i32 @exit(i32 %129)
unreachable
131: ; preds = %124
%132 = getelementptr inbounds i8*, i8** %1, i64 2
%133 = load i8*, i8** %132
%134 = tail call i32 @strlen(i8* %133)
%135 = add i32 %134, 6
%136 = tail call i8* @malloc(i32 %135)
%137 = icmp eq i8* %136, null
br i1 %137, label %138, label %142
138: ; preds = %131
%139 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%140 = load i32, i32* @EXIT_FAILURE
%141 = tail call i32 @exit(i32 %140)
unreachable
142: ; preds = %131
%143 = tail call i32 @strcpy(i8* %136, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%144 = load i8*, i8** %132
%145 = tail call i32 @strcat(i8* %136, i8* %144)
%146 = getelementptr inbounds i8*, i8** %1, i64 3
%147 = load i8*, i8** %146
%148 = tail call i32 @getxattr(i8* %147, i8* %136, i8* null, i32 0)
%149 = icmp slt i32 %148, 0
br i1 %149, label %150, label %171
150: ; preds = %142
%151 = load i64, i64* @errno
%152 = load i64, i64* @ENODATA
%153 = icmp eq i64 %151, %152
br i1 %153, label %154, label %158
154: ; preds = %150
%155 = load i32, i32* @stdout
%156 = load i8*, i8** %146
%157 = tail call i32 (i32, i8*, ...) @fprintf(i32 %155, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8* %136, i8* %156)
br label %262
158: ; preds = %150
%159 = tail call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
%160 = load i32, i32* @stderr
%161 = load i8*, i8** %146
%162 = tail call i32 (i32, i8*, ...) @fprintf(i32 %160, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %161)
%163 = load i32, i32* @stderr
%164 = tail call i32 (i32, i8*, ...) @fprintf(i32 %163, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %136)
%165 = load i32, i32* @stderr
%166 = tail call i32 (i32, i8*, ...) @fprintf(i32 %165, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%167 = load i32, i32* @stderr
%168 = tail call i32 (i32, i8*, ...) @fprintf(i32 %167, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %148)
%169 = load i32, i32* @EXIT_FAILURE
%170 = tail call i32 @exit(i32 %169)
unreachable
171: ; preds = %142
%172 = add nuw nsw i32 %148, 1
%173 = tail call i8* @malloc(i32 %172)
%174 = icmp eq i8* %173, null
br i1 %174, label %175, label %179
175: ; preds = %171
%176 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
%177 = load i32, i32* @EXIT_FAILURE
%178 = tail call i32 @exit(i32 %177)
unreachable
179: ; preds = %171
%180 = load i8*, i8** %146
%181 = tail call i32 @getxattr(i8* %180, i8* %136, i8* %173, i32 %148)
%182 = icmp slt i32 %181, 0
br i1 %182, label %183, label %205
183: ; preds = %179
%184 = load i64, i64* @errno
%185 = load i64, i64* @ENODATA
%186 = icmp eq i64 %184, %185
br i1 %186, label %187, label %192
187: ; preds = %183
%188 = load i32, i32* @stdout
%189 = load i8*, i8** %146
%190 = tail call i32 (i32, i8*, ...) @fprintf(i32 %188, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8* %136, i8* %189)
%191 = tail call i32 @free(i8* %173)
br label %262
192: ; preds = %183
%193 = tail call i32 @perror(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0))
%194 = load i32, i32* @stderr
%195 = load i8*, i8** %146
%196 = tail call i32 (i32, i8*, ...) @fprintf(i32 %194, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %195)
%197 = load i32, i32* @stderr
%198 = tail call i32 (i32, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %136)
%199 = load i32, i32* @stderr
%200 = tail call i32 (i32, i8*, ...) @fprintf(i32 %199, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i8* %173)
%201 = load i32, i32* @stderr
%202 = tail call i32 (i32, i8*, ...) @fprintf(i32 %201, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %181)
%203 = load i32, i32* @EXIT_FAILURE
%204 = tail call i32 @exit(i32 %203)
unreachable
205: ; preds = %179
%206 = zext i32 %181 to i64
%207 = getelementptr inbounds i8, i8* %173, i64 %206
store i8 0, i8* %207
%208 = load i32, i32* @stdout
%209 = tail call i32 (i32, i8*, ...) @fprintf(i32 %208, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i8* %136, i8* %173)
%210 = tail call i32 @free(i8* %173)
br label %262
211: ; preds = %121
%212 = tail call i32 @strcmp(i8* dereferenceable(1) %11, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%213 = icmp eq i32 %212, 0
br i1 %213, label %214, label %257
214: ; preds = %211
%215 = icmp eq i32 %0, 4
br i1 %215, label %221, label %216
216: ; preds = %214
%217 = load i8*, i8** %1
%218 = tail call i32 @printUsageRem(i8* %217)
%219 = load i32, i32* @EXIT_FAILURE
%220 = tail call i32 @exit(i32 %219)
unreachable
221: ; preds = %214
%222 = getelementptr inbounds i8*, i8** %1, i64 2
%223 = load i8*, i8** %222
%224 = tail call i32 @strlen(i8* %223)
%225 = add i32 %224, 6
%226 = tail call i8* @malloc(i32 %225)
%227 = icmp eq i8* %226, null
br i1 %227, label %228, label %232
228: ; preds = %221
%229 = tail call i32 @perror(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%230 = load i32, i32* @EXIT_FAILURE
%231 = tail call i32 @exit(i32 %230)
unreachable
232: ; preds = %221
%233 = tail call i32 @strcpy(i8* %226, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%234 = load i8*, i8** %222
%235 = tail call i32 @strcat(i8* %226, i8* %234)
%236 = getelementptr inbounds i8*, i8** %1, i64 3
%237 = load i8*, i8** %236
%238 = tail call i64 @removexattr(i8* %237, i8* %226)
%239 = icmp eq i64 %238, 0
br i1 %239, label %262, label %240
240: ; preds = %232
%241 = load i64, i64* @errno
%242 = load i64, i64* @ENODATA
%243 = icmp eq i64 %241, %242
br i1 %243, label %244, label %248
244: ; preds = %240
%245 = load i32, i32* @stdout
%246 = load i8*, i8** %236
%247 = tail call i32 (i32, i8*, ...) @fprintf(i32 %245, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8* %226, i8* %246)
br label %262
248: ; preds = %240
%249 = tail call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0))
%250 = load i32, i32* @stderr
%251 = load i8*, i8** %236
%252 = tail call i32 (i32, i8*, ...) @fprintf(i32 %250, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* %251)
%253 = load i32, i32* @stderr
%254 = tail call i32 (i32, i8*, ...) @fprintf(i32 %253, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i8* %226)
%255 = load i32, i32* @EXIT_FAILURE
%256 = tail call i32 @exit(i32 %255)
unreachable
257: ; preds = %211
%258 = load i32, i32* @stderr
%259 = tail call i32 (i32, i8*, ...) @fprintf(i32 %258, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0))
%260 = load i32, i32* @EXIT_FAILURE
%261 = tail call i32 @exit(i32 %260)
unreachable
262: ; preds = %232, %94, %154, %187, %244, %205
%263 = phi i8* [ %136, %205 ], [ %226, %244 ], [ %136, %187 ], [ %136, %154 ], [ %88, %94 ], [ %226, %232 ]
%264 = tail call i32 @free(i8* %263)
br label %265
265: ; preds = %67, %262, %44
%266 = load i32, i32* @EXIT_SUCCESS
ret i32 %266
}