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

int defaultcon(char *path,mode_t mode)

{
  short sVar1;
  char *__ptr;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  undefined4 uVar7;
  int in_GS_OFFSET;
  char *scon;
  char *tcon;
  char *scon_1;
  char *tcon_1;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x13589;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  scon = (char *)0x0;
  tcon = (char *)0x0;
  if (*path == '/') {
    __ptr = (char *)0x0;
    pcVar3 = path;
  }
  else {
    __ptr = canonicalize_filename_mode(path,CAN_MISSING);
    pcVar3 = __ptr;
    if (__ptr == (char *)0x0) {
      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);
      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);
      piVar6 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar6,uVar7,pcVar3);
    }
  }
  iVar2 = matchpathcon(pcVar3,mode,&scon);
  if (iVar2 < 0) {
    piVar6 = __errno_location();
    if (*piVar6 == 2) {
      *piVar6 = 0x3d;
    }
  }
  else {
    scon_1 = (char *)0x0;
    tcon_1 = (char *)0x0;
    pcVar3 = dir_name(pcVar3);
    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||
        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||
       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {
      iVar2 = 0;
      iVar4 = 0;
      free(pcVar3);
      freecon(scon_1);
      freecon(tcon_1);
      iVar5 = -1;
      goto LAB_0001371a;
    }
    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);
    free(pcVar3);
    freecon(scon_1);
    freecon(tcon_1);
    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {
      iVar4 = context_new(tcon);
      if (((iVar4 == 0) ||
          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||
           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||
         (iVar5 = context_str(iVar4), iVar5 == 0)) {
        iVar5 = -1;
      }
      else {
        iVar5 = setfscreatecon(iVar5);
      }
      goto LAB_0001371a;
    }
  }
  iVar4 = 0;
  iVar2 = 0;
  iVar5 = -1;
LAB_0001371a:
  context_free(iVar2);
  context_free(iVar4);
  freecon(scon);
  freecon(tcon);
  free(__ptr);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar5;
}



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

undefined4 FUN_00013580(char *param_1,undefined4 param_2)

{
  short sVar1;
  char *__ptr;
  int iVar2;
  void *__ptr_00;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *piVar6;
  undefined4 uVar7;
  char *pcVar8;
  int in_GS_OFFSET;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x13589;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = 0;
  local_2c = 0;
  if (*param_1 == '/') {
    __ptr = (char *)0x0;
    pcVar8 = param_1;
  }
  else {
    __ptr = (char *)FUN_00013a00(param_1,2);
    pcVar8 = __ptr;
    if (__ptr == (char *)0x0) {
      uVar5 = FUN_00017c80(4,param_1,0,0);
      uVar7 = dcgettext(0,"error canonicalizing %s",5);
      piVar6 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar6,uVar7,uVar5);
    }
  }
  iVar2 = matchpathcon(pcVar8,param_2,&local_30);
  if (iVar2 < 0) {
    piVar6 = __errno_location();
    if (*piVar6 == 2) {
      *piVar6 = 0x3d;
    }
  }
  else {
    local_28 = 0;
    local_24 = 0;
    __ptr_00 = (void *)FUN_00014260(pcVar8);
    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||
        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||
       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {
      iVar2 = 0;
      iVar3 = 0;
      free(__ptr_00);
      freecon(local_28);
      freecon(local_24);
      uVar5 = 0xffffffff;
      goto LAB_0001371a;
    }
    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);
    free(__ptr_00);
    freecon(local_28);
    freecon(local_24);
    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {
      iVar3 = context_new(local_2c);
      if (((iVar3 == 0) ||
          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||
           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||
         (iVar4 = context_str(iVar3), iVar4 == 0)) {
        uVar5 = 0xffffffff;
      }
      else {
        uVar5 = setfscreatecon(iVar4);
      }
      goto LAB_0001371a;
    }
  }
  iVar3 = 0;
  iVar2 = 0;
  uVar5 = 0xffffffff;
LAB_0001371a:
  context_free(iVar2);
  context_free(iVar3);
  freecon(local_30);
  freecon(local_2c);
  free(__ptr);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return uVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a80
ADD EBX,0x15a77
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x50]
MOV EDI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x20],0x0
CMP byte ptr [EBP],0x2f
JZ 0x00013770
SUB ESP,0x8
PUSH 0x2
PUSH EBP
CALL 0x00013a00
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000137e3
MOV EBP,EAX
SUB ESP,0x4
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00012230
ADD ESP,0x10
TEST EAX,EAX
JS 0x000137c0
MOV dword ptr [ESP + 0x24],0x0
SUB ESP,0xc
MOV dword ptr [ESP + 0x34],0x0
PUSH ESI
CALL 0x00014260
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00013780
SUB ESP,0xc
LEA EAX,[ESP + 0x30]
PUSH EAX
CALL 0x00012250
ADD ESP,0x10
TEST EAX,EAX
JS 0x00013780
SUB ESP,0x8
LEA EAX,[ESP + 0x30]
PUSH EAX
PUSH ESI
CALL 0x0001bfa0
ADD ESP,0x10
TEST EAX,EAX
JS 0x00013780
SUB ESP,0xc
PUSH EDI
CALL 0x000125c0
ADD ESP,0x10
TEST AX,AX
JZ 0x00013780
LEA EDX,[ESP + 0x20]
MOVZX EAX,AX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
CALL 0x000124c0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00012650
POP EAX
PUSH dword ptr [ESP + 0x30]
CALL 0x000124e0
POP EAX
PUSH dword ptr [ESP + 0x34]
CALL 0x000124e0
ADD ESP,0x10
TEST EDI,EDI
JS 0x000137d0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x28]
CALL 0x00012140
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000137d0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x00012140
ADD ESP,0x10
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000137b0
SUB ESP,0xc
PUSH EDI
CALL 0x000120b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000137b0
SUB ESP,0x8
PUSH EAX
PUSH ESI
CALL 0x00012190
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000137b0
SUB ESP,0xc
PUSH ESI
CALL 0x00012580
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000137b0
SUB ESP,0xc
PUSH EAX
CALL 0x00012380
ADD ESP,0x10
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH EDI
CALL 0x000122e0
MOV dword ptr [ESP],ESI
CALL 0x000122e0
POP ECX
PUSH dword ptr [ESP + 0x28]
CALL 0x000124e0
POP ESI
PUSH dword ptr [ESP + 0x2c]
CALL 0x000124e0
MOV dword ptr [ESP],EBP
CALL 0x00012650
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
JNZ 0x000137de
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,EBP
XOR EBP,EBP
JMP 0x000135da
SUB ESP,0xc
XOR EDI,EDI
PUSH ESI
XOR ESI,ESI
CALL 0x00012650
POP EAX
PUSH dword ptr [ESP + 0x30]
CALL 0x000124e0
POP EDX
PUSH dword ptr [ESP + 0x34]
CALL 0x000124e0
ADD ESP,0x10
MOV EAX,0xffffffff
JMP 0x0001371a
MOV EAX,0xffffffff
JMP 0x0001371a
CALL 0x000123d0
CMP dword ptr [EAX],0x2
JNZ 0x000137d0
MOV dword ptr [EAX],0x3d
XOR ESI,ESI
XOR EDI,EDI
MOV EAX,0xffffffff
JMP 0x0001371a
CALL 0x00020910
PUSH EAX
PUSH EAX
PUSH EBP
PUSH 0x4
CALL 0x00017c80
ADD ESP,0xc
MOV EDI,EAX
LEA EAX,[EBX + 0xffff85c6]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00012170
MOV ESI,EAX
CALL 0x000123d0
PUSH EDI
PUSH ESI
PUSH dword ptr [EAX]
PUSH 0x1
CALL 0x00012280
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00013580(char *param_1,undefined4 param_2)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return uVar5;\n}\n\n" comment (function_definition "undefined4 FUN_00013580(char *param_1,undefined4 param_2)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00013580(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return uVar5;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier 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 = 0x13589;" (assignment_expression "uStack_14 = 0x13589" 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) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }" { (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" else (compound_statement "{\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" { (expression_statement "__ptr = (char *)FUN_00013a00(param_1,2);" (assignment_expression "__ptr = (char *)FUN_00013a00(param_1,2)" identifier = (cast_expression "(char *)FUN_00013a00(param_1,2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013a00(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal ))))) ;) (expression_statement "pcVar8 = __ptr;" (assignment_expression "pcVar8 = __ptr" identifier = identifier) ;) (if_statement "if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,uVar5);\n    }" { (expression_statement "uVar5 = FUN_00017c80(4,param_1,0,0);" (assignment_expression "uVar5 = FUN_00017c80(4,param_1,0,0)" identifier = (call_expression "FUN_00017c80(4,param_1,0,0)" identifier (argument_list "(4,param_1,0,0)" ( number_literal , identifier , number_literal , number_literal )))) ;) (expression_statement "uVar7 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar7 = 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 "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar6,uVar7,uVar5);" (call_expression "error(1,*piVar6,uVar7,uVar5)" identifier (argument_list "(1,*piVar6,uVar7,uVar5)" ( number_literal , (pointer_expression "*piVar6" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "iVar2 = matchpathcon(pcVar8,param_2,&local_30);" (assignment_expression "iVar2 = matchpathcon(pcVar8,param_2,&local_30)" identifier = (call_expression "matchpathcon(pcVar8,param_2,&local_30)" identifier (argument_list "(pcVar8,param_2,&local_30)" ( identifier , identifier , (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }" if (parenthesized_expression "(*piVar6 == 2)" ( (binary_expression "*piVar6 == 2" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n      *piVar6 = 0x3d;\n    }" { (expression_statement "*piVar6 = 0x3d;" (assignment_expression "*piVar6 = 0x3d" (pointer_expression "*piVar6" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" else (compound_statement "{\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "__ptr_00 = (void *)FUN_00014260(pcVar8);" (assignment_expression "__ptr_00 = (void *)FUN_00014260(pcVar8)" identifier = (cast_expression "(void *)FUN_00014260(pcVar8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014260(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))))) ;) (if_statement "if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0))" ( (binary_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)" (parenthesized_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0))" ( (binary_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" (parenthesized_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0))" ( (binary_expression "(__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)" (parenthesized_expression "(__ptr_00 == (void *)0x0)" ( (binary_expression "__ptr_00 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = getcon(&local_28), iVar2 < 0)" ( (comma_expression "iVar2 = getcon(&local_28), iVar2 < 0" (assignment_expression "iVar2 = getcon(&local_28)" identifier = (call_expression "getcon(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" ( (comma_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0" (assignment_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24)" identifier = (call_expression "FUN_0001bfa0(__ptr_00,&local_24)" identifier (argument_list "(__ptr_00,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(sVar1 = mode_to_security_class(param_2), sVar1 == 0)" ( (comma_expression "sVar1 = mode_to_security_class(param_2), sVar1 == 0" (assignment_expression "sVar1 = mode_to_security_class(param_2)" identifier = (call_expression "mode_to_security_class(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "sVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) (expression_statement "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);" (assignment_expression "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c)" identifier = (call_expression "security_compute_create(local_28,local_24,sVar1,&local_2c)" identifier (argument_list "(local_28,local_24,sVar1,&local_2c)" ( identifier , identifier , identifier , (pointer_expression "&local_2c" & identifier) )))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (if_statement "if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0))" ( (binary_expression "(-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = context_new(local_30), iVar2 != 0)" ( (comma_expression "iVar2 = context_new(local_30), iVar2 != 0" (assignment_expression "iVar2 = context_new(local_30)" identifier = (call_expression "context_new(local_30)" identifier (argument_list "(local_30)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar3 = context_new(local_2c);" (assignment_expression "iVar3 = context_new(local_2c)" identifier = (call_expression "context_new(local_2c)" identifier (argument_list "(local_2c)" ( identifier )))) ;) (if_statement "if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }" if (parenthesized_expression "(((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0))" ( (binary_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)" (parenthesized_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))))" ( (binary_expression "(iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" ( (parenthesized_expression "(iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))" ( (comma_expression "iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (assignment_expression "iVar4 = context_type_get(iVar2)" identifier = (call_expression "context_type_get(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) , (binary_expression "iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (binary_expression "iVar4 == 0" identifier == number_literal) || (parenthesized_expression "(iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" ( (comma_expression "iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0" (assignment_expression "iVar4 = context_type_set(iVar3,iVar4)" identifier = (call_expression "context_type_set(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )))) )) ))) )) || (parenthesized_expression "(iVar4 = context_str(iVar3), iVar4 == 0)" ( (comma_expression "iVar4 = context_str(iVar3), iVar4 == 0" (assignment_expression "iVar4 = context_str(iVar3)" identifier = (call_expression "context_str(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar5 = 0xffffffff;\n      }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = setfscreatecon(iVar4);\n      }" else (compound_statement "{\n        uVar5 = setfscreatecon(iVar4);\n      }" { (expression_statement "uVar5 = setfscreatecon(iVar4);" (assignment_expression "uVar5 = setfscreatecon(iVar4)" identifier = (call_expression "setfscreatecon(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) }))) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001371a:\n  context_free(iVar2);" statement_identifier : (expression_statement "context_free(iVar2);" (call_expression "context_free(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;)) (expression_statement "context_free(iVar3);" (call_expression "context_free(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "freecon(local_30);" (call_expression "freecon(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "freecon(local_2c);" (call_expression "freecon(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\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_00020910();\n  }" { comment (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint defaultcon(char *path,mode_t mode)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  char *scon;\n  char *tcon;\n  char *scon_1;\n  char *tcon_1;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  scon = (char *)0x0;\n  tcon = (char *)0x0;\n  if (*path == '/') {\n    __ptr = (char *)0x0;\n    pcVar3 = path;\n  }\n  else {\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }\n  iVar2 = matchpathcon(pcVar3,mode,&scon);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar4 = 0;\n  iVar2 = 0;\n  iVar5 = -1;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar4);\n  freecon(scon);\n  freecon(tcon);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar5;\n}\n\n" comment (function_definition "int defaultcon(char *path,mode_t mode)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  char *scon;\n  char *tcon;\n  char *scon_1;\n  char *tcon_1;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  scon = (char *)0x0;\n  tcon = (char *)0x0;\n  if (*path == '/') {\n    __ptr = (char *)0x0;\n    pcVar3 = path;\n  }\n  else {\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }\n  iVar2 = matchpathcon(pcVar3,mode,&scon);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar4 = 0;\n  iVar2 = 0;\n  iVar5 = -1;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar4);\n  freecon(scon);\n  freecon(tcon);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar5;\n}" primitive_type (function_declarator "defaultcon(char *path,mode_t mode)" identifier (parameter_list "(char *path,mode_t mode)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "mode_t mode" type_identifier identifier) ))) (compound_statement "{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  int in_GS_OFFSET;\n  char *scon;\n  char *tcon;\n  char *scon_1;\n  char *tcon_1;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  scon = (char *)0x0;\n  tcon = (char *)0x0;\n  if (*path == '/') {\n    __ptr = (char *)0x0;\n    pcVar3 = path;\n  }\n  else {\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }\n  iVar2 = matchpathcon(pcVar3,mode,&scon);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar4 = 0;\n  iVar2 = 0;\n  iVar5 = -1;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar4);\n  freecon(scon);\n  freecon(tcon);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar5;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *scon;" primitive_type (pointer_declarator "*scon" * identifier) ;) (declaration "char *tcon;" primitive_type (pointer_declarator "*tcon" * identifier) ;) (declaration "char *scon_1;" primitive_type (pointer_declarator "*scon_1" * identifier) ;) (declaration "char *tcon_1;" primitive_type (pointer_declarator "*tcon_1" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x13589;" (assignment_expression "uStack_14 = 0x13589" 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) ))))) ;) (expression_statement "scon = (char *)0x0;" (assignment_expression "scon = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "tcon = (char *)0x0;" (assignment_expression "tcon = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*path == '/') {\n    __ptr = (char *)0x0;\n    pcVar3 = path;\n  }\n  else {\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }" if (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    __ptr = (char *)0x0;\n    pcVar3 = path;\n  }" { (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar3 = path;" (assignment_expression "pcVar3 = path" identifier = identifier) ;) }) (else_clause "else {\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }" else (compound_statement "{\n    __ptr = canonicalize_filename_mode(path,CAN_MISSING);\n    pcVar3 = __ptr;\n    if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }\n  }" { (expression_statement "__ptr = canonicalize_filename_mode(path,CAN_MISSING);" (assignment_expression "__ptr = canonicalize_filename_mode(path,CAN_MISSING)" identifier = (call_expression "canonicalize_filename_mode(path,CAN_MISSING)" identifier (argument_list "(path,CAN_MISSING)" ( identifier , identifier )))) ;) (expression_statement "pcVar3 = __ptr;" (assignment_expression "pcVar3 = __ptr" identifier = identifier) ;) (if_statement "if (__ptr == (char *)0x0) {\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);\n      piVar6 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n      error(1,*piVar6,uVar7,pcVar3);\n    }" { (expression_statement "pcVar3 = quotearg_style(shell_escape_always_quoting_style,path);" (assignment_expression "pcVar3 = 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 "uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr);" (assignment_expression "uVar7 = dcgettext(0,"error canonicalizing %s",5,__ptr)" identifier = (call_expression "dcgettext(0,"error canonicalizing %s",5,__ptr)" identifier (argument_list "(0,"error canonicalizing %s",5,__ptr)" ( number_literal , (string_literal ""error canonicalizing %s"" " string_content ") , number_literal , identifier )))) ;) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar6,uVar7,pcVar3);" (call_expression "error(1,*piVar6,uVar7,pcVar3)" identifier (argument_list "(1,*piVar6,uVar7,pcVar3)" ( number_literal , (pointer_expression "*piVar6" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "iVar2 = matchpathcon(pcVar3,mode,&scon);" (assignment_expression "iVar2 = matchpathcon(pcVar3,mode,&scon)" identifier = (call_expression "matchpathcon(pcVar3,mode,&scon)" identifier (argument_list "(pcVar3,mode,&scon)" ( identifier , identifier , (pointer_expression "&scon" & identifier) )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }" if (parenthesized_expression "(*piVar6 == 2)" ( (binary_expression "*piVar6 == 2" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n      *piVar6 = 0x3d;\n    }" { (expression_statement "*piVar6 = 0x3d;" (assignment_expression "*piVar6 = 0x3d" (pointer_expression "*piVar6" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }" else (compound_statement "{\n    scon_1 = (char *)0x0;\n    tcon_1 = (char *)0x0;\n    pcVar3 = dir_name(pcVar3);\n    if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);\n    free(pcVar3);\n    freecon(scon_1);\n    freecon(tcon_1);\n    if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }\n  }" { (expression_statement "scon_1 = (char *)0x0;" (assignment_expression "scon_1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "tcon_1 = (char *)0x0;" (assignment_expression "tcon_1 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar3 = dir_name(pcVar3);" (assignment_expression "pcVar3 = dir_name(pcVar3)" identifier = (call_expression "dir_name(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if ((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0))" ( (binary_expression "(((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(mode), sVar1 == 0)" (parenthesized_expression "(((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0))" ( (binary_expression "((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)) ||\n        (iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)" (parenthesized_expression "((pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0))" ( (binary_expression "(pcVar3 == (char *)0x0) || (iVar2 = getcon(&scon_1), iVar2 < 0)" (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = getcon(&scon_1), iVar2 < 0)" ( (comma_expression "iVar2 = getcon(&scon_1), iVar2 < 0" (assignment_expression "iVar2 = getcon(&scon_1)" identifier = (call_expression "getcon(&scon_1)" identifier (argument_list "(&scon_1)" ( (pointer_expression "&scon_1" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0)" ( (comma_expression "iVar2 = rpl_getfilecon(pcVar3,&tcon_1), iVar2 < 0" (assignment_expression "iVar2 = rpl_getfilecon(pcVar3,&tcon_1)" identifier = (call_expression "rpl_getfilecon(pcVar3,&tcon_1)" identifier (argument_list "(pcVar3,&tcon_1)" ( identifier , (pointer_expression "&tcon_1" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(sVar1 = mode_to_security_class(mode), sVar1 == 0)" ( (comma_expression "sVar1 = mode_to_security_class(mode), sVar1 == 0" (assignment_expression "sVar1 = mode_to_security_class(mode)" identifier = (call_expression "mode_to_security_class(mode)" identifier (argument_list "(mode)" ( identifier )))) , (binary_expression "sVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar2 = 0;\n      iVar4 = 0;\n      free(pcVar3);\n      freecon(scon_1);\n      freecon(tcon_1);\n      iVar5 = -1;\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "freecon(scon_1);" (call_expression "freecon(scon_1)" identifier (argument_list "(scon_1)" ( identifier ))) ;) (expression_statement "freecon(tcon_1);" (call_expression "freecon(tcon_1)" identifier (argument_list "(tcon_1)" ( identifier ))) ;) (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) (expression_statement "iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon);" (assignment_expression "iVar2 = security_compute_create(scon_1,tcon_1,sVar1,&tcon)" identifier = (call_expression "security_compute_create(scon_1,tcon_1,sVar1,&tcon)" identifier (argument_list "(scon_1,tcon_1,sVar1,&tcon)" ( identifier , identifier , identifier , (pointer_expression "&tcon" & identifier) )))) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "freecon(scon_1);" (call_expression "freecon(scon_1)" identifier (argument_list "(scon_1)" ( identifier ))) ;) (expression_statement "freecon(tcon_1);" (call_expression "freecon(tcon_1)" identifier (argument_list "(tcon_1)" ( identifier ))) ;) (if_statement "if ((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)) {\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0))" ( (binary_expression "(-1 < iVar2) && (iVar2 = context_new(scon), iVar2 != 0)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = context_new(scon), iVar2 != 0)" ( (comma_expression "iVar2 = context_new(scon), iVar2 != 0" (assignment_expression "iVar2 = context_new(scon)" identifier = (call_expression "context_new(scon)" identifier (argument_list "(scon)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar4 = context_new(tcon);\n      if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar4 = context_new(tcon);" (assignment_expression "iVar4 = context_new(tcon)" identifier = (call_expression "context_new(tcon)" identifier (argument_list "(tcon)" ( identifier )))) ;) (if_statement "if (((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)) {\n        iVar5 = -1;\n      }\n      else {\n        iVar5 = setfscreatecon(iVar5);\n      }" if (parenthesized_expression "(((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0))" ( (binary_expression "((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))) ||\n         (iVar5 = context_str(iVar4), iVar5 == 0)" (parenthesized_expression "((iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0))))" ( (binary_expression "(iVar4 == 0) ||\n          ((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)))" ( (parenthesized_expression "(iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0))" ( (comma_expression "iVar5 = context_type_get(iVar2), iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)" (assignment_expression "iVar5 = context_type_get(iVar2)" identifier = (call_expression "context_type_get(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) , (binary_expression "iVar5 == 0 ||\n           (iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)" (binary_expression "iVar5 == 0" identifier == number_literal) || (parenthesized_expression "(iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0)" ( (comma_expression "iVar5 = context_type_set(iVar4,iVar5), iVar5 != 0" (assignment_expression "iVar5 = context_type_set(iVar4,iVar5)" identifier = (call_expression "context_type_set(iVar4,iVar5)" identifier (argument_list "(iVar4,iVar5)" ( identifier , identifier )))) , (binary_expression "iVar5 != 0" identifier != number_literal)) )))) )) ))) )) || (parenthesized_expression "(iVar5 = context_str(iVar4), iVar5 == 0)" ( (comma_expression "iVar5 = context_str(iVar4), iVar5 == 0" (assignment_expression "iVar5 = context_str(iVar4)" identifier = (call_expression "context_str(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        iVar5 = -1;\n      }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n        iVar5 = setfscreatecon(iVar5);\n      }" else (compound_statement "{\n        iVar5 = setfscreatecon(iVar5);\n      }" { (expression_statement "iVar5 = setfscreatecon(iVar5);" (assignment_expression "iVar5 = setfscreatecon(iVar5)" identifier = (call_expression "setfscreatecon(iVar5)" identifier (argument_list "(iVar5)" ( identifier )))) ;) }))) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) }))) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (labeled_statement "LAB_0001371a:\n  context_free(iVar2);" statement_identifier : (expression_statement "context_free(iVar2);" (call_expression "context_free(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;)) (expression_statement "context_free(iVar4);" (call_expression "context_free(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "freecon(scon);" (call_expression "freecon(scon)" identifier (argument_list "(scon)" ( identifier ))) ;) (expression_statement "freecon(tcon);" (call_expression "freecon(tcon)" identifier (argument_list "(tcon)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "undefined4 FUN_00013580(char *param_1,undefined4 param_2)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return uVar5;\n}\n\n" (function_definition "undefined4 FUN_00013580(char *param_1,undefined4 param_2)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return uVar5;\n}" type_identifier (function_declarator "FUN_00013580(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return uVar5;\n}" { (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier 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 = 0x13589;" (assignment_expression "uStack_14 = 0x13589" 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) ))))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }" { (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" else (compound_statement "{\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" { (expression_statement "__ptr = (char *)FUN_00013a00(param_1,2);" (assignment_expression "__ptr = (char *)FUN_00013a00(param_1,2)" identifier = (cast_expression "(char *)FUN_00013a00(param_1,2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013a00(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal ))))) ;) (expression_statement "pcVar8 = __ptr;" (assignment_expression "pcVar8 = __ptr" identifier = identifier) ;) (if_statement "if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }" if (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }" { (expression_statement "uVar5 = FUN_00017c80(4,param_1,0,0);" (assignment_expression "uVar5 = FUN_00017c80(4,param_1,0,0)" identifier = (call_expression "FUN_00017c80(4,param_1,0,0)" identifier (argument_list "(4,param_1,0,0)" ( number_literal , identifier , number_literal , number_literal )))) ;) (expression_statement "uVar7 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar7 = 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 "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(1,*piVar6,uVar7,uVar5);" (call_expression "error(1,*piVar6,uVar7,uVar5)" identifier (argument_list "(1,*piVar6,uVar7,uVar5)" ( number_literal , (pointer_expression "*piVar6" * identifier) , identifier , identifier ))) ;) })) }))) (expression_statement "iVar2 = matchpathcon(pcVar8,param_2,&local_30);" (assignment_expression "iVar2 = matchpathcon(pcVar8,param_2,&local_30)" identifier = (call_expression "matchpathcon(pcVar8,param_2,&local_30)" identifier (argument_list "(pcVar8,param_2,&local_30)" ( identifier , identifier , (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }" if (parenthesized_expression "(*piVar6 == 2)" ( (binary_expression "*piVar6 == 2" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n      *piVar6 = 0x3d;\n    }" { (expression_statement "*piVar6 = 0x3d;" (assignment_expression "*piVar6 = 0x3d" (pointer_expression "*piVar6" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" else (compound_statement "{\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" { (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "__ptr_00 = (void *)FUN_00014260(pcVar8);" (assignment_expression "__ptr_00 = (void *)FUN_00014260(pcVar8)" identifier = (cast_expression "(void *)FUN_00014260(pcVar8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00014260(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))))) ;) (if_statement "if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0))" ( (binary_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)" (parenthesized_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0))" ( (binary_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" (parenthesized_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0))" ( (binary_expression "(__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)" (parenthesized_expression "(__ptr_00 == (void *)0x0)" ( (binary_expression "__ptr_00 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = getcon(&local_28), iVar2 < 0)" ( (comma_expression "iVar2 = getcon(&local_28), iVar2 < 0" (assignment_expression "iVar2 = getcon(&local_28)" identifier = (call_expression "getcon(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" ( (comma_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0" (assignment_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24)" identifier = (call_expression "FUN_0001bfa0(__ptr_00,&local_24)" identifier (argument_list "(__ptr_00,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) , (binary_expression "iVar2 < 0" identifier < number_literal)) ))) )) || (parenthesized_expression "(sVar1 = mode_to_security_class(param_2), sVar1 == 0)" ( (comma_expression "sVar1 = mode_to_security_class(param_2), sVar1 == 0" (assignment_expression "sVar1 = mode_to_security_class(param_2)" identifier = (call_expression "mode_to_security_class(param_2)" identifier (argument_list "(param_2)" ( identifier )))) , (binary_expression "sVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) (expression_statement "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);" (assignment_expression "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c)" identifier = (call_expression "security_compute_create(local_28,local_24,sVar1,&local_2c)" identifier (argument_list "(local_28,local_24,sVar1,&local_2c)" ( identifier , identifier , identifier , (pointer_expression "&local_2c" & identifier) )))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (if_statement "if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" if (parenthesized_expression "((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0))" ( (binary_expression "(-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)" (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) && (parenthesized_expression "(iVar2 = context_new(local_30), iVar2 != 0)" ( (comma_expression "iVar2 = context_new(local_30), iVar2 != 0" (assignment_expression "iVar2 = context_new(local_30)" identifier = (call_expression "context_new(local_30)" identifier (argument_list "(local_30)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" { (expression_statement "iVar3 = context_new(local_2c);" (assignment_expression "iVar3 = context_new(local_2c)" identifier = (call_expression "context_new(local_2c)" identifier (argument_list "(local_2c)" ( identifier )))) ;) (if_statement "if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }" if (parenthesized_expression "(((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0))" ( (binary_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)" (parenthesized_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))))" ( (binary_expression "(iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" ( (parenthesized_expression "(iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))" ( (comma_expression "iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (assignment_expression "iVar4 = context_type_get(iVar2)" identifier = (call_expression "context_type_get(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) , (binary_expression "iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (binary_expression "iVar4 == 0" identifier == number_literal) || (parenthesized_expression "(iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" ( (comma_expression "iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0" (assignment_expression "iVar4 = context_type_set(iVar3,iVar4)" identifier = (call_expression "context_type_set(iVar3,iVar4)" identifier (argument_list "(iVar3,iVar4)" ( identifier , identifier )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) )))) )) ))) )) || (parenthesized_expression "(iVar4 = context_str(iVar3), iVar4 == 0)" ( (comma_expression "iVar4 = context_str(iVar3), iVar4 == 0" (assignment_expression "iVar4 = context_str(iVar3)" identifier = (call_expression "context_str(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar5 = 0xffffffff;\n      }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n        uVar5 = setfscreatecon(iVar4);\n      }" else (compound_statement "{\n        uVar5 = setfscreatecon(iVar4);\n      }" { (expression_statement "uVar5 = setfscreatecon(iVar4);" (assignment_expression "uVar5 = setfscreatecon(iVar4)" identifier = (call_expression "setfscreatecon(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) }))) (goto_statement "goto LAB_0001371a;" goto statement_identifier ;) })) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_0001371a:\n  context_free(iVar2);" statement_identifier : (expression_statement "context_free(iVar2);" (call_expression "context_free(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;)) (expression_statement "context_free(iVar3);" (call_expression "context_free(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "freecon(local_30);" (call_expression "freecon(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "freecon(local_2c);" (call_expression "freecon(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\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_00020910();\n  }" { (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (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 , LIT , LIT )))) ;) (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 ( 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 ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) , (binary_expression IDENT < LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) , (binary_expression IDENT < LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (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 ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT != LIT)) )))) )) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 "undefined4 FUN_00013580(char *param_1,undefined4 param_2)\n\n{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "FUN_00013580(char *param_1,undefined4 param_2)" (identifier "FUN_00013580") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  short sVar1;\n  char *__ptr;\n  int iVar2;\n  void *__ptr_00;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  int in_GS_OFFSET;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x13589;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_30 = 0;\n  local_2c = 0;\n  if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }\n  iVar2 = matchpathcon(pcVar8,param_2,&local_30);\n  if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }\n  iVar3 = 0;\n  iVar2 = 0;\n  uVar5 = 0xffffffff;\nLAB_0001371a:\n  context_free(iVar2);\n  context_free(iVar3);\n  freecon(local_30);\n  freecon(local_2c);\n  free(__ptr);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return uVar5;\n}" ({ "{") (declaration "short sVar1;" (sized_type_specifier "short" (short "short")) (identifier "sVar1") (; ";")) (declaration "char *__ptr;" (primitive_type "char") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "void *__ptr_00;" (primitive_type "void") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (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 = 0x13589;" (assignment_expression "uStack_14 = 0x13589" (identifier "uStack_14") (= "=") (number_literal "0x13589")) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_1 == '/') {\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }\n  else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n    __ptr = (char *)0x0;\n    pcVar8 = param_1;\n  }" ({ "{") (expression_statement "__ptr = (char *)0x0;" (assignment_expression "__ptr = (char *)0x0" (identifier "__ptr") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar8 = param_1;" (assignment_expression "pcVar8 = param_1" (identifier "pcVar8") (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" (else "else") (compound_statement "{\n    __ptr = (char *)FUN_00013a00(param_1,2);\n    pcVar8 = __ptr;\n    if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }\n  }" ({ "{") (expression_statement "__ptr = (char *)FUN_00013a00(param_1,2);" (assignment_expression "__ptr = (char *)FUN_00013a00(param_1,2)" (identifier "__ptr") (= "=") (cast_expression "(char *)FUN_00013a00(param_1,2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013a00(param_1,2)" (identifier "FUN_00013a00") (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")"))))) (; ";")) (expression_statement "pcVar8 = __ptr;" (assignment_expression "pcVar8 = __ptr" (identifier "pcVar8") (= "=") (identifier "__ptr")) (; ";")) (if_statement "if (__ptr == (char *)0x0) {\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }" (if "if") (parenthesized_expression "(__ptr == (char *)0x0)" (( "(") (binary_expression "__ptr == (char *)0x0" (identifier "__ptr") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar5 = FUN_00017c80(4,param_1,0,0);\n      uVar7 = dcgettext(0,"error canonicalizing %s",5);\n      piVar6 = __errno_location();\n                    \n      error(1,*piVar6,uVar7,uVar5);\n    }" ({ "{") (expression_statement "uVar5 = FUN_00017c80(4,param_1,0,0);" (assignment_expression "uVar5 = FUN_00017c80(4,param_1,0,0)" (identifier "uVar5") (= "=") (call_expression "FUN_00017c80(4,param_1,0,0)" (identifier "FUN_00017c80") (argument_list "(4,param_1,0,0)" (( "(") (number_literal "4") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar7 = dcgettext(0,"error canonicalizing %s",5);" (assignment_expression "uVar7 = dcgettext(0,"error canonicalizing %s",5)" (identifier "uVar7") (= "=") (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 "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(1,*piVar6,uVar7,uVar5);" (call_expression "error(1,*piVar6,uVar7,uVar5)" (identifier "error") (argument_list "(1,*piVar6,uVar7,uVar5)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (, ",") (identifier "uVar7") (, ",") (identifier "uVar5") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar2 = matchpathcon(pcVar8,param_2,&local_30);" (assignment_expression "iVar2 = matchpathcon(pcVar8,param_2,&local_30)" (identifier "iVar2") (= "=") (call_expression "matchpathcon(pcVar8,param_2,&local_30)" (identifier "matchpathcon") (argument_list "(pcVar8,param_2,&local_30)" (( "(") (identifier "pcVar8") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }\n  else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    piVar6 = __errno_location();\n    if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }\n  }" ({ "{") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar6 == 2) {\n      *piVar6 = 0x3d;\n    }" (if "if") (parenthesized_expression "(*piVar6 == 2)" (( "(") (binary_expression "*piVar6 == 2" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      *piVar6 = 0x3d;\n    }" ({ "{") (expression_statement "*piVar6 = 0x3d;" (assignment_expression "*piVar6 = 0x3d" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0x3d")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" (else "else") (compound_statement "{\n    local_28 = 0;\n    local_24 = 0;\n    __ptr_00 = (void *)FUN_00014260(pcVar8);\n    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }\n    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);\n    free(__ptr_00);\n    freecon(local_28);\n    freecon(local_24);\n    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }\n  }" ({ "{") (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr_00 = (void *)FUN_00014260(pcVar8);" (assignment_expression "__ptr_00 = (void *)FUN_00014260(pcVar8)" (identifier "__ptr_00") (= "=") (cast_expression "(void *)FUN_00014260(pcVar8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00014260(pcVar8)" (identifier "FUN_00014260") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")"))))) (; ";")) (if_statement "if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" (if "if") (parenthesized_expression "((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0))" (( "(") (binary_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||\n       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)" (parenthesized_expression "(((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0))" (( "(") (binary_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||\n        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" (parenthesized_expression "((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0))" (( "(") (binary_expression "(__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)" (parenthesized_expression "(__ptr_00 == (void *)0x0)" (( "(") (binary_expression "__ptr_00 == (void *)0x0" (identifier "__ptr_00") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = getcon(&local_28), iVar2 < 0)" (( "(") (comma_expression "iVar2 = getcon(&local_28), iVar2 < 0" (assignment_expression "iVar2 = getcon(&local_28)" (identifier "iVar2") (= "=") (call_expression "getcon(&local_28)" (identifier "getcon") (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)" (( "(") (comma_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0" (assignment_expression "iVar2 = FUN_0001bfa0(__ptr_00,&local_24)" (identifier "iVar2") (= "=") (call_expression "FUN_0001bfa0(__ptr_00,&local_24)" (identifier "FUN_0001bfa0") (argument_list "(__ptr_00,&local_24)" (( "(") (identifier "__ptr_00") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (, ",") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(sVar1 = mode_to_security_class(param_2), sVar1 == 0)" (( "(") (comma_expression "sVar1 = mode_to_security_class(param_2), sVar1 == 0" (assignment_expression "sVar1 = mode_to_security_class(param_2)" (identifier "sVar1") (= "=") (call_expression "mode_to_security_class(param_2)" (identifier "mode_to_security_class") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (, ",") (binary_expression "sVar1 == 0" (identifier "sVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = 0;\n      iVar3 = 0;\n      free(__ptr_00);\n      freecon(local_28);\n      freecon(local_24);\n      uVar5 = 0xffffffff;\n      goto LAB_0001371a;\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" (identifier "freecon") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" (identifier "freecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_0001371a;" (goto "goto") (statement_identifier "LAB_0001371a") (; ";")) (} "}"))) (expression_statement "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);" (assignment_expression "iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c)" (identifier "iVar2") (= "=") (call_expression "security_compute_create(local_28,local_24,sVar1,&local_2c)" (identifier "security_compute_create") (argument_list "(local_28,local_24,sVar1,&local_2c)" (( "(") (identifier "local_28") (, ",") (identifier "local_24") (, ",") (identifier "sVar1") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (expression_statement "freecon(local_28);" (call_expression "freecon(local_28)" (identifier "freecon") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" (identifier "freecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (if_statement "if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" (if "if") (parenthesized_expression "((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0))" (( "(") (binary_expression "(-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)" (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = context_new(local_30), iVar2 != 0)" (( "(") (comma_expression "iVar2 = context_new(local_30), iVar2 != 0" (assignment_expression "iVar2 = context_new(local_30)" (identifier "iVar2") (= "=") (call_expression "context_new(local_30)" (identifier "context_new") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar3 = context_new(local_2c);\n      if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }\n      goto LAB_0001371a;\n    }" ({ "{") (expression_statement "iVar3 = context_new(local_2c);" (assignment_expression "iVar3 = context_new(local_2c)" (identifier "iVar3") (= "=") (call_expression "context_new(local_2c)" (identifier "context_new") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")")))) (; ";")) (if_statement "if (((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)) {\n        uVar5 = 0xffffffff;\n      }\n      else {\n        uVar5 = setfscreatecon(iVar4);\n      }" (if "if") (parenthesized_expression "(((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0))" (( "(") (binary_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||\n         (iVar4 = context_str(iVar3), iVar4 == 0)" (parenthesized_expression "((iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))))" (( "(") (binary_expression "(iVar3 == 0) ||\n          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))" (( "(") (parenthesized_expression "(iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0))" (( "(") (comma_expression "iVar4 = context_type_get(iVar2), iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (assignment_expression "iVar4 = context_type_get(iVar2)" (identifier "iVar4") (= "=") (call_expression "context_type_get(iVar2)" (identifier "context_type_get") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (, ",") (binary_expression "iVar4 == 0 ||\n           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "(iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)" (( "(") (comma_expression "iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0" (assignment_expression "iVar4 = context_type_set(iVar3,iVar4)" (identifier "iVar4") (= "=") (call_expression "context_type_set(iVar3,iVar4)" (identifier "context_type_set") (argument_list "(iVar3,iVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "iVar4") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar4 = context_str(iVar3), iVar4 == 0)" (( "(") (comma_expression "iVar4 = context_str(iVar3), iVar4 == 0" (assignment_expression "iVar4 = context_str(iVar3)" (identifier "iVar4") (= "=") (call_expression "context_str(iVar3)" (identifier "context_str") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        uVar5 = 0xffffffff;\n      }" ({ "{") (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n        uVar5 = setfscreatecon(iVar4);\n      }" (else "else") (compound_statement "{\n        uVar5 = setfscreatecon(iVar4);\n      }" ({ "{") (expression_statement "uVar5 = setfscreatecon(iVar4);" (assignment_expression "uVar5 = setfscreatecon(iVar4)" (identifier "uVar5") (= "=") (call_expression "setfscreatecon(iVar4)" (identifier "setfscreatecon") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (} "}")))) (goto_statement "goto LAB_0001371a;" (goto "goto") (statement_identifier "LAB_0001371a") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffff")) (; ";")) (labeled_statement "LAB_0001371a:\n  context_free(iVar2);" (statement_identifier "LAB_0001371a") (: ":") (expression_statement "context_free(iVar2);" (call_expression "context_free(iVar2)" (identifier "context_free") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";"))) (expression_statement "context_free(iVar3);" (call_expression "context_free(iVar3)" (identifier "context_free") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "freecon(local_30);" (call_expression "freecon(local_30)" (identifier "freecon") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "freecon(local_2c);" (call_expression "freecon(local_2c)" (identifier "freecon") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\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_00020910();\n  }" ({ "{") (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" (identifier "FUN_00020910") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))

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

int function_1(char *path,type_1 mode)

{
  short var_15;
  char *var_3;
  int var_9;
  char *var_11;
  int var_20;
  int var_22;
  int *piVar6;
  type_2 uVar7;
  int var_1;
  char *scon;
  char *tcon;
  char *scon_1;
  char *tcon_1;
  int var_27;
  type_2 uStack_14;
  
  uStack_14 = 0x13589;
  var_27 = *(int *)(var_1 + 0x14);
  scon = (char *)0x0;
  tcon = (char *)0x0;
  if (*path == '/') {
    var_3 = (char *)0x0;
    var_11 = path;
  }
  else {
    var_3 = var_2(path,CAN_MISSING);
    var_11 = var_3;
    if (var_3 == (char *)0x0) {
      var_11 = var_4(shell_escape_always_quoting_style,path);
      uVar7 = var_5(0,"error canonicalizing %s",5,var_3);
      piVar6 = var_6();
                    /* WARNING: Subroutine does not return */
      var_7(1,*piVar6,uVar7,var_11);
    }
  }
  var_9 = var_8(var_11,mode,&scon);
  if (var_9 < 0) {
    piVar6 = var_6();
    if (*piVar6 == 2) {
      *piVar6 = 0x3d;
    }
  }
  else {
    scon_1 = (char *)0x0;
    tcon_1 = (char *)0x0;
    var_11 = var_10(var_11);
    if ((((var_11 == (char *)0x0) || (var_9 = var_12(&scon_1), var_9 < 0)) ||
        (var_9 = var_13(var_11,&tcon_1), var_9 < 0)) ||
       (var_15 = var_14(mode), var_15 == 0)) {
      var_9 = 0;
      var_20 = 0;
      var_16(var_11);
      var_17(scon_1);
      var_17(tcon_1);
      var_22 = -1;
      goto LAB_0001371a;
    }
    var_9 = var_18(scon_1,tcon_1,var_15,&tcon);
    var_16(var_11);
    var_17(scon_1);
    var_17(tcon_1);
    if ((-1 < var_9) && (var_9 = var_19(scon), var_9 != 0)) {
      var_20 = var_19(tcon);
      if (((var_20 == 0) ||
          ((var_22 = var_21(var_9), var_22 == 0 ||
           (var_22 = var_23(var_20,var_22), var_22 != 0)))) ||
         (var_22 = var_24(var_20), var_22 == 0)) {
        var_22 = -1;
      }
      else {
        var_22 = var_25(var_22);
      }
      goto LAB_0001371a;
    }
  }
  var_20 = 0;
  var_9 = 0;
  var_22 = -1;
LAB_0001371a:
  var_26(var_9);
  var_26(var_20);
  var_17(scon);
  var_17(tcon);
  var_16(var_3);
  if (var_27 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_28();
  }
  return var_22;
}


(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)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) 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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (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) (number_literal) (number_literal))))) (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 (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (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)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (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)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))))))) right: (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)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 */

undefined4 MASKED(char *param_1,undefined4 param_2)

{
  short sVar1;
  char *__ptr;
  int iVar2;
  void *__ptr_00;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  int *piVar6;
  undefined4 uVar7;
  char *pcVar8;
  int in_GS_OFFSET;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x13589;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_30 = 0;
  local_2c = 0;
  if (*param_1 == '/') {
    __ptr = (char *)0x0;
    pcVar8 = param_1;
  }
  else {
    __ptr = (char *)FUN_00013a00(param_1,2);
    pcVar8 = __ptr;
    if (__ptr == (char *)0x0) {
      uVar5 = FUN_00017c80(4,param_1,0,0);
      uVar7 = dcgettext(0,"error canonicalizing %s",5);
      piVar6 = __errno_location();
                    /* WARNING: Subroutine does not return */
      error(1,*piVar6,uVar7,uVar5);
    }
  }
  iVar2 = matchpathcon(pcVar8,param_2,&local_30);
  if (iVar2 < 0) {
    piVar6 = __errno_location();
    if (*piVar6 == 2) {
      *piVar6 = 0x3d;
    }
  }
  else {
    local_28 = 0;
    local_24 = 0;
    __ptr_00 = (void *)FUN_00014260(pcVar8);
    if ((((__ptr_00 == (void *)0x0) || (iVar2 = getcon(&local_28), iVar2 < 0)) ||
        (iVar2 = FUN_0001bfa0(__ptr_00,&local_24), iVar2 < 0)) ||
       (sVar1 = mode_to_security_class(param_2), sVar1 == 0)) {
      iVar2 = 0;
      iVar3 = 0;
      free(__ptr_00);
      freecon(local_28);
      freecon(local_24);
      uVar5 = 0xffffffff;
      goto LAB_0001371a;
    }
    iVar2 = security_compute_create(local_28,local_24,sVar1,&local_2c);
    free(__ptr_00);
    freecon(local_28);
    freecon(local_24);
    if ((-1 < iVar2) && (iVar2 = context_new(local_30), iVar2 != 0)) {
      iVar3 = context_new(local_2c);
      if (((iVar3 == 0) ||
          ((iVar4 = context_type_get(iVar2), iVar4 == 0 ||
           (iVar4 = context_type_set(iVar3,iVar4), iVar4 != 0)))) ||
         (iVar4 = context_str(iVar3), iVar4 == 0)) {
        uVar5 = 0xffffffff;
      }
      else {
        uVar5 = setfscreatecon(iVar4);
      }
      goto LAB_0001371a;
    }
  }
  iVar3 = 0;
  iVar2 = 0;
  uVar5 = 0xffffffff;
LAB_0001371a:
  context_free(iVar2);
  context_free(iVar3);
  freecon(local_30);
  freecon(local_2c);
  free(__ptr);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return uVar5;
}

