
/* DWARF original prototype: void add_sysroot(Search_directory * this, char * sysroot, char *
   canonical_sysroot) */

void __thiscall
gold::Search_directory::add_sysroot(Search_directory *this,char *sysroot,char *canonical_sysroot)

{
  size_type sVar1;
  char *pcVar2;
  size_t sVar3;
  size_t sVar4;
  uint *puVar5;
  int iVar6;
  int unaff_EDI;
  string *local_48;
  uint local_44;
  uint *local_40;
  uint *local_34;
  size_t local_30;
  uint local_2c [7];
  
  __x86_get_pc_thunk_di();
  if (*sysroot == '\0') {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));
  }
  pcVar2 = (this->name_)._M_dataplus._M_p;
  if (this->put_in_sysroot_ == false) {
    pcVar2 = lrealpath(pcVar2);
    sVar3 = strlen(pcVar2);
    sVar4 = strlen(canonical_sysroot);
    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {
      pcVar2[sVar4] = '\0';
      iVar6 = filename_cmp(pcVar2,canonical_sysroot);
      if (iVar6 == 0) {
        this->is_in_sysroot_ = true;
      }
    }
    free(pcVar2);
    return;
  }
  local_44 = strlen(sysroot);
  sVar1 = (this->name_)._M_string_length;
  if ((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')) {
    local_30 = 0;
    local_2c[0] = local_2c[0] & 0xffffff00;
    local_34 = local_2c;
                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */
    std::string::reserve((string *)&local_34,sVar1 + 1);
    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');
    std::string::_M_append
              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);
    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
    if (local_34 == local_2c) {
      if (local_30 != 0) {
        if (local_30 == 1) {
          *(undefined1 *)puVar5 = (undefined1)local_2c[0];
          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
        }
        else {
          memcpy(puVar5,local_2c,local_30);
          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
        }
      }
      (this->name_)._M_string_length = local_30;
      *(undefined1 *)((int)puVar5 + local_30) = 0;
      sVar1 = local_2c[0];
    }
    else {
      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
           *)puVar5 == &(this->name_).field_2) {
        (this->name_)._M_dataplus._M_p = (pointer)local_34;
        (this->name_)._M_string_length = local_30;
        (this->name_).field_2._M_allocated_capacity = local_2c[0];
      }
      else {
        (this->name_)._M_dataplus._M_p = (pointer)local_34;
        sVar1 = (this->name_).field_2._M_allocated_capacity;
        (this->name_)._M_string_length = local_30;
        (this->name_).field_2._M_allocated_capacity = local_2c[0];
        local_34 = puVar5;
        if (puVar5 != (uint *)0x0) goto LAB_000d849e;
      }
      local_34 = local_2c;
      sVar1 = local_2c[0];
    }
LAB_000d849e:
    local_2c[0] = sVar1;
    local_40 = local_2c;
    local_30 = 0;
    *(undefined1 *)local_34 = 0;
    if (local_34 != local_40) {
      operator_delete(local_34);
    }
    local_44 = strlen(sysroot);
    sVar1 = (this->name_)._M_string_length;
  }
  local_40 = local_2c;
  local_48 = (string *)&local_34;
  local_34 = local_40;
  local_30 = 0;
  local_2c[0] = local_2c[0] & 0xffffff00;
                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */
  std::string::reserve(local_48,sVar1 + local_44);
  if (0x7fffffff - local_30 < local_44) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */
    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));
  }
  std::string::_M_append(local_48,sysroot,local_44);
  std::string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);
  puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
  if (local_34 == local_40) {
    if (local_30 != 0) {
      if (local_30 == 1) {
        *(undefined1 *)puVar5 = (undefined1)local_2c[0];
        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
      }
      else {
        memcpy(puVar5,local_40,local_30);
        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;
      }
    }
    (this->name_)._M_string_length = local_30;
    *(undefined1 *)((int)puVar5 + local_30) = 0;
    sVar1 = local_2c[0];
  }
  else {
    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9
         *)puVar5 == &(this->name_).field_2) {
      (this->name_)._M_dataplus._M_p = (pointer)local_34;
      (this->name_)._M_string_length = local_30;
      (this->name_).field_2._M_allocated_capacity = local_2c[0];
    }
    else {
      (this->name_)._M_dataplus._M_p = (pointer)local_34;
      sVar1 = (this->name_).field_2._M_allocated_capacity;
      (this->name_)._M_string_length = local_30;
      (this->name_).field_2._M_allocated_capacity = local_2c[0];
      local_34 = puVar5;
      if (puVar5 != (uint *)0x0) goto LAB_000d8379;
    }
    local_34 = local_40;
    sVar1 = local_2c[0];
  }
LAB_000d8379:
  local_2c[0] = sVar1;
  local_40 = local_2c;
  local_30 = 0;
  *(undefined1 *)local_34 = 0;
  if (local_34 != local_40) {
    operator_delete(local_34);
  }
  this->is_in_sysroot_ = true;
  return;
}



void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)

{
  uint uVar1;
  char *pcVar2;
  size_t sVar3;
  size_t sVar4;
  uint *puVar5;
  int iVar6;
  undefined4 extraout_ECX;
  int unaff_EDI;
  uint **local_48;
  uint local_44;
  uint *local_40;
  uint *local_34;
  size_t local_30;
  uint local_2c [7];
  
  FUN_00058c4a();
  if (*param_2 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);
  }
  pcVar2 = (char *)*param_1;
  if (*(char *)(param_1 + 6) == '\0') {
    pcVar2 = (char *)FUN_001a9a30(pcVar2);
    sVar3 = strlen(pcVar2);
    sVar4 = strlen(param_3);
    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {
      pcVar2[sVar4] = '\0';
      iVar6 = FUN_001a9830(pcVar2,param_3);
      if (iVar6 == 0) {
        *(undefined1 *)((int)param_1 + 0x19) = 1;
      }
    }
    free(pcVar2);
    return;
  }
  local_44 = strlen(param_2);
  iVar6 = param_1[1];
  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {
    local_30 = 0;
    local_2c[0] = local_2c[0] & 0xffffff00;
    local_34 = local_2c;
                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */
    FUN_001b4700(&local_34,iVar6 + 1);
    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);
    FUN_001b5c80(&local_34,*param_1,param_1[1]);
    puVar5 = (uint *)*param_1;
    if (local_34 == local_2c) {
      if (local_30 != 0) {
        if (local_30 == 1) {
          *(undefined1 *)puVar5 = (undefined1)local_2c[0];
          puVar5 = (uint *)*param_1;
        }
        else {
          memcpy(puVar5,local_2c,local_30);
          puVar5 = (uint *)*param_1;
        }
      }
      param_1[1] = local_30;
      *(undefined1 *)((int)puVar5 + local_30) = 0;
      uVar1 = local_2c[0];
    }
    else {
      if (puVar5 == param_1 + 2) {
        *param_1 = local_34;
        param_1[1] = local_30;
        param_1[2] = local_2c[0];
      }
      else {
        *param_1 = local_34;
        uVar1 = param_1[2];
        param_1[1] = local_30;
        param_1[2] = local_2c[0];
        local_34 = puVar5;
        if (puVar5 != (uint *)0x0) goto LAB_000d849e;
      }
      local_34 = local_2c;
      uVar1 = local_2c[0];
    }
LAB_000d849e:
    local_2c[0] = uVar1;
    local_40 = local_2c;
    local_30 = 0;
    *(undefined1 *)local_34 = 0;
    if (local_34 != local_40) {
      FUN_001ac470(local_34);
    }
    local_44 = strlen(param_2);
    iVar6 = param_1[1];
  }
  local_40 = local_2c;
  local_48 = &local_34;
  local_34 = local_40;
  local_30 = 0;
  local_2c[0] = local_2c[0] & 0xffffff00;
                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */
  FUN_001b4700(local_48,iVar6 + local_44);
  if (0x7fffffff - local_30 < local_44) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */
    FUN_001f1e60(unaff_EDI + 0x179df2);
  }
  FUN_001b5c80(local_48,param_2,local_44);
  FUN_001b5c80(local_48,*param_1,param_1[1]);
  puVar5 = (uint *)*param_1;
  if (local_34 == local_40) {
    if (local_30 != 0) {
      if (local_30 == 1) {
        *(undefined1 *)puVar5 = (undefined1)local_2c[0];
        puVar5 = (uint *)*param_1;
      }
      else {
        memcpy(puVar5,local_40,local_30);
        puVar5 = (uint *)*param_1;
      }
    }
    param_1[1] = local_30;
    *(undefined1 *)((int)puVar5 + local_30) = 0;
    uVar1 = local_2c[0];
  }
  else {
    if (puVar5 == param_1 + 2) {
      *param_1 = local_34;
      param_1[1] = local_30;
      param_1[2] = local_2c[0];
    }
    else {
      *param_1 = local_34;
      uVar1 = param_1[2];
      param_1[1] = local_30;
      param_1[2] = local_2c[0];
      local_34 = puVar5;
      if (puVar5 != (uint *)0x0) goto LAB_000d8379;
    }
    local_34 = local_40;
    uVar1 = local_2c[0];
  }
LAB_000d8379:
  local_2c[0] = uVar1;
  local_40 = local_2c;
  local_30 = 0;
  *(undefined1 *)local_34 = 0;
  if (local_34 != local_40) {
    FUN_001ac470(local_34);
  }
  *(undefined1 *)((int)param_1 + 0x19) = 1;
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x00058c4a
ADD EDI,0x266d87
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV EAX,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
CMP byte ptr [EAX],0x0
JZ 0x000d85f0
CMP byte ptr [ESI + 0x18],0x0
MOV EDX,dword ptr [ESI]
JZ 0x000d83c0
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
MOV EBX,EDI
MOV dword ptr [EBP + -0x3c],EDX
CALL 0x000285f0
MOV EDX,dword ptr [EBP + -0x3c]
ADD ESP,0x10
MOV dword ptr [EBP + -0x40],EAX
MOV EAX,dword ptr [ESI + 0x4]
CMP byte ptr [EDX],0x2f
JZ 0x000d83a8
MOV EDX,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EBP + -0x40]
CMP byte ptr [EDX + ECX*0x1 + -0x1],0x2f
JNZ 0x000d8410
LEA EBX,[EBP + -0x30]
LEA ECX,[EBP + -0x28]
MOV dword ptr [EBP + -0x44],EBX
MOV dword ptr [EBP + -0x3c],ECX
SUB ESP,0x8
ADD EAX,dword ptr [EBP + -0x40]
MOV ECX,dword ptr [EBP + -0x3c]
MOV EBX,EDI
PUSH EAX
PUSH dword ptr [EBP + -0x44]
MOV dword ptr [EBP + -0x30],ECX
MOV dword ptr [EBP + -0x2c],0x0
MOV byte ptr [EBP + -0x28],0x0
CALL 0x001b4700
MOV EAX,0x7fffffff
ADD ESP,0x10
SUB EAX,dword ptr [EBP + -0x2c]
CMP EAX,dword ptr [EBP + -0x40]
JC 0x000d860b
SUB ESP,0x4
PUSH dword ptr [EBP + -0x40]
PUSH dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + -0x44]
CALL 0x001b5c80
ADD ESP,0xc
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [ESI]
PUSH dword ptr [EBP + -0x44]
CALL 0x001b5c80
ADD ESP,0x10
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [EBP + -0x30]
MOV EDX,dword ptr [EBP + -0x2c]
CMP ECX,dword ptr [EBP + -0x3c]
JZ 0x000d84e0
MOV EBX,dword ptr [EBP + -0x28]
MOV dword ptr [EBP + -0x40],EBX
LEA EBX,[ESI + 0x8]
CMP EAX,EBX
JZ 0x000d8560
MOV dword ptr [ESI],ECX
MOV ECX,dword ptr [EBP + -0x40]
MOV EBX,dword ptr [ESI + 0x8]
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI + 0x8],ECX
TEST EAX,EAX
JZ 0x000d856b
MOV dword ptr [EBP + -0x30],EAX
MOV dword ptr [EBP + -0x28],EBX
MOV dword ptr [EBP + -0x2c],0x0
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x3c]
JZ 0x000d8399
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x001ac470
ADD ESP,0x10
MOV byte ptr [ESI + 0x19],0x1
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[EBP + -0x30]
MOV dword ptr [EBP + -0x44],ECX
LEA ECX,[EBP + -0x28]
MOV dword ptr [EBP + -0x3c],ECX
JMP 0x000d82e1
SUB ESP,0xc
MOV EBX,EDI
PUSH EDX
CALL 0x001a9a30
MOV dword ptr [ESP],EAX
MOV dword ptr [EBP + -0x3c],EAX
CALL 0x000285f0
POP EDX
PUSH dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x40],EAX
CALL 0x000285f0
ADD ESP,0x10
CMP dword ptr [EBP + -0x40],EAX
JLE 0x000d83f6
ADD EAX,dword ptr [EBP + -0x3c]
CMP byte ptr [EAX],0x2f
JZ 0x000d8580
SUB ESP,0xc
PUSH dword ptr [EBP + -0x3c]
MOV EBX,EDI
CALL 0x00028420
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[EBP + -0x30]
SUB ESP,0x8
ADD EAX,0x1
MOV dword ptr [EBP + -0x2c],0x0
PUSH EAX
LEA EDX,[EBP + -0x28]
PUSH ECX
MOV dword ptr [EBP + -0x3c],EDX
MOV dword ptr [EBP + -0x30],EDX
MOV byte ptr [EBP + -0x28],0x0
MOV dword ptr [EBP + -0x44],ECX
CALL 0x001b4700
MOV dword ptr [ESP],0x2f
PUSH 0x1
PUSH 0x0
PUSH dword ptr [EBP + -0x2c]
PUSH dword ptr [EBP + -0x44]
CALL 0x001b4cf0
ADD ESP,0x1c
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [ESI]
PUSH dword ptr [EBP + -0x44]
CALL 0x001b5c80
ADD ESP,0x10
MOV EAX,dword ptr [ESI]
MOV ECX,dword ptr [EBP + -0x30]
MOV EDX,dword ptr [EBP + -0x2c]
CMP ECX,dword ptr [EBP + -0x3c]
JZ 0x000d8520
MOV EBX,dword ptr [EBP + -0x28]
MOV dword ptr [EBP + -0x40],EBX
LEA EBX,[ESI + 0x8]
CMP EAX,EBX
JZ 0x000d85a8
MOV dword ptr [ESI],ECX
MOV ECX,dword ptr [EBP + -0x40]
MOV EBX,dword ptr [ESI + 0x8]
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI + 0x8],ECX
TEST EAX,EAX
JZ 0x000d85b3
MOV dword ptr [EBP + -0x30],EAX
MOV dword ptr [EBP + -0x28],EBX
MOV dword ptr [EBP + -0x2c],0x0
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + -0x30]
CMP EAX,dword ptr [EBP + -0x3c]
JZ 0x000d84be
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x001ac470
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [EBP + 0xc]
MOV EBX,EDI
CALL 0x000285f0
ADD ESP,0x10
MOV dword ptr [EBP + -0x40],EAX
MOV EAX,dword ptr [ESI + 0x4]
JMP 0x000d82e1
TEST EDX,EDX
JZ 0x000d8508
CMP EDX,0x1
JZ 0x000d85c8
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [EBP + -0x3c]
PUSH EAX
CALL 0x000285c0
MOV EDX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
LEA ESI,[ESI]
MOV dword ptr [ESI + 0x4],EDX
MOV byte ptr [EAX + EDX*0x1],0x0
MOV EAX,dword ptr [EBP + -0x30]
JMP 0x000d8379
TEST EDX,EDX
JZ 0x000d8548
CMP EDX,0x1
JZ 0x000d85e0
SUB ESP,0x4
PUSH EDX
PUSH dword ptr [EBP + -0x3c]
PUSH EAX
CALL 0x000285c0
MOV EDX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
LEA ESI,[ESI]
MOV dword ptr [ESI + 0x4],EDX
MOV byte ptr [EAX + EDX*0x1],0x0
MOV EAX,dword ptr [EBP + -0x30]
JMP 0x000d849e
MOV EAX,dword ptr [EBP + -0x40]
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x30],EAX
LEA EAX,[EBP + -0x28]
MOV dword ptr [EBP + -0x3c],EAX
JMP 0x000d8379
SUB ESP,0x8
MOV byte ptr [EAX],0x0
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EBP + -0x3c]
CALL 0x001a9830
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000d83f6
MOV byte ptr [ESI + 0x19],0x1
JMP 0x000d83f6
MOV EAX,dword ptr [EBP + -0x40]
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x4],EDX
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x30],EAX
LEA EAX,[EBP + -0x28]
MOV dword ptr [EBP + -0x3c],EAX
JMP 0x000d849e
MOVZX EDX,byte ptr [EBP + -0x28]
MOV byte ptr [EAX],DL
MOV EDX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [ESI]
JMP 0x000d8508
MOVZX EDX,byte ptr [EBP + -0x28]
MOV byte ptr [EAX],DL
MOV EDX,dword ptr [EBP + -0x2c]
MOV EAX,dword ptr [ESI]
JMP 0x000d8548
LEA EAX,[EDI + 0xfff1cec8]
PUSH ECX
MOV EBX,EDI
PUSH EAX
LEA EAX,[EDI + 0xfff18ce3]
PUSH 0x574
PUSH EAX
CALL 0x0008b620
SUB ESP,0xc
LEA EAX,[EDI + 0xfff1306b]
PUSH EAX
CALL 0x001f1e60
(translation_unit "void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}\n\n" (function_definition "void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "uint **local_48;" type_identifier (pointer_declarator "**local_48" * (pointer_declarator "*local_48" * identifier)) ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "uint *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "uint *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "uint local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*param_2 == '\0') {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" { comment (expression_statement "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);" (call_expression "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" identifier (argument_list "(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" ( (binary_expression "unaff_EDI + 0x17fa6a" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x183c4f" identifier + number_literal) , identifier ))) ;) })) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" ( (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" { (expression_statement "pcVar2 = (char *)FUN_001a9a30(pcVar2);" (assignment_expression "pcVar2 = (char *)FUN_001a9a30(pcVar2)" identifier = (cast_expression "(char *)FUN_001a9a30(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9a30(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) (expression_statement "sVar3 = strlen(pcVar2);" (assignment_expression "sVar3 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (if_statement "if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" if (parenthesized_expression "(((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/'))" ( (binary_expression "((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')" (parenthesized_expression "((int)sVar4 < (int)sVar3)" ( (binary_expression "(int)sVar4 < (int)sVar3" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(pcVar2[sVar4] == '/')" ( (binary_expression "pcVar2[sVar4] == '/'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" { (expression_statement "pcVar2[sVar4] = '\0';" (assignment_expression "pcVar2[sVar4] = '\0'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar6 = FUN_001a9830(pcVar2,param_3);" (assignment_expression "iVar6 = FUN_001a9830(pcVar2,param_3)" identifier = (call_expression "FUN_001a9830(pcVar2,param_3)" identifier (argument_list "(pcVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" { (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) })) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" if (parenthesized_expression "((*pcVar2 != '/') && (param_2[local_44 - 1] != '/'))" ( (binary_expression "(*pcVar2 != '/') && (param_2[local_44 - 1] != '/')" (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(param_2[local_44 - 1] != '/')" ( (binary_expression "param_2[local_44 - 1] != '/'" (subscript_expression "param_2[local_44 - 1]" identifier [ (binary_expression "local_44 - 1" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) comment (expression_statement "FUN_001b4700(&local_34,iVar6 + 1);" (call_expression "FUN_001b4700(&local_34,iVar6 + 1)" identifier (argument_list "(&local_34,iVar6 + 1)" ( (pointer_expression "&local_34" & identifier) , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_001b4cf0(&local_34,local_30,0,1,0x2f);" (call_expression "FUN_001b4cf0(&local_34,local_30,0,1,0x2f)" identifier (argument_list "(&local_34,local_30,0,1,0x2f)" ( (pointer_expression "&local_34" & identifier) , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "FUN_001b5c80(&local_34,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(&local_34,*param_1,param_1[1])" identifier (argument_list "(&local_34,*param_1,param_1[1])" ( (pointer_expression "&local_34" & identifier) , (pointer_expression "*param_1" * identifier) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" if (parenthesized_expression "(local_34 == local_2c)" ( (binary_expression "local_34 == local_2c" identifier == identifier) )) (compound_statement "{\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }" { (if_statement "if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" { (if_statement "if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" else (compound_statement "{\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" { (expression_statement "memcpy(puVar5,local_2c,local_30);" (call_expression "memcpy(puVar5,local_2c,local_30)" identifier (argument_list "(puVar5,local_2c,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" else (compound_statement "{\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" { (if_statement "if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" if (parenthesized_expression "(puVar5 == param_1 + 2)" ( (binary_expression "puVar5 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" else (compound_statement "{\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d849e;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d849e;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d849e:\n    local_2c[0] = uVar1;" statement_identifier : (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n      FUN_001ac470(local_34);\n    }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_48 = &local_34;" (assignment_expression "local_48 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) comment (expression_statement "FUN_001b4700(local_48,iVar6 + local_44);" (call_expression "FUN_001b4700(local_48,iVar6 + local_44)" identifier (argument_list "(local_48,iVar6 + local_44)" ( identifier , (binary_expression "iVar6 + local_44" identifier + identifier) ))) ;) (if_statement "if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" if (parenthesized_expression "(0x7fffffff - local_30 < local_44)" ( (binary_expression "0x7fffffff - local_30 < local_44" (binary_expression "0x7fffffff - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" { comment comment (expression_statement "FUN_001f1e60(unaff_EDI + 0x179df2);" (call_expression "FUN_001f1e60(unaff_EDI + 0x179df2)" identifier (argument_list "(unaff_EDI + 0x179df2)" ( (binary_expression "unaff_EDI + 0x179df2" identifier + number_literal) ))) ;) })) (expression_statement "FUN_001b5c80(local_48,param_2,local_44);" (call_expression "FUN_001b5c80(local_48,param_2,local_44)" identifier (argument_list "(local_48,param_2,local_44)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001b5c80(local_48,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(local_48,*param_1,param_1[1])" identifier (argument_list "(local_48,*param_1,param_1[1])" ( identifier , (pointer_expression "*param_1" * identifier) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" if (parenthesized_expression "(local_34 == local_40)" ( (binary_expression "local_34 == local_40" identifier == identifier) )) (compound_statement "{\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }" { (if_statement "if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" { (if_statement "if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" else (compound_statement "{\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" { (expression_statement "memcpy(puVar5,local_40,local_30);" (call_expression "memcpy(puVar5,local_40,local_30)" identifier (argument_list "(puVar5,local_40,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" else (compound_statement "{\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" { (if_statement "if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" if (parenthesized_expression "(puVar5 == param_1 + 2)" ( (binary_expression "puVar5 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" else (compound_statement "{\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d8379;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d8379;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d8379:\n  local_2c[0] = uVar1;" statement_identifier : (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n    FUN_001ac470(local_34);\n  }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_sysroot(Search_directory * this, char * sysroot, char *\n   canonical_sysroot) */\n\nvoid __thiscall\ngold::Search_directory::add_sysroot(Search_directory *this,char *sysroot,char *canonical_sysroot)\n\n{\n  size_type sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  int unaff_EDI;\n  string *local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  if (*sysroot == '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));\n  }\n  pcVar2 = (this->name_)._M_dataplus._M_p;\n  if (this->put_in_sysroot_ == false) {\n    pcVar2 = lrealpath(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(canonical_sysroot);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(sysroot);\n  sVar1 = (this->name_)._M_string_length;\n  if ((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    std::string::reserve((string *)&local_34,sVar1 + 1);\n    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');\n    std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = sVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      operator_delete(local_34);\n    }\n    local_44 = strlen(sysroot);\n    sVar1 = (this->name_)._M_string_length;\n  }\n  local_40 = local_2c;\n  local_48 = (string *)&local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  std::string::reserve(local_48,sVar1 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));\n  }\n  std::string::_M_append(local_48,sysroot,local_44);\n  std::string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n  puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }\n    (this->name_)._M_string_length = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    sVar1 = local_2c[0];\n  }\n  else {\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = sVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    operator_delete(local_34);\n  }\n  this->is_in_sysroot_ = true;\n  return;\n}\n\n" comment (function_definition "void __thiscall\ngold::Search_directory::add_sysroot(Search_directory *this,char *sysroot,char *canonical_sysroot)\n\n{\n  size_type sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  int unaff_EDI;\n  string *local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  if (*sysroot == '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));\n  }\n  pcVar2 = (this->name_)._M_dataplus._M_p;\n  if (this->put_in_sysroot_ == false) {\n    pcVar2 = lrealpath(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(canonical_sysroot);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(sysroot);\n  sVar1 = (this->name_)._M_string_length;\n  if ((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    std::string::reserve((string *)&local_34,sVar1 + 1);\n    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');\n    std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = sVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      operator_delete(local_34);\n    }\n    local_44 = strlen(sysroot);\n    sVar1 = (this->name_)._M_string_length;\n  }\n  local_40 = local_2c;\n  local_48 = (string *)&local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  std::string::reserve(local_48,sVar1 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));\n  }\n  std::string::_M_append(local_48,sysroot,local_44);\n  std::string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n  puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }\n    (this->name_)._M_string_length = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    sVar1 = local_2c[0];\n  }\n  else {\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = sVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    operator_delete(local_34);\n  }\n  this->is_in_sysroot_ = true;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Search_directory::" identifier : : identifier : :) (function_declarator "add_sysroot(Search_directory *this,char *sysroot,char *canonical_sysroot)" identifier (parameter_list "(Search_directory *this,char *sysroot,char *canonical_sysroot)" ( (parameter_declaration "Search_directory *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *sysroot" primitive_type (pointer_declarator "*sysroot" * identifier)) , (parameter_declaration "char *canonical_sysroot" primitive_type (pointer_declarator "*canonical_sysroot" * identifier)) ))) (compound_statement "{\n  size_type sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  int unaff_EDI;\n  string *local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  __x86_get_pc_thunk_di();\n  if (*sysroot == '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));\n  }\n  pcVar2 = (this->name_)._M_dataplus._M_p;\n  if (this->put_in_sysroot_ == false) {\n    pcVar2 = lrealpath(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(canonical_sysroot);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(sysroot);\n  sVar1 = (this->name_)._M_string_length;\n  if ((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    std::string::reserve((string *)&local_34,sVar1 + 1);\n    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');\n    std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = sVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      operator_delete(local_34);\n    }\n    local_44 = strlen(sysroot);\n    sVar1 = (this->name_)._M_string_length;\n  }\n  local_40 = local_2c;\n  local_48 = (string *)&local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */\n  std::string::reserve(local_48,sVar1 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));\n  }\n  std::string::_M_append(local_48,sysroot,local_44);\n  std::string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n  puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }\n    (this->name_)._M_string_length = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    sVar1 = local_2c[0];\n  }\n  else {\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = sVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    operator_delete(local_34);\n  }\n  this->is_in_sysroot_ = true;\n  return;\n}" { (declaration "size_type sVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "string *local_48;" type_identifier (pointer_declarator "*local_48" * identifier) ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "uint *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "uint *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "uint local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*sysroot == '\0') {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));\n  }" if (parenthesized_expression "(*sysroot == '\0')" ( (binary_expression "*sysroot == '\0'" (pointer_expression "*sysroot" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));\n  }" { comment (expression_statement "do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f));" (call_expression "do_gold_unreachable((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f))" identifier (argument_list "((char *)(unaff_EDI + 0x17fa6a),0x574,(char *)(unaff_EDI + 0x183c4f))" ( (cast_expression "(char *)(unaff_EDI + 0x17fa6a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x17fa6a)" ( (binary_expression "unaff_EDI + 0x17fa6a" identifier + number_literal) ))) , number_literal , (cast_expression "(char *)(unaff_EDI + 0x183c4f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x183c4f)" ( (binary_expression "unaff_EDI + 0x183c4f" identifier + number_literal) ))) ))) ;) })) (expression_statement "pcVar2 = (this->name_)._M_dataplus._M_p;" (assignment_expression "pcVar2 = (this->name_)._M_dataplus._M_p" identifier = (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (this->put_in_sysroot_ == false) {\n    pcVar2 = lrealpath(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(canonical_sysroot);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" if (parenthesized_expression "(this->put_in_sysroot_ == false)" ( (binary_expression "this->put_in_sysroot_ == false" (field_expression "this->put_in_sysroot_" identifier -> field_identifier) == false) )) (compound_statement "{\n    pcVar2 = lrealpath(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(canonical_sysroot);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" { (expression_statement "pcVar2 = lrealpath(pcVar2);" (assignment_expression "pcVar2 = lrealpath(pcVar2)" identifier = (call_expression "lrealpath(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(pcVar2);" (assignment_expression "sVar3 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(canonical_sysroot);" (assignment_expression "sVar4 = strlen(canonical_sysroot)" identifier = (call_expression "strlen(canonical_sysroot)" identifier (argument_list "(canonical_sysroot)" ( identifier )))) ;) (if_statement "if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }" if (parenthesized_expression "(((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/'))" ( (binary_expression "((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')" (parenthesized_expression "((int)sVar4 < (int)sVar3)" ( (binary_expression "(int)sVar4 < (int)sVar3" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(pcVar2[sVar4] == '/')" ( (binary_expression "pcVar2[sVar4] == '/'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar2[sVar4] = '\0';\n      iVar6 = filename_cmp(pcVar2,canonical_sysroot);\n      if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }\n    }" { (expression_statement "pcVar2[sVar4] = '\0';" (assignment_expression "pcVar2[sVar4] = '\0'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar6 = filename_cmp(pcVar2,canonical_sysroot);" (assignment_expression "iVar6 = filename_cmp(pcVar2,canonical_sysroot)" identifier = (call_expression "filename_cmp(pcVar2,canonical_sysroot)" identifier (argument_list "(pcVar2,canonical_sysroot)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n        this->is_in_sysroot_ = true;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        this->is_in_sysroot_ = true;\n      }" { (expression_statement "this->is_in_sysroot_ = true;" (assignment_expression "this->is_in_sysroot_ = true" (field_expression "this->is_in_sysroot_" identifier -> field_identifier) = true) ;) })) })) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "local_44 = strlen(sysroot);" (assignment_expression "local_44 = strlen(sysroot)" identifier = (call_expression "strlen(sysroot)" identifier (argument_list "(sysroot)" ( identifier )))) ;) (expression_statement "sVar1 = (this->name_)._M_string_length;" (assignment_expression "sVar1 = (this->name_)._M_string_length" identifier = (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    std::string::reserve((string *)&local_34,sVar1 + 1);\n    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');\n    std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = sVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      operator_delete(local_34);\n    }\n    local_44 = strlen(sysroot);\n    sVar1 = (this->name_)._M_string_length;\n  }" if (parenthesized_expression "((*pcVar2 != '/') && (sysroot[local_44 - 1] != '/'))" ( (binary_expression "(*pcVar2 != '/') && (sysroot[local_44 - 1] != '/')" (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(sysroot[local_44 - 1] != '/')" ( (binary_expression "sysroot[local_44 - 1] != '/'" (subscript_expression "sysroot[local_44 - 1]" identifier [ (binary_expression "local_44 - 1" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */\n    std::string::reserve((string *)&local_34,sVar1 + 1);\n    std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');\n    std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);\n    puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = sVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      operator_delete(local_34);\n    }\n    local_44 = strlen(sysroot);\n    sVar1 = (this->name_)._M_string_length;\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) comment (labeled_statement "std::string::reserve((string *)&local_34,sVar1 + 1);" statement_identifier : (ERROR ":" :) (labeled_statement "string::reserve((string *)&local_34,sVar1 + 1);" statement_identifier : (ERROR ":" :) (expression_statement "reserve((string *)&local_34,sVar1 + 1);" (call_expression "reserve((string *)&local_34,sVar1 + 1)" identifier (argument_list "((string *)&local_34,sVar1 + 1)" ( (cast_expression "(string *)&local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_34" & identifier)) , (binary_expression "sVar1 + 1" identifier + number_literal) ))) ;))) (labeled_statement "std::string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_replace_aux((string *)&local_34,local_30,0,1,'/');" statement_identifier : (ERROR ":" :) (expression_statement "_M_replace_aux((string *)&local_34,local_30,0,1,'/');" (call_expression "_M_replace_aux((string *)&local_34,local_30,0,1,'/')" identifier (argument_list "((string *)&local_34,local_30,0,1,'/')" ( (cast_expression "(string *)&local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_34" & identifier)) , identifier , number_literal , number_literal , (char_literal "'/'" ' character ') ))) ;))) (labeled_statement "std::string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" (call_expression "_M_append\n              ((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length)" identifier (argument_list "((string *)&local_34,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length)" ( (cast_expression "(string *)&local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_34" & identifier)) , (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) ))) ;))) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (if_statement "if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }\n    else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }" if (parenthesized_expression "(local_34 == local_2c)" ( (binary_expression "local_34 == local_2c" identifier == identifier) )) (compound_statement "{\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }\n      (this->name_)._M_string_length = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      sVar1 = local_2c[0];\n    }" { (if_statement "if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n      }" { (if_statement "if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }) (else_clause "else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }" else (compound_statement "{\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n        }" { (expression_statement "memcpy(puVar5,local_2c,local_30);" (call_expression "memcpy(puVar5,local_2c,local_30)" identifier (argument_list "(puVar5,local_2c,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }))) })) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "sVar1 = local_2c[0];" (assignment_expression "sVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }" else (compound_statement "{\n      if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      sVar1 = local_2c[0];\n    }" { (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2) {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }\n      else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n           *)puVar5 == &(this->name_).field_2" (binary_expression "allocator<char>_>_9\n           *)puVar5" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n           *)puVar5" identifier * (ERROR ")" )) identifier)) == (pointer_expression "&(this->name_).field_2" & (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier))) )) )) (compound_statement "{\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      }" { (expression_statement "(this->name_)._M_dataplus._M_p = (pointer)local_34;" (assignment_expression "(this->name_)._M_dataplus._M_p = (pointer)local_34" (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)local_34" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->name_).field_2._M_allocated_capacity = local_2c[0];" (assignment_expression "(this->name_).field_2._M_allocated_capacity = local_2c[0]" (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" else (compound_statement "{\n        (this->name_)._M_dataplus._M_p = (pointer)local_34;\n        sVar1 = (this->name_).field_2._M_allocated_capacity;\n        (this->name_)._M_string_length = local_30;\n        (this->name_).field_2._M_allocated_capacity = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" { (expression_statement "(this->name_)._M_dataplus._M_p = (pointer)local_34;" (assignment_expression "(this->name_)._M_dataplus._M_p = (pointer)local_34" (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)local_34" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "sVar1 = (this->name_).field_2._M_allocated_capacity;" (assignment_expression "sVar1 = (this->name_).field_2._M_allocated_capacity" identifier = (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->name_).field_2._M_allocated_capacity = local_2c[0];" (assignment_expression "(this->name_).field_2._M_allocated_capacity = local_2c[0]" (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d849e;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d849e;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "sVar1 = local_2c[0];" (assignment_expression "sVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d849e:\n    local_2c[0] = sVar1;" statement_identifier : (expression_statement "local_2c[0] = sVar1;" (assignment_expression "local_2c[0] = sVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n      operator_delete(local_34);\n    }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n      operator_delete(local_34);\n    }" { (expression_statement "operator_delete(local_34);" (call_expression "operator_delete(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "local_44 = strlen(sysroot);" (assignment_expression "local_44 = strlen(sysroot)" identifier = (call_expression "strlen(sysroot)" identifier (argument_list "(sysroot)" ( identifier )))) ;) (expression_statement "sVar1 = (this->name_)._M_string_length;" (assignment_expression "sVar1 = (this->name_)._M_string_length" identifier = (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier)) ;) })) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_48 = (string *)&local_34;" (assignment_expression "local_48 = (string *)&local_34" identifier = (cast_expression "(string *)&local_34" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_34" & identifier))) ;) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) comment (labeled_statement "std::string::reserve(local_48,sVar1 + local_44);" statement_identifier : (ERROR ":" :) (labeled_statement "string::reserve(local_48,sVar1 + local_44);" statement_identifier : (ERROR ":" :) (expression_statement "reserve(local_48,sVar1 + local_44);" (call_expression "reserve(local_48,sVar1 + local_44)" identifier (argument_list "(local_48,sVar1 + local_44)" ( identifier , (binary_expression "sVar1 + local_44" identifier + identifier) ))) ;))) (if_statement "if (0x7fffffff - local_30 < local_44) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));\n  }" if (parenthesized_expression "(0x7fffffff - local_30 < local_44)" ( (binary_expression "0x7fffffff - local_30 < local_44" (binary_expression "0x7fffffff - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */\n    std::__throw_length_error((char *)(unaff_EDI + 0x179df2));\n  }" { comment comment (labeled_statement "std::__throw_length_error((char *)(unaff_EDI + 0x179df2));" statement_identifier : (ERROR ":" :) (expression_statement "__throw_length_error((char *)(unaff_EDI + 0x179df2));" (call_expression "__throw_length_error((char *)(unaff_EDI + 0x179df2))" identifier (argument_list "((char *)(unaff_EDI + 0x179df2))" ( (cast_expression "(char *)(unaff_EDI + 0x179df2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x179df2)" ( (binary_expression "unaff_EDI + 0x179df2" identifier + number_literal) ))) ))) ;)) })) (labeled_statement "std::string::_M_append(local_48,sysroot,local_44);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append(local_48,sysroot,local_44);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(local_48,sysroot,local_44);" (call_expression "_M_append(local_48,sysroot,local_44)" identifier (argument_list "(local_48,sysroot,local_44)" ( identifier , identifier , identifier ))) ;))) (labeled_statement "std::string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" statement_identifier : (ERROR ":" :) (labeled_statement "string::_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" statement_identifier : (ERROR ":" :) (expression_statement "_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);" (call_expression "_M_append(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length)" identifier (argument_list "(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length)" ( identifier , (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) ))) ;))) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (if_statement "if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }\n    (this->name_)._M_string_length = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    sVar1 = local_2c[0];\n  }\n  else {\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }" if (parenthesized_expression "(local_34 == local_40)" ( (binary_expression "local_34 == local_40" identifier == identifier) )) (compound_statement "{\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }\n    (this->name_)._M_string_length = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    sVar1 = local_2c[0];\n  }" { (if_statement "if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n    }" { (if_statement "if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }) (else_clause "else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }" else (compound_statement "{\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)(this->name_)._M_dataplus._M_p;\n      }" { (expression_statement "memcpy(puVar5,local_40,local_30);" (call_expression "memcpy(puVar5,local_40,local_30)" identifier (argument_list "(puVar5,local_40,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)(this->name_)._M_dataplus._M_p;" (assignment_expression "puVar5 = (uint *)(this->name_)._M_dataplus._M_p" identifier = (cast_expression "(uint *)(this->name_)._M_dataplus._M_p" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) }))) })) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "sVar1 = local_2c[0];" (assignment_expression "sVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }" else (compound_statement "{\n    if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    sVar1 = local_2c[0];\n  }" { (if_statement "if ((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2) {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }\n    else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" if (parenthesized_expression "((anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2)" ( (parenthesized_expression "(anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2)" ( (ERROR "anon_union_16_2_edb7204a_for_basic_string<char,_std::char_traits<char>,_std::" (comma_expression "anon_union_16_2_edb7204a_for_basic_string<char,_std" (binary_expression "anon_union_16_2_edb7204a_for_basic_string<char" identifier < identifier) , identifier) : : (binary_expression "char_traits<char>,_std" (binary_expression "char_traits<char" identifier < identifier) > (ERROR "," ,) identifier) : :) (binary_expression "allocator<char>_>_9\n         *)puVar5 == &(this->name_).field_2" (binary_expression "allocator<char>_>_9\n         *)puVar5" (binary_expression "allocator<char>_" (binary_expression "allocator<char" identifier < identifier) > identifier) > (binary_expression "_9\n         *)puVar5" identifier * (ERROR ")" )) identifier)) == (pointer_expression "&(this->name_).field_2" & (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier))) )) )) (compound_statement "{\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n    }" { (expression_statement "(this->name_)._M_dataplus._M_p = (pointer)local_34;" (assignment_expression "(this->name_)._M_dataplus._M_p = (pointer)local_34" (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)local_34" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->name_).field_2._M_allocated_capacity = local_2c[0];" (assignment_expression "(this->name_).field_2._M_allocated_capacity = local_2c[0]" (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" else (compound_statement "{\n      (this->name_)._M_dataplus._M_p = (pointer)local_34;\n      sVar1 = (this->name_).field_2._M_allocated_capacity;\n      (this->name_)._M_string_length = local_30;\n      (this->name_).field_2._M_allocated_capacity = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" { (expression_statement "(this->name_)._M_dataplus._M_p = (pointer)local_34;" (assignment_expression "(this->name_)._M_dataplus._M_p = (pointer)local_34" (field_expression "(this->name_)._M_dataplus._M_p" (field_expression "(this->name_)._M_dataplus" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(pointer)local_34" ( (type_descriptor "pointer" type_identifier) ) identifier)) ;) (expression_statement "sVar1 = (this->name_).field_2._M_allocated_capacity;" (assignment_expression "sVar1 = (this->name_).field_2._M_allocated_capacity" identifier = (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(this->name_)._M_string_length = local_30;" (assignment_expression "(this->name_)._M_string_length = local_30" (field_expression "(this->name_)._M_string_length" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->name_).field_2._M_allocated_capacity = local_2c[0];" (assignment_expression "(this->name_).field_2._M_allocated_capacity = local_2c[0]" (field_expression "(this->name_).field_2._M_allocated_capacity" (field_expression "(this->name_).field_2" (parenthesized_expression "(this->name_)" ( (field_expression "this->name_" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d8379;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d8379;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "sVar1 = local_2c[0];" (assignment_expression "sVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d8379:\n  local_2c[0] = sVar1;" statement_identifier : (expression_statement "local_2c[0] = sVar1;" (assignment_expression "local_2c[0] = sVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n    operator_delete(local_34);\n  }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n    operator_delete(local_34);\n  }" { (expression_statement "operator_delete(local_34);" (call_expression "operator_delete(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "this->is_in_sysroot_ = true;" (assignment_expression "this->is_in_sysroot_ = true" (field_expression "this->is_in_sysroot_" identifier -> field_identifier) = true) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    \n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}\n\n" (function_definition "void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    \n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" primitive_type (function_declarator "FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)" identifier (parameter_list "(undefined4 *param_1,char *param_2,char *param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    \n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "uint **local_48;" type_identifier (pointer_declarator "**local_48" * (pointer_declarator "*local_48" * identifier)) ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "uint *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "uint *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t local_30;" primitive_type identifier ;) (declaration "uint local_2c [7];" type_identifier (array_declarator "local_2c [7]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" { (expression_statement "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);" (call_expression "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" identifier (argument_list "(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" ( (binary_expression "unaff_EDI + 0x17fa6a" identifier + number_literal) , number_literal , (binary_expression "unaff_EDI + 0x183c4f" identifier + number_literal) , identifier ))) ;) })) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" identifier = (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" ( (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" * (cast_expression "(char *)(param_1 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" { (expression_statement "pcVar2 = (char *)FUN_001a9a30(pcVar2);" (assignment_expression "pcVar2 = (char *)FUN_001a9a30(pcVar2)" identifier = (cast_expression "(char *)FUN_001a9a30(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9a30(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) (expression_statement "sVar3 = strlen(pcVar2);" (assignment_expression "sVar3 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" identifier = (call_expression "strlen(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (if_statement "if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" if (parenthesized_expression "(((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/'))" ( (binary_expression "((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')" (parenthesized_expression "((int)sVar4 < (int)sVar3)" ( (binary_expression "(int)sVar4 < (int)sVar3" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(pcVar2[sVar4] == '/')" ( (binary_expression "pcVar2[sVar4] == '/'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" { (expression_statement "pcVar2[sVar4] = '\0';" (assignment_expression "pcVar2[sVar4] = '\0'" (subscript_expression "pcVar2[sVar4]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar6 = FUN_001a9830(pcVar2,param_3);" (assignment_expression "iVar6 = FUN_001a9830(pcVar2,param_3)" identifier = (call_expression "FUN_001a9830(pcVar2,param_3)" identifier (argument_list "(pcVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" { (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) })) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" if (parenthesized_expression "((*pcVar2 != '/') && (param_2[local_44 - 1] != '/'))" ( (binary_expression "(*pcVar2 != '/') && (param_2[local_44 - 1] != '/')" (parenthesized_expression "(*pcVar2 != '/')" ( (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(param_2[local_44 - 1] != '/')" ( (binary_expression "param_2[local_44 - 1] != '/'" (subscript_expression "param_2[local_44 - 1]" identifier [ (binary_expression "local_44 - 1" identifier - number_literal) ]) != (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "FUN_001b4700(&local_34,iVar6 + 1);" (call_expression "FUN_001b4700(&local_34,iVar6 + 1)" identifier (argument_list "(&local_34,iVar6 + 1)" ( (pointer_expression "&local_34" & identifier) , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_001b4cf0(&local_34,local_30,0,1,0x2f);" (call_expression "FUN_001b4cf0(&local_34,local_30,0,1,0x2f)" identifier (argument_list "(&local_34,local_30,0,1,0x2f)" ( (pointer_expression "&local_34" & identifier) , identifier , number_literal , number_literal , number_literal ))) ;) (expression_statement "FUN_001b5c80(&local_34,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(&local_34,*param_1,param_1[1])" identifier (argument_list "(&local_34,*param_1,param_1[1])" ( (pointer_expression "&local_34" & identifier) , (pointer_expression "*param_1" * identifier) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" if (parenthesized_expression "(local_34 == local_2c)" ( (binary_expression "local_34 == local_2c" identifier == identifier) )) (compound_statement "{\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }" { (if_statement "if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" { (if_statement "if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" else (compound_statement "{\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" { (expression_statement "memcpy(puVar5,local_2c,local_30);" (call_expression "memcpy(puVar5,local_2c,local_30)" identifier (argument_list "(puVar5,local_2c,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" else (compound_statement "{\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" { (if_statement "if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" if (parenthesized_expression "(puVar5 == param_1 + 2)" ( (binary_expression "puVar5 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" else (compound_statement "{\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d849e;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d849e;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" identifier = identifier) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d849e:\n    local_2c[0] = uVar1;" statement_identifier : (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n      FUN_001ac470(local_34);\n    }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) })) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_48 = &local_34;" (assignment_expression "local_48 = &local_34" identifier = (pointer_expression "&local_34" & identifier)) ;) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal)) ;) (expression_statement "FUN_001b4700(local_48,iVar6 + local_44);" (call_expression "FUN_001b4700(local_48,iVar6 + local_44)" identifier (argument_list "(local_48,iVar6 + local_44)" ( identifier , (binary_expression "iVar6 + local_44" identifier + identifier) ))) ;) (if_statement "if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" if (parenthesized_expression "(0x7fffffff - local_30 < local_44)" ( (binary_expression "0x7fffffff - local_30 < local_44" (binary_expression "0x7fffffff - local_30" number_literal - identifier) < identifier) )) (compound_statement "{\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" { (expression_statement "FUN_001f1e60(unaff_EDI + 0x179df2);" (call_expression "FUN_001f1e60(unaff_EDI + 0x179df2)" identifier (argument_list "(unaff_EDI + 0x179df2)" ( (binary_expression "unaff_EDI + 0x179df2" identifier + number_literal) ))) ;) })) (expression_statement "FUN_001b5c80(local_48,param_2,local_44);" (call_expression "FUN_001b5c80(local_48,param_2,local_44)" identifier (argument_list "(local_48,param_2,local_44)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_001b5c80(local_48,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(local_48,*param_1,param_1[1])" identifier (argument_list "(local_48,*param_1,param_1[1])" ( identifier , (pointer_expression "*param_1" * identifier) , (subscript_expression "param_1[1]" identifier [ number_literal ]) ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" if (parenthesized_expression "(local_34 == local_40)" ( (binary_expression "local_34 == local_40" identifier == identifier) )) (compound_statement "{\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }" { (if_statement "if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" { (if_statement "if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" if (parenthesized_expression "(local_30 == 1)" ( (binary_expression "local_30 == 1" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }" { (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" * (cast_expression "(undefined1 *)puVar5" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(undefined1)local_2c[0]" ( (type_descriptor "undefined1" type_identifier) ) (subscript_expression "local_2c[0]" identifier [ number_literal ]))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }) (else_clause "else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" else (compound_statement "{\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" { (expression_statement "memcpy(puVar5,local_40,local_30);" (call_expression "memcpy(puVar5,local_40,local_30)" identifier (argument_list "(puVar5,local_40,local_30)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" identifier = (cast_expression "(uint *)*param_1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) }))) })) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" * (cast_expression "(undefined1 *)((int)puVar5 + local_30)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + local_30)" ( (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = number_literal) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" else (compound_statement "{\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" { (if_statement "if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" if (parenthesized_expression "(puVar5 == param_1 + 2)" ( (binary_expression "puVar5 == param_1 + 2" identifier == (binary_expression "param_1 + 2" identifier + number_literal)) )) (compound_statement "{\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" else (compound_statement "{\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" { (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" identifier = identifier) ;) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d8379;" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000d8379;" goto statement_identifier ;)) }))) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" identifier = identifier) ;) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" identifier = (subscript_expression "local_2c[0]" identifier [ number_literal ])) ;) }))) (labeled_statement "LAB_000d8379:\n  local_2c[0] = uVar1;" statement_identifier : (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" identifier = identifier) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" * (cast_expression "(undefined1 *)local_34" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (if_statement "if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }" if (parenthesized_expression "(local_34 != local_40)" ( (binary_expression "local_34 != local_40" identifier != identifier) )) (compound_statement "{\n    FUN_001ac470(local_34);\n  }" { (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) })) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" * (cast_expression "(undefined1 *)((int)param_1 + 0x19)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x19)" ( (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (char_literal ' escape_sequence ')) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT - LIT) ]) != (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression LIT - IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    \n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000d8270(undefined4 *param_1,char *param_2,char *param_3)" (identifier "FUN_000d8270") (parameter_list "(undefined4 *param_1,char *param_2,char *param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  size_t sVar3;\n  size_t sVar4;\n  uint *puVar5;\n  int iVar6;\n  undefined4 extraout_ECX;\n  int unaff_EDI;\n  uint **local_48;\n  uint local_44;\n  uint *local_40;\n  uint *local_34;\n  size_t local_30;\n  uint local_2c [7];\n  \n  FUN_00058c4a();\n  if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }\n  pcVar2 = (char *)*param_1;\n  if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }\n  local_44 = strlen(param_2);\n  iVar6 = param_1[1];\n  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }\n  local_40 = local_2c;\n  local_48 = &local_34;\n  local_34 = local_40;\n  local_30 = 0;\n  local_2c[0] = local_2c[0] & 0xffffff00;\n                    \n  FUN_001b4700(local_48,iVar6 + local_44);\n  if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }\n  FUN_001b5c80(local_48,param_2,local_44);\n  FUN_001b5c80(local_48,*param_1,param_1[1]);\n  puVar5 = (uint *)*param_1;\n  if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }\nLAB_000d8379:\n  local_2c[0] = uVar1;\n  local_40 = local_2c;\n  local_30 = 0;\n  *(undefined1 *)local_34 = 0;\n  if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }\n  *(undefined1 *)((int)param_1 + 0x19) = 1;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "uint **local_48;" (type_identifier "uint") (pointer_declarator "**local_48" (* "*") (pointer_declarator "*local_48" (* "*") (identifier "local_48"))) (; ";")) (declaration "uint local_44;" (type_identifier "uint") (identifier "local_44") (; ";")) (declaration "uint *local_40;" (type_identifier "uint") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "uint *local_34;" (type_identifier "uint") (pointer_declarator "*local_34" (* "*") (identifier "local_34")) (; ";")) (declaration "size_t local_30;" (primitive_type "size_t") (identifier "local_30") (; ";")) (declaration "uint local_2c [7];" (type_identifier "uint") (array_declarator "local_2c [7]" (identifier "local_2c") ([ "[") (number_literal "7") (] "]")) (; ";")) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" (identifier "FUN_00058c4a") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*param_2 == '\0') {\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                    \n    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);\n  }" ({ "{") (expression_statement "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);" (call_expression "FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" (identifier "FUN_0008b620") (argument_list "(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX)" (( "(") (binary_expression "unaff_EDI + 0x17fa6a" (identifier "unaff_EDI") (+ "+") (number_literal "0x17fa6a")) (, ",") (number_literal "0x574") (, ",") (binary_expression "unaff_EDI + 0x183c4f" (identifier "unaff_EDI") (+ "+") (number_literal "0x183c4f")) (, ",") (identifier "extraout_ECX") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar2 = (char *)*param_1;" (assignment_expression "pcVar2 = (char *)*param_1" (identifier "pcVar2") (= "=") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (*(char *)(param_1 + 6) == '\0') {\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 6) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 6) == '\0'" (pointer_expression "*(char *)(param_1 + 6)" (* "*") (cast_expression "(char *)(param_1 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar2 = (char *)FUN_001a9a30(pcVar2);\n    sVar3 = strlen(pcVar2);\n    sVar4 = strlen(param_3);\n    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }\n    free(pcVar2);\n    return;\n  }" ({ "{") (expression_statement "pcVar2 = (char *)FUN_001a9a30(pcVar2);" (assignment_expression "pcVar2 = (char *)FUN_001a9a30(pcVar2)" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_001a9a30(pcVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001a9a30(pcVar2)" (identifier "FUN_001a9a30") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))))) (; ";")) (expression_statement "sVar3 = strlen(pcVar2);" (assignment_expression "sVar3 = strlen(pcVar2)" (identifier "sVar3") (= "=") (call_expression "strlen(pcVar2)" (identifier "strlen") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "sVar4 = strlen(param_3);" (assignment_expression "sVar4 = strlen(param_3)" (identifier "sVar4") (= "=") (call_expression "strlen(param_3)" (identifier "strlen") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" (if "if") (parenthesized_expression "(((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/'))" (( "(") (binary_expression "((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')" (parenthesized_expression "((int)sVar4 < (int)sVar3)" (( "(") (binary_expression "(int)sVar4 < (int)sVar3" (cast_expression "(int)sVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar4")) (< "<") (cast_expression "(int)sVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar3"))) () ")")) (&& "&&") (parenthesized_expression "(pcVar2[sVar4] == '/')" (( "(") (binary_expression "pcVar2[sVar4] == '/'" (subscript_expression "pcVar2[sVar4]" (identifier "pcVar2") ([ "[") (identifier "sVar4") (] "]")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar2[sVar4] = '\0';\n      iVar6 = FUN_001a9830(pcVar2,param_3);\n      if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }\n    }" ({ "{") (expression_statement "pcVar2[sVar4] = '\0';" (assignment_expression "pcVar2[sVar4] = '\0'" (subscript_expression "pcVar2[sVar4]" (identifier "pcVar2") ([ "[") (identifier "sVar4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar6 = FUN_001a9830(pcVar2,param_3);" (assignment_expression "iVar6 = FUN_001a9830(pcVar2,param_3)" (identifier "iVar6") (= "=") (call_expression "FUN_001a9830(pcVar2,param_3)" (identifier "FUN_001a9830") (argument_list "(pcVar2,param_3)" (( "(") (identifier "pcVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar6 == 0) {\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined1 *)((int)param_1 + 0x19) = 1;\n      }" ({ "{") (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x19)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x19)" (( "(") (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x19")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" (identifier "free") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" (identifier "local_44") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" (if "if") (parenthesized_expression "((*pcVar2 != '/') && (param_2[local_44 - 1] != '/'))" (( "(") (binary_expression "(*pcVar2 != '/') && (param_2[local_44 - 1] != '/')" (parenthesized_expression "(*pcVar2 != '/')" (( "(") (binary_expression "*pcVar2 != '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_2[local_44 - 1] != '/')" (( "(") (binary_expression "param_2[local_44 - 1] != '/'" (subscript_expression "param_2[local_44 - 1]" (identifier "param_2") ([ "[") (binary_expression "local_44 - 1" (identifier "local_44") (- "-") (number_literal "1")) (] "]")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    local_30 = 0;\n    local_2c[0] = local_2c[0] & 0xffffff00;\n    local_34 = local_2c;\n                    \n    FUN_001b4700(&local_34,iVar6 + 1);\n    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);\n    FUN_001b5c80(&local_34,*param_1,param_1[1]);\n    puVar5 = (uint *)*param_1;\n    if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }\nLAB_000d849e:\n    local_2c[0] = uVar1;\n    local_40 = local_2c;\n    local_30 = 0;\n    *(undefined1 *)local_34 = 0;\n    if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }\n    local_44 = strlen(param_2);\n    iVar6 = param_1[1];\n  }" ({ "{") (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (& "&") (number_literal "0xffffff00"))) (; ";")) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_001b4700(&local_34,iVar6 + 1);" (call_expression "FUN_001b4700(&local_34,iVar6 + 1)" (identifier "FUN_001b4700") (argument_list "(&local_34,iVar6 + 1)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_001b4cf0(&local_34,local_30,0,1,0x2f);" (call_expression "FUN_001b4cf0(&local_34,local_30,0,1,0x2f)" (identifier "FUN_001b4cf0") (argument_list "(&local_34,local_30,0,1,0x2f)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "local_30") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (number_literal "0x2f") () ")"))) (; ";")) (expression_statement "FUN_001b5c80(&local_34,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(&local_34,*param_1,param_1[1])" (identifier "FUN_001b5c80") (argument_list "(&local_34,*param_1,param_1[1])" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (local_34 == local_2c) {\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }\n    else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" (if "if") (parenthesized_expression "(local_34 == local_2c)" (( "(") (binary_expression "local_34 == local_2c" (identifier "local_34") (== "==") (identifier "local_2c")) () ")")) (compound_statement "{\n      if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }\n      param_1[1] = local_30;\n      *(undefined1 *)((int)puVar5 + local_30) = 0;\n      uVar1 = local_2c[0];\n    }" ({ "{") (if_statement "if (local_30 != 0) {\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }\n      }" ({ "{") (if_statement "if (local_30 == 1) {\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }\n        else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" (if "if") (parenthesized_expression "(local_30 == 1)" (( "(") (binary_expression "local_30 == 1" (identifier "local_30") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n          puVar5 = (uint *)*param_1;\n        }" ({ "{") (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" (* "*") (cast_expression "(undefined1 *)puVar5" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (= "=") (cast_expression "(undefined1)local_2c[0]" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" (else "else") (compound_statement "{\n          memcpy(puVar5,local_2c,local_30);\n          puVar5 = (uint *)*param_1;\n        }" ({ "{") (expression_statement "memcpy(puVar5,local_2c,local_30);" (call_expression "memcpy(puVar5,local_2c,local_30)" (identifier "memcpy") (argument_list "(puVar5,local_2c,local_30)" (( "(") (identifier "puVar5") (, ",") (identifier "local_2c") (, ",") (identifier "local_30") () ")"))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" (* "*") (cast_expression "(undefined1 *)((int)puVar5 + local_30)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + local_30)" (( "(") (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (identifier "local_30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" (identifier "uVar1") (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" (else "else") (compound_statement "{\n      if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }\n      local_34 = local_2c;\n      uVar1 = local_2c[0];\n    }" ({ "{") (if_statement "if (puVar5 == param_1 + 2) {\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }\n      else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" (if "if") (parenthesized_expression "(puVar5 == param_1 + 2)" (( "(") (binary_expression "puVar5 == param_1 + 2" (identifier "puVar5") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n        *param_1 = local_34;\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n      }" ({ "{") (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" (else "else") (compound_statement "{\n        *param_1 = local_34;\n        uVar1 = param_1[2];\n        param_1[1] = local_30;\n        param_1[2] = local_2c[0];\n        local_34 = puVar5;\n        if (puVar5 != (uint *)0x0) goto LAB_000d849e;\n      }" ({ "{") (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" (identifier "local_34") (= "=") (identifier "puVar5")) (; ";")) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d849e;" (if "if") (parenthesized_expression "(puVar5 != (uint *)0x0)" (( "(") (binary_expression "puVar5 != (uint *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000d849e;" (goto "goto") (statement_identifier "LAB_000d849e") (; ";"))) (} "}")))) (expression_statement "local_34 = local_2c;" (assignment_expression "local_34 = local_2c" (identifier "local_34") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" (identifier "uVar1") (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (labeled_statement "LAB_000d849e:\n    local_2c[0] = uVar1;" (statement_identifier "LAB_000d849e") (: ":") (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "uVar1")) (; ";"))) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" (identifier "local_40") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" (* "*") (cast_expression "(undefined1 *)local_34" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_34"))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_34 != local_40) {\n      FUN_001ac470(local_34);\n    }" (if "if") (parenthesized_expression "(local_34 != local_40)" (( "(") (binary_expression "local_34 != local_40" (identifier "local_34") (!= "!=") (identifier "local_40")) () ")")) (compound_statement "{\n      FUN_001ac470(local_34);\n    }" ({ "{") (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" (identifier "FUN_001ac470") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}"))) (expression_statement "local_44 = strlen(param_2);" (assignment_expression "local_44 = strlen(param_2)" (identifier "local_44") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar6 = param_1[1];" (assignment_expression "iVar6 = param_1[1]" (identifier "iVar6") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" (identifier "local_40") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "local_48 = &local_34;" (assignment_expression "local_48 = &local_34" (identifier "local_48") (= "=") (pointer_expression "&local_34" (& "&") (identifier "local_34"))) (; ";")) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" (identifier "local_34") (= "=") (identifier "local_40")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c[0] = local_2c[0] & 0xffffff00;" (assignment_expression "local_2c[0] = local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_2c[0] & 0xffffff00" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (& "&") (number_literal "0xffffff00"))) (; ";")) (expression_statement "FUN_001b4700(local_48,iVar6 + local_44);" (call_expression "FUN_001b4700(local_48,iVar6 + local_44)" (identifier "FUN_001b4700") (argument_list "(local_48,iVar6 + local_44)" (( "(") (identifier "local_48") (, ",") (binary_expression "iVar6 + local_44" (identifier "iVar6") (+ "+") (identifier "local_44")) () ")"))) (; ";")) (if_statement "if (0x7fffffff - local_30 < local_44) {\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" (if "if") (parenthesized_expression "(0x7fffffff - local_30 < local_44)" (( "(") (binary_expression "0x7fffffff - local_30 < local_44" (binary_expression "0x7fffffff - local_30" (number_literal "0x7fffffff") (- "-") (identifier "local_30")) (< "<") (identifier "local_44")) () ")")) (compound_statement "{\n                    \n                    \n    FUN_001f1e60(unaff_EDI + 0x179df2);\n  }" ({ "{") (expression_statement "FUN_001f1e60(unaff_EDI + 0x179df2);" (call_expression "FUN_001f1e60(unaff_EDI + 0x179df2)" (identifier "FUN_001f1e60") (argument_list "(unaff_EDI + 0x179df2)" (( "(") (binary_expression "unaff_EDI + 0x179df2" (identifier "unaff_EDI") (+ "+") (number_literal "0x179df2")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_001b5c80(local_48,param_2,local_44);" (call_expression "FUN_001b5c80(local_48,param_2,local_44)" (identifier "FUN_001b5c80") (argument_list "(local_48,param_2,local_44)" (( "(") (identifier "local_48") (, ",") (identifier "param_2") (, ",") (identifier "local_44") () ")"))) (; ";")) (expression_statement "FUN_001b5c80(local_48,*param_1,param_1[1]);" (call_expression "FUN_001b5c80(local_48,*param_1,param_1[1])" (identifier "FUN_001b5c80") (argument_list "(local_48,*param_1,param_1[1])" (( "(") (identifier "local_48") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")"))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (local_34 == local_40) {\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }\n  else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" (if "if") (parenthesized_expression "(local_34 == local_40)" (( "(") (binary_expression "local_34 == local_40" (identifier "local_34") (== "==") (identifier "local_40")) () ")")) (compound_statement "{\n    if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }\n    param_1[1] = local_30;\n    *(undefined1 *)((int)puVar5 + local_30) = 0;\n    uVar1 = local_2c[0];\n  }" ({ "{") (if_statement "if (local_30 != 0) {\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }\n    }" ({ "{") (if_statement "if (local_30 == 1) {\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }\n      else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" (if "if") (parenthesized_expression "(local_30 == 1)" (( "(") (binary_expression "local_30 == 1" (identifier "local_30") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *(undefined1 *)puVar5 = (undefined1)local_2c[0];\n        puVar5 = (uint *)*param_1;\n      }" ({ "{") (expression_statement "*(undefined1 *)puVar5 = (undefined1)local_2c[0];" (assignment_expression "*(undefined1 *)puVar5 = (undefined1)local_2c[0]" (pointer_expression "*(undefined1 *)puVar5" (* "*") (cast_expression "(undefined1 *)puVar5" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (= "=") (cast_expression "(undefined1)local_2c[0]" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")) (else_clause "else {\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" (else "else") (compound_statement "{\n        memcpy(puVar5,local_40,local_30);\n        puVar5 = (uint *)*param_1;\n      }" ({ "{") (expression_statement "memcpy(puVar5,local_40,local_30);" (call_expression "memcpy(puVar5,local_40,local_30)" (identifier "memcpy") (argument_list "(puVar5,local_40,local_30)" (( "(") (identifier "puVar5") (, ",") (identifier "local_40") (, ",") (identifier "local_30") () ")"))) (; ";")) (expression_statement "puVar5 = (uint *)*param_1;" (assignment_expression "puVar5 = (uint *)*param_1" (identifier "puVar5") (= "=") (cast_expression "(uint *)*param_1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "*(undefined1 *)((int)puVar5 + local_30) = 0;" (assignment_expression "*(undefined1 *)((int)puVar5 + local_30) = 0" (pointer_expression "*(undefined1 *)((int)puVar5 + local_30)" (* "*") (cast_expression "(undefined1 *)((int)puVar5 + local_30)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar5 + local_30)" (( "(") (binary_expression "(int)puVar5 + local_30" (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5")) (+ "+") (identifier "local_30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" (identifier "uVar1") (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" (else "else") (compound_statement "{\n    if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }\n    local_34 = local_40;\n    uVar1 = local_2c[0];\n  }" ({ "{") (if_statement "if (puVar5 == param_1 + 2) {\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }\n    else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" (if "if") (parenthesized_expression "(puVar5 == param_1 + 2)" (( "(") (binary_expression "puVar5 == param_1 + 2" (identifier "puVar5") (== "==") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) () ")")) (compound_statement "{\n      *param_1 = local_34;\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n    }" ({ "{") (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" (else "else") (compound_statement "{\n      *param_1 = local_34;\n      uVar1 = param_1[2];\n      param_1[1] = local_30;\n      param_1[2] = local_2c[0];\n      local_34 = puVar5;\n      if (puVar5 != (uint *)0x0) goto LAB_000d8379;\n    }" ({ "{") (expression_statement "*param_1 = local_34;" (assignment_expression "*param_1 = local_34" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "uVar1 = param_1[2];" (assignment_expression "uVar1 = param_1[2]" (identifier "uVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = local_30;" (assignment_expression "param_1[1] = local_30" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_1[2] = local_2c[0];" (assignment_expression "param_1[2] = local_2c[0]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "local_34 = puVar5;" (assignment_expression "local_34 = puVar5" (identifier "local_34") (= "=") (identifier "puVar5")) (; ";")) (if_statement "if (puVar5 != (uint *)0x0) goto LAB_000d8379;" (if "if") (parenthesized_expression "(puVar5 != (uint *)0x0)" (( "(") (binary_expression "puVar5 != (uint *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000d8379;" (goto "goto") (statement_identifier "LAB_000d8379") (; ";"))) (} "}")))) (expression_statement "local_34 = local_40;" (assignment_expression "local_34 = local_40" (identifier "local_34") (= "=") (identifier "local_40")) (; ";")) (expression_statement "uVar1 = local_2c[0];" (assignment_expression "uVar1 = local_2c[0]" (identifier "uVar1") (= "=") (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}")))) (labeled_statement "LAB_000d8379:\n  local_2c[0] = uVar1;" (statement_identifier "LAB_000d8379") (: ":") (expression_statement "local_2c[0] = uVar1;" (assignment_expression "local_2c[0] = uVar1" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "uVar1")) (; ";"))) (expression_statement "local_40 = local_2c;" (assignment_expression "local_40 = local_2c" (identifier "local_40") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)local_34 = 0;" (assignment_expression "*(undefined1 *)local_34 = 0" (pointer_expression "*(undefined1 *)local_34" (* "*") (cast_expression "(undefined1 *)local_34" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_34"))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_34 != local_40) {\n    FUN_001ac470(local_34);\n  }" (if "if") (parenthesized_expression "(local_34 != local_40)" (( "(") (binary_expression "local_34 != local_40" (identifier "local_34") (!= "!=") (identifier "local_40")) () ")")) (compound_statement "{\n    FUN_001ac470(local_34);\n  }" ({ "{") (expression_statement "FUN_001ac470(local_34);" (call_expression "FUN_001ac470(local_34)" (identifier "FUN_001ac470") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)((int)param_1 + 0x19) = 1;" (assignment_expression "*(undefined1 *)((int)param_1 + 0x19) = 1" (pointer_expression "*(undefined1 *)((int)param_1 + 0x19)" (* "*") (cast_expression "(undefined1 *)((int)param_1 + 0x19)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x19)" (( "(") (binary_expression "(int)param_1 + 0x19" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x19")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_sysroot(Search_directory * this, char * sysroot, char *
   canonical_sysroot) */

void __thiscall
gold::type_1::function_1(type_1 *this,char *sysroot,char *canonical_sysroot)

{
  type_2 var_11;
  char *pcVar2;
  size_t sVar3;
  size_t sVar4;
  type_3 *var_22;
  int var_7;
  int var_3;
  type_4 *local_48;
  type_3 var_9;
  type_3 *var_23;
  type_3 *var_14;
  size_t var_16;
  type_3 var_15 [7];
  
  var_1();
  if (*sysroot == '\0') {
                    /* WARNING: Subroutine does not return */
    var_2((char *)(var_3 + 0x17fa6a),0x574,(char *)(var_3 + 0x183c4f));
  }
  pcVar2 = (this->name_)._M_dataplus._M_p;
  if (this->put_in_sysroot_ == false) {
    pcVar2 = var_4(pcVar2);
    sVar3 = var_5(pcVar2);
    sVar4 = var_5(canonical_sysroot);
    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {
      pcVar2[sVar4] = '\0';
      var_7 = var_6(pcVar2,canonical_sysroot);
      if (var_7 == 0) {
        this->is_in_sysroot_ = true;
      }
    }
    var_8(pcVar2);
    return;
  }
  var_9 = var_5(sysroot);
  var_11 = (this->name_)._M_string_length;
  if ((*pcVar2 != '/') && (sysroot[var_9 - 1] != '/')) {
    var_16 = 0;
    var_15[0] = var_15[0] & 0xffffff00;
    var_14 = var_15;
                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */
    std::string::var_10((type_4 *)&var_14,var_11 + 1);
    std::string::var_12((type_4 *)&var_14,var_16,0,1,'/');
    std::string::var_13
              ((type_4 *)&var_14,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);
    var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
    if (var_14 == var_15) {
      if (var_16 != 0) {
        if (var_16 == 1) {
          *(type_5 *)var_22 = (type_5)var_15[0];
          var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
        }
        else {
          var_17(var_22,var_15,var_16);
          var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
        }
      }
      (this->name_)._M_string_length = var_16;
      *(type_5 *)((int)var_22 + var_16) = 0;
      var_11 = var_15[0];
    }
    else {
      if ((anon_union_16_2_edb7204a_for_basic_string<var_19,_std::char_traits<var_19>,_std::var_18<var_19>var_20>var_21
           *)var_22 == &(this->name_).field_2) {
        (this->name_)._M_dataplus._M_p = (type_6)var_14;
        (this->name_)._M_string_length = var_16;
        (this->name_).field_2._M_allocated_capacity = var_15[0];
      }
      else {
        (this->name_)._M_dataplus._M_p = (type_6)var_14;
        var_11 = (this->name_).field_2._M_allocated_capacity;
        (this->name_)._M_string_length = var_16;
        (this->name_).field_2._M_allocated_capacity = var_15[0];
        var_14 = var_22;
        if (var_22 != (type_3 *)0x0) goto LAB_000d849e;
      }
      var_14 = var_15;
      var_11 = var_15[0];
    }
LAB_000d849e:
    var_15[0] = var_11;
    var_23 = var_15;
    var_16 = 0;
    *(type_5 *)var_14 = 0;
    if (var_14 != var_23) {
      var_24(var_14);
    }
    var_9 = var_5(sysroot);
    var_11 = (this->name_)._M_string_length;
  }
  var_23 = var_15;
  local_48 = (type_4 *)&var_14;
  var_14 = var_23;
  var_16 = 0;
  var_15[0] = var_15[0] & 0xffffff00;
                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */
  std::string::var_10(local_48,var_11 + var_9);
  if (0x7fffffff - var_16 < var_9) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */
    std::var_25((char *)(var_3 + 0x179df2));
  }
  std::string::var_13(local_48,sysroot,var_9);
  std::string::var_13(local_48,(this->name_)._M_dataplus._M_p,(this->name_)._M_string_length);
  var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
  if (var_14 == var_23) {
    if (var_16 != 0) {
      if (var_16 == 1) {
        *(type_5 *)var_22 = (type_5)var_15[0];
        var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
      }
      else {
        var_17(var_22,var_23,var_16);
        var_22 = (type_3 *)(this->name_)._M_dataplus._M_p;
      }
    }
    (this->name_)._M_string_length = var_16;
    *(type_5 *)((int)var_22 + var_16) = 0;
    var_11 = var_15[0];
  }
  else {
    if ((anon_union_16_2_edb7204a_for_basic_string<var_19,_std::char_traits<var_19>,_std::var_18<var_19>var_20>var_21
         *)var_22 == &(this->name_).field_2) {
      (this->name_)._M_dataplus._M_p = (type_6)var_14;
      (this->name_)._M_string_length = var_16;
      (this->name_).field_2._M_allocated_capacity = var_15[0];
    }
    else {
      (this->name_)._M_dataplus._M_p = (type_6)var_14;
      var_11 = (this->name_).field_2._M_allocated_capacity;
      (this->name_)._M_string_length = var_16;
      (this->name_).field_2._M_allocated_capacity = var_15[0];
      var_14 = var_22;
      if (var_22 != (type_3 *)0x0) goto LAB_000d8379;
    }
    var_14 = var_23;
    var_11 = var_15[0];
  }
LAB_000d8379:
  var_15[0] = var_11;
  var_23 = var_15;
  var_16 = 0;
  *(type_5 *)var_14 = 0;
  if (var_14 != var_23) {
    var_24(var_14);
  }
  this->is_in_sysroot_ = true;
  return;
}


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

void MASKED(undefined4 *param_1,char *param_2,char *param_3)

{
  uint uVar1;
  char *pcVar2;
  size_t sVar3;
  size_t sVar4;
  uint *puVar5;
  int iVar6;
  undefined4 extraout_ECX;
  int unaff_EDI;
  uint **local_48;
  uint local_44;
  uint *local_40;
  uint *local_34;
  size_t local_30;
  uint local_2c [7];
  
  FUN_00058c4a();
  if (*param_2 == '\0') {
                    /* WARNING: Subroutine does not return */
    FUN_0008b620(unaff_EDI + 0x17fa6a,0x574,unaff_EDI + 0x183c4f,extraout_ECX);
  }
  pcVar2 = (char *)*param_1;
  if (*(char *)(param_1 + 6) == '\0') {
    pcVar2 = (char *)FUN_001a9a30(pcVar2);
    sVar3 = strlen(pcVar2);
    sVar4 = strlen(param_3);
    if (((int)sVar4 < (int)sVar3) && (pcVar2[sVar4] == '/')) {
      pcVar2[sVar4] = '\0';
      iVar6 = FUN_001a9830(pcVar2,param_3);
      if (iVar6 == 0) {
        *(undefined1 *)((int)param_1 + 0x19) = 1;
      }
    }
    free(pcVar2);
    return;
  }
  local_44 = strlen(param_2);
  iVar6 = param_1[1];
  if ((*pcVar2 != '/') && (param_2[local_44 - 1] != '/')) {
    local_30 = 0;
    local_2c[0] = local_2c[0] & 0xffffff00;
    local_34 = local_2c;
                    /* try { // try from 000d8432 to 000d845c has its CatchHandler @ 000d861a */
    FUN_001b4700(&local_34,iVar6 + 1);
    FUN_001b4cf0(&local_34,local_30,0,1,0x2f);
    FUN_001b5c80(&local_34,*param_1,param_1[1]);
    puVar5 = (uint *)*param_1;
    if (local_34 == local_2c) {
      if (local_30 != 0) {
        if (local_30 == 1) {
          *(undefined1 *)puVar5 = (undefined1)local_2c[0];
          puVar5 = (uint *)*param_1;
        }
        else {
          memcpy(puVar5,local_2c,local_30);
          puVar5 = (uint *)*param_1;
        }
      }
      param_1[1] = local_30;
      *(undefined1 *)((int)puVar5 + local_30) = 0;
      uVar1 = local_2c[0];
    }
    else {
      if (puVar5 == param_1 + 2) {
        *param_1 = local_34;
        param_1[1] = local_30;
        param_1[2] = local_2c[0];
      }
      else {
        *param_1 = local_34;
        uVar1 = param_1[2];
        param_1[1] = local_30;
        param_1[2] = local_2c[0];
        local_34 = puVar5;
        if (puVar5 != (uint *)0x0) goto LAB_000d849e;
      }
      local_34 = local_2c;
      uVar1 = local_2c[0];
    }
LAB_000d849e:
    local_2c[0] = uVar1;
    local_40 = local_2c;
    local_30 = 0;
    *(undefined1 *)local_34 = 0;
    if (local_34 != local_40) {
      FUN_001ac470(local_34);
    }
    local_44 = strlen(param_2);
    iVar6 = param_1[1];
  }
  local_40 = local_2c;
  local_48 = &local_34;
  local_34 = local_40;
  local_30 = 0;
  local_2c[0] = local_2c[0] & 0xffffff00;
                    /* try { // try from 000d82fe to 000d8337 has its CatchHandler @ 000d8621 */
  FUN_001b4700(local_48,iVar6 + local_44);
  if (0x7fffffff - local_30 < local_44) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 000d8615 to 000d8619 has its CatchHandler @ 000d8621 */
    FUN_001f1e60(unaff_EDI + 0x179df2);
  }
  FUN_001b5c80(local_48,param_2,local_44);
  FUN_001b5c80(local_48,*param_1,param_1[1]);
  puVar5 = (uint *)*param_1;
  if (local_34 == local_40) {
    if (local_30 != 0) {
      if (local_30 == 1) {
        *(undefined1 *)puVar5 = (undefined1)local_2c[0];
        puVar5 = (uint *)*param_1;
      }
      else {
        memcpy(puVar5,local_40,local_30);
        puVar5 = (uint *)*param_1;
      }
    }
    param_1[1] = local_30;
    *(undefined1 *)((int)puVar5 + local_30) = 0;
    uVar1 = local_2c[0];
  }
  else {
    if (puVar5 == param_1 + 2) {
      *param_1 = local_34;
      param_1[1] = local_30;
      param_1[2] = local_2c[0];
    }
    else {
      *param_1 = local_34;
      uVar1 = param_1[2];
      param_1[1] = local_30;
      param_1[2] = local_2c[0];
      local_34 = puVar5;
      if (puVar5 != (uint *)0x0) goto LAB_000d8379;
    }
    local_34 = local_40;
    uVar1 = local_2c[0];
  }
LAB_000d8379:
  local_2c[0] = uVar1;
  local_40 = local_2c;
  local_30 = 0;
  *(undefined1 *)local_34 = 0;
  if (local_34 != local_40) {
    FUN_001ac470(local_34);
  }
  *(undefined1 *)((int)param_1 + 0x19) = 1;
  return;
}

