
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int wordsplit_cmdexp(wordsplit *wsp)

{
  wordsplit_node *pwVar1;
  uint uVar2;
  wordsplit_node *node;
  size_t sVar3;
  char *pcVar4;
  wordsplit_node *pwVar5;
  int iVar6;
  char *pcVar7;
  wordsplit_node *pwVar8;
  char *__s;
  char *beg;
  size_t sVar9;
  int in_GS_OFFSET;
  char *p;
  wordsplit_node *tail;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pwVar1 = wsp->ws_head;
joined_r0x00023e17:
  do {
    do {
      node = pwVar1;
      if (node == (wordsplit_node *)0x0) {
        wsnode_nullelim(wsp);
        iVar6 = 0;
LAB_00023feb:
        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
          return iVar6;
        }
                    /* WARNING: Subroutine does not return */
        __stack_chk_fail_local();
      }
      pwVar1 = node->next;
      uVar2 = node->flags;
    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));
    __s = (node->v).word;
    if ((uVar2 & 2) == 0) {
      sVar3 = (node->v).segm.end - (int)__s;
      __s = wsp->ws_input + (int)__s;
    }
    else {
      sVar3 = strlen(__s);
    }
    pcVar4 = __s + sVar3;
    tail = node;
    p = __s;
  } while (pcVar4 <= __s);
  beg = (char *)0x0;
  pwVar5 = node;
LAB_00023ea1:
  do {
    if (*p == '\\') {
      pcVar7 = p + 2;
    }
    else {
      if ((*p == '$') && (p[1] == '(')) {
        sVar9 = (int)p - (int)__s;
        if (node != pwVar5) {
          pwVar5->flags = pwVar5->flags | 0x10;
        }
        if ((sVar9 != 0) &&
           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))
        goto LAB_00024090;
        p = p + 1;
        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);
        if (iVar6 != 0) goto LAB_00024090;
        pcVar7 = p + 1;
        beg = p + (int)(beg + (1 - (int)__s));
        pwVar5 = tail;
        __s = pcVar7;
        p = pcVar7;
        if (pcVar4 <= pcVar7) break;
        goto LAB_00023ea1;
      }
      pcVar7 = p + 1;
    }
    p = pcVar7;
  } while (pcVar7 < pcVar4);
  p = pcVar7;
  if (__s < pcVar7) {
    sVar9 = (int)pcVar7 - (int)__s;
    if (node == pwVar5) {
      if (sVar9 != 0) {
LAB_00023f60:
        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);
        pwVar5 = tail;
        if (iVar6 == 0) goto LAB_00023f8a;
LAB_00024090:
        iVar6 = 1;
        goto LAB_00023feb;
      }
      goto joined_r0x00023e17;
    }
    pwVar5->flags = pwVar5->flags | 0x10;
    if (sVar9 != 0) goto LAB_00023f60;
  }
  else {
LAB_00023f8a:
    if (node == pwVar5) goto joined_r0x00023e17;
  }
  pwVar5 = node->prev;
  if (pwVar5 == (wordsplit_node *)0x0) {
    wsp->ws_head = node->next;
    pwVar8 = node->next;
    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;
    wsp->ws_tail = (wordsplit_node *)0x0;
  }
  else {
    pwVar5->next = node->next;
    pwVar8 = node->next;
    if (pwVar8 == (wordsplit_node *)0x0) {
      pwVar5->flags = pwVar5->flags & 0xffffffef;
      wsp->ws_tail = pwVar5;
    }
    else {
LAB_00023fad:
      pwVar8->prev = pwVar5;
    }
  }
  node->prev = (wordsplit_node *)0x0;
  node->next = (wordsplit_node *)0x0;
  if ((node->flags & 2) != 0) {
    free((node->v).word);
  }
  free(node);
  goto joined_r0x00023e17;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_00023de0(int param_1)

{
  int *piVar1;
  uint uVar2;
  int *__ptr;
  size_t sVar3;
  char *pcVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  char *pcVar8;
  char *__s;
  char *pcVar9;
  int in_GS_OFFSET;
  char *local_28;
  int *local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = *(int **)(param_1 + 0x6c);
joined_r0x00023e17:
  do {
    do {
      __ptr = piVar1;
      if (__ptr == (int *)0x0) {
        FUN_0001efc0();
        uVar7 = 0;
LAB_00023feb:
        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
          return uVar7;
        }
                    /* WARNING: Subroutine does not return */
        FUN_0002ddf0();
      }
      piVar1 = (int *)__ptr[1];
      uVar2 = __ptr[2];
    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));
    __s = (char *)__ptr[3];
    if ((uVar2 & 2) == 0) {
      sVar3 = __ptr[4] - (int)__s;
      __s = __s + *(int *)(param_1 + 0x58);
    }
    else {
      sVar3 = strlen(__s);
    }
    pcVar4 = __s + sVar3;
    local_24 = __ptr;
    local_28 = __s;
  } while (pcVar4 <= __s);
  pcVar9 = (char *)0x0;
  piVar5 = __ptr;
LAB_00023ea1:
  do {
    if (*local_28 == '\\') {
      pcVar8 = local_28 + 2;
    }
    else {
      if ((*local_28 == '$') && (local_28[1] == '(')) {
        if (__ptr != piVar5) {
          piVar5[2] = piVar5[2] | 0x10;
        }
        if (((int)local_28 - (int)__s != 0) &&
           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))
        goto LAB_00024090;
        local_28 = local_28 + 1;
        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);
        if (iVar6 != 0) goto LAB_00024090;
        pcVar8 = local_28 + 1;
        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));
        piVar5 = local_24;
        __s = pcVar8;
        local_28 = pcVar8;
        if (pcVar4 <= pcVar8) break;
        goto LAB_00023ea1;
      }
      pcVar8 = local_28 + 1;
    }
    local_28 = pcVar8;
  } while (pcVar8 < pcVar4);
  local_28 = pcVar8;
  if (__s < pcVar8) {
    iVar6 = (int)pcVar8 - (int)__s;
    if (__ptr == piVar5) {
      if (iVar6 != 0) {
LAB_00023f60:
        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);
        piVar5 = local_24;
        if (iVar6 == 0) goto LAB_00023f8a;
LAB_00024090:
        uVar7 = 1;
        goto LAB_00023feb;
      }
      goto joined_r0x00023e17;
    }
    piVar5[2] = piVar5[2] | 0x10;
    if (iVar6 != 0) goto LAB_00023f60;
  }
  else {
LAB_00023f8a:
    if (__ptr == piVar5) goto joined_r0x00023e17;
  }
  iVar6 = *__ptr;
  if (iVar6 == 0) {
    *(int *)(param_1 + 0x6c) = __ptr[1];
    piVar5 = (int *)__ptr[1];
    if (piVar5 != (int *)0x0) goto LAB_00023fad;
    *(undefined4 *)(param_1 + 0x70) = 0;
  }
  else {
    *(int *)(iVar6 + 4) = __ptr[1];
    piVar5 = (int *)__ptr[1];
    if (piVar5 == (int *)0x0) {
      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;
      *(int *)(param_1 + 0x70) = iVar6;
    }
    else {
LAB_00023fad:
      *piVar5 = iVar6;
    }
  }
  *__ptr = 0;
  __ptr[1] = 0;
  if ((*(byte *)(__ptr + 2) & 2) != 0) {
    free((void *)__ptr[3]);
  }
  free(__ptr);
  goto joined_r0x00023e17;
}


CALL 0x0001636e
ADD EAX,0x1708b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x8],EAX
MOV EDI,dword ptr [EAX + 0x6c]
LEA EAX,[ESP + 0x24]
MOV EBX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x2c],EBX
XOR EBX,EBX
MOV dword ptr [ESP + 0x18],EAX
TEST EDI,EDI
JNZ 0x00023e2c
JMP 0x00023fe0
MOV EDI,dword ptr [ESP + 0x4]
TEST EDI,EDI
JZ 0x00023fe0
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,dword ptr [EDI + 0x8]
TEST AL,0x8
JNZ 0x00023e20
TEST AL,0x1
JNZ 0x00023e20
MOV ECX,dword ptr [EDI + 0xc]
TEST AL,0x2
JZ 0x00024010
SUB ESP,0xc
PUSH ECX
MOV EBX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0x1c],ECX
CALL 0x00012290
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x10],EAX
ADD EAX,EDX
MOV dword ptr [ESP + 0x28],EDI
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0x24],EDX
CMP EAX,EDX
JBE 0x00023e20
LEA ESI,[ESP + 0x28]
MOV EAX,EDI
MOV EBX,EDX
XOR EBP,EBP
MOV dword ptr [ESP + 0xc],ESI
JMP 0x00023ea1
ADD EDX,0x1
MOV dword ptr [ESP + 0x24],EDX
CMP dword ptr [ESP + 0x14],EDX
JBE 0x00023f48
MOVZX ECX,byte ptr [EDX]
CMP CL,0x5c
JZ 0x00024008
CMP CL,0x24
JNZ 0x00023e90
CMP byte ptr [EDX + 0x1],0x28
JNZ 0x00023e90
MOV ESI,EDX
SUB ESI,EBX
CMP EDI,EAX
JZ 0x00023ec4
OR dword ptr [EAX + 0x8],0x10
TEST ESI,ESI
JZ 0x00023eed
SUB ESP,0x4
MOV ECX,EDI
PUSH 0x10
PUSH ESI
PUSH EBP
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x00020830
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00024090
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EDI + 0x8]
ADD EDX,0x1
MOV ECX,dword ptr [ESP + 0x10]
SUB ESP,0x4
MOV dword ptr [ESP + 0x28],EDX
AND EAX,0x14
SUB ECX,ESI
PUSH EAX
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x000237e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00024090
MOV EAX,dword ptr [ESP + 0x24]
MOV EDX,EAX
SUB EDX,EBX
LEA EBX,[EAX + 0x1]
MOV EAX,dword ptr [ESP + 0x28]
LEA EBP,[EBP + EDX*0x1 + 0x1]
MOV EDX,EBX
MOV dword ptr [ESP + 0x24],EDX
CMP dword ptr [ESP + 0x14],EDX
JA 0x00023ea1
LEA ESI,[ESI]
NOP
CMP EBX,EDX
JNC 0x00023f8a
MOV ECX,EDX
SUB ECX,EBX
CMP EDI,EAX
JZ 0x00024070
OR dword ptr [EAX + 0x8],0x10
TEST ECX,ECX
JZ 0x00023f92
MOV EAX,dword ptr [EDI + 0x8]
LEA EDX,[ESP + 0x28]
SUB ESP,0x4
AND EAX,0x14
PUSH EAX
PUSH ECX
MOV ECX,EDI
PUSH EBP
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x00020830
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00024090
MOV EAX,dword ptr [ESP + 0x28]
CMP EDI,EAX
JZ 0x00023e20
MOV EAX,dword ptr [EDI]
MOV EDX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JZ 0x00024050
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JZ 0x00024080
MOV dword ptr [EDX],EAX
MOV dword ptr [EDI],0x0
MOV dword ptr [EDI + 0x4],0x0
TEST byte ptr [EDI + 0x8],0x2
JNZ 0x00024030
SUB ESP,0xc
PUSH EDI
MOV EBX,dword ptr [ESP + 0x2c]
CALL 0x000124d0
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x4]
TEST EDI,EDI
JNZ 0x00023e2c
NOP
MOV EAX,dword ptr [ESP + 0x8]
CALL 0x0001efc0
XOR EAX,EAX
MOV EBX,dword ptr [ESP + 0x2c]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x0002409a
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD EDX,0x2
JMP 0x00023e93
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [EAX + 0x58]
MOV EAX,dword ptr [EDI + 0x10]
SUB EAX,ECX
ADD EDX,ECX
MOV dword ptr [ESP + 0x10],EAX
JMP 0x00023e65
SUB ESP,0xc
PUSH dword ptr [EDI + 0xc]
MOV EBX,dword ptr [ESP + 0x2c]
CALL 0x000124d0
ADD ESP,0x10
JMP 0x00023fc2
MOV EBX,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x6c],EDX
MOV EDX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JNZ 0x00023fad
MOV EBX,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x70],EAX
JMP 0x00023faf
TEST ECX,ECX
JZ 0x00023e20
JMP 0x00023f60
MOV EBX,dword ptr [ESP + 0x8]
AND dword ptr [EAX + 0x8],0xffffffef
MOV dword ptr [EBX + 0x70],EAX
JMP 0x00023faf
MOV EAX,0x1
JMP 0x00023feb
CALL 0x0002ddf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_00023de0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}\n\n" comment (function_definition "undefined4 FUN_00023de0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" type_identifier (function_declarator "FUN_00023de0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x6c);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x6c)" identifier = (pointer_expression "*(int **)(param_1 + 0x6c)" * (cast_expression "(int **)(param_1 + 0x6c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" statement_identifier : (do_statement "do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" do (compound_statement "{\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  }" { (do_statement "do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));" do (compound_statement "{\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    }" { (expression_statement "__ptr = piVar1;" (assignment_expression "__ptr = piVar1" identifier = identifier) ;) (if_statement "if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }" if (parenthesized_expression "(__ptr == (int *)0x0)" ( (binary_expression "__ptr == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    /* WARNING: Subroutine does not return */\n        FUN_0002ddf0();\n      }" { (expression_statement "FUN_0001efc0();" (call_expression "FUN_0001efc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n          return uVar7;\n        }" { (return_statement "return uVar7;" return identifier ;) }))) comment (expression_statement "FUN_0002ddf0();" (call_expression "FUN_0002ddf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)__ptr[1];" (assignment_expression "piVar1 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = __ptr[2];" (assignment_expression "uVar2 = __ptr[2]" identifier = (subscript_expression "__ptr[2]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "(((uVar2 & 8) != 0) || ((uVar2 & 1) != 0))" ( (binary_expression "((uVar2 & 8) != 0) || ((uVar2 & 1) != 0)" (parenthesized_expression "((uVar2 & 8) != 0)" ( (binary_expression "(uVar2 & 8) != 0" (parenthesized_expression "(uVar2 & 8)" ( (binary_expression "uVar2 & 8" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) ))) )) ;) (expression_statement "__s = (char *)__ptr[3];" (assignment_expression "__s = (char *)__ptr[3]" identifier = (cast_expression "(char *)__ptr[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }" if (parenthesized_expression "((uVar2 & 2) == 0)" ( (binary_expression "(uVar2 & 2) == 0" (parenthesized_expression "(uVar2 & 2)" ( (binary_expression "uVar2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }" { (expression_statement "sVar3 = __ptr[4] - (int)__s;" (assignment_expression "sVar3 = __ptr[4] - (int)__s" identifier = (binary_expression "__ptr[4] - (int)__s" (subscript_expression "__ptr[4]" identifier [ number_literal ]) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s = __s + *(int *)(param_1 + 0x58);" (assignment_expression "__s = __s + *(int *)(param_1 + 0x58)" identifier = (binary_expression "__s + *(int *)(param_1 + 0x58)" identifier + (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))))) ;) }) (else_clause "else {\n      sVar3 = strlen(__s);\n    }" else (compound_statement "{\n      sVar3 = strlen(__s);\n    }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }))) (expression_statement "pcVar4 = __s + sVar3;" (assignment_expression "pcVar4 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) (expression_statement "local_24 = __ptr;" (assignment_expression "local_24 = __ptr" identifier = identifier) ;) (expression_statement "local_28 = __s;" (assignment_expression "local_28 = __s" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar4 <= __s)" ( (binary_expression "pcVar4 <= __s" identifier <= identifier) )) ;)) (expression_statement "pcVar9 = (char *)0x0;" (assignment_expression "pcVar9 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar5 = __ptr;" (assignment_expression "piVar5 = __ptr" identifier = identifier) ;) (labeled_statement "LAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" statement_identifier : (do_statement "do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" do (compound_statement "{\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  }" { (if_statement "if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" if (parenthesized_expression "(*local_28 == '\\')" ( (binary_expression "*local_28 == '\\'" (pointer_expression "*local_28" * identifier) == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar8 = local_28 + 2;\n    }" { (expression_statement "pcVar8 = local_28 + 2;" (assignment_expression "pcVar8 = local_28 + 2" identifier = (binary_expression "local_28 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" else (compound_statement "{\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" { (if_statement "if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" if (parenthesized_expression "((*local_28 == '$') && (local_28[1] == '('))" ( (binary_expression "(*local_28 == '$') && (local_28[1] == '(')" (parenthesized_expression "(*local_28 == '$')" ( (binary_expression "*local_28 == '$'" (pointer_expression "*local_28" * identifier) == (char_literal "'$'" ' character ')) )) && (parenthesized_expression "(local_28[1] == '(')" ( (binary_expression "local_28[1] == '('" (subscript_expression "local_28[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" { (if_statement "if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }" if (parenthesized_expression "(__ptr != piVar5)" ( (binary_expression "__ptr != piVar5" identifier != identifier) )) (compound_statement "{\n          piVar5[2] = piVar5[2] | 0x10;\n        }" { (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) | number_literal)) ;) })) (if_statement "if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;" if (parenthesized_expression "(((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))" ( (binary_expression "((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" (parenthesized_expression "((int)local_28 - (int)__s != 0)" ( (binary_expression "(int)local_28 - (int)__s != 0" (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) != number_literal) )) && (parenthesized_expression "(iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" ( (comma_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0" (assignment_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" identifier = (call_expression "FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" identifier (argument_list "(pcVar9,(int)local_28 - (int)__s,0x10)" ( identifier , (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" identifier = (call_expression "FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" identifier (argument_list "(&local_24,&local_28,__ptr[2] & 0x14)" ( (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_28" & identifier) , (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" identifier [ number_literal ]) & number_literal) )))) ;) (if_statement "if (iVar6 != 0) goto LAB_00024090;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));" (assignment_expression "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s))" identifier = (binary_expression "local_28 + (int)(pcVar9 + (1 - (int)__s))" identifier + (cast_expression "(int)(pcVar9 + (1 - (int)__s))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar9 + (1 - (int)__s))" ( (binary_expression "pcVar9 + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))))) ;) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" identifier = identifier) ;) (expression_statement "__s = pcVar8;" (assignment_expression "__s = pcVar8" identifier = identifier) ;) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) (if_statement "if (pcVar4 <= pcVar8) break;" if (parenthesized_expression "(pcVar4 <= pcVar8)" ( (binary_expression "pcVar4 <= pcVar8" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00023ea1;" goto statement_identifier ;) })) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) }))) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 < pcVar4)" ( (binary_expression "pcVar8 < pcVar4" identifier < identifier) )) ;)) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) (if_statement "if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" if (parenthesized_expression "(__s < pcVar8)" ( (binary_expression "__s < pcVar8" identifier < identifier) )) (compound_statement "{\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }" { (expression_statement "iVar6 = (int)pcVar8 - (int)__s;" (assignment_expression "iVar6 = (int)pcVar8 - (int)__s" identifier = (binary_expression "(int)pcVar8 - (int)__s" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" if (parenthesized_expression "(__ptr == piVar5)" ( (binary_expression "__ptr == piVar5" identifier == identifier) )) (compound_statement "{\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" { (if_statement "if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" { (labeled_statement "LAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" statement_identifier : (expression_statement "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" identifier = (call_expression "FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" identifier (argument_list "(pcVar9,iVar6,__ptr[2] & 0x14)" ( identifier , identifier , (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" identifier [ number_literal ]) & number_literal) )))) ;)) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_00023f8a;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023f8a;" goto statement_identifier ;)) (labeled_statement "LAB_00024090:\n        uVar7 = 1;" statement_identifier : (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;)) (goto_statement "goto LAB_00023feb;" goto statement_identifier ;) })) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })) (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if (iVar6 != 0) goto LAB_00023f60;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00023f60;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" else (compound_statement "{\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" { (labeled_statement "LAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;" statement_identifier : (if_statement "if (__ptr == piVar5) goto joined_r0x00023e17;" if (parenthesized_expression "(__ptr == piVar5)" ( (binary_expression "__ptr == piVar5" identifier == identifier) )) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;))) }))) (expression_statement "iVar6 = *__ptr;" (assignment_expression "iVar6 = *__ptr" identifier = (pointer_expression "*__ptr" * identifier)) ;) (if_statement "if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }" { (expression_statement "*(int *)(param_1 + 0x6c) = __ptr[1];" (assignment_expression "*(int *)(param_1 + 0x6c) = __ptr[1]" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 != (int *)0x0) goto LAB_00023fad;" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023fad;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" else (compound_statement "{\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" { (expression_statement "*(int *)(iVar6 + 4) = __ptr[1];" (assignment_expression "*(int *)(iVar6 + 4) = __ptr[1]" (pointer_expression "*(int *)(iVar6 + 4)" * (cast_expression "(int *)(iVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }" { (expression_statement "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;" (assignment_expression "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x70) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x70) = iVar6" (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" else (compound_statement "{\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" { (labeled_statement "LAB_00023fad:\n      *piVar5 = iVar6;" statement_identifier : (expression_statement "*piVar5 = iVar6;" (assignment_expression "*piVar5 = iVar6" (pointer_expression "*piVar5" * identifier) = identifier) ;)) }))) }))) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }" if (parenthesized_expression "((*(byte *)(__ptr + 2) & 2) != 0)" ( (binary_expression "(*(byte *)(__ptr + 2) & 2) != 0" (parenthesized_expression "(*(byte *)(__ptr + 2) & 2)" ( (binary_expression "*(byte *)(__ptr + 2) & 2" (pointer_expression "*(byte *)(__ptr + 2)" * (cast_expression "(byte *)(__ptr + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr + 2)" ( (binary_expression "__ptr + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    free((void *)__ptr[3]);\n  }" { (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" identifier (argument_list "((void *)__ptr[3])" ( (cast_expression "(void *)__ptr[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ])) ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nint wordsplit_cmdexp(wordsplit *wsp)\n\n{\n  wordsplit_node *pwVar1;\n  uint uVar2;\n  wordsplit_node *node;\n  size_t sVar3;\n  char *pcVar4;\n  wordsplit_node *pwVar5;\n  int iVar6;\n  char *pcVar7;\n  wordsplit_node *pwVar8;\n  char *__s;\n  char *beg;\n  size_t sVar9;\n  int in_GS_OFFSET;\n  char *p;\n  wordsplit_node *tail;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pwVar1 = wsp->ws_head;\njoined_r0x00023e17:\n  do {\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  } while (pcVar4 <= __s);\n  beg = (char *)0x0;\n  pwVar5 = node;\nLAB_00023ea1:\n  do {\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  } while (pcVar7 < pcVar4);\n  p = pcVar7;\n  if (__s < pcVar7) {\n    sVar9 = (int)pcVar7 - (int)__s;\n    if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    pwVar5->flags = pwVar5->flags | 0x10;\n    if (sVar9 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }\n  pwVar5 = node->prev;\n  if (pwVar5 == (wordsplit_node *)0x0) {\n    wsp->ws_head = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;\n    wsp->ws_tail = (wordsplit_node *)0x0;\n  }\n  else {\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }\n  node->prev = (wordsplit_node *)0x0;\n  node->next = (wordsplit_node *)0x0;\n  if ((node->flags & 2) != 0) {\n    free((node->v).word);\n  }\n  free(node);\n  goto joined_r0x00023e17;\n}\n\n" comment comment (function_definition "int wordsplit_cmdexp(wordsplit *wsp)\n\n{\n  wordsplit_node *pwVar1;\n  uint uVar2;\n  wordsplit_node *node;\n  size_t sVar3;\n  char *pcVar4;\n  wordsplit_node *pwVar5;\n  int iVar6;\n  char *pcVar7;\n  wordsplit_node *pwVar8;\n  char *__s;\n  char *beg;\n  size_t sVar9;\n  int in_GS_OFFSET;\n  char *p;\n  wordsplit_node *tail;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pwVar1 = wsp->ws_head;\njoined_r0x00023e17:\n  do {\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  } while (pcVar4 <= __s);\n  beg = (char *)0x0;\n  pwVar5 = node;\nLAB_00023ea1:\n  do {\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  } while (pcVar7 < pcVar4);\n  p = pcVar7;\n  if (__s < pcVar7) {\n    sVar9 = (int)pcVar7 - (int)__s;\n    if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    pwVar5->flags = pwVar5->flags | 0x10;\n    if (sVar9 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }\n  pwVar5 = node->prev;\n  if (pwVar5 == (wordsplit_node *)0x0) {\n    wsp->ws_head = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;\n    wsp->ws_tail = (wordsplit_node *)0x0;\n  }\n  else {\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }\n  node->prev = (wordsplit_node *)0x0;\n  node->next = (wordsplit_node *)0x0;\n  if ((node->flags & 2) != 0) {\n    free((node->v).word);\n  }\n  free(node);\n  goto joined_r0x00023e17;\n}" primitive_type (function_declarator "wordsplit_cmdexp(wordsplit *wsp)" identifier (parameter_list "(wordsplit *wsp)" ( (parameter_declaration "wordsplit *wsp" type_identifier (pointer_declarator "*wsp" * identifier)) ))) (compound_statement "{\n  wordsplit_node *pwVar1;\n  uint uVar2;\n  wordsplit_node *node;\n  size_t sVar3;\n  char *pcVar4;\n  wordsplit_node *pwVar5;\n  int iVar6;\n  char *pcVar7;\n  wordsplit_node *pwVar8;\n  char *__s;\n  char *beg;\n  size_t sVar9;\n  int in_GS_OFFSET;\n  char *p;\n  wordsplit_node *tail;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pwVar1 = wsp->ws_head;\njoined_r0x00023e17:\n  do {\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  } while (pcVar4 <= __s);\n  beg = (char *)0x0;\n  pwVar5 = node;\nLAB_00023ea1:\n  do {\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  } while (pcVar7 < pcVar4);\n  p = pcVar7;\n  if (__s < pcVar7) {\n    sVar9 = (int)pcVar7 - (int)__s;\n    if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    pwVar5->flags = pwVar5->flags | 0x10;\n    if (sVar9 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }\n  pwVar5 = node->prev;\n  if (pwVar5 == (wordsplit_node *)0x0) {\n    wsp->ws_head = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;\n    wsp->ws_tail = (wordsplit_node *)0x0;\n  }\n  else {\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }\n  node->prev = (wordsplit_node *)0x0;\n  node->next = (wordsplit_node *)0x0;\n  if ((node->flags & 2) != 0) {\n    free((node->v).word);\n  }\n  free(node);\n  goto joined_r0x00023e17;\n}" { (declaration "wordsplit_node *pwVar1;" type_identifier (pointer_declarator "*pwVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "wordsplit_node *node;" type_identifier (pointer_declarator "*node" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "wordsplit_node *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "wordsplit_node *pwVar8;" type_identifier (pointer_declarator "*pwVar8" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *beg;" primitive_type (pointer_declarator "*beg" * identifier) ;) (declaration "size_t sVar9;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "wordsplit_node *tail;" type_identifier (pointer_declarator "*tail" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pwVar1 = wsp->ws_head;" (assignment_expression "pwVar1 = wsp->ws_head" identifier = (field_expression "wsp->ws_head" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x00023e17:\n  do {\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  } while (pcVar4 <= __s);" statement_identifier : (do_statement "do {\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  } while (pcVar4 <= __s);" do (compound_statement "{\n    do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (node->v).word;\n    if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    tail = node;\n    p = __s;\n  }" { (do_statement "do {\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));" do (compound_statement "{\n      node = pwVar1;\n      if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }\n      pwVar1 = node->next;\n      uVar2 = node->flags;\n    }" { (expression_statement "node = pwVar1;" (assignment_expression "node = pwVar1" identifier = identifier) ;) (if_statement "if (node == (wordsplit_node *)0x0) {\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" if (parenthesized_expression "(node == (wordsplit_node *)0x0)" ( (binary_expression "node == (wordsplit_node *)0x0" identifier == (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        wsnode_nullelim(wsp);\n        iVar6 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }\n                    /* WARNING: Subroutine does not return */\n        __stack_chk_fail_local();\n      }" { (expression_statement "wsnode_nullelim(wsp);" (call_expression "wsnode_nullelim(wsp)" identifier (argument_list "(wsp)" ( identifier ))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return iVar6;\n        }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pwVar1 = node->next;" (assignment_expression "pwVar1 = node->next" identifier = (field_expression "node->next" identifier -> field_identifier)) ;) (expression_statement "uVar2 = node->flags;" (assignment_expression "uVar2 = node->flags" identifier = (field_expression "node->flags" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(((uVar2 & 8) != 0) || ((uVar2 & 1) != 0))" ( (binary_expression "((uVar2 & 8) != 0) || ((uVar2 & 1) != 0)" (parenthesized_expression "((uVar2 & 8) != 0)" ( (binary_expression "(uVar2 & 8) != 0" (parenthesized_expression "(uVar2 & 8)" ( (binary_expression "uVar2 & 8" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) ))) )) ;) (expression_statement "__s = (node->v).word;" (assignment_expression "__s = (node->v).word" identifier = (field_expression "(node->v).word" (parenthesized_expression "(node->v)" ( (field_expression "node->v" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((uVar2 & 2) == 0) {\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }\n    else {\n      sVar3 = strlen(__s);\n    }" if (parenthesized_expression "((uVar2 & 2) == 0)" ( (binary_expression "(uVar2 & 2) == 0" (parenthesized_expression "(uVar2 & 2)" ( (binary_expression "uVar2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar3 = (node->v).segm.end - (int)__s;\n      __s = wsp->ws_input + (int)__s;\n    }" { (expression_statement "sVar3 = (node->v).segm.end - (int)__s;" (assignment_expression "sVar3 = (node->v).segm.end - (int)__s" identifier = (binary_expression "(node->v).segm.end - (int)__s" (field_expression "(node->v).segm.end" (field_expression "(node->v).segm" (parenthesized_expression "(node->v)" ( (field_expression "node->v" identifier -> field_identifier) )) . field_identifier) . field_identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s = wsp->ws_input + (int)__s;" (assignment_expression "__s = wsp->ws_input + (int)__s" identifier = (binary_expression "wsp->ws_input + (int)__s" (field_expression "wsp->ws_input" identifier -> field_identifier) + (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      sVar3 = strlen(__s);\n    }" else (compound_statement "{\n      sVar3 = strlen(__s);\n    }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }))) (expression_statement "pcVar4 = __s + sVar3;" (assignment_expression "pcVar4 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) (expression_statement "tail = node;" (assignment_expression "tail = node" identifier = identifier) ;) (expression_statement "p = __s;" (assignment_expression "p = __s" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar4 <= __s)" ( (binary_expression "pcVar4 <= __s" identifier <= identifier) )) ;)) (expression_statement "beg = (char *)0x0;" (assignment_expression "beg = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pwVar5 = node;" (assignment_expression "pwVar5 = node" identifier = identifier) ;) (labeled_statement "LAB_00023ea1:\n  do {\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  } while (pcVar7 < pcVar4);" statement_identifier : (do_statement "do {\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  } while (pcVar7 < pcVar4);" do (compound_statement "{\n    if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }\n    p = pcVar7;\n  }" { (if_statement "if (*p == '\\') {\n      pcVar7 = p + 2;\n    }\n    else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }" if (parenthesized_expression "(*p == '\\')" ( (binary_expression "*p == '\\'" (pointer_expression "*p" * identifier) == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar7 = p + 2;\n    }" { (expression_statement "pcVar7 = p + 2;" (assignment_expression "pcVar7 = p + 2" identifier = (binary_expression "p + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }" else (compound_statement "{\n      if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }\n      pcVar7 = p + 1;\n    }" { (if_statement "if ((*p == '$') && (p[1] == '(')) {\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }" if (parenthesized_expression "((*p == '$') && (p[1] == '('))" ( (binary_expression "(*p == '$') && (p[1] == '(')" (parenthesized_expression "(*p == '$')" ( (binary_expression "*p == '$'" (pointer_expression "*p" * identifier) == (char_literal "'$'" ' character ')) )) && (parenthesized_expression "(p[1] == '(')" ( (binary_expression "p[1] == '('" (subscript_expression "p[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n        sVar9 = (int)p - (int)__s;\n        if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }\n        if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        p = p + 1;\n        iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar7 = p + 1;\n        beg = p + (int)(beg + (1 - (int)__s));\n        pwVar5 = tail;\n        __s = pcVar7;\n        p = pcVar7;\n        if (pcVar4 <= pcVar7) break;\n        goto LAB_00023ea1;\n      }" { (expression_statement "sVar9 = (int)p - (int)__s;" (assignment_expression "sVar9 = (int)p - (int)__s" identifier = (binary_expression "(int)p - (int)__s" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (node != pwVar5) {\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }" if (parenthesized_expression "(node != pwVar5)" ( (binary_expression "node != pwVar5" identifier != identifier) )) (compound_statement "{\n          pwVar5->flags = pwVar5->flags | 0x10;\n        }" { (expression_statement "pwVar5->flags = pwVar5->flags | 0x10;" (assignment_expression "pwVar5->flags = pwVar5->flags | 0x10" (field_expression "pwVar5->flags" identifier -> field_identifier) = (binary_expression "pwVar5->flags | 0x10" (field_expression "pwVar5->flags" identifier -> field_identifier) | number_literal)) ;) })) (if_statement "if ((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))\n        goto LAB_00024090;" if (parenthesized_expression "((sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0))" ( (binary_expression "(sVar9 != 0) &&\n           (iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0)" (parenthesized_expression "(sVar9 != 0)" ( (binary_expression "sVar9 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0)" ( (comma_expression "iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10), iVar6 != 0" (assignment_expression "iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10)" identifier = (call_expression "node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,0x10)" identifier (argument_list "(wsp,&tail,node,(size_t)beg,sVar9,0x10)" ( identifier , (pointer_expression "&tail" & identifier) , identifier , (cast_expression "(size_t)beg" ( (type_descriptor "size_t" primitive_type) ) identifier) , identifier , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "p = p + 1;" (assignment_expression "p = p + 1" identifier = (binary_expression "p + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14);" (assignment_expression "iVar6 = expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14)" identifier = (call_expression "expcmd(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14)" identifier (argument_list "(wsp,p,sVar3 - sVar9,&tail,&p,node->flags & 0x14)" ( identifier , identifier , (binary_expression "sVar3 - sVar9" identifier - identifier) , (pointer_expression "&tail" & identifier) , (pointer_expression "&p" & identifier) , (binary_expression "node->flags & 0x14" (field_expression "node->flags" identifier -> field_identifier) & number_literal) )))) ;) (if_statement "if (iVar6 != 0) goto LAB_00024090;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "pcVar7 = p + 1;" (assignment_expression "pcVar7 = p + 1" identifier = (binary_expression "p + 1" identifier + number_literal)) ;) (expression_statement "beg = p + (int)(beg + (1 - (int)__s));" (assignment_expression "beg = p + (int)(beg + (1 - (int)__s))" identifier = (binary_expression "p + (int)(beg + (1 - (int)__s))" identifier + (cast_expression "(int)(beg + (1 - (int)__s))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(beg + (1 - (int)__s))" ( (binary_expression "beg + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))))) ;) (expression_statement "pwVar5 = tail;" (assignment_expression "pwVar5 = tail" identifier = identifier) ;) (expression_statement "__s = pcVar7;" (assignment_expression "__s = pcVar7" identifier = identifier) ;) (expression_statement "p = pcVar7;" (assignment_expression "p = pcVar7" identifier = identifier) ;) (if_statement "if (pcVar4 <= pcVar7) break;" if (parenthesized_expression "(pcVar4 <= pcVar7)" ( (binary_expression "pcVar4 <= pcVar7" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00023ea1;" goto statement_identifier ;) })) (expression_statement "pcVar7 = p + 1;" (assignment_expression "pcVar7 = p + 1" identifier = (binary_expression "p + 1" identifier + number_literal)) ;) }))) (expression_statement "p = pcVar7;" (assignment_expression "p = pcVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar7 < pcVar4)" ( (binary_expression "pcVar7 < pcVar4" identifier < identifier) )) ;)) (expression_statement "p = pcVar7;" (assignment_expression "p = pcVar7" identifier = identifier) ;) (if_statement "if (__s < pcVar7) {\n    sVar9 = (int)pcVar7 - (int)__s;\n    if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    pwVar5->flags = pwVar5->flags | 0x10;\n    if (sVar9 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }" if (parenthesized_expression "(__s < pcVar7)" ( (binary_expression "__s < pcVar7" identifier < identifier) )) (compound_statement "{\n    sVar9 = (int)pcVar7 - (int)__s;\n    if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    pwVar5->flags = pwVar5->flags | 0x10;\n    if (sVar9 != 0) goto LAB_00023f60;\n  }" { (expression_statement "sVar9 = (int)pcVar7 - (int)__s;" (assignment_expression "sVar9 = (int)pcVar7 - (int)__s" identifier = (binary_expression "(int)pcVar7 - (int)__s" (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (node == pwVar5) {\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" if (parenthesized_expression "(node == pwVar5)" ( (binary_expression "node == pwVar5" identifier == identifier) )) (compound_statement "{\n      if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" { (if_statement "if (sVar9 != 0) {\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }" if (parenthesized_expression "(sVar9 != 0)" ( (binary_expression "sVar9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);\n        pwVar5 = tail;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        iVar6 = 1;\n        goto LAB_00023feb;\n      }" { (labeled_statement "LAB_00023f60:\n        iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);" statement_identifier : (expression_statement "iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14);" (assignment_expression "iVar6 = node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14)" identifier = (call_expression "node_split_prefix(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14)" identifier (argument_list "(wsp,&tail,node,(size_t)beg,sVar9,node->flags & 0x14)" ( identifier , (pointer_expression "&tail" & identifier) , identifier , (cast_expression "(size_t)beg" ( (type_descriptor "size_t" primitive_type) ) identifier) , identifier , (binary_expression "node->flags & 0x14" (field_expression "node->flags" identifier -> field_identifier) & number_literal) )))) ;)) (expression_statement "pwVar5 = tail;" (assignment_expression "pwVar5 = tail" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_00023f8a;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023f8a;" goto statement_identifier ;)) (labeled_statement "LAB_00024090:\n        iVar6 = 1;" statement_identifier : (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;)) (goto_statement "goto LAB_00023feb;" goto statement_identifier ;) })) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })) (expression_statement "pwVar5->flags = pwVar5->flags | 0x10;" (assignment_expression "pwVar5->flags = pwVar5->flags | 0x10" (field_expression "pwVar5->flags" identifier -> field_identifier) = (binary_expression "pwVar5->flags | 0x10" (field_expression "pwVar5->flags" identifier -> field_identifier) | number_literal)) ;) (if_statement "if (sVar9 != 0) goto LAB_00023f60;" if (parenthesized_expression "(sVar9 != 0)" ( (binary_expression "sVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00023f60;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }" else (compound_statement "{\nLAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;\n  }" { (labeled_statement "LAB_00023f8a:\n    if (node == pwVar5) goto joined_r0x00023e17;" statement_identifier : (if_statement "if (node == pwVar5) goto joined_r0x00023e17;" if (parenthesized_expression "(node == pwVar5)" ( (binary_expression "node == pwVar5" identifier == identifier) )) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;))) }))) (expression_statement "pwVar5 = node->prev;" (assignment_expression "pwVar5 = node->prev" identifier = (field_expression "node->prev" identifier -> field_identifier)) ;) (if_statement "if (pwVar5 == (wordsplit_node *)0x0) {\n    wsp->ws_head = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;\n    wsp->ws_tail = (wordsplit_node *)0x0;\n  }\n  else {\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }" if (parenthesized_expression "(pwVar5 == (wordsplit_node *)0x0)" ( (binary_expression "pwVar5 == (wordsplit_node *)0x0" identifier == (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    wsp->ws_head = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;\n    wsp->ws_tail = (wordsplit_node *)0x0;\n  }" { (expression_statement "wsp->ws_head = node->next;" (assignment_expression "wsp->ws_head = node->next" (field_expression "wsp->ws_head" identifier -> field_identifier) = (field_expression "node->next" identifier -> field_identifier)) ;) (expression_statement "pwVar8 = node->next;" (assignment_expression "pwVar8 = node->next" identifier = (field_expression "node->next" identifier -> field_identifier)) ;) (if_statement "if (pwVar8 != (wordsplit_node *)0x0) goto LAB_00023fad;" if (parenthesized_expression "(pwVar8 != (wordsplit_node *)0x0)" ( (binary_expression "pwVar8 != (wordsplit_node *)0x0" identifier != (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023fad;" goto statement_identifier ;)) (expression_statement "wsp->ws_tail = (wordsplit_node *)0x0;" (assignment_expression "wsp->ws_tail = (wordsplit_node *)0x0" (field_expression "wsp->ws_tail" identifier -> field_identifier) = (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }" else (compound_statement "{\n    pwVar5->next = node->next;\n    pwVar8 = node->next;\n    if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }\n  }" { (expression_statement "pwVar5->next = node->next;" (assignment_expression "pwVar5->next = node->next" (field_expression "pwVar5->next" identifier -> field_identifier) = (field_expression "node->next" identifier -> field_identifier)) ;) (expression_statement "pwVar8 = node->next;" (assignment_expression "pwVar8 = node->next" identifier = (field_expression "node->next" identifier -> field_identifier)) ;) (if_statement "if (pwVar8 == (wordsplit_node *)0x0) {\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }\n    else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }" if (parenthesized_expression "(pwVar8 == (wordsplit_node *)0x0)" ( (binary_expression "pwVar8 == (wordsplit_node *)0x0" identifier == (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pwVar5->flags = pwVar5->flags & 0xffffffef;\n      wsp->ws_tail = pwVar5;\n    }" { (expression_statement "pwVar5->flags = pwVar5->flags & 0xffffffef;" (assignment_expression "pwVar5->flags = pwVar5->flags & 0xffffffef" (field_expression "pwVar5->flags" identifier -> field_identifier) = (binary_expression "pwVar5->flags & 0xffffffef" (field_expression "pwVar5->flags" identifier -> field_identifier) & number_literal)) ;) (expression_statement "wsp->ws_tail = pwVar5;" (assignment_expression "wsp->ws_tail = pwVar5" (field_expression "wsp->ws_tail" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }" else (compound_statement "{\nLAB_00023fad:\n      pwVar8->prev = pwVar5;\n    }" { (labeled_statement "LAB_00023fad:\n      pwVar8->prev = pwVar5;" statement_identifier : (expression_statement "pwVar8->prev = pwVar5;" (assignment_expression "pwVar8->prev = pwVar5" (field_expression "pwVar8->prev" identifier -> field_identifier) = identifier) ;)) }))) }))) (expression_statement "node->prev = (wordsplit_node *)0x0;" (assignment_expression "node->prev = (wordsplit_node *)0x0" (field_expression "node->prev" identifier -> field_identifier) = (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "node->next = (wordsplit_node *)0x0;" (assignment_expression "node->next = (wordsplit_node *)0x0" (field_expression "node->next" identifier -> field_identifier) = (cast_expression "(wordsplit_node *)0x0" ( (type_descriptor "wordsplit_node *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((node->flags & 2) != 0) {\n    free((node->v).word);\n  }" if (parenthesized_expression "((node->flags & 2) != 0)" ( (binary_expression "(node->flags & 2) != 0" (parenthesized_expression "(node->flags & 2)" ( (binary_expression "node->flags & 2" (field_expression "node->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    free((node->v).word);\n  }" { (expression_statement "free((node->v).word);" (call_expression "free((node->v).word)" identifier (argument_list "((node->v).word)" ( (field_expression "(node->v).word" (parenthesized_expression "(node->v)" ( (field_expression "node->v" identifier -> field_identifier) )) . field_identifier) ))) ;) })) (expression_statement "free(node);" (call_expression "free(node)" identifier (argument_list "(node)" ( identifier ))) ;) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })))
(translation_unit "undefined4 FUN_00023de0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}\n\n" (function_definition "undefined4 FUN_00023de0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" type_identifier (function_declarator "FUN_00023de0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int *local_24;" primitive_type (pointer_declarator "*local_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x6c);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x6c)" identifier = (pointer_expression "*(int **)(param_1 + 0x6c)" * (cast_expression "(int **)(param_1 + 0x6c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" statement_identifier : (do_statement "do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" do (compound_statement "{\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  }" { (do_statement "do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));" do (compound_statement "{\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    }" { (expression_statement "__ptr = piVar1;" (assignment_expression "__ptr = piVar1" identifier = identifier) ;) (if_statement "if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }" if (parenthesized_expression "(__ptr == (int *)0x0)" ( (binary_expression "__ptr == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }" { (expression_statement "FUN_0001efc0();" (call_expression "FUN_0001efc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n          return uVar7;\n        }" { (return_statement "return uVar7;" return identifier ;) }))) (expression_statement "FUN_0002ddf0();" (call_expression "FUN_0002ddf0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "piVar1 = (int *)__ptr[1];" (assignment_expression "piVar1 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = __ptr[2];" (assignment_expression "uVar2 = __ptr[2]" identifier = (subscript_expression "__ptr[2]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "(((uVar2 & 8) != 0) || ((uVar2 & 1) != 0))" ( (binary_expression "((uVar2 & 8) != 0) || ((uVar2 & 1) != 0)" (parenthesized_expression "((uVar2 & 8) != 0)" ( (binary_expression "(uVar2 & 8) != 0" (parenthesized_expression "(uVar2 & 8)" ( (binary_expression "uVar2 & 8" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "((uVar2 & 1) != 0)" ( (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" ( (binary_expression "uVar2 & 1" identifier & number_literal) )) != number_literal) ))) )) ;) (expression_statement "__s = (char *)__ptr[3];" (assignment_expression "__s = (char *)__ptr[3]" identifier = (cast_expression "(char *)__ptr[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ]))) ;) (if_statement "if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }" if (parenthesized_expression "((uVar2 & 2) == 0)" ( (binary_expression "(uVar2 & 2) == 0" (parenthesized_expression "(uVar2 & 2)" ( (binary_expression "uVar2 & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }" { (expression_statement "sVar3 = __ptr[4] - (int)__s;" (assignment_expression "sVar3 = __ptr[4] - (int)__s" identifier = (binary_expression "__ptr[4] - (int)__s" (subscript_expression "__ptr[4]" identifier [ number_literal ]) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__s = __s + *(int *)(param_1 + 0x58);" (assignment_expression "__s = __s + *(int *)(param_1 + 0x58)" identifier = (binary_expression "__s + *(int *)(param_1 + 0x58)" identifier + (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))))) ;) }) (else_clause "else {\n      sVar3 = strlen(__s);\n    }" else (compound_statement "{\n      sVar3 = strlen(__s);\n    }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) }))) (expression_statement "pcVar4 = __s + sVar3;" (assignment_expression "pcVar4 = __s + sVar3" identifier = (binary_expression "__s + sVar3" identifier + identifier)) ;) (expression_statement "local_24 = __ptr;" (assignment_expression "local_24 = __ptr" identifier = identifier) ;) (expression_statement "local_28 = __s;" (assignment_expression "local_28 = __s" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar4 <= __s)" ( (binary_expression "pcVar4 <= __s" identifier <= identifier) )) ;)) (expression_statement "pcVar9 = (char *)0x0;" (assignment_expression "pcVar9 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar5 = __ptr;" (assignment_expression "piVar5 = __ptr" identifier = identifier) ;) (labeled_statement "LAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" statement_identifier : (do_statement "do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" do (compound_statement "{\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  }" { (if_statement "if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" if (parenthesized_expression "(*local_28 == '\\')" ( (binary_expression "*local_28 == '\\'" (pointer_expression "*local_28" * identifier) == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar8 = local_28 + 2;\n    }" { (expression_statement "pcVar8 = local_28 + 2;" (assignment_expression "pcVar8 = local_28 + 2" identifier = (binary_expression "local_28 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" else (compound_statement "{\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" { (if_statement "if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" if (parenthesized_expression "((*local_28 == '$') && (local_28[1] == '('))" ( (binary_expression "(*local_28 == '$') && (local_28[1] == '(')" (parenthesized_expression "(*local_28 == '$')" ( (binary_expression "*local_28 == '$'" (pointer_expression "*local_28" * identifier) == (char_literal "'$'" ' character ')) )) && (parenthesized_expression "(local_28[1] == '(')" ( (binary_expression "local_28[1] == '('" (subscript_expression "local_28[1]" identifier [ number_literal ]) == (char_literal "'('" ' character ')) ))) )) (compound_statement "{\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" { (if_statement "if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }" if (parenthesized_expression "(__ptr != piVar5)" ( (binary_expression "__ptr != piVar5" identifier != identifier) )) (compound_statement "{\n          piVar5[2] = piVar5[2] | 0x10;\n        }" { (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) | number_literal)) ;) })) (if_statement "if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;" if (parenthesized_expression "(((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))" ( (binary_expression "((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" (parenthesized_expression "((int)local_28 - (int)__s != 0)" ( (binary_expression "(int)local_28 - (int)__s != 0" (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) != number_literal) )) && (parenthesized_expression "(iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" ( (comma_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0" (assignment_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" identifier = (call_expression "FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" identifier (argument_list "(pcVar9,(int)local_28 - (int)__s,0x10)" ( identifier , (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" identifier = (call_expression "FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" identifier (argument_list "(&local_24,&local_28,__ptr[2] & 0x14)" ( (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_28" & identifier) , (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" identifier [ number_literal ]) & number_literal) )))) ;) (if_statement "if (iVar6 != 0) goto LAB_00024090;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00024090;" goto statement_identifier ;)) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) (expression_statement "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));" (assignment_expression "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s))" identifier = (binary_expression "local_28 + (int)(pcVar9 + (1 - (int)__s))" identifier + (cast_expression "(int)(pcVar9 + (1 - (int)__s))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar9 + (1 - (int)__s))" ( (binary_expression "pcVar9 + (1 - (int)__s)" identifier + (parenthesized_expression "(1 - (int)__s)" ( (binary_expression "1 - (int)__s" number_literal - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))))) ;) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" identifier = identifier) ;) (expression_statement "__s = pcVar8;" (assignment_expression "__s = pcVar8" identifier = identifier) ;) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) (if_statement "if (pcVar4 <= pcVar8) break;" if (parenthesized_expression "(pcVar4 <= pcVar8)" ( (binary_expression "pcVar4 <= pcVar8" identifier <= identifier) )) (break_statement "break;" break ;)) (goto_statement "goto LAB_00023ea1;" goto statement_identifier ;) })) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" identifier = (binary_expression "local_28 + 1" identifier + number_literal)) ;) }))) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar8 < pcVar4)" ( (binary_expression "pcVar8 < pcVar4" identifier < identifier) )) ;)) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" identifier = identifier) ;) (if_statement "if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" if (parenthesized_expression "(__s < pcVar8)" ( (binary_expression "__s < pcVar8" identifier < identifier) )) (compound_statement "{\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }" { (expression_statement "iVar6 = (int)pcVar8 - (int)__s;" (assignment_expression "iVar6 = (int)pcVar8 - (int)__s" identifier = (binary_expression "(int)pcVar8 - (int)__s" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" if (parenthesized_expression "(__ptr == piVar5)" ( (binary_expression "__ptr == piVar5" identifier == identifier) )) (compound_statement "{\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" { (if_statement "if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" { (labeled_statement "LAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" statement_identifier : (expression_statement "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" identifier = (call_expression "FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" identifier (argument_list "(pcVar9,iVar6,__ptr[2] & 0x14)" ( identifier , identifier , (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" identifier [ number_literal ]) & number_literal) )))) ;)) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" identifier = identifier) ;) (if_statement "if (iVar6 == 0) goto LAB_00023f8a;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023f8a;" goto statement_identifier ;)) (labeled_statement "LAB_00024090:\n        uVar7 = 1;" statement_identifier : (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;)) (goto_statement "goto LAB_00023feb;" goto statement_identifier ;) })) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })) (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" identifier [ number_literal ]) | number_literal)) ;) (if_statement "if (iVar6 != 0) goto LAB_00023f60;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00023f60;" goto statement_identifier ;)) }) (else_clause "else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" else (compound_statement "{\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" { (labeled_statement "LAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;" statement_identifier : (if_statement "if (__ptr == piVar5) goto joined_r0x00023e17;" if (parenthesized_expression "(__ptr == piVar5)" ( (binary_expression "__ptr == piVar5" identifier == identifier) )) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;))) }))) (expression_statement "iVar6 = *__ptr;" (assignment_expression "iVar6 = *__ptr" identifier = (pointer_expression "*__ptr" * identifier)) ;) (if_statement "if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }" { (expression_statement "*(int *)(param_1 + 0x6c) = __ptr[1];" (assignment_expression "*(int *)(param_1 + 0x6c) = __ptr[1]" (pointer_expression "*(int *)(param_1 + 0x6c)" * (cast_expression "(int *)(param_1 + 0x6c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 != (int *)0x0) goto LAB_00023fad;" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00023fad;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" else (compound_statement "{\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" { (expression_statement "*(int *)(iVar6 + 4) = __ptr[1];" (assignment_expression "*(int *)(iVar6 + 4) = __ptr[1]" (pointer_expression "*(int *)(iVar6 + 4)" * (cast_expression "(int *)(iVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) = (subscript_expression "__ptr[1]" identifier [ number_literal ])) ;) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" identifier = (cast_expression "(int *)__ptr[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }" { (expression_statement "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;" (assignment_expression "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) )))) & number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x70) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x70) = iVar6" (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" else (compound_statement "{\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" { (labeled_statement "LAB_00023fad:\n      *piVar5 = iVar6;" statement_identifier : (expression_statement "*piVar5 = iVar6;" (assignment_expression "*piVar5 = iVar6" (pointer_expression "*piVar5" * identifier) = identifier) ;)) }))) }))) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" * identifier) = number_literal) ;) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }" if (parenthesized_expression "((*(byte *)(__ptr + 2) & 2) != 0)" ( (binary_expression "(*(byte *)(__ptr + 2) & 2) != 0" (parenthesized_expression "(*(byte *)(__ptr + 2) & 2)" ( (binary_expression "*(byte *)(__ptr + 2) & 2" (pointer_expression "*(byte *)(__ptr + 2)" * (cast_expression "(byte *)(__ptr + 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(__ptr + 2)" ( (binary_expression "__ptr + 2" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    free((void *)__ptr[3]);\n  }" { (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" identifier (argument_list "((void *)__ptr[3])" ( (cast_expression "(void *)__ptr[3]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "__ptr[3]" identifier [ number_literal ])) ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (goto_statement "goto joined_r0x00023e17;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;))) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) }))) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined4 FUN_00023de0(int param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" (type_identifier "undefined4") (function_declarator "FUN_00023de0(int param_1)" (identifier "FUN_00023de0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int *__ptr;\n  size_t sVar3;\n  char *pcVar4;\n  int *piVar5;\n  int iVar6;\n  undefined4 uVar7;\n  char *pcVar8;\n  char *__s;\n  char *pcVar9;\n  int in_GS_OFFSET;\n  char *local_28;\n  int *local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = *(int **)(param_1 + 0x6c);\njoined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);\n  pcVar9 = (char *)0x0;\n  piVar5 = __ptr;\nLAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);\n  local_28 = pcVar8;\n  if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }\n  iVar6 = *__ptr;\n  if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }\n  *__ptr = 0;\n  __ptr[1] = 0;\n  if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }\n  free(__ptr);\n  goto joined_r0x00023e17;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *__ptr;" (primitive_type "int") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char *local_28;" (primitive_type "char") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int *local_24;" (primitive_type "int") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x6c);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x6c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x6c)" (* "*") (cast_expression "(int **)(param_1 + 0x6c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00023e17:\n  do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" (statement_identifier "joined_r0x00023e17") (: ":") (do_statement "do {\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  } while (pcVar4 <= __s);" (do "do") (compound_statement "{\n    do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));\n    __s = (char *)__ptr[3];\n    if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }\n    pcVar4 = __s + sVar3;\n    local_24 = __ptr;\n    local_28 = __s;\n  }" ({ "{") (do_statement "do {\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));" (do "do") (compound_statement "{\n      __ptr = piVar1;\n      if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }\n      piVar1 = (int *)__ptr[1];\n      uVar2 = __ptr[2];\n    }" ({ "{") (expression_statement "__ptr = piVar1;" (assignment_expression "__ptr = piVar1" (identifier "__ptr") (= "=") (identifier "piVar1")) (; ";")) (if_statement "if (__ptr == (int *)0x0) {\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }" (if "if") (parenthesized_expression "(__ptr == (int *)0x0)" (( "(") (binary_expression "__ptr == (int *)0x0" (identifier "__ptr") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_0001efc0();\n        uVar7 = 0;\nLAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }\n                    \n        FUN_0002ddf0();\n      }" ({ "{") (expression_statement "FUN_0001efc0();" (call_expression "FUN_0001efc0()" (identifier "FUN_0001efc0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00023feb:\n        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" (statement_identifier "LAB_00023feb") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n          return uVar7;\n        }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n          return uVar7;\n        }" ({ "{") (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}")))) (expression_statement "FUN_0002ddf0();" (call_expression "FUN_0002ddf0()" (identifier "FUN_0002ddf0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)__ptr[1];" (assignment_expression "piVar1 = (int *)__ptr[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)__ptr[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "uVar2 = __ptr[2];" (assignment_expression "uVar2 = __ptr[2]" (identifier "uVar2") (= "=") (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(((uVar2 & 8) != 0) || ((uVar2 & 1) != 0))" (( "(") (binary_expression "((uVar2 & 8) != 0) || ((uVar2 & 1) != 0)" (parenthesized_expression "((uVar2 & 8) != 0)" (( "(") (binary_expression "(uVar2 & 8) != 0" (parenthesized_expression "(uVar2 & 8)" (( "(") (binary_expression "uVar2 & 8" (identifier "uVar2") (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((uVar2 & 1) != 0)" (( "(") (binary_expression "(uVar2 & 1) != 0" (parenthesized_expression "(uVar2 & 1)" (( "(") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (; ";")) (expression_statement "__s = (char *)__ptr[3];" (assignment_expression "__s = (char *)__ptr[3]" (identifier "__s") (= "=") (cast_expression "(char *)__ptr[3]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if ((uVar2 & 2) == 0) {\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }\n    else {\n      sVar3 = strlen(__s);\n    }" (if "if") (parenthesized_expression "((uVar2 & 2) == 0)" (( "(") (binary_expression "(uVar2 & 2) == 0" (parenthesized_expression "(uVar2 & 2)" (( "(") (binary_expression "uVar2 & 2" (identifier "uVar2") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      sVar3 = __ptr[4] - (int)__s;\n      __s = __s + *(int *)(param_1 + 0x58);\n    }" ({ "{") (expression_statement "sVar3 = __ptr[4] - (int)__s;" (assignment_expression "sVar3 = __ptr[4] - (int)__s" (identifier "sVar3") (= "=") (binary_expression "__ptr[4] - (int)__s" (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")))) (; ";")) (expression_statement "__s = __s + *(int *)(param_1 + 0x58);" (assignment_expression "__s = __s + *(int *)(param_1 + 0x58)" (identifier "__s") (= "=") (binary_expression "__s + *(int *)(param_1 + 0x58)" (identifier "__s") (+ "+") (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n      sVar3 = strlen(__s);\n    }" (else "else") (compound_statement "{\n      sVar3 = strlen(__s);\n    }" ({ "{") (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (} "}")))) (expression_statement "pcVar4 = __s + sVar3;" (assignment_expression "pcVar4 = __s + sVar3" (identifier "pcVar4") (= "=") (binary_expression "__s + sVar3" (identifier "__s") (+ "+") (identifier "sVar3"))) (; ";")) (expression_statement "local_24 = __ptr;" (assignment_expression "local_24 = __ptr" (identifier "local_24") (= "=") (identifier "__ptr")) (; ";")) (expression_statement "local_28 = __s;" (assignment_expression "local_28 = __s" (identifier "local_28") (= "=") (identifier "__s")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar4 <= __s)" (( "(") (binary_expression "pcVar4 <= __s" (identifier "pcVar4") (<= "<=") (identifier "__s")) () ")")) (; ";"))) (expression_statement "pcVar9 = (char *)0x0;" (assignment_expression "pcVar9 = (char *)0x0" (identifier "pcVar9") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "piVar5 = __ptr;" (assignment_expression "piVar5 = __ptr" (identifier "piVar5") (= "=") (identifier "__ptr")) (; ";")) (labeled_statement "LAB_00023ea1:\n  do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" (statement_identifier "LAB_00023ea1") (: ":") (do_statement "do {\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  } while (pcVar8 < pcVar4);" (do "do") (compound_statement "{\n    if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }\n    local_28 = pcVar8;\n  }" ({ "{") (if_statement "if (*local_28 == '\\') {\n      pcVar8 = local_28 + 2;\n    }\n    else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" (if "if") (parenthesized_expression "(*local_28 == '\\')" (( "(") (binary_expression "*local_28 == '\\'" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n      pcVar8 = local_28 + 2;\n    }" ({ "{") (expression_statement "pcVar8 = local_28 + 2;" (assignment_expression "pcVar8 = local_28 + 2" (identifier "pcVar8") (= "=") (binary_expression "local_28 + 2" (identifier "local_28") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" (else "else") (compound_statement "{\n      if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }\n      pcVar8 = local_28 + 1;\n    }" ({ "{") (if_statement "if ((*local_28 == '$') && (local_28[1] == '(')) {\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" (if "if") (parenthesized_expression "((*local_28 == '$') && (local_28[1] == '('))" (( "(") (binary_expression "(*local_28 == '$') && (local_28[1] == '(')" (parenthesized_expression "(*local_28 == '$')" (( "(") (binary_expression "*local_28 == '$'" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (== "==") (char_literal "'$'" (' "'") (character "$") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_28[1] == '(')" (( "(") (binary_expression "local_28[1] == '('" (subscript_expression "local_28[1]" (identifier "local_28") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'('" (' "'") (character "(") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }\n        if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;\n        local_28 = local_28 + 1;\n        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);\n        if (iVar6 != 0) goto LAB_00024090;\n        pcVar8 = local_28 + 1;\n        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));\n        piVar5 = local_24;\n        __s = pcVar8;\n        local_28 = pcVar8;\n        if (pcVar4 <= pcVar8) break;\n        goto LAB_00023ea1;\n      }" ({ "{") (if_statement "if (__ptr != piVar5) {\n          piVar5[2] = piVar5[2] | 0x10;\n        }" (if "if") (parenthesized_expression "(__ptr != piVar5)" (( "(") (binary_expression "__ptr != piVar5" (identifier "__ptr") (!= "!=") (identifier "piVar5")) () ")")) (compound_statement "{\n          piVar5[2] = piVar5[2] | 0x10;\n        }" ({ "{") (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (| "|") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))\n        goto LAB_00024090;" (if "if") (parenthesized_expression "(((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))" (( "(") (binary_expression "((int)local_28 - (int)__s != 0) &&\n           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" (parenthesized_expression "((int)local_28 - (int)__s != 0)" (( "(") (binary_expression "(int)local_28 - (int)__s != 0" (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0)" (( "(") (comma_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0" (assignment_expression "iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" (identifier "iVar6") (= "=") (call_expression "FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10)" (identifier "FUN_00020830") (argument_list "(pcVar9,(int)local_28 - (int)__s,0x10)" (( "(") (identifier "pcVar9") (, ",") (binary_expression "(int)local_28 - (int)__s" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (, ",") (number_literal "0x10") () ")")))) (, ",") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_00024090;" (goto "goto") (statement_identifier "LAB_00024090") (; ";"))) (expression_statement "local_28 = local_28 + 1;" (assignment_expression "local_28 = local_28 + 1" (identifier "local_28") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" (identifier "iVar6") (= "=") (call_expression "FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14)" (identifier "FUN_000237e0") (argument_list "(&local_24,&local_28,__ptr[2] & 0x14)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x14")) () ")")))) (; ";")) (if_statement "if (iVar6 != 0) goto LAB_00024090;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00024090;" (goto "goto") (statement_identifier "LAB_00024090") (; ";"))) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" (identifier "pcVar8") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));" (assignment_expression "pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s))" (identifier "pcVar9") (= "=") (binary_expression "local_28 + (int)(pcVar9 + (1 - (int)__s))" (identifier "local_28") (+ "+") (cast_expression "(int)(pcVar9 + (1 - (int)__s))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar9 + (1 - (int)__s))" (( "(") (binary_expression "pcVar9 + (1 - (int)__s)" (identifier "pcVar9") (+ "+") (parenthesized_expression "(1 - (int)__s)" (( "(") (binary_expression "1 - (int)__s" (number_literal "1") (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) () ")"))) () ")"))))) (; ";")) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" (identifier "piVar5") (= "=") (identifier "local_24")) (; ";")) (expression_statement "__s = pcVar8;" (assignment_expression "__s = pcVar8" (identifier "__s") (= "=") (identifier "pcVar8")) (; ";")) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" (identifier "local_28") (= "=") (identifier "pcVar8")) (; ";")) (if_statement "if (pcVar4 <= pcVar8) break;" (if "if") (parenthesized_expression "(pcVar4 <= pcVar8)" (( "(") (binary_expression "pcVar4 <= pcVar8" (identifier "pcVar4") (<= "<=") (identifier "pcVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (goto_statement "goto LAB_00023ea1;" (goto "goto") (statement_identifier "LAB_00023ea1") (; ";")) (} "}"))) (expression_statement "pcVar8 = local_28 + 1;" (assignment_expression "pcVar8 = local_28 + 1" (identifier "pcVar8") (= "=") (binary_expression "local_28 + 1" (identifier "local_28") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" (identifier "local_28") (= "=") (identifier "pcVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar8 < pcVar4)" (( "(") (binary_expression "pcVar8 < pcVar4" (identifier "pcVar8") (< "<") (identifier "pcVar4")) () ")")) (; ";"))) (expression_statement "local_28 = pcVar8;" (assignment_expression "local_28 = pcVar8" (identifier "local_28") (= "=") (identifier "pcVar8")) (; ";")) (if_statement "if (__s < pcVar8) {\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }\n  else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" (if "if") (parenthesized_expression "(__s < pcVar8)" (( "(") (binary_expression "__s < pcVar8" (identifier "__s") (< "<") (identifier "pcVar8")) () ")")) (compound_statement "{\n    iVar6 = (int)pcVar8 - (int)__s;\n    if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }\n    piVar5[2] = piVar5[2] | 0x10;\n    if (iVar6 != 0) goto LAB_00023f60;\n  }" ({ "{") (expression_statement "iVar6 = (int)pcVar8 - (int)__s;" (assignment_expression "iVar6 = (int)pcVar8 - (int)__s" (identifier "iVar6") (= "=") (binary_expression "(int)pcVar8 - (int)__s" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")))) (; ";")) (if_statement "if (__ptr == piVar5) {\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" (if "if") (parenthesized_expression "(__ptr == piVar5)" (( "(") (binary_expression "__ptr == piVar5" (identifier "__ptr") (== "==") (identifier "piVar5")) () ")")) (compound_statement "{\n      if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }\n      goto joined_r0x00023e17;\n    }" ({ "{") (if_statement "if (iVar6 != 0) {\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);\n        piVar5 = local_24;\n        if (iVar6 == 0) goto LAB_00023f8a;\nLAB_00024090:\n        uVar7 = 1;\n        goto LAB_00023feb;\n      }" ({ "{") (labeled_statement "LAB_00023f60:\n        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" (statement_identifier "LAB_00023f60") (: ":") (expression_statement "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);" (assignment_expression "iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" (identifier "iVar6") (= "=") (call_expression "FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14)" (identifier "FUN_00020830") (argument_list "(pcVar9,iVar6,__ptr[2] & 0x14)" (( "(") (identifier "pcVar9") (, ",") (identifier "iVar6") (, ",") (binary_expression "__ptr[2] & 0x14" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (& "&") (number_literal "0x14")) () ")")))) (; ";"))) (expression_statement "piVar5 = local_24;" (assignment_expression "piVar5 = local_24" (identifier "piVar5") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_00023f8a;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00023f8a;" (goto "goto") (statement_identifier "LAB_00023f8a") (; ";"))) (labeled_statement "LAB_00024090:\n        uVar7 = 1;" (statement_identifier "LAB_00024090") (: ":") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";"))) (goto_statement "goto LAB_00023feb;" (goto "goto") (statement_identifier "LAB_00023feb") (; ";")) (} "}"))) (goto_statement "goto joined_r0x00023e17;" (goto "goto") (statement_identifier "joined_r0x00023e17") (; ";")) (} "}"))) (expression_statement "piVar5[2] = piVar5[2] | 0x10;" (assignment_expression "piVar5[2] = piVar5[2] | 0x10" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar5[2] | 0x10" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (| "|") (number_literal "0x10"))) (; ";")) (if_statement "if (iVar6 != 0) goto LAB_00023f60;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00023f60;" (goto "goto") (statement_identifier "LAB_00023f60") (; ";"))) (} "}")) (else_clause "else {\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" (else "else") (compound_statement "{\nLAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;\n  }" ({ "{") (labeled_statement "LAB_00023f8a:\n    if (__ptr == piVar5) goto joined_r0x00023e17;" (statement_identifier "LAB_00023f8a") (: ":") (if_statement "if (__ptr == piVar5) goto joined_r0x00023e17;" (if "if") (parenthesized_expression "(__ptr == piVar5)" (( "(") (binary_expression "__ptr == piVar5" (identifier "__ptr") (== "==") (identifier "piVar5")) () ")")) (goto_statement "goto joined_r0x00023e17;" (goto "goto") (statement_identifier "joined_r0x00023e17") (; ";")))) (} "}")))) (expression_statement "iVar6 = *__ptr;" (assignment_expression "iVar6 = *__ptr" (identifier "iVar6") (= "=") (pointer_expression "*__ptr" (* "*") (identifier "__ptr"))) (; ";")) (if_statement "if (iVar6 == 0) {\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }\n  else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *(int *)(param_1 + 0x6c) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 != (int *)0x0) goto LAB_00023fad;\n    *(undefined4 *)(param_1 + 0x70) = 0;\n  }" ({ "{") (expression_statement "*(int *)(param_1 + 0x6c) = __ptr[1];" (assignment_expression "*(int *)(param_1 + 0x6c) = __ptr[1]" (pointer_expression "*(int *)(param_1 + 0x6c)" (* "*") (cast_expression "(int *)(param_1 + 0x6c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)__ptr[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) goto LAB_00023fad;" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00023fad;" (goto "goto") (statement_identifier "LAB_00023fad") (; ";"))) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" (else "else") (compound_statement "{\n    *(int *)(iVar6 + 4) = __ptr[1];\n    piVar5 = (int *)__ptr[1];\n    if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }\n  }" ({ "{") (expression_statement "*(int *)(iVar6 + 4) = __ptr[1];" (assignment_expression "*(int *)(iVar6 + 4) = __ptr[1]" (pointer_expression "*(int *)(iVar6 + 4)" (* "*") (cast_expression "(int *)(iVar6 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 4)" (( "(") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) () ")")))) (= "=") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar5 = (int *)__ptr[1];" (assignment_expression "piVar5 = (int *)__ptr[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)__ptr[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }\n    else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;\n      *(int *)(param_1 + 0x70) = iVar6;\n    }" ({ "{") (expression_statement "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;" (assignment_expression "*(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" (* "*") (cast_expression "(uint *)(iVar6 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar6 + 8) & 0xffffffef" (pointer_expression "*(uint *)(iVar6 + 8)" (* "*") (cast_expression "(uint *)(iVar6 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0xffffffef"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x70) = iVar6;" (assignment_expression "*(int *)(param_1 + 0x70) = iVar6" (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (} "}")) (else_clause "else {\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" (else "else") (compound_statement "{\nLAB_00023fad:\n      *piVar5 = iVar6;\n    }" ({ "{") (labeled_statement "LAB_00023fad:\n      *piVar5 = iVar6;" (statement_identifier "LAB_00023fad") (: ":") (expression_statement "*piVar5 = iVar6;" (assignment_expression "*piVar5 = iVar6" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar6")) (; ";"))) (} "}")))) (} "}")))) (expression_statement "*__ptr = 0;" (assignment_expression "*__ptr = 0" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (number_literal "0")) (; ";")) (expression_statement "__ptr[1] = 0;" (assignment_expression "__ptr[1] = 0" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)(__ptr + 2) & 2) != 0) {\n    free((void *)__ptr[3]);\n  }" (if "if") (parenthesized_expression "((*(byte *)(__ptr + 2) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(__ptr + 2) & 2) != 0" (parenthesized_expression "(*(byte *)(__ptr + 2) & 2)" (( "(") (binary_expression "*(byte *)(__ptr + 2) & 2" (pointer_expression "*(byte *)(__ptr + 2)" (* "*") (cast_expression "(byte *)(__ptr + 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(__ptr + 2)" (( "(") (binary_expression "__ptr + 2" (identifier "__ptr") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    free((void *)__ptr[3]);\n  }" ({ "{") (expression_statement "free((void *)__ptr[3]);" (call_expression "free((void *)__ptr[3])" (identifier "free") (argument_list "((void *)__ptr[3])" (( "(") (cast_expression "(void *)__ptr[3]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]"))) () ")"))) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (goto_statement "goto joined_r0x00023e17;" (goto "goto") (statement_identifier "joined_r0x00023e17") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int function_1(type_1 *wsp)

{
  type_2 *pwVar1;
  type_3 var_6;
  type_2 *var_2;
  size_t var_9;
  char *var_10;
  type_2 *var_12;
  int var_15;
  char *var_18;
  type_2 *var_19;
  char *var_8;
  char *var_17;
  size_t var_13;
  int var_1;
  char *var_11;
  type_2 *tail;
  int var_4;
  
  var_4 = *(int *)(var_1 + 0x14);
  pwVar1 = wsp->ws_head;
joined_r0x00023e17:
  do {
    do {
      var_2 = pwVar1;
      if (var_2 == (type_2 *)0x0) {
        var_3(wsp);
        var_15 = 0;
LAB_00023feb:
        if (var_4 == *(int *)(var_1 + 0x14)) {
          return var_15;
        }
                    /* WARNING: Subroutine does not return */
        var_5();
      }
      pwVar1 = var_2->next;
      var_6 = var_2->flags;
    } while (((var_6 & 8) != 0) || ((var_6 & 1) != 0));
    var_8 = (var_2->v).word;
    if ((var_6 & 2) == 0) {
      var_9 = (var_2->v).segm.end - (int)var_8;
      var_8 = wsp->ws_input + (int)var_8;
    }
    else {
      var_9 = var_7(var_8);
    }
    var_10 = var_8 + var_9;
    tail = var_2;
    var_11 = var_8;
  } while (var_10 <= var_8);
  var_17 = (char *)0x0;
  var_12 = var_2;
LAB_00023ea1:
  do {
    if (*var_11 == '\\') {
      var_18 = var_11 + 2;
    }
    else {
      if ((*var_11 == '$') && (var_11[1] == '(')) {
        var_13 = (int)var_11 - (int)var_8;
        if (var_2 != var_12) {
          var_12->flags = var_12->flags | 0x10;
        }
        if ((var_13 != 0) &&
           (var_15 = var_14(wsp,&tail,var_2,(size_t)var_17,var_13,0x10), var_15 != 0))
        goto LAB_00024090;
        var_11 = var_11 + 1;
        var_15 = var_16(wsp,var_11,var_9 - var_13,&tail,&var_11,var_2->flags & 0x14);
        if (var_15 != 0) goto LAB_00024090;
        var_18 = var_11 + 1;
        var_17 = var_11 + (int)(var_17 + (1 - (int)var_8));
        var_12 = tail;
        var_8 = var_18;
        var_11 = var_18;
        if (var_10 <= var_18) break;
        goto LAB_00023ea1;
      }
      var_18 = var_11 + 1;
    }
    var_11 = var_18;
  } while (var_18 < var_10);
  var_11 = var_18;
  if (var_8 < var_18) {
    var_13 = (int)var_18 - (int)var_8;
    if (var_2 == var_12) {
      if (var_13 != 0) {
LAB_00023f60:
        var_15 = var_14(wsp,&tail,var_2,(size_t)var_17,var_13,var_2->flags & 0x14);
        var_12 = tail;
        if (var_15 == 0) goto LAB_00023f8a;
LAB_00024090:
        var_15 = 1;
        goto LAB_00023feb;
      }
      goto joined_r0x00023e17;
    }
    var_12->flags = var_12->flags | 0x10;
    if (var_13 != 0) goto LAB_00023f60;
  }
  else {
LAB_00023f8a:
    if (var_2 == var_12) goto joined_r0x00023e17;
  }
  var_12 = var_2->prev;
  if (var_12 == (type_2 *)0x0) {
    wsp->ws_head = var_2->next;
    var_19 = var_2->next;
    if (var_19 != (type_2 *)0x0) goto LAB_00023fad;
    wsp->ws_tail = (type_2 *)0x0;
  }
  else {
    var_12->next = var_2->next;
    var_19 = var_2->next;
    if (var_19 == (type_2 *)0x0) {
      var_12->flags = var_12->flags & 0xffffffef;
      wsp->ws_tail = var_12;
    }
    else {
LAB_00023fad:
      var_19->prev = var_12;
    }
  }
  var_2->prev = (type_2 *)0x0;
  var_2->next = (type_2 *)0x0;
  if ((var_2->flags & 2) != 0) {
    var_20((var_2->v).word);
  }
  var_20(var_2);
  goto joined_r0x00023e17;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 MASKED(int param_1)

{
  int *piVar1;
  uint uVar2;
  int *__ptr;
  size_t sVar3;
  char *pcVar4;
  int *piVar5;
  int iVar6;
  undefined4 uVar7;
  char *pcVar8;
  char *__s;
  char *pcVar9;
  int in_GS_OFFSET;
  char *local_28;
  int *local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = *(int **)(param_1 + 0x6c);
joined_r0x00023e17:
  do {
    do {
      __ptr = piVar1;
      if (__ptr == (int *)0x0) {
        FUN_0001efc0();
        uVar7 = 0;
LAB_00023feb:
        if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
          return uVar7;
        }
                    /* WARNING: Subroutine does not return */
        FUN_0002ddf0();
      }
      piVar1 = (int *)__ptr[1];
      uVar2 = __ptr[2];
    } while (((uVar2 & 8) != 0) || ((uVar2 & 1) != 0));
    __s = (char *)__ptr[3];
    if ((uVar2 & 2) == 0) {
      sVar3 = __ptr[4] - (int)__s;
      __s = __s + *(int *)(param_1 + 0x58);
    }
    else {
      sVar3 = strlen(__s);
    }
    pcVar4 = __s + sVar3;
    local_24 = __ptr;
    local_28 = __s;
  } while (pcVar4 <= __s);
  pcVar9 = (char *)0x0;
  piVar5 = __ptr;
LAB_00023ea1:
  do {
    if (*local_28 == '\\') {
      pcVar8 = local_28 + 2;
    }
    else {
      if ((*local_28 == '$') && (local_28[1] == '(')) {
        if (__ptr != piVar5) {
          piVar5[2] = piVar5[2] | 0x10;
        }
        if (((int)local_28 - (int)__s != 0) &&
           (iVar6 = FUN_00020830(pcVar9,(int)local_28 - (int)__s,0x10), iVar6 != 0))
        goto LAB_00024090;
        local_28 = local_28 + 1;
        iVar6 = FUN_000237e0(&local_24,&local_28,__ptr[2] & 0x14);
        if (iVar6 != 0) goto LAB_00024090;
        pcVar8 = local_28 + 1;
        pcVar9 = local_28 + (int)(pcVar9 + (1 - (int)__s));
        piVar5 = local_24;
        __s = pcVar8;
        local_28 = pcVar8;
        if (pcVar4 <= pcVar8) break;
        goto LAB_00023ea1;
      }
      pcVar8 = local_28 + 1;
    }
    local_28 = pcVar8;
  } while (pcVar8 < pcVar4);
  local_28 = pcVar8;
  if (__s < pcVar8) {
    iVar6 = (int)pcVar8 - (int)__s;
    if (__ptr == piVar5) {
      if (iVar6 != 0) {
LAB_00023f60:
        iVar6 = FUN_00020830(pcVar9,iVar6,__ptr[2] & 0x14);
        piVar5 = local_24;
        if (iVar6 == 0) goto LAB_00023f8a;
LAB_00024090:
        uVar7 = 1;
        goto LAB_00023feb;
      }
      goto joined_r0x00023e17;
    }
    piVar5[2] = piVar5[2] | 0x10;
    if (iVar6 != 0) goto LAB_00023f60;
  }
  else {
LAB_00023f8a:
    if (__ptr == piVar5) goto joined_r0x00023e17;
  }
  iVar6 = *__ptr;
  if (iVar6 == 0) {
    *(int *)(param_1 + 0x6c) = __ptr[1];
    piVar5 = (int *)__ptr[1];
    if (piVar5 != (int *)0x0) goto LAB_00023fad;
    *(undefined4 *)(param_1 + 0x70) = 0;
  }
  else {
    *(int *)(iVar6 + 4) = __ptr[1];
    piVar5 = (int *)__ptr[1];
    if (piVar5 == (int *)0x0) {
      *(uint *)(iVar6 + 8) = *(uint *)(iVar6 + 8) & 0xffffffef;
      *(int *)(param_1 + 0x70) = iVar6;
    }
    else {
LAB_00023fad:
      *piVar5 = iVar6;
    }
  }
  *__ptr = 0;
  __ptr[1] = 0;
  if ((*(byte *)(__ptr + 2) & 2) != 0) {
    free((void *)__ptr[3]);
  }
  free(__ptr);
  goto joined_r0x00023e17;
}

