
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int file_has_acl(char *name,stat *sb)

{
  _Bool _Var1;
  ssize_t sVar2;
  int errnum;
  int *piVar3;
  
  if ((sb->st_mode & 0xf000) != 0xa000) {
    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);
    if (sVar2 < 0) {
      piVar3 = __errno_location();
      errnum = *piVar3;
      if (errnum != 0x3d) goto LAB_0001d1ac;
    }
    else if (sVar2 != 0) {
      return 1;
    }
    if ((sb->st_mode & 0xf000) == 0x4000) {
      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);
      if (sVar2 < 0) {
        piVar3 = __errno_location();
        errnum = *piVar3;
        if (errnum != 0x3d) {
LAB_0001d1ac:
          _Var1 = acl_errno_valid(errnum);
          return -(uint)_Var1;
        }
      }
      else if (sVar2 != 0) {
        return 1;
      }
    }
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_0001d140(char *param_1,int param_2)

{
  ssize_t sVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  
  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {
    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);
    if (sVar1 < 0) {
      piVar4 = __errno_location();
      iVar2 = *piVar4;
      if (iVar2 != 0x3d) goto LAB_0001d1ac;
    }
    else if (sVar1 != 0) {
      return 1;
    }
    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {
      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);
      if (sVar1 < 0) {
        piVar4 = __errno_location();
        iVar2 = *piVar4;
        if (iVar2 != 0x3d) {
LAB_0001d1ac:
          uVar3 = FUN_0002c3f0(iVar2);
          return -(uVar3 & 0xff);
        }
      }
      else if (sVar1 != 0) {
        return 1;
      }
    }
  }
  return 0;
}


PUSH ESI
PUSH EBX
CALL 0x000142a0
ADD EBX,0x1feb9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [ESI + 0x10]
AND EAX,0xf000
CMP EAX,0xa000
JNZ 0x0001d170
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0xffff4fff]
PUSH 0x0
PUSH 0x0
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00012610
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001d1a0
JZ 0x0001d1c8
ADD ESP,0x4
MOV EAX,0x1
POP EBX
POP ESI
RET
CALL 0x000124a0
MOV EAX,dword ptr [EAX]
CMP EAX,0x3d
JZ 0x0001d1c8
SUB ESP,0xc
PUSH EAX
CALL 0x0002c3f0
ADD ESP,0x10
ADD ESP,0x4
MOVZX EAX,AL
NEG EAX
POP EBX
POP ESI
RET
MOV EAX,dword ptr [ESI + 0x10]
AND EAX,0xf000
CMP EAX,0x4000
JNZ 0x0001d163
LEA EAX,[EBX + 0xffff5017]
PUSH 0x0
PUSH 0x0
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00012610
ADD ESP,0x10
TEST EAX,EAX
JS 0x0001d200
JNZ 0x0001d18d
JMP 0x0001d163
CALL 0x000124a0
MOV EAX,dword ptr [EAX]
CMP EAX,0x3d
JNZ 0x0001d1ac
JMP 0x0001d163
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0001d140(char *param_1,int param_2)\n\n{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "int FUN_0001d140(char *param_1,int param_2)\n\n{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001d140(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "ssize_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000)" ( (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" ( (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" { (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" identifier = (call_expression "getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" identifier (argument_list "(param_1,"system.posix_acl_access",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_access"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar1 < 0)" ( (binary_expression "sVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar2 != 0x3d) goto LAB_0001d1ac;" if (parenthesized_expression "(iVar2 != 0x3d)" ( (binary_expression "iVar2 != 0x3d" identifier != number_literal) )) (goto_statement "goto LAB_0001d1ac;" goto statement_identifier ;)) }) (else_clause "else if (sVar1 != 0) {\n      return 1;\n    }" else (if_statement "if (sVar1 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })))) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" if (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000)" ( (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" ( (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" { (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" identifier = (call_expression "getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" identifier (argument_list "(param_1,"system.posix_acl_default",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_default"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar1 < 0)" ( (binary_expression "sVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" if (parenthesized_expression "(iVar2 != 0x3d)" ( (binary_expression "iVar2 != 0x3d" identifier != number_literal) )) (compound_statement "{\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" { (labeled_statement "LAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);" statement_identifier : (expression_statement "uVar3 = FUN_0002c3f0(iVar2);" (assignment_expression "uVar3 = FUN_0002c3f0(iVar2)" identifier = (call_expression "FUN_0002c3f0(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;)) (return_statement "return -(uVar3 & 0xff);" return (unary_expression "-(uVar3 & 0xff)" - (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) ))) ;) })) }) (else_clause "else if (sVar1 != 0) {\n        return 1;\n      }" else (if_statement "if (sVar1 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint file_has_acl(char *name,stat *sb)\n\n{\n  _Bool _Var1;\n  ssize_t sVar2;\n  int errnum;\n  int *piVar3;\n  \n  if ((sb->st_mode & 0xf000) != 0xa000) {\n    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }\n    if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int file_has_acl(char *name,stat *sb)\n\n{\n  _Bool _Var1;\n  ssize_t sVar2;\n  int errnum;\n  int *piVar3;\n  \n  if ((sb->st_mode & 0xf000) != 0xa000) {\n    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }\n    if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "file_has_acl(char *name,stat *sb)" identifier (parameter_list "(char *name,stat *sb)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "stat *sb" type_identifier (pointer_declarator "*sb" * identifier)) ))) (compound_statement "{\n  _Bool _Var1;\n  ssize_t sVar2;\n  int errnum;\n  int *piVar3;\n  \n  if ((sb->st_mode & 0xf000) != 0xa000) {\n    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }\n    if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "ssize_t sVar2;" primitive_type identifier ;) (declaration "int errnum;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (if_statement "if ((sb->st_mode & 0xf000) != 0xa000) {\n    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }\n    if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "((sb->st_mode & 0xf000) != 0xa000)" ( (binary_expression "(sb->st_mode & 0xf000) != 0xa000" (parenthesized_expression "(sb->st_mode & 0xf000)" ( (binary_expression "sb->st_mode & 0xf000" (field_expression "sb->st_mode" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }\n    if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }\n  }" { (expression_statement "sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0);" (assignment_expression "sVar2 = getxattr(name,"system.posix_acl_access",(void *)0x0,0)" identifier = (call_expression "getxattr(name,"system.posix_acl_access",(void *)0x0,0)" identifier (argument_list "(name,"system.posix_acl_access",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_access"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar2 < 0) {\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar2 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar2 < 0)" ( (binary_expression "sVar2 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar3 = __errno_location();\n      errnum = *piVar3;\n      if (errnum != 0x3d) goto LAB_0001d1ac;\n    }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "errnum = *piVar3;" (assignment_expression "errnum = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (errnum != 0x3d) goto LAB_0001d1ac;" if (parenthesized_expression "(errnum != 0x3d)" ( (binary_expression "errnum != 0x3d" identifier != number_literal) )) (goto_statement "goto LAB_0001d1ac;" goto statement_identifier ;)) }) (else_clause "else if (sVar2 != 0) {\n      return 1;\n    }" else (if_statement "if (sVar2 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })))) (if_statement "if ((sb->st_mode & 0xf000) == 0x4000) {\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }" if (parenthesized_expression "((sb->st_mode & 0xf000) == 0x4000)" ( (binary_expression "(sb->st_mode & 0xf000) == 0x4000" (parenthesized_expression "(sb->st_mode & 0xf000)" ( (binary_expression "sb->st_mode & 0xf000" (field_expression "sb->st_mode" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }\n    }" { (expression_statement "sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0);" (assignment_expression "sVar2 = getxattr(name,"system.posix_acl_default",(void *)0x0,0)" identifier = (call_expression "getxattr(name,"system.posix_acl_default",(void *)0x0,0)" identifier (argument_list "(name,"system.posix_acl_default",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_default"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar2 < 0) {\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }\n      else if (sVar2 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar2 < 0)" ( (binary_expression "sVar2 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar3 = __errno_location();\n        errnum = *piVar3;\n        if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }\n      }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "errnum = *piVar3;" (assignment_expression "errnum = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (if_statement "if (errnum != 0x3d) {\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }" if (parenthesized_expression "(errnum != 0x3d)" ( (binary_expression "errnum != 0x3d" identifier != number_literal) )) (compound_statement "{\nLAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);\n          return -(uint)_Var1;\n        }" { (labeled_statement "LAB_0001d1ac:\n          _Var1 = acl_errno_valid(errnum);" statement_identifier : (expression_statement "_Var1 = acl_errno_valid(errnum);" (assignment_expression "_Var1 = acl_errno_valid(errnum)" identifier = (call_expression "acl_errno_valid(errnum)" identifier (argument_list "(errnum)" ( identifier )))) ;)) (return_statement "return -(uint)_Var1;" return (unary_expression "-(uint)_Var1" - (cast_expression "(uint)_Var1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) })) }) (else_clause "else if (sVar2 != 0) {\n        return 1;\n      }" else (if_statement "if (sVar2 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_0001d140(char *param_1,int param_2)\n\n{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_0001d140(char *param_1,int param_2)\n\n{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_0001d140(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "ssize_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000)" ( (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" ( (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" { (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" identifier = (call_expression "getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" identifier (argument_list "(param_1,"system.posix_acl_access",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_access"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar1 < 0)" ( (binary_expression "sVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar2 != 0x3d) goto LAB_0001d1ac;" if (parenthesized_expression "(iVar2 != 0x3d)" ( (binary_expression "iVar2 != 0x3d" identifier != number_literal) )) (goto_statement "goto LAB_0001d1ac;" goto statement_identifier ;)) }) (else_clause "else if (sVar1 != 0) {\n      return 1;\n    }" else (if_statement "if (sVar1 != 0) {\n      return 1;\n    }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })))) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" if (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000)" ( (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" ( (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" * (cast_expression "(uint *)(param_2 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" { (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" identifier = (call_expression "getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" identifier (argument_list "(param_1,"system.posix_acl_default",(void *)0x0,0)" ( identifier , (string_literal ""system.posix_acl_default"" " string_content ") , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar1 < 0)" ( (binary_expression "sVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" if (parenthesized_expression "(iVar2 != 0x3d)" ( (binary_expression "iVar2 != 0x3d" identifier != number_literal) )) (compound_statement "{\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" { (labeled_statement "LAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);" statement_identifier : (expression_statement "uVar3 = FUN_0002c3f0(iVar2);" (assignment_expression "uVar3 = FUN_0002c3f0(iVar2)" identifier = (call_expression "FUN_0002c3f0(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;)) (return_statement "return -(uVar3 & 0xff);" return (unary_expression "-(uVar3 & 0xff)" - (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) ))) ;) })) }) (else_clause "else if (sVar1 != 0) {\n        return 1;\n      }" else (if_statement "if (sVar1 != 0) {\n        return 1;\n      }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })))) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (return_statement return (unary_expression - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return LIT ;) })))) })) })) (return_statement return LIT ;) })))
(function_definition "int FUN_0001d140(char *param_1,int param_2)\n\n{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0001d140(char *param_1,int param_2)" (identifier "FUN_0001d140") (parameter_list "(char *param_1,int param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  ssize_t sVar1;\n  int iVar2;\n  uint uVar3;\n  int *piVar4;\n  \n  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "ssize_t sVar1;" (primitive_type "ssize_t") (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000)" (( "(") (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" (( "(") (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" (* "*") (cast_expression "(uint *)(param_2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0xa000")) () ")")) (compound_statement "{\n    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);\n    if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }\n    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }\n  }" ({ "{") (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" (identifier "sVar1") (= "=") (call_expression "getxattr(param_1,"system.posix_acl_access",(void *)0x0,0)" (identifier "getxattr") (argument_list "(param_1,"system.posix_acl_access",(void *)0x0,0)" (( "(") (identifier "param_1") (, ",") (string_literal ""system.posix_acl_access"" (" """) (string_content "system.posix_acl_access") (" """)) (, ",") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (sVar1 < 0) {\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }\n    else if (sVar1 != 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(sVar1 < 0)" (( "(") (binary_expression "sVar1 < 0" (identifier "sVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar4 = __errno_location();\n      iVar2 = *piVar4;\n      if (iVar2 != 0x3d) goto LAB_0001d1ac;\n    }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (if_statement "if (iVar2 != 0x3d) goto LAB_0001d1ac;" (if "if") (parenthesized_expression "(iVar2 != 0x3d)" (( "(") (binary_expression "iVar2 != 0x3d" (identifier "iVar2") (!= "!=") (number_literal "0x3d")) () ")")) (goto_statement "goto LAB_0001d1ac;" (goto "goto") (statement_identifier "LAB_0001d1ac") (; ";"))) (} "}")) (else_clause "else if (sVar1 != 0) {\n      return 1;\n    }" (else "else") (if_statement "if (sVar1 != 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(sVar1 != 0)" (( "(") (binary_expression "sVar1 != 0" (identifier "sVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))))) (if_statement "if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000)" (( "(") (binary_expression "(*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000" (parenthesized_expression "(*(uint *)(param_2 + 0x10) & 0xf000)" (( "(") (binary_expression "*(uint *)(param_2 + 0x10) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x10)" (* "*") (cast_expression "(uint *)(param_2 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0xf000")) () ")")) (== "==") (number_literal "0x4000")) () ")")) (compound_statement "{\n      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);\n      if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }\n    }" ({ "{") (expression_statement "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);" (assignment_expression "sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" (identifier "sVar1") (= "=") (call_expression "getxattr(param_1,"system.posix_acl_default",(void *)0x0,0)" (identifier "getxattr") (argument_list "(param_1,"system.posix_acl_default",(void *)0x0,0)" (( "(") (identifier "param_1") (, ",") (string_literal ""system.posix_acl_default"" (" """) (string_content "system.posix_acl_default") (" """)) (, ",") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (sVar1 < 0) {\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }\n      else if (sVar1 != 0) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(sVar1 < 0)" (( "(") (binary_expression "sVar1 < 0" (identifier "sVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        piVar4 = __errno_location();\n        iVar2 = *piVar4;\n        if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }\n      }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (if_statement "if (iVar2 != 0x3d) {\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" (if "if") (parenthesized_expression "(iVar2 != 0x3d)" (( "(") (binary_expression "iVar2 != 0x3d" (identifier "iVar2") (!= "!=") (number_literal "0x3d")) () ")")) (compound_statement "{\nLAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);\n          return -(uVar3 & 0xff);\n        }" ({ "{") (labeled_statement "LAB_0001d1ac:\n          uVar3 = FUN_0002c3f0(iVar2);" (statement_identifier "LAB_0001d1ac") (: ":") (expression_statement "uVar3 = FUN_0002c3f0(iVar2);" (assignment_expression "uVar3 = FUN_0002c3f0(iVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_0002c3f0(iVar2)" (identifier "FUN_0002c3f0") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";"))) (return_statement "return -(uVar3 & 0xff);" (return "return") (unary_expression "-(uVar3 & 0xff)" (- "-") (parenthesized_expression "(uVar3 & 0xff)" (( "(") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (sVar1 != 0) {\n        return 1;\n      }" (else "else") (if_statement "if (sVar1 != 0) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(sVar1 != 0)" (( "(") (binary_expression "sVar1 != 0" (identifier "sVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))))) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *name,type_1 *sb)

{
  type_2 _Var1;
  ssize_t var_2;
  int var_4;
  int *piVar3;
  
  if ((sb->st_mode & 0xf000) != 0xa000) {
    var_2 = var_1(name,"system.posix_acl_access",(void *)0x0,0);
    if (var_2 < 0) {
      piVar3 = var_3();
      var_4 = *piVar3;
      if (var_4 != 0x3d) goto LAB_0001d1ac;
    }
    else if (var_2 != 0) {
      return 1;
    }
    if ((sb->st_mode & 0xf000) == 0x4000) {
      var_2 = var_1(name,"system.posix_acl_default",(void *)0x0,0);
      if (var_2 < 0) {
        piVar3 = var_3();
        var_4 = *piVar3;
        if (var_4 != 0x3d) {
LAB_0001d1ac:
          _Var1 = var_5(var_4);
          return -(type_3)_Var1;
        }
      }
      else if (var_2 != 0) {
        return 1;
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement (unary_expression argument: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))))))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(char *param_1,int param_2)

{
  ssize_t sVar1;
  int iVar2;
  uint uVar3;
  int *piVar4;
  
  if ((*(uint *)(param_2 + 0x10) & 0xf000) != 0xa000) {
    sVar1 = getxattr(param_1,"system.posix_acl_access",(void *)0x0,0);
    if (sVar1 < 0) {
      piVar4 = __errno_location();
      iVar2 = *piVar4;
      if (iVar2 != 0x3d) goto LAB_0001d1ac;
    }
    else if (sVar1 != 0) {
      return 1;
    }
    if ((*(uint *)(param_2 + 0x10) & 0xf000) == 0x4000) {
      sVar1 = getxattr(param_1,"system.posix_acl_default",(void *)0x0,0);
      if (sVar1 < 0) {
        piVar4 = __errno_location();
        iVar2 = *piVar4;
        if (iVar2 != 0x3d) {
LAB_0001d1ac:
          uVar3 = FUN_0002c3f0(iVar2);
          return -(uVar3 & 0xff);
        }
      }
      else if (sVar1 != 0) {
        return 1;
      }
    }
  }
  return 0;
}

