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

_Bool pred_context(char *pathname,stat *stat_buf,predicate *pred_ptr)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  int *piVar4;
  int in_GS_OFFSET;
  security_context_t scontext;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);
  if (iVar1 < 0) {
    pcVar2 = safely_quote_err_filename(0,pathname);
    uVar3 = dcgettext(0,"getfilecon failed: %s",5);
    piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
    error(0,*piVar4,uVar3,pcVar2);
  }
  iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0);
  freecon(scontext);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1 == 0;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int *piVar4;
  int in_GS_OFFSET;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);
  if (iVar1 < 0) {
    uVar2 = FUN_0001b940(0,param_1);
    uVar3 = dcgettext(0,"getfilecon failed: %s",5);
    piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
    error(0,*piVar4,uVar3,uVar2);
  }
  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);
  freecon(local_14);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1 == 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004e0c0();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014d70
ADD EBX,0x53d10
SUB ESP,0x14
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x10],EAX
XOR EAX,EAX
LEA EAX,[ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [ESP + 0x2c]
PUSH EAX
LEA EAX,[EBX + 0x11d8]
PUSH dword ptr [EAX + 0xc]
PUSH dword ptr [EAX + 0x10]
LEA EAX,[EBX + 0x1218]
CALL dword ptr [EAX + 0x40]
ADD ESP,0x10
TEST EAX,EAX
JS 0x00017058
SUB ESP,0x4
PUSH 0x0
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESI + 0x28]
CALL 0x00036fc0
POP EDX
PUSH dword ptr [ESP + 0x14]
TEST EAX,EAX
SETZ AL
MOV ESI,EAX
CALL 0x00014840
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00017091
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x8
PUSH EDI
PUSH 0x0
CALL 0x0001b940
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xfffe47b4]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142c0
MOV ESI,EAX
CALL 0x00014650
PUSH EDI
PUSH ESI
XOR ESI,ESI
PUSH dword ptr [EAX]
PUSH 0x0
CALL 0x000144a0
CALL 0x0004e0c0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004e0c0();\n}\n\n" comment (function_definition "bool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004e0c0();\n}" primitive_type (function_declarator "FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004e0c0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (expression_statement "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);" (assignment_expression "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" identifier = (call_expression "(*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" (parenthesized_expression "(*DAT_0006bf40)" ( (pointer_expression "*DAT_0006bf40" * identifier) )) (argument_list "(DAT_0006bed0,DAT_0006becc,&local_14)" ( identifier , identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,uVar2);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,uVar2);\n  }" { (expression_statement "uVar2 = FUN_0001b940(0,param_1);" (assignment_expression "uVar2 = FUN_0001b940(0,param_1)" identifier = (call_expression "FUN_0001b940(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"getfilecon failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"getfilecon failed: %s",5)" identifier = (call_expression "dcgettext(0,"getfilecon failed: %s",5)" identifier (argument_list "(0,"getfilecon failed: %s",5)" ( number_literal , (string_literal ""getfilecon failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" identifier (argument_list "(0,*piVar4,uVar3,uVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);" (assignment_expression "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" identifier = (call_expression "FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x28),local_14,0)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "freecon(local_14);" (call_expression "freecon(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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    return iVar1 == 0;\n  }" { (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) comment (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool pred_context(char *pathname,stat *stat_buf,predicate *pred_ptr)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  security_context_t scontext;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);\n  if (iVar1 < 0) {\n    pcVar2 = safely_quote_err_filename(0,pathname);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,pcVar2);\n  }\n  iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0);\n  freecon(scontext);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "_Bool pred_context(char *pathname,stat *stat_buf,predicate *pred_ptr)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  security_context_t scontext;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);\n  if (iVar1 < 0) {\n    pcVar2 = safely_quote_err_filename(0,pathname);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,pcVar2);\n  }\n  iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0);\n  freecon(scontext);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "pred_context(char *pathname,stat *stat_buf,predicate *pred_ptr)" identifier (parameter_list "(char *pathname,stat *stat_buf,predicate *pred_ptr)" ( (parameter_declaration "char *pathname" primitive_type (pointer_declarator "*pathname" * identifier)) , (parameter_declaration "stat *stat_buf" type_identifier (pointer_declarator "*stat_buf" * identifier)) , (parameter_declaration "predicate *pred_ptr" type_identifier (pointer_declarator "*pred_ptr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  security_context_t scontext;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);\n  if (iVar1 < 0) {\n    pcVar2 = safely_quote_err_filename(0,pathname);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,pcVar2);\n  }\n  iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0);\n  freecon(scontext);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "security_context_t scontext;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (expression_statement "iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);" (assignment_expression "iVar1 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext)" identifier = (call_expression "(*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext)" (parenthesized_expression "(*options.x_getfilecon)" ( (pointer_expression "*options.x_getfilecon" * (field_expression "options.x_getfilecon" identifier . field_identifier)) )) (argument_list "(state.cwd_dir_fd,state.rel_pathname,&scontext)" ( (field_expression "state.cwd_dir_fd" identifier . field_identifier) , (field_expression "state.rel_pathname" identifier . field_identifier) , (pointer_expression "&scontext" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    pcVar2 = safely_quote_err_filename(0,pathname);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,pcVar2);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    pcVar2 = safely_quote_err_filename(0,pathname);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n    error(0,*piVar4,uVar3,pcVar2);\n  }" { (expression_statement "pcVar2 = safely_quote_err_filename(0,pathname);" (assignment_expression "pcVar2 = safely_quote_err_filename(0,pathname)" identifier = (call_expression "safely_quote_err_filename(0,pathname)" identifier (argument_list "(0,pathname)" ( number_literal , identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"getfilecon failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"getfilecon failed: %s",5)" identifier = (call_expression "dcgettext(0,"getfilecon failed: %s",5)" identifier (argument_list "(0,"getfilecon failed: %s",5)" ( number_literal , (string_literal ""getfilecon failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(0,*piVar4,uVar3,pcVar2);" (call_expression "error(0,*piVar4,uVar3,pcVar2)" identifier (argument_list "(0,*piVar4,uVar3,pcVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0);" (assignment_expression "iVar1 = rpl_fnmatch((pred_ptr->args).str,scontext,0)" identifier = (call_expression "rpl_fnmatch((pred_ptr->args).str,scontext,0)" identifier (argument_list "((pred_ptr->args).str,scontext,0)" ( (field_expression "(pred_ptr->args).str" (parenthesized_expression "(pred_ptr->args)" ( (field_expression "pred_ptr->args" identifier -> field_identifier) )) . field_identifier) , identifier , number_literal )))) ;) (expression_statement "freecon(scontext);" (call_expression "freecon(scontext)" identifier (argument_list "(scontext)" ( identifier ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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    return iVar1 == 0;\n  }" { (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    \n  FUN_0004e0c0();\n}\n\n" (function_definition "bool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    \n  FUN_0004e0c0();\n}" primitive_type (function_declarator "FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    \n  FUN_0004e0c0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (expression_statement "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);" (assignment_expression "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" identifier = (call_expression "(*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" (parenthesized_expression "(*DAT_0006bf40)" ( (pointer_expression "*DAT_0006bf40" * identifier) )) (argument_list "(DAT_0006bed0,DAT_0006becc,&local_14)" ( identifier , identifier , (pointer_expression "&local_14" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }" { (expression_statement "uVar2 = FUN_0001b940(0,param_1);" (assignment_expression "uVar2 = FUN_0001b940(0,param_1)" identifier = (call_expression "FUN_0001b940(0,param_1)" identifier (argument_list "(0,param_1)" ( number_literal , identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"getfilecon failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"getfilecon failed: %s",5)" identifier = (call_expression "dcgettext(0,"getfilecon failed: %s",5)" identifier (argument_list "(0,"getfilecon failed: %s",5)" ( number_literal , (string_literal ""getfilecon failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" identifier (argument_list "(0,*piVar4,uVar3,uVar2)" ( number_literal , (pointer_expression "*piVar4" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);" (assignment_expression "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" identifier = (call_expression "FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" identifier (argument_list "(*(undefined4 *)(param_3 + 0x28),local_14,0)" ( (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) , identifier , number_literal )))) ;) (expression_statement "freecon(local_14);" (call_expression "freecon(local_14)" identifier (argument_list "(local_14)" ( identifier ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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    return iVar1 == 0;\n  }" { (return_statement "return iVar1 == 0;" return (binary_expression "iVar1 == 0" identifier == number_literal) ;) })) (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , 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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (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 { (return_statement return (binary_expression IDENT == LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    \n  FUN_0004e0c0();\n}" (primitive_type "bool") (function_declarator "FUN_00016fd0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00016fd0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  int *piVar4;\n  int in_GS_OFFSET;\n  undefined4 local_14;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);\n  if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }\n  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);\n  freecon(local_14);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }\n                    \n  FUN_0004e0c0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);" (assignment_expression "iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" (identifier "iVar1") (= "=") (call_expression "(*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14)" (parenthesized_expression "(*DAT_0006bf40)" (( "(") (pointer_expression "*DAT_0006bf40" (* "*") (identifier "DAT_0006bf40")) () ")")) (argument_list "(DAT_0006bed0,DAT_0006becc,&local_14)" (( "(") (identifier "DAT_0006bed0") (, ",") (identifier "DAT_0006becc") (, ",") (pointer_expression "&local_14" (& "&") (identifier "local_14")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_0001b940(0,param_1);\n    uVar3 = dcgettext(0,"getfilecon failed: %s",5);\n    piVar4 = __errno_location();\n                    \n    error(0,*piVar4,uVar3,uVar2);\n  }" ({ "{") (expression_statement "uVar2 = FUN_0001b940(0,param_1);" (assignment_expression "uVar2 = FUN_0001b940(0,param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_0001b940(0,param_1)" (identifier "FUN_0001b940") (argument_list "(0,param_1)" (( "(") (number_literal "0") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"getfilecon failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"getfilecon failed: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"getfilecon failed: %s",5)" (identifier "dcgettext") (argument_list "(0,"getfilecon failed: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""getfilecon failed: %s"" (" """) (string_content "getfilecon failed: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(0,*piVar4,uVar3,uVar2);" (call_expression "error(0,*piVar4,uVar3,uVar2)" (identifier "error") (argument_list "(0,*piVar4,uVar3,uVar2)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (, ",") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);" (assignment_expression "iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0)" (identifier "FUN_00036fc0") (argument_list "(*(undefined4 *)(param_3 + 0x28),local_14,0)" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "local_14") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "freecon(local_14);" (call_expression "freecon(local_14)" (identifier "freecon") (argument_list "(local_14)" (( "(") (identifier "local_14") () ")"))) (; ";")) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1 == 0;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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    return iVar1 == 0;\n  }" ({ "{") (return_statement "return iVar1 == 0;" (return "return") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_0004e0c0();" (call_expression "FUN_0004e0c0()" (identifier "FUN_0004e0c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(char *pathname,type_2 *stat_buf,type_3 *pred_ptr)

{
  int var_2;
  char *pcVar2;
  type_4 uVar3;
  int *piVar4;
  int var_1;
  type_5 scontext;
  int var_9;
  
  var_9 = *(int *)(var_1 + 0x14);
  var_2 = (*options.x_getfilecon)(state.cwd_dir_fd,state.rel_pathname,&scontext);
  if (var_2 < 0) {
    pcVar2 = var_3(0,pathname);
    uVar3 = var_4(0,"getfilecon failed: %s",5);
    piVar4 = var_5();
                    /* WARNING: Subroutine does not return */
    var_6(0,*piVar4,uVar3,pcVar2);
  }
  var_2 = var_7((pred_ptr->args).str,scontext,0);
  var_8(scontext);
  if (var_9 == *(int *)(var_1 + 0x14)) {
    return var_2 == 0;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (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) (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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (number_literal))))) (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 (return_statement (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

bool MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  int *piVar4;
  int in_GS_OFFSET;
  undefined4 local_14;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = (*DAT_0006bf40)(DAT_0006bed0,DAT_0006becc,&local_14);
  if (iVar1 < 0) {
    uVar2 = FUN_0001b940(0,param_1);
    uVar3 = dcgettext(0,"getfilecon failed: %s",5);
    piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
    error(0,*piVar4,uVar3,uVar2);
  }
  iVar1 = FUN_00036fc0(*(undefined4 *)(param_3 + 0x28),local_14,0);
  freecon(local_14);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1 == 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004e0c0();
}

