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

{
  byte bVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  undefined8 uVar5;
  byte bVar6;
  long in_FS_OFFSET;
  char *con;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  bVar1 = x->preserve_security_context;
  if ((_Bool)bVar1 == false) {
    bVar6 = new_dst & x->set_security_context;
    if (bVar6 == 0) {
      bVar1 = 1;
    }
    else {
      iVar2 = defaultcon(dst_name,mode);
      bVar1 = bVar6;
      if (iVar2 < 0) {
        piVar3 = __errno_location();
        iVar2 = *piVar3;
        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;
        if (iVar2 != 0x3d && iVar2 != 0x5f) {
          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);
          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);
          error(0,*piVar3,uVar5,pcVar4);
          bVar1 = bVar6;
        }
      }
    }
    goto LAB_00106662;
  }
  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {
    iVar2 = rpl_lgetfilecon(src_name,&con);
    bVar6 = bVar1;
    if (iVar2 < 0) {
LAB_001065f5:
      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);
      uVar5 = dcgettext(0,"failed to get security context of %s",5);
      piVar3 = __errno_location();
      error(0,*piVar3,uVar5,pcVar4);
      goto LAB_0010663a;
    }
LAB_0010672b:
    iVar2 = setfscreatecon(con);
    if (-1 < iVar2) {
LAB_00106788:
      freecon(con);
      goto LAB_00106662;
    }
    if (bVar6 != 0) {
LAB_0010673d:
      pcVar4 = quote(con);
      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);
      piVar3 = __errno_location();
      error(0,*piVar3,uVar5,pcVar4);
    }
LAB_0010677e:
    if (x->require_preserve_context == false) goto LAB_00106788;
    freecon(con);
  }
  else {
    if (x->reduce_diagnostics == false) {
      iVar2 = rpl_lgetfilecon(src_name,&con);
      if (-1 < iVar2) {
        iVar2 = setfscreatecon(con);
        if (iVar2 < 0) {
          piVar3 = __errno_location();
          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;
          goto LAB_0010677e;
        }
        goto LAB_00106788;
      }
      piVar3 = __errno_location();
      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;
    }
    else {
      iVar2 = rpl_lgetfilecon(src_name,&con);
      if (-1 < iVar2) {
        bVar6 = 0;
        goto LAB_0010672b;
      }
    }
LAB_0010663a:
    if (x->require_preserve_context == false) goto LAB_00106662;
  }
  bVar1 = 0;
LAB_00106662:
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return (_Bool)bVar1;
}



ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,
                  long param_5)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  byte bVar5;
  ulong uVar6;
  long in_FS_OFFSET;
  undefined8 local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  bVar5 = *(byte *)(param_5 + 0x25);
  uVar6 = (ulong)bVar5;
  if (bVar5 == 0) {
    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);
    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);
    if (bVar5 == 0) {
      uVar6 = 1;
    }
    else {
      iVar1 = FUN_0010c04e(param_2,param_3);
      if (iVar1 < 0) {
        piVar2 = __errno_location();
        iVar1 = *piVar2;
        if (iVar1 == 0x3d || iVar1 == 0x5f) {
          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;
        }
        else {
          uVar3 = FUN_001106eb(4,param_2);
          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);
          error(0,*piVar2,uVar4,uVar3);
        }
      }
    }
    goto LAB_00106662;
  }
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {
    iVar1 = FUN_001156af(param_1,&local_38);
    if (iVar1 < 0) {
LAB_001065f5:
      uVar3 = FUN_001106eb(4,param_1);
      uVar4 = dcgettext(0,"failed to get security context of %s",5);
      piVar2 = __errno_location();
      error(0,*piVar2,uVar4,uVar3);
      goto LAB_0010663a;
    }
LAB_0010672b:
    iVar1 = setfscreatecon(local_38);
    if (-1 < iVar1) {
LAB_00106788:
      freecon(local_38);
      goto LAB_00106662;
    }
    if (bVar5 != 0) {
LAB_0010673d:
      uVar3 = FUN_001109e2(local_38);
      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);
      piVar2 = __errno_location();
      error(0,*piVar2,uVar4,uVar3);
    }
LAB_0010677e:
    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;
    freecon(local_38);
  }
  else {
    if (*(char *)(param_5 + 0x29) == '\0') {
      iVar1 = FUN_001156af(param_1,&local_38);
      if (-1 < iVar1) {
        iVar1 = setfscreatecon(local_38);
        if (iVar1 < 0) {
          piVar2 = __errno_location();
          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;
          goto LAB_0010677e;
        }
        goto LAB_00106788;
      }
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;
    }
    else {
      iVar1 = FUN_001156af(param_1,&local_38);
      if (-1 < iVar1) {
        bVar5 = 0;
        goto LAB_0010672b;
      }
    }
LAB_0010663a:
    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;
  }
  uVar6 = 0;
LAB_00106662:
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar6;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,R8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x8],RAX
XOR EAX,EAX
MOVZX EBP,byte ptr [R8 + 0x25]
TEST BPL,BPL
JZ 0x00106652
MOV R12,RDI
CMP byte ptr [R8 + 0x23],0x0
JZ 0x00106715
MOVZX R13D,byte ptr [R8 + 0x26]
TEST R13B,R13B
JNZ 0x00106715
CMP byte ptr [R8 + 0x29],0x0
JNZ 0x00106796
MOV RSI,RSP
CALL 0x001156af
TEST EAX,EAX
JNS 0x001066f1
CALL 0x00103090
MOV EAX,dword ptr [RAX]
CMP EAX,0x5f
JZ 0x0010663a
CMP EAX,0x3d
JZ 0x0010663a
MOV RSI,R12
MOV EDI,0x4
CALL 0x001106eb
MOV R13,RAX
MOV EDX,0x5
LEA RSI,[0x11b038]
MOV EDI,0x0
CALL 0x00103270
MOV R12,RAX
CALL 0x00103090
MOV RCX,R13
MOV RDX,R12
MOV ESI,dword ptr [RAX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x00103750
CMP byte ptr [RBX + 0x26],0x0
JZ 0x00106662
MOV EBP,0x0
JMP 0x00106662
MOV RDI,qword ptr [RSP]
CALL 0x00103850
JMP 0x00106640
MOV R13,RSI
MOV EBP,ECX
AND BPL,byte ptr [R8 + 0x21]
JNZ 0x00106683
MOV EBP,0x1
MOV EAX,EBP
MOV RDI,qword ptr [RSP + 0x8]
XOR RDI,qword ptr FS:[0x28]
JNZ 0x001067a8
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
RET
MOV ESI,EDX
MOV RDI,R13
CALL 0x0010c04e
TEST EAX,EAX
JNS 0x00106662
CALL 0x00103090
MOV RBX,RAX
MOV EDX,dword ptr [RAX]
CMP EDX,0x3d
SETZ AL
CMP EDX,0x5f
SETZ DL
OR AL,DL
JZ 0x001066af
MOV EBP,EAX
JMP 0x00106662
MOV RSI,R13
MOV EDI,0x4
CALL 0x001106eb
MOV R12,RAX
MOV EDX,0x5
LEA RSI,[0x11b060]
MOV EDI,0x0
CALL 0x00103270
MOV RCX,R12
MOV RDX,RAX
MOV ESI,dword ptr [RBX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x00103750
JMP 0x00106662
MOV RDI,qword ptr [RSP]
CALL 0x001035e0
TEST EAX,EAX
JNS 0x00106788
CALL 0x00103090
MOV EAX,dword ptr [RAX]
CMP EAX,0x5f
JZ 0x0010677e
CMP EAX,0x3d
JNZ 0x0010673d
JMP 0x0010677e
MOV RSI,RSP
MOV RDI,R12
CALL 0x001156af
MOV R13D,EBP
TEST EAX,EAX
JS 0x001065f5
MOV RDI,qword ptr [RSP]
CALL 0x001035e0
TEST EAX,EAX
JNS 0x00106788
TEST R13B,R13B
JZ 0x0010677e
MOV RDI,qword ptr [RSP]
CALL 0x001109e2
MOV R13,RAX
MOV EDX,0x5
LEA RSI,[0x11b000]
MOV EDI,0x0
CALL 0x00103270
MOV R12,RAX
CALL 0x00103090
MOV RCX,R13
MOV RDX,R12
MOV ESI,dword ptr [RAX]
MOV EDI,0x0
MOV EAX,0x0
CALL 0x00103750
CMP byte ptr [RBX + 0x26],0x0
JNZ 0x00106647
MOV RDI,qword ptr [RSP]
CALL 0x00103850
JMP 0x00106662
MOV RSI,RSP
CALL 0x001156af
TEST EAX,EAX
JS 0x0010663a
JMP 0x0010672b
CALL 0x001032c0
(translation_unit "ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar6;\n}\n\n" (function_definition "ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) , (parameter_declaration "long param_5" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar5 = *(byte *)(param_5 + 0x25);" (assignment_expression "bVar5 = *(byte *)(param_5 + 0x25)" identifier = (pointer_expression "*(byte *)(param_5 + 0x25)" * (cast_expression "(byte *)(param_5 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (ulong)bVar5;" (assignment_expression "uVar6 = (ulong)bVar5" identifier = (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" { (expression_statement "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);" (assignment_expression "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" identifier = (binary_expression "(byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" (call_expression "(byte)(param_4 & 0xffffffff)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_4 & 0xffffffff)" ( (binary_expression "param_4 & 0xffffffff" identifier & number_literal) ))) & (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) )))))) ;) (expression_statement "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);" (assignment_expression "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" identifier = (call_expression "CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" identifier (argument_list "((int7)((param_4 & 0xffffffff) >> 8),bVar5)" ( (call_expression "(int7)((param_4 & 0xffffffff) >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "((param_4 & 0xffffffff) >> 8)" ( (binary_expression "(param_4 & 0xffffffff) >> 8" (parenthesized_expression "(param_4 & 0xffffffff)" ( (binary_expression "param_4 & 0xffffffff" identifier & number_literal) )) >> number_literal) ))) , identifier )))) ;) (if_statement "if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar6 = 1;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" { (expression_statement "iVar1 = FUN_0010c04e(param_2,param_3);" (assignment_expression "iVar1 = FUN_0010c04e(param_2,param_3)" identifier = (call_expression "FUN_0010c04e(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\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 "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" if (parenthesized_expression "(iVar1 == 0x3d || iVar1 == 0x5f)" ( (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" identifier == number_literal) || (binary_expression "iVar1 == 0x5f" identifier == number_literal)) )) (compound_statement "{\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }" { (expression_statement "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;" (assignment_expression "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" identifier = (binary_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" (call_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" identifier (argument_list "((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" ( (call_expression "(int7)((ulong)piVar2 >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "((ulong)piVar2 >> 8)" ( (binary_expression "(ulong)piVar2 >> 8" (cast_expression "(ulong)piVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" identifier == number_literal) || (binary_expression "iVar1 == 0x5f" identifier == number_literal)) ))) & number_literal)) ;) }) (else_clause "else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" else (compound_statement "{\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" { (expression_statement "uVar3 = FUN_001106eb(4,param_2);" (assignment_expression "uVar3 = FUN_001106eb(4,param_2)" identifier = (call_expression "FUN_001106eb(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 ))) ;) }))) })) }))) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\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_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" { (labeled_statement "LAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);" statement_identifier : (expression_statement "uVar3 = FUN_001106eb(4,param_1);" (assignment_expression "uVar3 = FUN_001106eb(4,param_1)" identifier = (call_expression "FUN_001106eb(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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (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 ))) ;) (goto_statement "goto LAB_0010663a;" goto statement_identifier ;) })) (labeled_statement "LAB_0010672b:\n    iVar1 = setfscreatecon(local_38);" statement_identifier : (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" identifier = (call_expression "setfscreatecon(local_38)" identifier (argument_list "(local_38)" ( identifier )))) ;)) (if_statement "if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" { (labeled_statement "LAB_00106788:\n      freecon(local_38);" statement_identifier : (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;)) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" { (labeled_statement "LAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);" statement_identifier : (expression_statement "uVar3 = FUN_001109e2(local_38);" (assignment_expression "uVar3 = FUN_001109e2(local_38)" identifier = (call_expression "FUN_001109e2(local_38)" identifier (argument_list "(local_38)" ( 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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (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 ))) ;) })) (labeled_statement "LAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" 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 ')) )) (goto_statement "goto LAB_00106788;" goto statement_identifier ;))) (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) }) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" else (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" { (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\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_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" { (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" identifier = (call_expression "setfscreatecon(local_38)" identifier (argument_list "(local_38)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\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_0010673d;\n          goto LAB_0010677e;\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_0010673d;" 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_0010673d;" goto statement_identifier ;)) (goto_statement "goto LAB_0010677e;" goto statement_identifier ;) })) (goto_statement "goto LAB_00106788;" goto statement_identifier ;) })) (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_001065f5;" 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_001065f5;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" { (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0010672b;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" 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 ')) )) (goto_statement "goto LAB_00106662;" goto statement_identifier ;))) }))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar6;" return identifier ;) })))
(translation_unit "_Bool set_process_security_ctx\n                (char *src_name,char *dst_name,mode_t mode,_Bool new_dst,cp_options *x)\n\n{\n  byte bVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  byte bVar6;\n  long in_FS_OFFSET;\n  char *con;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar1 = x->preserve_security_context;\n  if ((_Bool)bVar1 == false) {\n    bVar6 = new_dst & x->set_security_context;\n    if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar2 = rpl_lgetfilecon(src_name,&con);\n    bVar6 = bVar1;\n    if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar2 = setfscreatecon(con);\n    if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }\n    if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }\nLAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;\n    freecon(con);\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\n  }\n  bVar1 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return (_Bool)bVar1;\n}\n\n" (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  byte bVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  byte bVar6;\n  long in_FS_OFFSET;\n  char *con;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar1 = x->preserve_security_context;\n  if ((_Bool)bVar1 == false) {\n    bVar6 = new_dst & x->set_security_context;\n    if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar2 = rpl_lgetfilecon(src_name,&con);\n    bVar6 = bVar1;\n    if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar2 = setfscreatecon(con);\n    if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }\n    if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }\nLAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;\n    freecon(con);\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\n  }\n  bVar1 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return (_Bool)bVar1;\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  byte bVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined8 uVar5;\n  byte bVar6;\n  long in_FS_OFFSET;\n  char *con;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar1 = x->preserve_security_context;\n  if ((_Bool)bVar1 == false) {\n    bVar6 = new_dst & x->set_security_context;\n    if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar2 = rpl_lgetfilecon(src_name,&con);\n    bVar6 = bVar1;\n    if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar2 = setfscreatecon(con);\n    if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }\n    if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }\nLAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;\n    freecon(con);\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\n  }\n  bVar1 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return (_Bool)bVar1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "char *con;" primitive_type (pointer_declarator "*con" * identifier) ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = x->preserve_security_context;" (assignment_expression "bVar1 = x->preserve_security_context" identifier = (field_expression "x->preserve_security_context" identifier -> field_identifier)) ;) (if_statement "if ((_Bool)bVar1 == false) {\n    bVar6 = new_dst & x->set_security_context;\n    if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" if (parenthesized_expression "((_Bool)bVar1 == false)" ( (binary_expression "(_Bool)bVar1 == false" (cast_expression "(_Bool)bVar1" ( (type_descriptor "_Bool" type_identifier) ) identifier) == false) )) (compound_statement "{\n    bVar6 = new_dst & x->set_security_context;\n    if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" { (expression_statement "bVar6 = new_dst & x->set_security_context;" (assignment_expression "bVar6 = new_dst & x->set_security_context" identifier = (binary_expression "new_dst & x->set_security_context" identifier & (field_expression "x->set_security_context" identifier -> field_identifier))) ;) (if_statement "if (bVar6 == 0) {\n      bVar1 = 1;\n    }\n    else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar1 = 1;\n    }" { (expression_statement "bVar1 = 1;" (assignment_expression "bVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }" else (compound_statement "{\n      iVar2 = defaultcon(dst_name,mode);\n      bVar1 = bVar6;\n      if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }\n    }" { (expression_statement "iVar2 = defaultcon(dst_name,mode);" (assignment_expression "iVar2 = defaultcon(dst_name,mode)" identifier = (call_expression "defaultcon(dst_name,mode)" identifier (argument_list "(dst_name,mode)" ( identifier , identifier )))) ;) (expression_statement "bVar1 = bVar6;" (assignment_expression "bVar1 = bVar6" identifier = identifier) ;) (if_statement "if (iVar2 < 0) {\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar3 = __errno_location();\n        iVar2 = *piVar3;\n        bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;\n        if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }\n      }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "bVar1 = iVar2 == 0x3d || iVar2 == 0x5f;" (assignment_expression "bVar1 = iVar2 == 0x3d || iVar2 == 0x5f" identifier = (binary_expression "iVar2 == 0x3d || iVar2 == 0x5f" (binary_expression "iVar2 == 0x3d" identifier == number_literal) || (binary_expression "iVar2 == 0x5f" identifier == number_literal))) ;) (if_statement "if (iVar2 != 0x3d && iVar2 != 0x5f) {\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }" if (parenthesized_expression "(iVar2 != 0x3d && iVar2 != 0x5f)" ( (binary_expression "iVar2 != 0x3d && iVar2 != 0x5f" (binary_expression "iVar2 != 0x3d" identifier != number_literal) && (binary_expression "iVar2 != 0x5f" identifier != number_literal)) )) (compound_statement "{\n          pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);\n          uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar3,uVar5,pcVar4);\n          bVar1 = bVar6;\n        }" { (expression_statement "pcVar4 = quotearg_style(shell_escape_always_quoting_style,dst_name);" (assignment_expression "pcVar4 = 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 "uVar5 = dcgettext(0,"failed to set default file creation context for %s",5);" (assignment_expression "uVar5 = 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,*piVar3,uVar5,pcVar4);" (call_expression "error(0,*piVar3,uVar5,pcVar4)" identifier (argument_list "(0,*piVar3,uVar5,pcVar4)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) (expression_statement "bVar1 = bVar6;" (assignment_expression "bVar1 = bVar6" identifier = identifier) ;) })) })) }))) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {\n    iVar2 = rpl_lgetfilecon(src_name,&con);\n    bVar6 = bVar1;\n    if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar2 = setfscreatecon(con);\n    if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }\n    if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }\nLAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;\n    freecon(con);\n  }\n  else {\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\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    iVar2 = rpl_lgetfilecon(src_name,&con);\n    bVar6 = bVar1;\n    if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar2 = setfscreatecon(con);\n    if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }\n    if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }\nLAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;\n    freecon(con);\n  }" { (expression_statement "iVar2 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar2 = rpl_lgetfilecon(src_name,&con)" identifier = (call_expression "rpl_lgetfilecon(src_name,&con)" identifier (argument_list "(src_name,&con)" ( identifier , (pointer_expression "&con" & identifier) )))) ;) (expression_statement "bVar6 = bVar1;" (assignment_expression "bVar6 = bVar1" identifier = identifier) ;) (if_statement "if (iVar2 < 0) {\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);\n      uVar5 = dcgettext(0,"failed to get security context of %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n      goto LAB_0010663a;\n    }" { (labeled_statement "LAB_001065f5:\n      pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);" statement_identifier : (expression_statement "pcVar4 = quotearg_style(shell_escape_always_quoting_style,src_name);" (assignment_expression "pcVar4 = 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 "uVar5 = dcgettext(0,"failed to get security context of %s",5);" (assignment_expression "uVar5 = 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 "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar3,uVar5,pcVar4);" (call_expression "error(0,*piVar3,uVar5,pcVar4)" identifier (argument_list "(0,*piVar3,uVar5,pcVar4)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) (goto_statement "goto LAB_0010663a;" goto statement_identifier ;) })) (labeled_statement "LAB_0010672b:\n    iVar2 = setfscreatecon(con);" statement_identifier : (expression_statement "iVar2 = setfscreatecon(con);" (assignment_expression "iVar2 = setfscreatecon(con)" identifier = (call_expression "setfscreatecon(con)" identifier (argument_list "(con)" ( identifier )))) ;)) (if_statement "if (-1 < iVar2) {\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\nLAB_00106788:\n      freecon(con);\n      goto LAB_00106662;\n    }" { (labeled_statement "LAB_00106788:\n      freecon(con);" statement_identifier : (expression_statement "freecon(con);" (call_expression "freecon(con)" identifier (argument_list "(con)" ( identifier ))) ;)) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if (bVar6 != 0) {\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0010673d:\n      pcVar4 = quote(con);\n      uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar3 = __errno_location();\n      error(0,*piVar3,uVar5,pcVar4);\n    }" { (labeled_statement "LAB_0010673d:\n      pcVar4 = quote(con);" statement_identifier : (expression_statement "pcVar4 = quote(con);" (assignment_expression "pcVar4 = quote(con)" identifier = (call_expression "quote(con)" identifier (argument_list "(con)" ( identifier )))) ;)) (expression_statement "uVar5 = dcgettext(0,"failed to set default file creation context to %s",5);" (assignment_expression "uVar5 = 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 "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(0,*piVar3,uVar5,pcVar4);" (call_expression "error(0,*piVar3,uVar5,pcVar4)" identifier (argument_list "(0,*piVar3,uVar5,pcVar4)" ( number_literal , (pointer_expression "*piVar3" * identifier) , identifier , identifier ))) ;) })) (labeled_statement "LAB_0010677e:\n    if (x->require_preserve_context == false) goto LAB_00106788;" statement_identifier : (if_statement "if (x->require_preserve_context == false) goto LAB_00106788;" 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) )) (goto_statement "goto LAB_00106788;" goto statement_identifier ;))) (expression_statement "freecon(con);" (call_expression "freecon(con)" identifier (argument_list "(con)" ( identifier ))) ;) }) (else_clause "else {\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\n  }" else (compound_statement "{\n    if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;\n  }" { (if_statement "if (x->reduce_diagnostics == false) {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\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      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar3 = __errno_location();\n      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;\n    }" { (expression_statement "iVar2 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar2 = 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 (-1 < iVar2) {\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        iVar2 = setfscreatecon(con);\n        if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" { (expression_statement "iVar2 = setfscreatecon(con);" (assignment_expression "iVar2 = setfscreatecon(con)" identifier = (call_expression "setfscreatecon(con)" identifier (argument_list "(con)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) {\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n          piVar3 = __errno_location();\n          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;" if (parenthesized_expression "((*piVar3 != 0x5f) && (*piVar3 != 0x3d))" ( (binary_expression "(*piVar3 != 0x5f) && (*piVar3 != 0x3d)" (parenthesized_expression "(*piVar3 != 0x5f)" ( (binary_expression "*piVar3 != 0x5f" (pointer_expression "*piVar3" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar3 != 0x3d)" ( (binary_expression "*piVar3 != 0x3d" (pointer_expression "*piVar3" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_0010673d;" goto statement_identifier ;)) (goto_statement "goto LAB_0010677e;" goto statement_identifier ;) })) (goto_statement "goto LAB_00106788;" goto statement_identifier ;) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;" if (parenthesized_expression "((*piVar3 != 0x5f) && (*piVar3 != 0x3d))" ( (binary_expression "(*piVar3 != 0x5f) && (*piVar3 != 0x3d)" (parenthesized_expression "(*piVar3 != 0x5f)" ( (binary_expression "*piVar3 != 0x5f" (pointer_expression "*piVar3" * identifier) != number_literal) )) && (parenthesized_expression "(*piVar3 != 0x3d)" ( (binary_expression "*piVar3 != 0x3d" (pointer_expression "*piVar3" * identifier) != number_literal) ))) )) (goto_statement "goto LAB_001065f5;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }" else (compound_statement "{\n      iVar2 = rpl_lgetfilecon(src_name,&con);\n      if (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }\n    }" { (expression_statement "iVar2 = rpl_lgetfilecon(src_name,&con);" (assignment_expression "iVar2 = 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 (-1 < iVar2) {\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        bVar6 = 0;\n        goto LAB_0010672b;\n      }" { (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0010672b;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0010663a:\n    if (x->require_preserve_context == false) goto LAB_00106662;" statement_identifier : (if_statement "if (x->require_preserve_context == false) goto LAB_00106662;" 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) )) (goto_statement "goto LAB_00106662;" goto statement_identifier ;))) }))) (expression_statement "bVar1 = 0;" (assignment_expression "bVar1 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return (_Bool)bVar1;" return (cast_expression "(_Bool)bVar1" ( (type_descriptor "_Bool" type_identifier) ) identifier) ;) })))
(translation_unit "ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar6;\n}\n\n" (function_definition "ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar6;\n}" type_identifier (function_declarator "FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "ulong param_4" type_identifier identifier) , (parameter_declaration "long param_5" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar6;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "byte bVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "long local_30;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar5 = *(byte *)(param_5 + 0x25);" (assignment_expression "bVar5 = *(byte *)(param_5 + 0x25)" identifier = (pointer_expression "*(byte *)(param_5 + 0x25)" * (cast_expression "(byte *)(param_5 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_5 + 0x25)" ( (binary_expression "param_5 + 0x25" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (ulong)bVar5;" (assignment_expression "uVar6 = (ulong)bVar5" identifier = (cast_expression "(ulong)bVar5" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" { (expression_statement "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);" (assignment_expression "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" identifier = (binary_expression "(byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" (call_expression "(byte)(param_4 & 0xffffffff)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(param_4 & 0xffffffff)" ( (binary_expression "param_4 & 0xffffffff" identifier & number_literal) ))) & (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) )))))) ;) (expression_statement "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);" (assignment_expression "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" identifier = (call_expression "CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" identifier (argument_list "((int7)((param_4 & 0xffffffff) >> 8),bVar5)" ( (call_expression "(int7)((param_4 & 0xffffffff) >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "((param_4 & 0xffffffff) >> 8)" ( (binary_expression "(param_4 & 0xffffffff) >> 8" (parenthesized_expression "(param_4 & 0xffffffff)" ( (binary_expression "param_4 & 0xffffffff" identifier & number_literal) )) >> number_literal) ))) , identifier )))) ;) (if_statement "if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" if (parenthesized_expression "(bVar5 == 0)" ( (binary_expression "bVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar6 = 1;\n    }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" { (expression_statement "iVar1 = FUN_0010c04e(param_2,param_3);" (assignment_expression "iVar1 = FUN_0010c04e(param_2,param_3)" identifier = (call_expression "FUN_0010c04e(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\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 "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" if (parenthesized_expression "(iVar1 == 0x3d || iVar1 == 0x5f)" ( (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" identifier == number_literal) || (binary_expression "iVar1 == 0x5f" identifier == number_literal)) )) (compound_statement "{\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }" { (expression_statement "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;" (assignment_expression "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" identifier = (binary_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" (call_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" identifier (argument_list "((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" ( (call_expression "(int7)((ulong)piVar2 >> 8)" (parenthesized_expression "(int7)" ( identifier )) (argument_list "((ulong)piVar2 >> 8)" ( (binary_expression "(ulong)piVar2 >> 8" (cast_expression "(ulong)piVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) >> number_literal) ))) , (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" identifier == number_literal) || (binary_expression "iVar1 == 0x5f" identifier == number_literal)) ))) & number_literal)) ;) }) (else_clause "else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" else (compound_statement "{\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" { (expression_statement "uVar3 = FUN_001106eb(4,param_2);" (assignment_expression "uVar3 = FUN_001106eb(4,param_2)" identifier = (call_expression "FUN_001106eb(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 ))) ;) }))) })) }))) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\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_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" { (labeled_statement "LAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);" statement_identifier : (expression_statement "uVar3 = FUN_001106eb(4,param_1);" (assignment_expression "uVar3 = FUN_001106eb(4,param_1)" identifier = (call_expression "FUN_001106eb(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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (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 ))) ;) (goto_statement "goto LAB_0010663a;" goto statement_identifier ;) })) (labeled_statement "LAB_0010672b:\n    iVar1 = setfscreatecon(local_38);" statement_identifier : (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" identifier = (call_expression "setfscreatecon(local_38)" identifier (argument_list "(local_38)" ( identifier )))) ;)) (if_statement "if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" { (labeled_statement "LAB_00106788:\n      freecon(local_38);" statement_identifier : (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;)) (goto_statement "goto LAB_00106662;" goto statement_identifier ;) })) (if_statement "if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" if (parenthesized_expression "(bVar5 != 0)" ( (binary_expression "bVar5 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" { (labeled_statement "LAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);" statement_identifier : (expression_statement "uVar3 = FUN_001109e2(local_38);" (assignment_expression "uVar3 = FUN_001109e2(local_38)" identifier = (call_expression "FUN_001109e2(local_38)" identifier (argument_list "(local_38)" ( 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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (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 ))) ;) })) (labeled_statement "LAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" 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 ')) )) (goto_statement "goto LAB_00106788;" goto statement_identifier ;))) (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) }) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" else (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" { (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\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_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" { (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" identifier = (call_expression "setfscreatecon(local_38)" identifier (argument_list "(local_38)" ( identifier )))) ;) (if_statement "if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\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_0010673d;\n          goto LAB_0010677e;\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_0010673d;" 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_0010673d;" goto statement_identifier ;)) (goto_statement "goto LAB_0010677e;" goto statement_identifier ;) })) (goto_statement "goto LAB_00106788;" goto statement_identifier ;) })) (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_001065f5;" 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_001065f5;" goto statement_identifier ;)) }) (else_clause "else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" else (compound_statement "{\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" { (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" identifier = (call_expression "FUN_001156af(param_1,&local_38)" identifier (argument_list "(param_1,&local_38)" ( identifier , (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" { (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0010672b;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" statement_identifier : (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" 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 ')) )) (goto_statement "goto LAB_00106662;" goto statement_identifier ;))) }))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" statement_identifier : (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_30 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return uVar6;" 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 (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) ))) & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT) ))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) , (binary_expression (binary_expression IDENT == LIT) || (binary_expression IDENT == LIT)) ))) & LIT)) ;) }) (else_clause else (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 ))) ;) }))) })) }))) (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 { (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , IDENT , IDENT ))) ;) })) (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 ')) )) (goto_statement goto statement_identifier ;))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (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 LIT < IDENT) )) (compound_statement { (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 ;)) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (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 ;)) }) (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 LIT < IDENT) )) (compound_statement { (expression_statement (assignment_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 ')) )) (goto_statement goto statement_identifier ;))) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "ulong FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar6;\n}" (type_identifier "ulong") (function_declarator "FUN_00106582(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" (identifier "FUN_00106582") (parameter_list "(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,\n                  long param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "ulong param_4" (type_identifier "ulong") (identifier "param_4")) (, ",") (parameter_declaration "long param_5" (sized_type_specifier "long" (long "long")) (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined8 uVar3;\n  undefined8 uVar4;\n  byte bVar5;\n  ulong uVar6;\n  long in_FS_OFFSET;\n  undefined8 local_38;\n  long local_30;\n  \n  local_30 = *(long *)(in_FS_OFFSET + 0x28);\n  bVar5 = *(byte *)(param_5 + 0x25);\n  uVar6 = (ulong)bVar5;\n  if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }\n  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }\n  uVar6 = 0;\nLAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return uVar6;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "long local_30;" (sized_type_specifier "long" (long "long")) (identifier "local_30") (; ";")) (expression_statement "local_30 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_30 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "bVar5 = *(byte *)(param_5 + 0x25);" (assignment_expression "bVar5 = *(byte *)(param_5 + 0x25)" (identifier "bVar5") (= "=") (pointer_expression "*(byte *)(param_5 + 0x25)" (* "*") (cast_expression "(byte *)(param_5 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_5 + 0x25)" (( "(") (binary_expression "param_5 + 0x25" (identifier "param_5") (+ "+") (number_literal "0x25")) () ")"))))) (; ";")) (expression_statement "uVar6 = (ulong)bVar5;" (assignment_expression "uVar6 = (ulong)bVar5" (identifier "uVar6") (= "=") (cast_expression "(ulong)bVar5" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar5"))) (; ";")) (if_statement "if (bVar5 == 0) {\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" (if "if") (parenthesized_expression "(bVar5 == 0)" (( "(") (binary_expression "bVar5 == 0" (identifier "bVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);\n    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);\n    if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }\n    goto LAB_00106662;\n  }" ({ "{") (expression_statement "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);" (assignment_expression "bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" (identifier "bVar5") (= "=") (binary_expression "(byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21)" (call_expression "(byte)(param_4 & 0xffffffff)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(param_4 & 0xffffffff)" (( "(") (binary_expression "param_4 & 0xffffffff" (identifier "param_4") (& "&") (number_literal "0xffffffff")) () ")"))) (& "&") (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")) () ")")))))) (; ";")) (expression_statement "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);" (assignment_expression "uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" (identifier "uVar6") (= "=") (call_expression "CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5)" (identifier "CONCAT71") (argument_list "((int7)((param_4 & 0xffffffff) >> 8),bVar5)" (( "(") (call_expression "(int7)((param_4 & 0xffffffff) >> 8)" (parenthesized_expression "(int7)" (( "(") (identifier "int7") () ")")) (argument_list "((param_4 & 0xffffffff) >> 8)" (( "(") (binary_expression "(param_4 & 0xffffffff) >> 8" (parenthesized_expression "(param_4 & 0xffffffff)" (( "(") (binary_expression "param_4 & 0xffffffff" (identifier "param_4") (& "&") (number_literal "0xffffffff")) () ")")) (>> ">>") (number_literal "8")) () ")"))) (, ",") (identifier "bVar5") () ")")))) (; ";")) (if_statement "if (bVar5 == 0) {\n      uVar6 = 1;\n    }\n    else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" (if "if") (parenthesized_expression "(bVar5 == 0)" (( "(") (binary_expression "bVar5 == 0" (identifier "bVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar6 = 1;\n    }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_0010c04e(param_2,param_3);\n      if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_0010c04e(param_2,param_3);" (assignment_expression "iVar1 = FUN_0010c04e(param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0010c04e(param_2,param_3)" (identifier "FUN_0010c04e") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }\n      }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        piVar2 = __errno_location();\n        iVar1 = *piVar2;\n        if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\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 "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar1 == 0x3d || iVar1 == 0x5f) {\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }\n        else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" (if "if") (parenthesized_expression "(iVar1 == 0x3d || iVar1 == 0x5f)" (( "(") (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" (identifier "iVar1") (== "==") (number_literal "0x3d")) (|| "||") (binary_expression "iVar1 == 0x5f" (identifier "iVar1") (== "==") (number_literal "0x5f"))) () ")")) (compound_statement "{\n          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;\n        }" ({ "{") (expression_statement "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;" (assignment_expression "uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" (identifier "uVar6") (= "=") (binary_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff" (call_expression "CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" (identifier "CONCAT71") (argument_list "((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f)" (( "(") (call_expression "(int7)((ulong)piVar2 >> 8)" (parenthesized_expression "(int7)" (( "(") (identifier "int7") () ")")) (argument_list "((ulong)piVar2 >> 8)" (( "(") (binary_expression "(ulong)piVar2 >> 8" (cast_expression "(ulong)piVar2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "piVar2")) (>> ">>") (number_literal "8")) () ")"))) (, ",") (binary_expression "iVar1 == 0x3d || iVar1 == 0x5f" (binary_expression "iVar1 == 0x3d" (identifier "iVar1") (== "==") (number_literal "0x3d")) (|| "||") (binary_expression "iVar1 == 0x5f" (identifier "iVar1") (== "==") (number_literal "0x5f"))) () ")"))) (& "&") (number_literal "0xffffffff"))) (; ";")) (} "}")) (else_clause "else {\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" (else "else") (compound_statement "{\n          uVar3 = FUN_001106eb(4,param_2);\n          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);\n          error(0,*piVar2,uVar4,uVar3);\n        }" ({ "{") (expression_statement "uVar3 = FUN_001106eb(4,param_2);" (assignment_expression "uVar3 = FUN_001106eb(4,param_2)" (identifier "uVar3") (= "=") (call_expression "FUN_001106eb(4,param_2)" (identifier "FUN_001106eb") (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") () ")"))) (; ";")) (} "}")))) (} "}"))) (} "}")))) (goto_statement "goto LAB_00106662;" (goto "goto") (statement_identifier "LAB_00106662") (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {\n    iVar1 = FUN_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }\n  else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\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_001156af(param_1,&local_38);\n    if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }\nLAB_0010672b:\n    iVar1 = setfscreatecon(local_38);\n    if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }\n    if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }\nLAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;\n    freecon(local_38);\n  }" ({ "{") (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" (identifier "iVar1") (= "=") (call_expression "FUN_001156af(param_1,&local_38)" (identifier "FUN_001156af") (argument_list "(param_1,&local_38)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);\n      uVar4 = dcgettext(0,"failed to get security context of %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n      goto LAB_0010663a;\n    }" ({ "{") (labeled_statement "LAB_001065f5:\n      uVar3 = FUN_001106eb(4,param_1);" (statement_identifier "LAB_001065f5") (: ":") (expression_statement "uVar3 = FUN_001106eb(4,param_1);" (assignment_expression "uVar3 = FUN_001106eb(4,param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_001106eb(4,param_1)" (identifier "FUN_001106eb") (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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (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") () ")"))) (; ";")) (goto_statement "goto LAB_0010663a;" (goto "goto") (statement_identifier "LAB_0010663a") (; ";")) (} "}"))) (labeled_statement "LAB_0010672b:\n    iVar1 = setfscreatecon(local_38);" (statement_identifier "LAB_0010672b") (: ":") (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(local_38)" (identifier "setfscreatecon") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")")))) (; ";"))) (if_statement "if (-1 < iVar1) {\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\nLAB_00106788:\n      freecon(local_38);\n      goto LAB_00106662;\n    }" ({ "{") (labeled_statement "LAB_00106788:\n      freecon(local_38);" (statement_identifier "LAB_00106788") (: ":") (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" (identifier "freecon") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";"))) (goto_statement "goto LAB_00106662;" (goto "goto") (statement_identifier "LAB_00106662") (; ";")) (} "}"))) (if_statement "if (bVar5 != 0) {\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" (if "if") (parenthesized_expression "(bVar5 != 0)" (( "(") (binary_expression "bVar5 != 0" (identifier "bVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);\n      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);\n      piVar2 = __errno_location();\n      error(0,*piVar2,uVar4,uVar3);\n    }" ({ "{") (labeled_statement "LAB_0010673d:\n      uVar3 = FUN_001109e2(local_38);" (statement_identifier "LAB_0010673d") (: ":") (expression_statement "uVar3 = FUN_001109e2(local_38);" (assignment_expression "uVar3 = FUN_001109e2(local_38)" (identifier "uVar3") (= "=") (call_expression "FUN_001109e2(local_38)" (identifier "FUN_001109e2") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")")))) (; ";"))) (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 "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (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") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0010677e:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" (statement_identifier "LAB_0010677e") (: ":") (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;" (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") (' "'"))) () ")")) (goto_statement "goto LAB_00106788;" (goto "goto") (statement_identifier "LAB_00106788") (; ";")))) (expression_statement "freecon(local_38);" (call_expression "freecon(local_38)" (identifier "freecon") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" (else "else") (compound_statement "{\n    if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }\nLAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;\n  }" ({ "{") (if_statement "if (*(char *)(param_5 + 0x29) == '\0') {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }\n    else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\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_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }\n      piVar2 = __errno_location();\n      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;\n    }" ({ "{") (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" (identifier "iVar1") (= "=") (call_expression "FUN_001156af(param_1,&local_38)" (identifier "FUN_001156af") (argument_list "(param_1,&local_38)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n        iVar1 = setfscreatecon(local_38);\n        if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\n        }\n        goto LAB_00106788;\n      }" ({ "{") (expression_statement "iVar1 = setfscreatecon(local_38);" (assignment_expression "iVar1 = setfscreatecon(local_38)" (identifier "iVar1") (= "=") (call_expression "setfscreatecon(local_38)" (identifier "setfscreatecon") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n          piVar2 = __errno_location();\n          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;\n          goto LAB_0010677e;\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_0010673d;\n          goto LAB_0010677e;\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_0010673d;" (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_0010673d;" (goto "goto") (statement_identifier "LAB_0010673d") (; ";"))) (goto_statement "goto LAB_0010677e;" (goto "goto") (statement_identifier "LAB_0010677e") (; ";")) (} "}"))) (goto_statement "goto LAB_00106788;" (goto "goto") (statement_identifier "LAB_00106788") (; ";")) (} "}"))) (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_001065f5;" (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_001065f5;" (goto "goto") (statement_identifier "LAB_001065f5") (; ";"))) (} "}")) (else_clause "else {\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_001156af(param_1,&local_38);\n      if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }\n    }" ({ "{") (expression_statement "iVar1 = FUN_001156af(param_1,&local_38);" (assignment_expression "iVar1 = FUN_001156af(param_1,&local_38)" (identifier "iVar1") (= "=") (call_expression "FUN_001156af(param_1,&local_38)" (identifier "FUN_001156af") (argument_list "(param_1,&local_38)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n        bVar5 = 0;\n        goto LAB_0010672b;\n      }" ({ "{") (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0010672b;" (goto "goto") (statement_identifier "LAB_0010672b") (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_0010663a:\n    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" (statement_identifier "LAB_0010663a") (: ":") (if_statement "if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;" (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") (' "'"))) () ")")) (goto_statement "goto LAB_00106662;" (goto "goto") (statement_identifier "LAB_00106662") (; ";")))) (} "}")))) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00106662:\n  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (statement_identifier "LAB_00106662") (: ":") (if_statement "if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_30 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_30 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_30") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}")))

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

{
  type_4 bVar1;
  int var_5;
  int *piVar3;
  char *pcVar4;
  type_5 uVar5;
  type_4 var_3;
  long var_1;
  char *con;
  long var_14;
  
  var_14 = *(long *)(var_1 + 0x28);
  bVar1 = x->preserve_security_context;
  if ((type_1)bVar1 == false) {
    var_3 = var_2 & x->set_security_context;
    if (var_3 == 0) {
      bVar1 = 1;
    }
    else {
      var_5 = var_4(dst_name,mode);
      bVar1 = var_3;
      if (var_5 < 0) {
        piVar3 = var_6();
        var_5 = *piVar3;
        bVar1 = var_5 == 0x3d || var_5 == 0x5f;
        if (var_5 != 0x3d && var_5 != 0x5f) {
          pcVar4 = var_7(shell_escape_always_quoting_style,dst_name);
          uVar5 = var_8(0,"failed to set default file creation context for %s",5);
          var_9(0,*piVar3,uVar5,pcVar4);
          bVar1 = var_3;
        }
      }
    }
    goto LAB_00106662;
  }
  if ((x->data_copy_required == false) || (x->require_preserve_context != false)) {
    var_5 = var_10(src_name,&con);
    var_3 = bVar1;
    if (var_5 < 0) {
LAB_001065f5:
      pcVar4 = var_7(shell_escape_always_quoting_style,src_name);
      uVar5 = var_8(0,"failed to get security context of %s",5);
      piVar3 = var_6();
      var_9(0,*piVar3,uVar5,pcVar4);
      goto LAB_0010663a;
    }
LAB_0010672b:
    var_5 = var_11(con);
    if (-1 < var_5) {
LAB_00106788:
      var_12(con);
      goto LAB_00106662;
    }
    if (var_3 != 0) {
LAB_0010673d:
      pcVar4 = var_13(con);
      uVar5 = var_8(0,"failed to set default file creation context to %s",5);
      piVar3 = var_6();
      var_9(0,*piVar3,uVar5,pcVar4);
    }
LAB_0010677e:
    if (x->require_preserve_context == false) goto LAB_00106788;
    var_12(con);
  }
  else {
    if (x->reduce_diagnostics == false) {
      var_5 = var_10(src_name,&con);
      if (-1 < var_5) {
        var_5 = var_11(con);
        if (var_5 < 0) {
          piVar3 = var_6();
          if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_0010673d;
          goto LAB_0010677e;
        }
        goto LAB_00106788;
      }
      piVar3 = var_6();
      if ((*piVar3 != 0x5f) && (*piVar3 != 0x3d)) goto LAB_001065f5;
    }
    else {
      var_5 = var_10(src_name,&con);
      if (-1 < var_5) {
        var_3 = 0;
        goto LAB_0010672b;
      }
    }
LAB_0010663a:
    if (x->require_preserve_context == false) goto LAB_00106662;
  }
  bVar1 = 0;
LAB_00106662:
  if (var_14 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return (type_1)bVar1;
}


(translation_unit (function_definition type: (type_identifier) 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: (sized_type_specifier) 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) 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)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) alternative: (else_clause (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)))))))))))) (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 (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))) (goto_statement label: (statement_identifier)))) (labeled_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: (number_literal) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))))) (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: (goto_statement label: (statement_identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (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: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier)))) (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)))) 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: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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)))))

ulong MASKED(undefined8 param_1,undefined8 param_2,undefined4 param_3,ulong param_4,
                  long param_5)

{
  int iVar1;
  int *piVar2;
  undefined8 uVar3;
  undefined8 uVar4;
  byte bVar5;
  ulong uVar6;
  long in_FS_OFFSET;
  undefined8 local_38;
  long local_30;
  
  local_30 = *(long *)(in_FS_OFFSET + 0x28);
  bVar5 = *(byte *)(param_5 + 0x25);
  uVar6 = (ulong)bVar5;
  if (bVar5 == 0) {
    bVar5 = (byte)(param_4 & 0xffffffff) & *(byte *)(param_5 + 0x21);
    uVar6 = CONCAT71((int7)((param_4 & 0xffffffff) >> 8),bVar5);
    if (bVar5 == 0) {
      uVar6 = 1;
    }
    else {
      iVar1 = FUN_0010c04e(param_2,param_3);
      if (iVar1 < 0) {
        piVar2 = __errno_location();
        iVar1 = *piVar2;
        if (iVar1 == 0x3d || iVar1 == 0x5f) {
          uVar6 = CONCAT71((int7)((ulong)piVar2 >> 8),iVar1 == 0x3d || iVar1 == 0x5f) & 0xffffffff;
        }
        else {
          uVar3 = FUN_001106eb(4,param_2);
          uVar4 = dcgettext(0,"failed to set default file creation context for %s",5);
          error(0,*piVar2,uVar4,uVar3);
        }
      }
    }
    goto LAB_00106662;
  }
  if ((*(char *)(param_5 + 0x23) == '\0') || (*(char *)(param_5 + 0x26) != '\0')) {
    iVar1 = FUN_001156af(param_1,&local_38);
    if (iVar1 < 0) {
LAB_001065f5:
      uVar3 = FUN_001106eb(4,param_1);
      uVar4 = dcgettext(0,"failed to get security context of %s",5);
      piVar2 = __errno_location();
      error(0,*piVar2,uVar4,uVar3);
      goto LAB_0010663a;
    }
LAB_0010672b:
    iVar1 = setfscreatecon(local_38);
    if (-1 < iVar1) {
LAB_00106788:
      freecon(local_38);
      goto LAB_00106662;
    }
    if (bVar5 != 0) {
LAB_0010673d:
      uVar3 = FUN_001109e2(local_38);
      uVar4 = dcgettext(0,"failed to set default file creation context to %s",5);
      piVar2 = __errno_location();
      error(0,*piVar2,uVar4,uVar3);
    }
LAB_0010677e:
    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106788;
    freecon(local_38);
  }
  else {
    if (*(char *)(param_5 + 0x29) == '\0') {
      iVar1 = FUN_001156af(param_1,&local_38);
      if (-1 < iVar1) {
        iVar1 = setfscreatecon(local_38);
        if (iVar1 < 0) {
          piVar2 = __errno_location();
          if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_0010673d;
          goto LAB_0010677e;
        }
        goto LAB_00106788;
      }
      piVar2 = __errno_location();
      if ((*piVar2 != 0x5f) && (*piVar2 != 0x3d)) goto LAB_001065f5;
    }
    else {
      iVar1 = FUN_001156af(param_1,&local_38);
      if (-1 < iVar1) {
        bVar5 = 0;
        goto LAB_0010672b;
      }
    }
LAB_0010663a:
    if (*(char *)(param_5 + 0x26) == '\0') goto LAB_00106662;
  }
  uVar6 = 0;
LAB_00106662:
  if (local_30 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return uVar6;
}

