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

_Bool restorecon(char *path,_Bool recurse,_Bool local)

{
  int iVar1;
  FTS *sp;
  FTSENT *pFVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  char *pcVar6;
  undefined4 extraout_EDX;
  int in_GS_OFFSET;
  char *local_34;
  char *ftspath [2];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*path == '/') || (local)) {
    local_34 = (char *)0x0;
    ftspath[0] = path;
  }
  else {
    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);
    local_34 = ftspath[0];
    if (ftspath[0] == (char *)0x0) {
      uVar5 = extraout_EDX;
      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);
      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);
      piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar3,uVar5,pcVar6);
    }
  }
  ftspath[1] = (char *)0x0;
  if (recurse) {
    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);
    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {
      iVar4 = restorecon_private(sp->fts_path,local);
      recurse = (_Bool)(recurse & iVar4 != -1);
    }
    piVar3 = __errno_location();
    if (*piVar3 != 0) {
      uVar5 = dcgettext(0,"fts_read failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar5);
    }
    iVar4 = fts_close(sp);
    if (iVar4 != 0) {
      uVar5 = dcgettext(0,"fts_close failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar5);
    }
    free(local_34);
  }
  else {
    iVar4 = restorecon_private(ftspath[0],local);
    recurse = iVar4 != -1;
    free(local_34);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return recurse;
}



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

byte FUN_0001b6f0(char *param_1,byte param_2,char param_3)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined8 uVar5;
  char *local_34;
  char *local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1b6f9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*param_1 == '/') || (param_3 != '\0')) {
    local_34 = (char *)0x0;
    local_28 = param_1;
  }
  else {
    uVar5 = FUN_0001c2a0(param_1,2);
    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);
    local_28 = (char *)uVar5;
    local_34 = local_28;
    if (local_28 == (char *)0x0) {
      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);
      uVar4 = dcgettext(0,"error canonicalizing %s",5);
      piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar3,uVar4,uVar1);
    }
  }
  local_24 = 0;
  if (param_2 == 0) {
    iVar2 = FUN_0001b110();
    param_2 = iVar2 != -1;
    free(local_34);
  }
  else {
    uVar1 = FUN_000241e0(&local_28,0x10,0);
    while (iVar2 = fts_read(uVar1), iVar2 != 0) {
      iVar2 = FUN_0001b110();
      param_2 = param_2 & iVar2 != -1;
    }
    piVar3 = __errno_location();
    if (*piVar3 != 0) {
      uVar1 = dcgettext(0,"fts_read failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar1);
    }
    iVar2 = fts_close(uVar1);
    if (iVar2 != 0) {
      uVar1 = dcgettext(0,"fts_close failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar1);
    }
    free(local_34);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002d970();
  }
  return param_2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013950
ADD EBX,0x1f907
SUB ESP,0x2c
MOV EBP,dword ptr [ESP + 0x48]
MOV EDI,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x44]
MOV EAX,EBP
MOV byte ptr [ESP + 0xf],AL
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
CMP byte ptr [EDI],0x2f
JZ 0x0001b72f
MOV EAX,EBP
TEST AL,AL
JZ 0x0001b850
MOV dword ptr [ESP + 0x8],0x0
MOV EAX,ESI
MOV dword ptr [ESP + 0x14],EDI
MOV dword ptr [ESP + 0x18],0x0
TEST AL,AL
JZ 0x0001b870
SUB ESP,0x4
PUSH 0x0
PUSH 0x10
LEA EAX,[ESP + 0x20]
PUSH EAX
CALL 0x000241e0
ADD ESP,0x10
MOVZX EBP,byte ptr [ESP + 0xf]
MOV EDI,EAX
JMP 0x0001b782
MOV EAX,dword ptr [EDI + 0x14]
MOV EDX,EBP
CALL 0x0001b110
CMP EAX,-0x1
SETNZ AL
AND ESI,EAX
SUB ESP,0xc
PUSH EDI
CALL 0x00026a30
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001b770
CALL 0x00012640
MOV EBP,EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0001b810
SUB ESP,0xc
PUSH EDI
CALL 0x00026880
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001b7e0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00012a70
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x0001b898
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4d4d]
XOR ESI,ESI
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
ADD ESP,0xc
PUSH EAX
PUSH dword ptr [EBP]
PUSH 0x0
CALL 0x00012410
SUB ESP,0x4
LEA EAX,[EBX + 0xffff4d3d]
XOR ESI,ESI
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
ADD ESP,0xc
PUSH EAX
PUSH dword ptr [EBP]
PUSH 0x0
CALL 0x00012410
SUB ESP,0x8
PUSH 0x2
PUSH EDI
CALL 0x0001c2a0
MOV dword ptr [ESP + 0x18],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001b89d
MOV EDI,dword ptr [ESP + 0x8]
JMP 0x0001b737
MOV EAX,EBP
MOVZX EDX,AL
MOV EAX,EDI
CALL 0x0001b110
CMP EAX,-0x1
SETNZ AL
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
MOV ESI,EAX
CALL 0x00012a70
ADD ESP,0x10
JMP 0x0001b7be
CALL 0x0002d970
PUSH EDX
PUSH EDX
PUSH EDI
PUSH 0x4
CALL 0x00020e70
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xffff4d25]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012240
MOV ESI,EAX
CALL 0x00012640
PUSH EDI
PUSH ESI
PUSH dword ptr [EAX]
PUSH 0x1
CALL 0x00012410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbyte FUN_0001b6f0(char *param_1,byte param_2,char param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002d970();\n  }\n  return param_2;\n}\n\n" comment (function_definition "byte FUN_0001b6f0(char *param_1,byte param_2,char param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002d970();\n  }\n  return param_2;\n}" type_identifier (function_declarator "FUN_0001b6f0(char *param_1,byte param_2,char param_3)" identifier (parameter_list "(char *param_1,byte param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002d970();\n  }\n  return param_2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b6f9;" (assignment_expression "uStack_14 = 0x1b6f9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" if (parenthesized_expression "((*param_1 == '/') || (param_3 != '\0'))" ( (binary_expression "(*param_1 == '/') || (param_3 != '\0')" (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }" { (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" else (compound_statement "{\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" { (expression_statement "uVar5 = FUN_0001c2a0(param_1,2);" (assignment_expression "uVar5 = FUN_0001c2a0(param_1,2)" identifier = (call_expression "FUN_0001c2a0(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (expression_statement "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);" (assignment_expression "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar5 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_28 = (char *)uVar5;" (assignment_expression "local_28 = (char *)uVar5" identifier = (cast_expression "(char *)uVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_34 = local_28;" (assignment_expression "local_34 = local_28" identifier = identifier) ;) (if_statement "if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }" if (parenthesized_expression "(local_28 == (char *)0x0)" ( (binary_expression "local_28 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar4,uVar1);\n    }" { (expression_statement "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);" (assignment_expression "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1)" identifier = (call_expression "FUN_00020e70(4,param_1,uVar1,uVar1)" identifier (argument_list "(4,param_1,uVar1,uVar1)" ( number_literal , identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar4 = dcgettext(0,"error canonicalizing %s",5)" identifier = (call_expression "dcgettext(0,"error canonicalizing %s",5)" identifier (argument_list "(0,"error canonicalizing %s",5)" ( number_literal , (string_literal ""error canonicalizing %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar3,uVar4,uVar1);" (call_expression "error(1,*piVar3,uVar4,uVar1)" identifier (argument_list "(1,*piVar3,uVar4,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }" { (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" identifier = (call_expression "FUN_0001b110()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2 = iVar2 != -1;" (assignment_expression "param_2 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }) (else_clause "else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" else (compound_statement "{\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" { (expression_statement "uVar1 = FUN_000241e0(&local_28,0x10,0);" (assignment_expression "uVar1 = FUN_000241e0(&local_28,0x10,0)" identifier = (call_expression "FUN_000241e0(&local_28,0x10,0)" identifier (argument_list "(&local_28,0x10,0)" ( (pointer_expression "&local_28" & identifier) , number_literal , number_literal )))) ;) (while_statement "while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" while (parenthesized_expression "(iVar2 = fts_read(uVar1), iVar2 != 0)" ( (comma_expression "iVar2 = fts_read(uVar1), iVar2 != 0" (assignment_expression "iVar2 = fts_read(uVar1)" identifier = (call_expression "fts_read(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" { (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" identifier = (call_expression "FUN_0001b110()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2 = param_2 & iVar2 != -1;" (assignment_expression "param_2 = param_2 & iVar2 != -1" identifier = (binary_expression "param_2 & iVar2 != -1" identifier & (binary_expression "iVar2 != -1" identifier != number_literal))) ;) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"fts_read failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_read failed",5)" identifier = (call_expression "dcgettext(0,"fts_read failed",5)" identifier (argument_list "(0,"fts_read failed",5)" ( number_literal , (string_literal ""fts_read failed"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" identifier (argument_list "(0,*piVar3,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "iVar2 = fts_close(uVar1);" (assignment_expression "iVar2 = fts_close(uVar1)" identifier = (call_expression "fts_close(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"fts_close failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_close failed",5)" identifier = (call_expression "dcgettext(0,"fts_close failed",5)" identifier (argument_list "(0,"fts_close failed",5)" ( number_literal , (string_literal ""fts_close failed"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" identifier (argument_list "(0,*piVar3,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002d970();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0002d970();\n  }" { comment (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool restorecon(char *path,_Bool recurse,_Bool local)\n\n{\n  int iVar1;\n  FTS *sp;\n  FTSENT *pFVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 extraout_EDX;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *ftspath [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*path == '/') || (local)) {\n    local_34 = (char *)0x0;\n    ftspath[0] = path;\n  }\n  else {\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }\n  ftspath[1] = (char *)0x0;\n  if (recurse) {\n    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);\n    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    iVar4 = fts_close(sp);\n    if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    free(local_34);\n  }\n  else {\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return recurse;\n}\n\n" comment comment (function_definition "_Bool restorecon(char *path,_Bool recurse,_Bool local)\n\n{\n  int iVar1;\n  FTS *sp;\n  FTSENT *pFVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 extraout_EDX;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *ftspath [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*path == '/') || (local)) {\n    local_34 = (char *)0x0;\n    ftspath[0] = path;\n  }\n  else {\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }\n  ftspath[1] = (char *)0x0;\n  if (recurse) {\n    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);\n    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    iVar4 = fts_close(sp);\n    if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    free(local_34);\n  }\n  else {\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return recurse;\n}" type_identifier (function_declarator "restorecon(char *path,_Bool recurse,_Bool local)" identifier (parameter_list "(char *path,_Bool recurse,_Bool local)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "_Bool recurse" type_identifier identifier) , (parameter_declaration "_Bool local" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  FTS *sp;\n  FTSENT *pFVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  char *pcVar6;\n  undefined4 extraout_EDX;\n  int in_GS_OFFSET;\n  char *local_34;\n  char *ftspath [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*path == '/') || (local)) {\n    local_34 = (char *)0x0;\n    ftspath[0] = path;\n  }\n  else {\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }\n  ftspath[1] = (char *)0x0;\n  if (recurse) {\n    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);\n    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    iVar4 = fts_close(sp);\n    if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    free(local_34);\n  }\n  else {\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return recurse;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "FTS *sp;" type_identifier (pointer_declarator "*sp" * identifier) ;) (declaration "FTSENT *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "char *ftspath [2];" primitive_type (pointer_declarator "*ftspath [2]" * (array_declarator "ftspath [2]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*path == '/') || (local)) {\n    local_34 = (char *)0x0;\n    ftspath[0] = path;\n  }\n  else {\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }" if (parenthesized_expression "((*path == '/') || (local))" ( (binary_expression "(*path == '/') || (local)" (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(local)" ( identifier ))) )) (compound_statement "{\n    local_34 = (char *)0x0;\n    ftspath[0] = path;\n  }" { (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ftspath[0] = path;" (assignment_expression "ftspath[0] = path" (subscript_expression "ftspath[0]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }" else (compound_statement "{\n    ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);\n    local_34 = ftspath[0];\n    if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }\n  }" { (expression_statement "ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING);" (assignment_expression "ftspath[0] = canonicalize_filename_mode(path,CAN_MISSING)" (subscript_expression "ftspath[0]" identifier [ number_literal ]) = (call_expression "canonicalize_filename_mode(path,CAN_MISSING)" identifier (argument_list "(path,CAN_MISSING)" ( identifier , identifier )))) ;) (expression_statement "local_34 = ftspath[0];" (assignment_expression "local_34 = ftspath[0]" identifier = (subscript_expression "ftspath[0]" identifier [ number_literal ])) ;) (if_statement "if (ftspath[0] == (char *)0x0) {\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }" if (parenthesized_expression "(ftspath[0] == (char *)0x0)" ( (binary_expression "ftspath[0] == (char *)0x0" (subscript_expression "ftspath[0]" identifier [ number_literal ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = extraout_EDX;\n      pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);\n      piVar3 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar3,uVar5,pcVar6);\n    }" { (expression_statement "uVar5 = extraout_EDX;" (assignment_expression "uVar5 = extraout_EDX" identifier = identifier) ;) (expression_statement "pcVar6 = quotearg_style(shell_escape_always_quoting_style,path);" (assignment_expression "pcVar6 = quotearg_style(shell_escape_always_quoting_style,path)" identifier = (call_expression "quotearg_style(shell_escape_always_quoting_style,path)" identifier (argument_list "(shell_escape_always_quoting_style,path)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5);" (assignment_expression "uVar5 = dcgettext(0,"error canonicalizing %s",5,uVar5)" identifier = (call_expression "dcgettext(0,"error canonicalizing %s",5,uVar5)" identifier (argument_list "(0,"error canonicalizing %s",5,uVar5)" ( number_literal , (string_literal ""error canonicalizing %s"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar3,uVar5,pcVar6);" (call_expression "error(1,*piVar3,uVar5,pcVar6)" identifier (argument_list "(1,*piVar3,uVar5,pcVar6)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "ftspath[1] = (char *)0x0;" (assignment_expression "ftspath[1] = (char *)0x0" (subscript_expression "ftspath[1]" identifier [ number_literal ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (recurse) {\n    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);\n    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    iVar4 = fts_close(sp);\n    if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    free(local_34);\n  }\n  else {\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }" if (parenthesized_expression "(recurse)" ( identifier )) (compound_statement "{\n    sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);\n    while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    iVar4 = fts_close(sp);\n    if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }\n    free(local_34);\n  }" { (expression_statement "sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0);" (assignment_expression "sp = xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" identifier = (call_expression "xfts_open(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" identifier (argument_list "(ftspath,0x10,(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0)" ( identifier , number_literal , (cast_expression "(_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *)0x0" ( (type_descriptor "_func_int_FTSENT_ptr_ptr_FTSENT_ptr_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (while_statement "while (pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0) {\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }" while (parenthesized_expression "(pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0)" ( (comma_expression "pFVar2 = fts_read(sp), pFVar2 != (FTSENT *)0x0" (assignment_expression "pFVar2 = fts_read(sp)" identifier = (call_expression "fts_read(sp)" identifier (argument_list "(sp)" ( identifier )))) , (binary_expression "pFVar2 != (FTSENT *)0x0" identifier != (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      iVar4 = restorecon_private(sp->fts_path,local);\n      recurse = (_Bool)(recurse & iVar4 != -1);\n    }" { (expression_statement "iVar4 = restorecon_private(sp->fts_path,local);" (assignment_expression "iVar4 = restorecon_private(sp->fts_path,local)" identifier = (call_expression "restorecon_private(sp->fts_path,local)" identifier (argument_list "(sp->fts_path,local)" ( (field_expression "sp->fts_path" identifier -> field_identifier) , identifier )))) ;) (expression_statement "recurse = (_Bool)(recurse & iVar4 != -1);" (assignment_expression "recurse = (_Bool)(recurse & iVar4 != -1)" identifier = (call_expression "(_Bool)(recurse & iVar4 != -1)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "(recurse & iVar4 != -1)" ( (binary_expression "recurse & iVar4 != -1" identifier & (binary_expression "iVar4 != -1" identifier != number_literal)) )))) ;) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar3 != 0) {\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n      uVar5 = dcgettext(0,"fts_read failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"fts_read failed",5);" (assignment_expression "uVar5 = dcgettext(0,"fts_read failed",5)" identifier = (call_expression "dcgettext(0,"fts_read failed",5)" identifier (argument_list "(0,"fts_read failed",5)" ( number_literal , (string_literal ""fts_read failed"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar3,uVar5);" (call_expression "error(0,*piVar3,uVar5)" identifier (argument_list "(0,*piVar3,uVar5)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "iVar4 = fts_close(sp);" (assignment_expression "iVar4 = fts_close(sp)" identifier = (call_expression "fts_close(sp)" identifier (argument_list "(sp)" ( identifier )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = dcgettext(0,"fts_close failed",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar3,uVar5);\n    }" { (expression_statement "uVar5 = dcgettext(0,"fts_close failed",5);" (assignment_expression "uVar5 = dcgettext(0,"fts_close failed",5)" identifier = (call_expression "dcgettext(0,"fts_close failed",5)" identifier (argument_list "(0,"fts_close failed",5)" ( number_literal , (string_literal ""fts_close failed"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar3,uVar5);" (call_expression "error(0,*piVar3,uVar5)" identifier (argument_list "(0,*piVar3,uVar5)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }) (else_clause "else {\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }" else (compound_statement "{\n    iVar4 = restorecon_private(ftspath[0],local);\n    recurse = iVar4 != -1;\n    free(local_34);\n  }" { (expression_statement "iVar4 = restorecon_private(ftspath[0],local);" (assignment_expression "iVar4 = restorecon_private(ftspath[0],local)" identifier = (call_expression "restorecon_private(ftspath[0],local)" identifier (argument_list "(ftspath[0],local)" ( (subscript_expression "ftspath[0]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "recurse = iVar4 != -1;" (assignment_expression "recurse = iVar4 != -1" identifier = (binary_expression "iVar4 != -1" identifier != number_literal)) ;) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return recurse;" return identifier ;) })))
(translation_unit "byte FUN_0001b6f0(char *param_1,byte param_2,char param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }\n  return param_2;\n}\n\n" (function_definition "byte FUN_0001b6f0(char *param_1,byte param_2,char param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }\n  return param_2;\n}" type_identifier (function_declarator "FUN_0001b6f0(char *param_1,byte param_2,char param_3)" identifier (parameter_list "(char *param_1,byte param_2,char param_3)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }\n  return param_2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *local_34;" primitive_type (pointer_declarator "*local_34" * identifier) ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1b6f9;" (assignment_expression "uStack_14 = 0x1b6f9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" if (parenthesized_expression "((*param_1 == '/') || (param_3 != '\0'))" ( (binary_expression "(*param_1 == '/') || (param_3 != '\0')" (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) || (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }" { (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" else (compound_statement "{\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" { (expression_statement "uVar5 = FUN_0001c2a0(param_1,2);" (assignment_expression "uVar5 = FUN_0001c2a0(param_1,2)" identifier = (call_expression "FUN_0001c2a0(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal )))) ;) (expression_statement "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);" (assignment_expression "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20)" identifier = (call_expression "(undefined4)((ulonglong)uVar5 >> 0x20)" (parenthesized_expression "(undefined4)" ( identifier )) (argument_list "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_28 = (char *)uVar5;" (assignment_expression "local_28 = (char *)uVar5" identifier = (cast_expression "(char *)uVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_34 = local_28;" (assignment_expression "local_34 = local_28" identifier = identifier) ;) (if_statement "if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }" if (parenthesized_expression "(local_28 == (char *)0x0)" ( (binary_expression "local_28 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }" { (expression_statement "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);" (assignment_expression "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1)" identifier = (call_expression "FUN_00020e70(4,param_1,uVar1,uVar1)" identifier (argument_list "(4,param_1,uVar1,uVar1)" ( number_literal , identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar4 = dcgettext(0,"error canonicalizing %s",5)" identifier = (call_expression "dcgettext(0,"error canonicalizing %s",5)" identifier (argument_list "(0,"error canonicalizing %s",5)" ( number_literal , (string_literal ""error canonicalizing %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(1,*piVar3,uVar4,uVar1);" (call_expression "error(1,*piVar3,uVar4,uVar1)" identifier (argument_list "(1,*piVar3,uVar4,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }" { (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" identifier = (call_expression "FUN_0001b110()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2 = iVar2 != -1;" (assignment_expression "param_2 = iVar2 != -1" identifier = (binary_expression "iVar2 != -1" identifier != number_literal)) ;) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }) (else_clause "else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" else (compound_statement "{\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" { (expression_statement "uVar1 = FUN_000241e0(&local_28,0x10,0);" (assignment_expression "uVar1 = FUN_000241e0(&local_28,0x10,0)" identifier = (call_expression "FUN_000241e0(&local_28,0x10,0)" identifier (argument_list "(&local_28,0x10,0)" ( (pointer_expression "&local_28" & identifier) , number_literal , number_literal )))) ;) (while_statement "while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" while (parenthesized_expression "(iVar2 = fts_read(uVar1), iVar2 != 0)" ( (comma_expression "iVar2 = fts_read(uVar1), iVar2 != 0" (assignment_expression "iVar2 = fts_read(uVar1)" identifier = (call_expression "fts_read(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) )) (compound_statement "{\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" { (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" identifier = (call_expression "FUN_0001b110()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2 = param_2 & iVar2 != -1;" (assignment_expression "param_2 = param_2 & iVar2 != -1" identifier = (binary_expression "param_2 & iVar2 != -1" identifier & (binary_expression "iVar2 != -1" identifier != number_literal))) ;) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"fts_read failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_read failed",5)" identifier = (call_expression "dcgettext(0,"fts_read failed",5)" identifier (argument_list "(0,"fts_read failed",5)" ( number_literal , (string_literal ""fts_read failed"" " string_content ") , number_literal )))) ;) (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" identifier (argument_list "(0,*piVar3,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "iVar2 = fts_close(uVar1);" (assignment_expression "iVar2 = fts_close(uVar1)" identifier = (call_expression "fts_close(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" { (expression_statement "uVar1 = dcgettext(0,"fts_close failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_close failed",5)" identifier = (call_expression "dcgettext(0,"fts_close failed",5)" identifier (argument_list "(0,"fts_close failed",5)" ( number_literal , (string_literal ""fts_close failed"" " string_content ") , number_literal )))) ;) (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" identifier (argument_list "(0,*piVar3,uVar1)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier ))) ;) })) (expression_statement "free(local_34);" (call_expression "free(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) }))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0002d970();\n  }" { (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) }))) (expression_statement (assignment_expression IDENT = 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 = (binary_expression IDENT != LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT )))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (binary_expression IDENT != LIT))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "byte FUN_0001b6f0(char *param_1,byte param_2,char param_3)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }\n  return param_2;\n}" (type_identifier "byte") (function_declarator "FUN_0001b6f0(char *param_1,byte param_2,char param_3)" (identifier "FUN_0001b6f0") (parameter_list "(char *param_1,byte param_2,char param_3)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  undefined8 uVar5;\n  char *local_34;\n  char *local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1b6f9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }\n  local_24 = 0;\n  if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }\n  return param_2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (declaration "char *local_34;" (primitive_type "char") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "char *local_28;" (primitive_type "char") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1b6f9;" (assignment_expression "uStack_14 = 0x1b6f9" (identifier "uStack_14") (= "=") (number_literal "0x1b6f9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((*param_1 == '/') || (param_3 != '\0')) {\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }\n  else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 == '/') || (param_3 != '\0'))" (( "(") (binary_expression "(*param_1 == '/') || (param_3 != '\0')" (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    local_34 = (char *)0x0;\n    local_28 = param_1;\n  }" ({ "{") (expression_statement "local_34 = (char *)0x0;" (assignment_expression "local_34 = (char *)0x0" (identifier "local_34") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_28 = param_1;" (assignment_expression "local_28 = param_1" (identifier "local_28") (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" (else "else") (compound_statement "{\n    uVar5 = FUN_0001c2a0(param_1,2);\n    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);\n    local_28 = (char *)uVar5;\n    local_34 = local_28;\n    if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }\n  }" ({ "{") (expression_statement "uVar5 = FUN_0001c2a0(param_1,2);" (assignment_expression "uVar5 = FUN_0001c2a0(param_1,2)" (identifier "uVar5") (= "=") (call_expression "FUN_0001c2a0(param_1,2)" (identifier "FUN_0001c2a0") (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);" (assignment_expression "uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20)" (identifier "uVar1") (= "=") (call_expression "(undefined4)((ulonglong)uVar5 >> 0x20)" (parenthesized_expression "(undefined4)" (( "(") (identifier "undefined4") () ")")) (argument_list "((ulonglong)uVar5 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "local_28 = (char *)uVar5;" (assignment_expression "local_28 = (char *)uVar5" (identifier "local_28") (= "=") (cast_expression "(char *)uVar5" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "local_34 = local_28;" (assignment_expression "local_34 = local_28" (identifier "local_34") (= "=") (identifier "local_28")) (; ";")) (if_statement "if (local_28 == (char *)0x0) {\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }" (if "if") (parenthesized_expression "(local_28 == (char *)0x0)" (( "(") (binary_expression "local_28 == (char *)0x0" (identifier "local_28") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);\n      uVar4 = dcgettext(0,"error canonicalizing %s",5);\n      piVar3 = __errno_location();\n                    \n      error(1,*piVar3,uVar4,uVar1);\n    }" ({ "{") (expression_statement "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);" (assignment_expression "uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1)" (identifier "uVar1") (= "=") (call_expression "FUN_00020e70(4,param_1,uVar1,uVar1)" (identifier "FUN_00020e70") (argument_list "(4,param_1,uVar1,uVar1)" (( "(") (number_literal "4") (, ",") (identifier "param_1") (, ",") (identifier "uVar1") (, ",") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar4 = dcgettext(0,"error canonicalizing %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"error canonicalizing %s",5)" (identifier "dcgettext") (argument_list "(0,"error canonicalizing %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""error canonicalizing %s"" (" """) (string_content "error canonicalizing %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(1,*piVar3,uVar4,uVar1);" (call_expression "error(1,*piVar3,uVar4,uVar1)" (identifier "error") (argument_list "(1,*piVar3,uVar4,uVar1)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 0) {\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }\n  else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_0001b110();\n    param_2 = iVar2 != -1;\n    free(local_34);\n  }" ({ "{") (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" (identifier "iVar2") (= "=") (call_expression "FUN_0001b110()" (identifier "FUN_0001b110") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_2 = iVar2 != -1;" (assignment_expression "param_2 = iVar2 != -1" (identifier "param_2") (= "=") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1"))) (; ";")) (expression_statement "free(local_34);" (call_expression "free(local_34)" (identifier "free") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_000241e0(&local_28,0x10,0);\n    while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    iVar2 = fts_close(uVar1);\n    if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }\n    free(local_34);\n  }" ({ "{") (expression_statement "uVar1 = FUN_000241e0(&local_28,0x10,0);" (assignment_expression "uVar1 = FUN_000241e0(&local_28,0x10,0)" (identifier "uVar1") (= "=") (call_expression "FUN_000241e0(&local_28,0x10,0)" (identifier "FUN_000241e0") (argument_list "(&local_28,0x10,0)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (number_literal "0x10") (, ",") (number_literal "0") () ")")))) (; ";")) (while_statement "while (iVar2 = fts_read(uVar1), iVar2 != 0) {\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" (while "while") (parenthesized_expression "(iVar2 = fts_read(uVar1), iVar2 != 0)" (( "(") (comma_expression "iVar2 = fts_read(uVar1), iVar2 != 0" (assignment_expression "iVar2 = fts_read(uVar1)" (identifier "iVar2") (= "=") (call_expression "fts_read(uVar1)" (identifier "fts_read") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar2 = FUN_0001b110();\n      param_2 = param_2 & iVar2 != -1;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0001b110();" (assignment_expression "iVar2 = FUN_0001b110()" (identifier "iVar2") (= "=") (call_expression "FUN_0001b110()" (identifier "FUN_0001b110") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_2 = param_2 & iVar2 != -1;" (assignment_expression "param_2 = param_2 & iVar2 != -1" (identifier "param_2") (= "=") (binary_expression "param_2 & iVar2 != -1" (identifier "param_2") (& "&") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")))) (; ";")) (} "}"))) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar3 != 0) {\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" (if "if") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_read failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" ({ "{") (expression_statement "uVar1 = dcgettext(0,"fts_read failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_read failed",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"fts_read failed",5)" (identifier "dcgettext") (argument_list "(0,"fts_read failed",5)" (( "(") (number_literal "0") (, ",") (string_literal ""fts_read failed"" (" """) (string_content "fts_read failed") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" (identifier "error") (argument_list "(0,*piVar3,uVar1)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = fts_close(uVar1);" (assignment_expression "iVar2 = fts_close(uVar1)" (identifier "iVar2") (= "=") (call_expression "fts_close(uVar1)" (identifier "fts_close") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = dcgettext(0,"fts_close failed",5);\n                    \n      error(0,*piVar3,uVar1);\n    }" ({ "{") (expression_statement "uVar1 = dcgettext(0,"fts_close failed",5);" (assignment_expression "uVar1 = dcgettext(0,"fts_close failed",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"fts_close failed",5)" (identifier "dcgettext") (argument_list "(0,"fts_close failed",5)" (( "(") (number_literal "0") (, ",") (string_literal ""fts_close failed"" (" """) (string_content "fts_close failed") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(0,*piVar3,uVar1);" (call_expression "error(0,*piVar3,uVar1)" (identifier "error") (argument_list "(0,*piVar3,uVar1)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (, ",") (identifier "uVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "free(local_34);" (call_expression "free(local_34)" (identifier "free") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002d970();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0002d970();\n  }" ({ "{") (expression_statement "FUN_0002d970();" (call_expression "FUN_0002d970()" (identifier "FUN_0002d970") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

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

type_1 function_1(char *path,type_1 var_11,type_1 local)

{
  int var_15;
  type_2 *sp;
  type_3 *var_9;
  int *piVar3;
  int var_12;
  type_4 uVar5;
  char *pcVar6;
  type_4 extraout_EDX;
  int var_1;
  char *local_34;
  char *ftspath [2];
  
  var_15 = *(int *)(var_1 + 0x14);
  if ((*path == '/') || (local)) {
    local_34 = (char *)0x0;
    ftspath[0] = path;
  }
  else {
    ftspath[0] = var_2(path,CAN_MISSING);
    local_34 = ftspath[0];
    if (ftspath[0] == (char *)0x0) {
      uVar5 = extraout_EDX;
      pcVar6 = var_3(shell_escape_always_quoting_style,path);
      uVar5 = var_4(0,"error canonicalizing %s",5,uVar5);
      piVar3 = var_5();
                    /* WARNING: Subroutine does not return */
      var_6(1,*piVar3,uVar5,pcVar6);
    }
  }
  ftspath[1] = (char *)0x0;
  if (var_11) {
    sp = var_7(ftspath,0x10,(type_5 *)0x0);
    while (var_9 = var_8(sp), var_9 != (type_3 *)0x0) {
      var_12 = var_10(sp->fts_path,local);
      var_11 = (type_1)(var_11 & var_12 != -1);
    }
    piVar3 = var_5();
    if (*piVar3 != 0) {
      uVar5 = var_4(0,"fts_read failed",5);
                    /* WARNING: Subroutine does not return */
      var_6(0,*piVar3,uVar5);
    }
    var_12 = var_13(sp);
    if (var_12 != 0) {
      uVar5 = var_4(0,"fts_close failed",5);
                    /* WARNING: Subroutine does not return */
      var_6(0,*piVar3,uVar5);
    }
    var_14(local_34);
  }
  else {
    var_12 = var_10(ftspath[0],local);
    var_11 = var_12 != -1;
    var_14(local_34);
  }
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return var_11;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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 (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

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

byte MASKED(char *param_1,byte param_2,char param_3)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  int in_GS_OFFSET;
  undefined8 uVar5;
  char *local_34;
  char *local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1b6f9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*param_1 == '/') || (param_3 != '\0')) {
    local_34 = (char *)0x0;
    local_28 = param_1;
  }
  else {
    uVar5 = FUN_0001c2a0(param_1,2);
    uVar1 = (undefined4)((ulonglong)uVar5 >> 0x20);
    local_28 = (char *)uVar5;
    local_34 = local_28;
    if (local_28 == (char *)0x0) {
      uVar1 = FUN_00020e70(4,param_1,uVar1,uVar1);
      uVar4 = dcgettext(0,"error canonicalizing %s",5);
      piVar3 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar3,uVar4,uVar1);
    }
  }
  local_24 = 0;
  if (param_2 == 0) {
    iVar2 = FUN_0001b110();
    param_2 = iVar2 != -1;
    free(local_34);
  }
  else {
    uVar1 = FUN_000241e0(&local_28,0x10,0);
    while (iVar2 = fts_read(uVar1), iVar2 != 0) {
      iVar2 = FUN_0001b110();
      param_2 = param_2 & iVar2 != -1;
    }
    piVar3 = __errno_location();
    if (*piVar3 != 0) {
      uVar1 = dcgettext(0,"fts_read failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar1);
    }
    iVar2 = fts_close(uVar1);
    if (iVar2 != 0) {
      uVar1 = dcgettext(0,"fts_close failed",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar3,uVar1);
    }
    free(local_34);
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002d970();
  }
  return param_2;
}

