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

_Bool set_process_security_ctx
                (char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  undefined4 uVar4;
  char cVar5;
  int in_GS_OFFSET;
  char *con;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar5 = x->preserve_security_context;
  if ((_Bool)cVar5 == false) {
    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)
       ) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {
        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);
        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);
                    /* WARNING: Subroutine does not return */
        error(0,*piVar2,uVar4,pcVar3);
      }
    }
    cVar5 = '\x01';
    goto LAB_000157d8;
  }
  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {
    iVar1 = rpl_lgetfilecon(src_name,&con);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015743:
      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);
      uVar4 = dcgettext(0,"failed to get security context of %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,pcVar3);
    }
    iVar1 = setfscreatecon(con);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015912:
      pcVar3 = quote(con);
      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,pcVar3);
    }
  }
  else if (x->reduce_diagnostics == false) {
    iVar1 = rpl_lgetfilecon(src_name,&con);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;
LAB_00015779:
      if (x->require_preserve_context != false) {
        cVar5 = '\0';
      }
      goto LAB_000157d8;
    }
    iVar1 = setfscreatecon(con);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;
LAB_00015824:
      if (x->require_preserve_context != false) {
        cVar5 = '\0';
        freecon(con);
        goto LAB_000157d8;
      }
    }
  }
  else {
    iVar1 = rpl_lgetfilecon(src_name,&con);
    if (iVar1 < 0) goto LAB_00015779;
    iVar1 = setfscreatecon(con);
    if (iVar1 < 0) goto LAB_00015824;
  }
  freecon(con);
LAB_000157d8:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return (_Bool)cVar5;
}



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

char FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  char cVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar5 = *(char *)(param_5 + 0x25);
  if (cVar5 == '\0') {
    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&
       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {
        uVar3 = FUN_00020540(4,param_2);
        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);
                    /* WARNING: Subroutine does not return */
        error(0,*piVar2,uVar4,uVar3);
      }
    }
    cVar5 = '\x01';
    goto LAB_000157d8;
  }
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015743:
      uVar3 = FUN_00020540(4,param_1);
      uVar4 = dcgettext(0,"failed to get security context of %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,uVar3);
    }
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015912:
      uVar3 = FUN_000209d0(local_24);
      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,uVar3);
    }
  }
  else if (*(char *)(param_5 + 0x29) == '\0') {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;
LAB_00015779:
      if (*(char *)(param_5 + 0x26) != '\0') {
        cVar5 = '\0';
      }
      goto LAB_000157d8;
    }
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;
LAB_00015824:
      if (*(char *)(param_5 + 0x26) != '\0') {
        cVar5 = '\0';
        freecon(local_24);
        goto LAB_000157d8;
      }
    }
  }
  else {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) goto LAB_00015779;
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) goto LAB_00015824;
  }
  freecon(local_24);
LAB_000157d8:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002bcb0();
  }
  return cVar5;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000132c0
ADD EBX,0x23917
SUB ESP,0x2c
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],ECX
XOR ECX,ECX
MOV ESI,dword ptr [ESP + 0x50]
MOV EBP,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x4c]
MOVZX EDI,byte ptr [ESI + 0x25]
MOV ECX,EDI
TEST CL,CL
JZ 0x000157c8
CMP byte ptr [ESI + 0x23],0x0
JNZ 0x00015788
SUB ESP,0x8
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH EBP
CALL 0x00026490
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00015840
CALL 0x00012590
MOV EDX,EAX
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
PUSH EBP
PUSH 0x4
CALL 0x00020540
ADD ESP,0xc
MOV EBP,EAX
LEA EAX,[EBX + 0xffff5170]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000121e0
PUSH EBP
PUSH EAX
MOV EDX,dword ptr [ESP + 0x24]
PUSH dword ptr [EDX]
PUSH 0x0
CALL 0x00012390
CMP byte ptr [ESI + 0x26],0x0
JZ 0x000157d8
XOR EDI,EDI
JMP 0x000157d8
CMP byte ptr [ESI + 0x26],0x0
JNZ 0x00015723
CMP byte ptr [ESI + 0x29],0x0
JNZ 0x000157f8
SUB ESP,0x8
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH EBP
CALL 0x00026490
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000158e0
CALL 0x00012590
MOV EDX,EAX
MOV EAX,dword ptr [EAX]
CMP EAX,0x5f
JZ 0x00015779
CMP EAX,0x3d
JNZ 0x00015743
JMP 0x00015779
AND AL,byte ptr [ESI + 0x21]
MOV EDI,EAX
JNZ 0x00015870
MOV EDI,0x1
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00015959
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH EBP
CALL 0x00026490
ADD ESP,0x10
TEST EAX,EAX
JS 0x00015779
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x00012510
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00015857
CMP byte ptr [ESI + 0x26],0x0
MOV EAX,dword ptr [ESP + 0x18]
JZ 0x0001585b
SUB ESP,0xc
XOR EDI,EDI
PUSH EAX
CALL 0x00012780
ADD ESP,0x10
JMP 0x000157d8
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x00012510
ADD ESP,0x10
TEST EAX,EAX
JS 0x00015950
MOV EAX,dword ptr [ESP + 0x18]
SUB ESP,0xc
PUSH EAX
CALL 0x00012780
ADD ESP,0x10
JMP 0x000157d8
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x0001b2a0
ADD ESP,0x10
TEST EAX,EAX
JNS 0x000157d3
CALL 0x00012590
MOV ESI,EAX
MOV EAX,dword ptr [EAX]
CMP EAX,0x5f
JZ 0x000157d3
CMP EAX,0x3d
JZ 0x000157d3
SUB ESP,0x8
MOV EDX,dword ptr [ESP + 0x14]
PUSH EDX
PUSH 0x4
CALL 0x00020540
ADD ESP,0xc
MOV EBP,EAX
LEA EAX,[EBX + 0xffff5198]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000121e0
PUSH EBP
PUSH EAX
PUSH dword ptr [ESI]
PUSH 0x0
CALL 0x00012390
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x00012510
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00015857
CALL 0x00012590
MOV EBP,EAX
MOV EAX,dword ptr [EAX]
CMP EAX,0x3d
JZ 0x00015824
CMP EAX,0x5f
JZ 0x00015824
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x000209d0
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0xc
LEA EAX,[EBX + 0xffff4d7c]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000121e0
MOV EDX,dword ptr [ESP + 0x1c]
PUSH EDX
PUSH EAX
PUSH dword ptr [EBP]
PUSH 0x0
CALL 0x00012390
CALL 0x00012590
MOV EBP,EAX
JMP 0x00015912
CALL 0x0002bcb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002bcb0();\n  }\n  return cVar5;\n}\n\n" comment (function_definition "char FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" primitive_type (function_declarator "FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "byte param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type 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 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" 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 "cVar5 = *(char *)(param_5 + 0x25);" (assignment_expression "cVar5 = *(char *)(param_5 + 0x25)" identifier = (pointer_expression "*(char *)(param_5 + 0x25)" * (cast_expression "(char *)(param_5 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (if_statement "if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" if (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" { (if_statement "if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" if (parenthesized_expression "(((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0))" ( (binary_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" (parenthesized_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0)" ( (binary_expression "(param_4 & *(byte *)(param_5 + 0x21)) != 0" (parenthesized_expression "(param_4 & *(byte *)(param_5 + 0x21))" ( (binary_expression "param_4 & *(byte *)(param_5 + 0x21)" identifier & (pointer_expression "*(byte *)(param_5 + 0x21)" * (cast_expression "(byte *)(param_5 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) )) != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" ( (comma_expression "iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0" (assignment_expression "iVar1 = FUN_0001b2a0(param_2,param_3)" identifier = (call_expression "FUN_0001b2a0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (compound_statement "{\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,uVar3);\n      }" { (expression_statement "uVar3 = FUN_00020540(4,param_2);" (assignment_expression "uVar3 = FUN_00020540(4,param_2)" identifier = (call_expression "FUN_00020540(4,param_2)" identifier (argument_list "(4,param_2)" ( number_literal , identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context for %s",5)" identifier (argument_list "(0,"failed to set default file creation context for %s",5)" ( number_literal , (string_literal ""failed to set default file creation context for %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) })) (expression_statement "cVar5 = '\x01';" (assignment_expression "cVar5 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0'))" ( (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" * (cast_expression "(char *)(param_5 + 0x23)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x23)" ( (binary_expression "param_5 + 0x23" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);" statement_identifier : (expression_statement "uVar3 = FUN_00020540(4,param_1);" (assignment_expression "uVar3 = FUN_00020540(4,param_1)" identifier = (call_expression "FUN_00020540(4,param_1)" identifier (argument_list "(4,param_1)" ( number_literal , identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to get security context of %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to get security context of %s",5)" identifier = (call_expression "dcgettext(0,"failed to get security context of %s",5)" identifier (argument_list "(0,"failed to get security context of %s",5)" ( number_literal , (string_literal ""failed to get security context of %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015912:\n      uVar3 = FUN_000209d0(local_24);" statement_identifier : (expression_statement "uVar3 = FUN_000209d0(local_24);" (assignment_expression "uVar3 = FUN_000209d0(local_24)" identifier = (call_expression "FUN_000209d0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context to %s",5)" identifier (argument_list "(0,"failed to set default file creation context to %s",5)" ( number_literal , (string_literal ""failed to set default file creation context to %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) }) (else_clause "else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" * (cast_expression "(char *)(param_5 + 0x29)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x29)" ( (binary_expression "param_5 + 0x29" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015743;" goto statement_identifier ;)) (labeled_statement "LAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" if (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        cVar5 = '\0';\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;" if (parenthesized_expression "((*piVar2 != 0x3d) && (*piVar2 != 0x5f))" ( (binary_expression "(*piVar2 != 0x3d) && (*piVar2 != 0x5f)" (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015912;" goto statement_identifier ;)) (labeled_statement "LAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" if (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015779;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015779;" goto statement_identifier ;)) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015824;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015824;" goto statement_identifier ;)) }))))) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (labeled_statement "LAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002bcb0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0002bcb0();\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_0002bcb0();\n  }" { comment (expression_statement "FUN_0002bcb0();" (call_expression "FUN_0002bcb0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return cVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool set_process_security_ctx\n                (char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  char *con;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = x->preserve_security_context;\n  if ((_Bool)cVar5 == false) {\n    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n  }\n  else if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(con);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (_Bool)cVar5;\n}\n\n" comment comment (function_definition "_Bool set_process_security_ctx\n                (char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  char *con;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = x->preserve_security_context;\n  if ((_Bool)cVar5 == false) {\n    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n  }\n  else if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(con);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (_Bool)cVar5;\n}" type_identifier (function_declarator "set_process_security_ctx\n                (char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)" identifier (parameter_list "(char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)" ( (parameter_declaration "char *src_name" primitive_type (pointer_declarator "*src_name" * identifier)) , (parameter_declaration "char *dst_name" primitive_type (pointer_declarator "*dst_name" * identifier)) , (parameter_declaration "mode_t mode" type_identifier identifier) , (parameter_declaration "_Bool new_dst" type_identifier identifier) , (parameter_declaration "cp_options *x" type_identifier (pointer_declarator "*x" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  char *con;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = x->preserve_security_context;\n  if ((_Bool)cVar5 == false) {\n    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n  }\n  else if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(con);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return (_Bool)cVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *con;" primitive_type (pointer_declarator "*con" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" 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 "cVar5 = x->preserve_security_context;" (assignment_expression "cVar5 = x->preserve_security_context" identifier = (field_expression "x->preserve_security_context" identifier -> field_identifier)) ;) (if_statement "if ((_Bool)cVar5 == false) {\n    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" if (parenthesized_expression "((_Bool)cVar5 == false)" ( (binary_expression "(_Bool)cVar5 == false" (cast_expression "(_Bool)cVar5" ( (type_descriptor "_Bool" type_identifier) ) identifier) == false) )) (compound_statement "{\n    if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" { (if_statement "if (((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       ) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }" if (parenthesized_expression "(((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)\n       )" ( (binary_expression "((new_dst & x->set_security_context) != 0) && (iVar1 = defaultcon(dst_name,mode), iVar1 < 0)" (parenthesized_expression "((new_dst & x->set_security_context) != 0)" ( (binary_expression "(new_dst & x->set_security_context) != 0" (parenthesized_expression "(new_dst & x->set_security_context)" ( (binary_expression "new_dst & x->set_security_context" identifier & (field_expression "x->set_security_context" identifier -> field_identifier)) )) != number_literal) )) && (parenthesized_expression "(iVar1 = defaultcon(dst_name,mode), iVar1 < 0)" ( (comma_expression "iVar1 = defaultcon(dst_name,mode), iVar1 < 0" (assignment_expression "iVar1 = defaultcon(dst_name,mode)" identifier = (call_expression "defaultcon(dst_name,mode)" identifier (argument_list "(dst_name,mode)" ( identifier , identifier )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (compound_statement "{\n        pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    /* WARNING: Subroutine does not return */\n        error(0,*piVar2,uVar4,pcVar3);\n      }" { (expression_statement "pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name);" (assignment_expression "pcVar3 = quotearg_style(shell_escape_always_quoting_style,dst_name)" identifier = (call_expression "quotearg_style(shell_escape_always_quoting_style,dst_name)" identifier (argument_list "(shell_escape_always_quoting_style,dst_name)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context for %s",5)" identifier (argument_list "(0,"failed to set default file creation context for %s",5)" ( number_literal , (string_literal ""failed to set default file creation context for %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,pcVar3);" (call_expression "error(0,*piVar2,uVar4,pcVar3)" identifier (argument_list "(0,*piVar2,uVar4,pcVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) })) (expression_statement "cVar5 = '\x01';" (assignment_expression "cVar5 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (if_statement "if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n  }\n  else if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "((x->data_copy_required == false) || (x->require_preserve_context != false))" ( (binary_expression "(x->data_copy_required == false) || (x->require_preserve_context != false)" (parenthesized_expression "(x->data_copy_required == false)" ( (binary_expression "x->data_copy_required == false" (field_expression "x->data_copy_required" identifier -> field_identifier) == false) )) || (parenthesized_expression "(x->require_preserve_context != false)" ( (binary_expression "x->require_preserve_context != false" (field_expression "x->require_preserve_context" identifier -> field_identifier) != false) ))) )) (compound_statement "{\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }\n  }" { (expression_statement "iVar1 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar1 = rpl_lgetfilecon(src_name,&con)" identifier = (call_expression "rpl_lgetfilecon(src_name,&con)" identifier (argument_list "(src_name,&con)" ( identifier , (pointer_expression "&con" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015743:\n      pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);" statement_identifier : (expression_statement "pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name);" (assignment_expression "pcVar3 = quotearg_style(shell_escape_always_quoting_style,src_name)" identifier = (call_expression "quotearg_style(shell_escape_always_quoting_style,src_name)" identifier (argument_list "(shell_escape_always_quoting_style,src_name)" ( identifier , identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to get security context of %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to get security context of %s",5)" identifier = (call_expression "dcgettext(0,"failed to get security context of %s",5)" identifier (argument_list "(0,"failed to get security context of %s",5)" ( number_literal , (string_literal ""failed to get security context of %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,pcVar3);" (call_expression "error(0,*piVar2,uVar4,pcVar3)" identifier (argument_list "(0,*piVar2,uVar4,pcVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = setfscreatecon(con);" (assignment_expression "iVar1 = setfscreatecon(con)" identifier = (call_expression "setfscreatecon(con)" identifier (argument_list "(con)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015912:\n      pcVar3 = quote(con);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    /* WARNING: Subroutine does not return */\n      error(0,*piVar2,uVar4,pcVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015912:\n      pcVar3 = quote(con);" statement_identifier : (expression_statement "pcVar3 = quote(con);" (assignment_expression "pcVar3 = quote(con)" identifier = (call_expression "quote(con)" identifier (argument_list "(con)" ( identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context to %s",5)" identifier (argument_list "(0,"failed to set default file creation context to %s",5)" ( number_literal , (string_literal ""failed to set default file creation context to %s"" " string_content ") , number_literal )))) ;) comment (expression_statement "error(0,*piVar2,uVar4,pcVar3);" (call_expression "error(0,*piVar2,uVar4,pcVar3)" identifier (argument_list "(0,*piVar2,uVar4,pcVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) }) (else_clause "else if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (if_statement "if (x->reduce_diagnostics == false) {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "(x->reduce_diagnostics == false)" ( (binary_expression "x->reduce_diagnostics == false" (field_expression "x->reduce_diagnostics" identifier -> field_identifier) == false) )) (compound_statement "{\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }\n  }" { (expression_statement "iVar1 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar1 = rpl_lgetfilecon(src_name,&con)" identifier = (call_expression "rpl_lgetfilecon(src_name,&con)" identifier (argument_list "(src_name,&con)" ( identifier , (pointer_expression "&con" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015743;" goto statement_identifier ;)) (labeled_statement "LAB_00015779:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }" statement_identifier : (if_statement "if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n      }" if (parenthesized_expression "(x->require_preserve_context != false)" ( (binary_expression "x->require_preserve_context != false" (field_expression "x->require_preserve_context" identifier -> field_identifier) != false) )) (compound_statement "{\n        cVar5 = '\0';\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (expression_statement "iVar1 = setfscreatecon(con);" (assignment_expression "iVar1 = setfscreatecon(con)" identifier = (call_expression "setfscreatecon(con)" identifier (argument_list "(con)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;" if (parenthesized_expression "((*piVar2 != 0x3d) && (*piVar2 != 0x5f))" ( (binary_expression "(*piVar2 != 0x3d) && (*piVar2 != 0x5f)" (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015912;" goto statement_identifier ;)) (labeled_statement "LAB_00015824:\n      if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }" statement_identifier : (if_statement "if (x->require_preserve_context != false) {\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }" if (parenthesized_expression "(x->require_preserve_context != false)" ( (binary_expression "x->require_preserve_context != false" (field_expression "x->require_preserve_context" identifier -> field_identifier) != false) )) (compound_statement "{\n        cVar5 = '\0';\n        freecon(con);\n        goto LAB_000157d8;\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "freecon(con);" (call_expression "freecon(con)" identifier (argument_list "(con)" ( identifier ))) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (compound_statement "{\n    iVar1 = rpl_lgetfilecon(src_name,&con);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(con);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" { (expression_statement "iVar1 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar1 = rpl_lgetfilecon(src_name,&con)" identifier = (call_expression "rpl_lgetfilecon(src_name,&con)" identifier (argument_list "(src_name,&con)" ( identifier , (pointer_expression "&con" & identifier) )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015779;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015779;" goto statement_identifier ;)) (expression_statement "iVar1 = setfscreatecon(con);" (assignment_expression "iVar1 = setfscreatecon(con)" identifier = (call_expression "setfscreatecon(con)" identifier (argument_list "(con)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015824;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015824;" goto statement_identifier ;)) }))))) (expression_statement "freecon(con);" (call_expression "freecon(con)" identifier (argument_list "(con)" ( identifier ))) ;) (labeled_statement "LAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_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 (_Bool)cVar5;" return (cast_expression "(_Bool)cVar5" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })))
(translation_unit "char FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }\n  return cVar5;\n}\n\n" (function_definition "char FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" primitive_type (function_declarator "FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "byte param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type 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 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" 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 "cVar5 = *(char *)(param_5 + 0x25);" (assignment_expression "cVar5 = *(char *)(param_5 + 0x25)" identifier = (pointer_expression "*(char *)(param_5 + 0x25)" * (cast_expression "(char *)(param_5 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (if_statement "if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" if (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" { (if_statement "if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" if (parenthesized_expression "(((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0))" ( (binary_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" (parenthesized_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0)" ( (binary_expression "(param_4 & *(byte *)(param_5 + 0x21)) != 0" (parenthesized_expression "(param_4 & *(byte *)(param_5 + 0x21))" ( (binary_expression "param_4 & *(byte *)(param_5 + 0x21)" identifier & (pointer_expression "*(byte *)(param_5 + 0x21)" * (cast_expression "(byte *)(param_5 + 0x21)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x21)" ( (binary_expression "param_5 + 0x21" identifier + number_literal) ))))) )) != number_literal) )) && (parenthesized_expression "(iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" ( (comma_expression "iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0" (assignment_expression "iVar1 = FUN_0001b2a0(param_2,param_3)" identifier = (call_expression "FUN_0001b2a0(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) , (binary_expression "iVar1 < 0" identifier < number_literal)) ))) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (compound_statement "{\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }" { (expression_statement "uVar3 = FUN_00020540(4,param_2);" (assignment_expression "uVar3 = FUN_00020540(4,param_2)" identifier = (call_expression "FUN_00020540(4,param_2)" identifier (argument_list "(4,param_2)" ( number_literal , identifier )))) ;) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context for %s",5)" identifier (argument_list "(0,"failed to set default file creation context for %s",5)" ( number_literal , (string_literal ""failed to set default file creation context for %s"" " string_content ") , number_literal )))) ;) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) })) (expression_statement "cVar5 = '\x01';" (assignment_expression "cVar5 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0'))" ( (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" * (cast_expression "(char *)(param_5 + 0x23)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x23)" ( (binary_expression "param_5 + 0x23" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);" statement_identifier : (expression_statement "uVar3 = FUN_00020540(4,param_1);" (assignment_expression "uVar3 = FUN_00020540(4,param_1)" identifier = (call_expression "FUN_00020540(4,param_1)" identifier (argument_list "(4,param_1)" ( number_literal , identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to get security context of %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to get security context of %s",5)" identifier = (call_expression "dcgettext(0,"failed to get security context of %s",5)" identifier (argument_list "(0,"failed to get security context of %s",5)" ( number_literal , (string_literal ""failed to get security context of %s"" " string_content ") , number_literal )))) ;) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (labeled_statement "LAB_00015912:\n      uVar3 = FUN_000209d0(local_24);" statement_identifier : (expression_statement "uVar3 = FUN_000209d0(local_24);" (assignment_expression "uVar3 = FUN_000209d0(local_24)" identifier = (call_expression "FUN_000209d0(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;)) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5)" identifier = (call_expression "dcgettext(0,"failed to set default file creation context to %s",5)" identifier (argument_list "(0,"failed to set default file creation context to %s",5)" ( number_literal , (string_literal ""failed to set default file creation context to %s"" " string_content ") , number_literal )))) ;) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" identifier (argument_list "(0,*piVar2,uVar4,uVar3)" ( number_literal , (pointer_expression "*piVar2" * identifier) , identifier , identifier ))) ;) })) }) (else_clause "else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" if (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" ( (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" * (cast_expression "(char *)(param_5 + 0x29)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x29)" ( (binary_expression "param_5 + 0x29" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;" if (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" ( (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015743;" goto statement_identifier ;)) (labeled_statement "LAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" if (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        cVar5 = '\0';\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) })) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" { (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;" if (parenthesized_expression "((*piVar2 != 0x3d) && (*piVar2 != 0x5f))" ( (binary_expression "(*piVar2 != 0x3d) && (*piVar2 != 0x5f)" (parenthesized_expression "(*piVar2 != 0x3d)" ( (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar2 != 0x5f)" ( (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_00015912;" goto statement_identifier ;)) (labeled_statement "LAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" if (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" ( (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" * (cast_expression "(char *)(param_5 + 0x26)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x26)" ( (binary_expression "param_5 + 0x26" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" { (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (goto_statement "goto LAB_000157d8;" goto statement_identifier ;) }))) })) }) (else_clause "else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" else (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" { (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" identifier = (call_expression "FUN_00026490(param_1,&local_24)" identifier (argument_list "(param_1,&local_24)" ( identifier , (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015779;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015779;" goto statement_identifier ;)) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" identifier = (call_expression "setfscreatecon(local_24)" identifier (argument_list "(local_24)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00015824;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00015824;" goto statement_identifier ;)) }))))) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (labeled_statement "LAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\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_0002bcb0();\n  }" { (expression_statement "FUN_0002bcb0();" (call_expression "FUN_0002bcb0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return cVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ( )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) }))))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (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 "char FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" (primitive_type "char") (function_declarator "FUN_000156e0(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" (identifier "FUN_000156e0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "byte param_4" (type_identifier "byte") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  char cVar5;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x156e9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  cVar5 = *(char *)(param_5 + 0x25);\n  if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }\n  freecon(local_24);\nLAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }\n  return cVar5;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (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 = 0x156e9;" (assignment_expression "uStack_14 = 0x156e9" (identifier "uStack_14") (= "=") (number_literal "0x156e9")) (; ";")) (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 "cVar5 = *(char *)(param_5 + 0x25);" (assignment_expression "cVar5 = *(char *)(param_5 + 0x25)" (identifier "cVar5") (= "=") (pointer_expression "*(char *)(param_5 + 0x25)" (* "*") (cast_expression "(char *)(param_5 + 0x25)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x25)" (( "(") (binary_expression "param_5 + 0x25" (identifier "param_5") (+ "+") (number_literal "0x25")) () ")"))))) (; ";")) (if_statement "if (cVar5 == '\0') {\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" (if "if") (parenthesized_expression "(cVar5 == '\0')" (( "(") (binary_expression "cVar5 == '\0'" (identifier "cVar5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }\n    cVar5 = '\x01';\n    goto LAB_000157d8;\n  }" ({ "{") (if_statement "if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" (if "if") (parenthesized_expression "(((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0))" (( "(") (binary_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&\n       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" (parenthesized_expression "((param_4 & *(byte *)(param_5 + 0x21)) != 0)" (( "(") (binary_expression "(param_4 & *(byte *)(param_5 + 0x21)) != 0" (parenthesized_expression "(param_4 & *(byte *)(param_5 + 0x21))" (( "(") (binary_expression "param_4 & *(byte *)(param_5 + 0x21)" (identifier "param_4") (& "&") (pointer_expression "*(byte *)(param_5 + 0x21)" (* "*") (cast_expression "(byte *)(param_5 + 0x21)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x21)" (( "(") (binary_expression "param_5 + 0x21" (identifier "param_5") (+ "+") (number_literal "0x21")) () ")"))))) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)" (( "(") (comma_expression "iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0" (assignment_expression "iVar1 = FUN_0001b2a0(param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0001b2a0(param_2,param_3)" (identifier "FUN_0001b2a0") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }" (if "if") (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" (( "(") (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" (( "(") (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x5f")) () ")")) (&& "&&") (parenthesized_expression "(*piVar2 != 0x3d)" (( "(") (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x3d")) () ")"))) () ")")) (compound_statement "{\n        uVar3 = FUN_00020540(4,param_2);\n        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n                    \n        error(0,*piVar2,uVar4,uVar3);\n      }" ({ "{") (expression_statement "uVar3 = FUN_00020540(4,param_2);" (assignment_expression "uVar3 = FUN_00020540(4,param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_00020540(4,param_2)" (identifier "FUN_00020540") (argument_list "(4,param_2)" (( "(") (number_literal "4") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context for %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"failed to set default file creation context for %s",5)" (identifier "dcgettext") (argument_list "(0,"failed to set default file creation context for %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""failed to set default file creation context for %s"" (" """) (string_content "failed to set default file creation context for %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" (identifier "error") (argument_list "(0,*piVar2,uVar4,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "cVar5 = '\x01';" (assignment_expression "cVar5 = '\x01'" (identifier "cVar5") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (goto_statement "goto LAB_000157d8;" (goto "goto") (statement_identifier "LAB_000157d8") (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }\n  else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0'))" (( "(") (binary_expression "(*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')" (parenthesized_expression "(*(char *)(param_5 + 0x23) == '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x23) == '\0'" (pointer_expression "*(char *)(param_5 + 0x23)" (* "*") (cast_expression "(char *)(param_5 + 0x23)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x23)" (( "(") (binary_expression "param_5 + 0x23" (identifier "param_5") (+ "+") (number_literal "0x23")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" (* "*") (cast_expression "(char *)(param_5 + 0x26)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x26)" (( "(") (binary_expression "param_5 + 0x26" (identifier "param_5") (+ "+") (number_literal "0x26")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_00026490(param_1,&local_24)" (identifier "FUN_00026490") (argument_list "(param_1,&local_24)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (labeled_statement "LAB_00015743:\n      uVar3 = FUN_00020540(4,param_1);" (statement_identifier "LAB_00015743") (: ":") (expression_statement "uVar3 = FUN_00020540(4,param_1);" (assignment_expression "uVar3 = FUN_00020540(4,param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_00020540(4,param_1)" (identifier "FUN_00020540") (argument_list "(4,param_1)" (( "(") (number_literal "4") (, ",") (identifier "param_1") () ")")))) (; ";"))) (expression_statement "uVar4 = dcgettext(0,"failed to get security context of %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to get security context of %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"failed to get security context of %s",5)" (identifier "dcgettext") (argument_list "(0,"failed to get security context of %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""failed to get security context of %s"" (" """) (string_content "failed to get security context of %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" (identifier "error") (argument_list "(0,*piVar2,uVar4,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(local_24)" (identifier "setfscreatecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\nLAB_00015912:\n      uVar3 = FUN_000209d0(local_24);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n                    \n      error(0,*piVar2,uVar4,uVar3);\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (labeled_statement "LAB_00015912:\n      uVar3 = FUN_000209d0(local_24);" (statement_identifier "LAB_00015912") (: ":") (expression_statement "uVar3 = FUN_000209d0(local_24);" (assignment_expression "uVar3 = FUN_000209d0(local_24)" (identifier "uVar3") (= "=") (call_expression "FUN_000209d0(local_24)" (identifier "FUN_000209d0") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";"))) (expression_statement "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);" (assignment_expression "uVar4 = dcgettext(0,"failed to set default file creation context to %s",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"failed to set default file creation context to %s",5)" (identifier "dcgettext") (argument_list "(0,"failed to set default file creation context to %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""failed to set default file creation context to %s"" (" """) (string_content "failed to set default file creation context to %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "error(0,*piVar2,uVar4,uVar3);" (call_expression "error(0,*piVar2,uVar4,uVar3)" (identifier "error") (argument_list "(0,*piVar2,uVar4,uVar3)" (( "(") (number_literal "0") (, ",") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (, ",") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" (else "else") (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }\n  else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_5 + 0x29) == '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x29) == '\0'" (pointer_expression "*(char *)(param_5 + 0x29)" (* "*") (cast_expression "(char *)(param_5 + 0x29)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x29)" (( "(") (binary_expression "param_5 + 0x29" (identifier "param_5") (+ "+") (number_literal "0x29")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_00026490(param_1,&local_24)" (identifier "FUN_00026490") (argument_list "(param_1,&local_24)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;\nLAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }\n      goto LAB_000157d8;\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;" (if "if") (parenthesized_expression "((*piVar2 != 0x5f) && (*piVar2 != 0x3d))" (( "(") (binary_expression "(*piVar2 != 0x5f) && (*piVar2 != 0x3d)" (parenthesized_expression "(*piVar2 != 0x5f)" (( "(") (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x5f")) () ")")) (&& "&&") (parenthesized_expression "(*piVar2 != 0x3d)" (( "(") (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x3d")) () ")"))) () ")")) (goto_statement "goto LAB_00015743;" (goto "goto") (statement_identifier "LAB_00015743") (; ";"))) (labeled_statement "LAB_00015779:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" (statement_identifier "LAB_00015779") (: ":") (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n      }" (if "if") (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" (* "*") (cast_expression "(char *)(param_5 + 0x26)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x26)" (( "(") (binary_expression "param_5 + 0x26" (identifier "param_5") (+ "+") (number_literal "0x26")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        cVar5 = '\0';\n      }" ({ "{") (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" (identifier "cVar5") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (goto_statement "goto LAB_000157d8;" (goto "goto") (statement_identifier "LAB_000157d8") (; ";")) (} "}"))) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(local_24)" (identifier "setfscreatecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;\nLAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }\n    }" ({ "{") (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;" (if "if") (parenthesized_expression "((*piVar2 != 0x3d) && (*piVar2 != 0x5f))" (( "(") (binary_expression "(*piVar2 != 0x3d) && (*piVar2 != 0x5f)" (parenthesized_expression "(*piVar2 != 0x3d)" (( "(") (binary_expression "*piVar2 != 0x3d" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x3d")) () ")")) (&& "&&") (parenthesized_expression "(*piVar2 != 0x5f)" (( "(") (binary_expression "*piVar2 != 0x5f" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0x5f")) () ")"))) () ")")) (goto_statement "goto LAB_00015912;" (goto "goto") (statement_identifier "LAB_00015912") (; ";"))) (labeled_statement "LAB_00015824:\n      if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" (statement_identifier "LAB_00015824") (: ":") (if_statement "if (*(char *)(param_5 + 0x26) != '\0') {\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_5 + 0x26) != '\0')" (( "(") (binary_expression "*(char *)(param_5 + 0x26) != '\0'" (pointer_expression "*(char *)(param_5 + 0x26)" (* "*") (cast_expression "(char *)(param_5 + 0x26)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x26)" (( "(") (binary_expression "param_5 + 0x26" (identifier "param_5") (+ "+") (number_literal "0x26")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        cVar5 = '\0';\n        freecon(local_24);\n        goto LAB_000157d8;\n      }" ({ "{") (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" (identifier "cVar5") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" (identifier "freecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (goto_statement "goto LAB_000157d8;" (goto "goto") (statement_identifier "LAB_000157d8") (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_00026490(param_1,&local_24);\n    if (iVar1 < 0) goto LAB_00015779;\n    iVar1 = setfscreatecon(local_24);\n    if (iVar1 < 0) goto LAB_00015824;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00026490(param_1,&local_24);" (assignment_expression "iVar1 = FUN_00026490(param_1,&local_24)" (identifier "iVar1") (= "=") (call_expression "FUN_00026490(param_1,&local_24)" (identifier "FUN_00026490") (argument_list "(param_1,&local_24)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) goto LAB_00015779;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00015779;" (goto "goto") (statement_identifier "LAB_00015779") (; ";"))) (expression_statement "iVar1 = setfscreatecon(local_24);" (assignment_expression "iVar1 = setfscreatecon(local_24)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(local_24)" (identifier "setfscreatecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) goto LAB_00015824;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00015824;" (goto "goto") (statement_identifier "LAB_00015824") (; ";"))) (} "}")))))) (expression_statement "freecon(local_24);" (call_expression "freecon(local_24)" (identifier "freecon") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (labeled_statement "LAB_000157d8:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\n  }" (statement_identifier "LAB_000157d8") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0002bcb0();\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_0002bcb0();\n  }" ({ "{") (expression_statement "FUN_0002bcb0();" (call_expression "FUN_0002bcb0()" (identifier "FUN_0002bcb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return cVar5;" (return "return") (identifier "cVar5") (; ";")) (} "}")))

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

type_1 function_1
                (char *src_name,char *dst_name,type_2 mode,type_1 var_2,type_3 *x)

{
  int var_4;
  int *piVar2;
  char *pcVar3;
  type_4 uVar4;
  char cVar5;
  int var_1;
  char *con;
  int var_13;
  type_4 uStack_14;
  
  uStack_14 = 0x156e9;
  var_13 = *(int *)(var_1 + 0x14);
  cVar5 = x->preserve_security_context;
  if ((type_1)cVar5 == false) {
    if (((var_2 & x->set_security_context) != 0) && (var_4 = var_3(dst_name,mode), var_4 < 0)
       ) {
      piVar2 = var_5();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {
        pcVar3 = var_6(shell_escape_always_quoting_style,dst_name);
        uVar4 = var_7(0,"failed to set default file creation context for %s",5);
                    /* WARNING: Subroutine does not return */
        var_8(0,*piVar2,uVar4,pcVar3);
      }
    }
    cVar5 = '\x01';
    goto LAB_000157d8;
  }
  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {
    var_4 = var_9(src_name,&con);
    if (var_4 < 0) {
      piVar2 = var_5();
LAB_00015743:
      pcVar3 = var_6(shell_escape_always_quoting_style,src_name);
      uVar4 = var_7(0,"failed to get security context of %s",5);
                    /* WARNING: Subroutine does not return */
      var_8(0,*piVar2,uVar4,pcVar3);
    }
    var_4 = var_10(con);
    if (var_4 < 0) {
      piVar2 = var_5();
LAB_00015912:
      pcVar3 = var_11(con);
      uVar4 = var_7(0,"failed to set default file creation context to %s",5);
                    /* WARNING: Subroutine does not return */
      var_8(0,*piVar2,uVar4,pcVar3);
    }
  }
  else if (x->reduce_diagnostics == false) {
    var_4 = var_9(src_name,&con);
    if (var_4 < 0) {
      piVar2 = var_5();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;
LAB_00015779:
      if (x->require_preserve_context != false) {
        cVar5 = '\0';
      }
      goto LAB_000157d8;
    }
    var_4 = var_10(con);
    if (var_4 < 0) {
      piVar2 = var_5();
      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;
LAB_00015824:
      if (x->require_preserve_context != false) {
        cVar5 = '\0';
        var_12(con);
        goto LAB_000157d8;
      }
    }
  }
  else {
    var_4 = var_9(src_name,&con);
    if (var_4 < 0) goto LAB_00015779;
    var_4 = var_10(con);
    if (var_4 < 0) goto LAB_00015824;
  }
  var_12(con);
LAB_000157d8:
  if (var_13 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  return (type_1)cVar5;
}


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

char MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,byte param_4,int param_5)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  char cVar5;
  int in_GS_OFFSET;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x156e9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  cVar5 = *(char *)(param_5 + 0x25);
  if (cVar5 == '\0') {
    if (((param_4 & *(byte *)(param_5 + 0x21)) != 0) &&
       (iVar1 = FUN_0001b2a0(param_2,param_3), iVar1 < 0)) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) {
        uVar3 = FUN_00020540(4,param_2);
        uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);
                    /* WARNING: Subroutine does not return */
        error(0,*piVar2,uVar4,uVar3);
      }
    }
    cVar5 = '\x01';
    goto LAB_000157d8;
  }
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015743:
      uVar3 = FUN_00020540(4,param_1);
      uVar4 = dcgettext(0,"failed to get security context of %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,uVar3);
    }
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
LAB_00015912:
      uVar3 = FUN_000209d0(local_24);
      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);
                    /* WARNING: Subroutine does not return */
      error(0,*piVar2,uVar4,uVar3);
    }
  }
  else if (*(char *)(param_5 + 0x29) == '\0') {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_00015743;
LAB_00015779:
      if (*(char *)(param_5 + 0x26) != '\0') {
        cVar5 = '\0';
      }
      goto LAB_000157d8;
    }
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) {
      piVar2 = __errno_location();
      if ((*piVar2 != 0x3d) && (*piVar2 != 0x5f)) goto LAB_00015912;
LAB_00015824:
      if (*(char *)(param_5 + 0x26) != '\0') {
        cVar5 = '\0';
        freecon(local_24);
        goto LAB_000157d8;
      }
    }
  }
  else {
    iVar1 = FUN_00026490(param_1,&local_24);
    if (iVar1 < 0) goto LAB_00015779;
    iVar1 = setfscreatecon(local_24);
    if (iVar1 < 0) goto LAB_00015824;
  }
  freecon(local_24);
LAB_000157d8:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0002bcb0();
  }
  return cVar5;
}

