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

void ingraft_buffer(filestruct *somebuffer)

{
  filestruct *pfVar1;
  filestruct *pfVar2;
  filestruct *pfVar3;
  openfilestruct *poVar4;
  size_t sVar5;
  ssize_t sVar6;
  size_t sVar7;
  size_t top_x_00;
  filestruct *pfVar8;
  int in_GS_OFFSET;
  bool bVar9;
  _Bool right_side_up;
  filestruct *top;
  filestruct *bot;
  size_t top_x;
  size_t bot_x;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2b5d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  right_side_up = false;
  sVar5 = openfile->current_x;
  if (openfile->mark == (filestruct *)0x0) {
    bVar9 = false;
    top_x_00 = sVar5;
  }
  else {
    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);
    bVar9 = top == bot;
    top_x_00 = openfile->current_x;
  }
  filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00);
  pfVar1 = openfile->edittop;
  pfVar2 = openfile->fileage;
  if (pfVar2 != (filestruct *)0x0) {
    pfVar8 = pfVar2;
    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {
      pfVar8 = pfVar3->prev;
      free(pfVar8->data);
      free(pfVar8->multidata);
      free(pfVar8);
      pfVar8 = pfVar3;
    }
    free(pfVar8->data);
    free(pfVar8->multidata);
    free(pfVar8);
  }
  poVar4 = openfile;
  pfVar8 = openfile->mark;
  pfVar3 = somebuffer->next;
  openfile->fileage = somebuffer;
  poVar4->filebot = somebuffer;
  bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9);
  if (pfVar3 == (filestruct *)0x0) {
    poVar4->current = somebuffer;
    sVar7 = strlen(somebuffer->data);
    poVar4->current_x = sVar7;
    pfVar8 = somebuffer;
  }
  else {
    do {
      pfVar8 = pfVar3;
      pfVar3 = pfVar8->next;
    } while (pfVar8->next != (filestruct *)0x0);
    poVar4->filebot = pfVar8;
    poVar4->current = pfVar8;
    sVar7 = strlen(pfVar8->data);
    poVar4->current_x = sVar7;
    if (somebuffer != pfVar8) {
      if (bVar9) {
        if (right_side_up == false) {
          poVar4->mark = pfVar8;
          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);
        }
        else {
          poVar4->mark = somebuffer;
        }
      }
      goto LAB_0002b73c;
    }
  }
  if ((bVar9) && (poVar4->mark = pfVar8, right_side_up == false)) {
    poVar4->mark_x = poVar4->mark_x + sVar7;
  }
  poVar4->current_x = sVar7 + sVar5;
LAB_0002b73c:
  sVar5 = get_totsize(somebuffer,pfVar8);
  poVar4 = openfile;
  openfile->totsize = openfile->totsize + sVar5;
  pfVar8 = poVar4->fileage;
  if (pfVar1 == pfVar2) {
    poVar4->edittop = pfVar8;
  }
  unpartition_filestruct(&filepart);
  if (pfVar8 == (filestruct *)0x0) {
    statusline(ALERT,"Trying to renumber nothing -- please report a bug");
  }
  else {
    sVar6 = 0;
    if (pfVar8->prev != (filestruct *)0x0) {
      sVar6 = pfVar8->prev->lineno;
    }
    do {
      sVar6 = sVar6 + 1;
      pfVar8->lineno = sVar6;
      pfVar8 = pfVar8->next;
    } while (pfVar8 != (filestruct *)0x0);
  }
  if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {
    new_magicline();
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void FUN_0002b5d0(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  size_t sVar7;
  undefined4 *puVar8;
  int in_GS_OFFSET;
  bool bVar9;
  char local_31;
  int local_30;
  int local_2c;
  undefined1 local_28 [4];
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2b5d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_31 = '\0';
  iVar5 = *(int *)(DAT_0007b640 + 0x1c);
  if (*(int *)(DAT_0007b640 + 0x30) == 0) {
    bVar9 = false;
    iVar6 = iVar5;
  }
  else {
    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);
    bVar9 = local_30 == local_2c;
    iVar6 = *(int *)(DAT_0007b640 + 0x1c);
  }
  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,
                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);
  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);
  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);
  if (puVar2 != (undefined4 *)0x0) {
    puVar3 = puVar2;
    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;
        puVar8 = (undefined4 *)puVar8[2]) {
      puVar3 = (undefined4 *)puVar8[3];
      free((void *)*puVar3);
      free((void *)puVar3[4]);
      free(puVar3);
      puVar3 = puVar8;
    }
    free((void *)*puVar3);
    free((void *)puVar3[4]);
    free(puVar3);
  }
  iVar4 = DAT_0007b640;
  iVar6 = *(int *)(DAT_0007b640 + 0x30);
  puVar3 = (undefined4 *)param_1[2];
  *(undefined4 **)(DAT_0007b640 + 4) = param_1;
  *(undefined4 **)(iVar4 + 8) = param_1;
  bVar9 = (bool)(iVar6 != 0 & bVar9);
  if (puVar3 == (undefined4 *)0x0) {
    *(undefined4 **)(iVar4 + 0x10) = param_1;
    sVar7 = strlen((char *)*param_1);
    *(size_t *)(iVar4 + 0x1c) = sVar7;
    puVar8 = param_1;
  }
  else {
    do {
      puVar8 = puVar3;
      puVar3 = (undefined4 *)puVar8[2];
    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);
    *(undefined4 **)(iVar4 + 8) = puVar8;
    *(undefined4 **)(iVar4 + 0x10) = puVar8;
    sVar7 = strlen((char *)*puVar8);
    *(size_t *)(iVar4 + 0x1c) = sVar7;
    if (param_1 != puVar8) {
      if (bVar9) {
        if (local_31 == '\0') {
          *(undefined4 **)(iVar4 + 0x30) = puVar8;
          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);
        }
        else {
          *(undefined4 **)(iVar4 + 0x30) = param_1;
        }
      }
      goto LAB_0002b73c;
    }
  }
  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {
    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;
  }
  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;
LAB_0002b73c:
  iVar5 = FUN_0003e3e0(param_1,puVar8);
  iVar6 = DAT_0007b640;
  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;
  iVar5 = *(int *)(iVar6 + 4);
  if (puVar1 == puVar2) {
    *(int *)(iVar6 + 0xc) = iVar5;
  }
  FUN_0002b0e0(&DAT_0007b644);
  if (iVar5 == 0) {
    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");
  }
  else {
    iVar6 = 0;
    if (*(int *)(iVar5 + 0xc) != 0) {
      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);
    }
    do {
      iVar6 = iVar6 + 1;
      *(int *)(iVar5 + 4) = iVar6;
      iVar5 = *(int *)(iVar5 + 8);
    } while (iVar5 != 0);
  }
  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))
  {
    FUN_0003e140();
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005a8b0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015680
ADD EBX,0x4f5f7
SUB ESP,0x4c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x3c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x60]
MOV byte ptr [ESP + 0x2b],0x0
LEA EDI,[EBX + 0xa70]
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x8],EDI
MOV ECX,dword ptr [EAX + 0x1c]
MOV EBP,dword ptr [EAX + 0x30]
MOV dword ptr [ESP + 0x1c],ECX
TEST EBP,EBP
JZ 0x0002b7f0
SUB ESP,0xc
LEA EAX,[ESP + 0x37]
PUSH EAX
LEA EAX,[ESP + 0x48]
PUSH EAX
LEA EAX,[ESP + 0x44]
PUSH EAX
LEA EAX,[ESP + 0x4c]
PUSH EAX
LEA EAX,[ESP + 0x48]
PUSH EAX
CALL 0x0003e230
ADD ESP,0x20
MOV EAX,dword ptr [ESP + 0x30]
CMP dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [EDI]
SETZ byte ptr [ESP + 0x18]
MOV EDX,dword ptr [EAX + 0x1c]
MOV EAX,dword ptr [EAX + 0x10]
PUSH EDX
PUSH EAX
PUSH EDX
PUSH EAX
CALL 0x0002afe0
LEA ECX,[EBX + 0xa74]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x24],ECX
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + 0xc]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002b6df
MOV EDI,dword ptr [EAX + 0x8]
TEST EDI,EDI
JNZ 0x0002b692
JMP 0x0002b889
MOV EDI,EAX
MOV EBP,dword ptr [EDI + 0xc]
SUB ESP,0xc
PUSH dword ptr [EBP]
CALL 0x00013200
POP ECX
PUSH dword ptr [EBP + 0x10]
CALL 0x00013200
MOV dword ptr [ESP],EBP
CALL 0x00013200
MOV EAX,dword ptr [EDI + 0x8]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002b690
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00013200
POP EDX
PUSH dword ptr [EDI + 0x10]
CALL 0x00013200
MOV dword ptr [ESP],EDI
CALL 0x00013200
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + 0x30]
MOV EBP,dword ptr [ESI + 0x8]
MOV dword ptr [EDX + 0x4],ESI
MOV dword ptr [EDX + 0x8],ESI
TEST EAX,EAX
SETNZ AL
AND AL,byte ptr [ESP + 0x18]
MOV EDI,EAX
TEST EBP,EBP
JNZ 0x0002b702
JMP 0x0002b810
MOV EBP,EAX
MOV EAX,dword ptr [EBP + 0x8]
TEST EAX,EAX
JNZ 0x0002b700
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0xc
MOV dword ptr [EDX + 0x8],EBP
MOV dword ptr [EDX + 0x10],EBP
PUSH dword ptr [EBP]
CALL 0x00013630
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,EAX
MOV dword ptr [EDX + 0x1c],EAX
CMP ESI,EBP
JZ 0x0002b82f
MOV ECX,EDI
TEST CL,CL
JNZ 0x0002b7e0
SUB ESP,0x8
PUSH EBP
PUSH ESI
CALL 0x0003e3e0
MOV ECX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV EDX,dword ptr [ECX]
MOV ECX,dword ptr [ESP + 0xc]
ADD dword ptr [EDX + 0x14],EAX
MOV ESI,dword ptr [EDX + 0x4]
CMP dword ptr [ESP + 0x10],ECX
JZ 0x0002b800
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x0002b0e0
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0002b870
MOV EDX,dword ptr [ESI + 0xc]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x0002b790
MOV EAX,dword ptr [EDX + 0x4]
LEA ESI,[ESI]
LEA ESI,[ESI]
ADD EAX,0x1
MOV dword ptr [ESI + 0x4],EAX
MOV ESI,dword ptr [ESI + 0x8]
TEST ESI,ESI
JNZ 0x0002b790
LEA EAX,[EBX + 0xa94]
MOV EAX,dword ptr [EAX]
TEST EAX,0x40000000
JZ 0x0002b7c8
MOV EAX,dword ptr [ESP + 0x3c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002b892
ADD ESP,0x4c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX]
CMP byte ptr [EAX],0x0
JZ 0x0002b7ac
CALL 0x0003e140
JMP 0x0002b7ac
CMP byte ptr [ESP + 0x2b],0x0
JZ 0x0002b848
MOV dword ptr [EDX + 0x30],ESI
JMP 0x0002b73c
MOV EDX,ECX
MOV byte ptr [ESP + 0x18],0x0
JMP 0x0002b64b
MOV dword ptr [EDX + 0xc],ESI
JMP 0x0002b763
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0xc
MOV EBP,ESI
MOV dword ptr [EDX + 0x10],ESI
PUSH dword ptr [ESI]
CALL 0x00013630
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,EAX
MOV dword ptr [EDX + 0x1c],EAX
MOV EAX,EDI
TEST AL,AL
JNZ 0x0002b860
ADD ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EDX + 0x1c],ECX
JMP 0x0002b73c
MOV ECX,dword ptr [EDX + 0x34]
SUB ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [EDX + 0x30],EBP
ADD EAX,ECX
MOV dword ptr [EDX + 0x34],EAX
JMP 0x0002b73c
CMP byte ptr [ESP + 0x2b],0x0
MOV dword ptr [EDX + 0x30],EBP
JNZ 0x0002b835
ADD dword ptr [EDX + 0x34],ECX
JMP 0x0002b835
SUB ESP,0x8
LEA EAX,[EBX + 0xfffe474c]
PUSH EAX
PUSH 0x3
CALL 0x00040b60
ADD ESP,0x10
JMP 0x0002b79d
MOV EDI,dword ptr [ESP + 0xc]
JMP 0x0002b6bb
CALL 0x0005a8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002b5d0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}\n\n" comment (function_definition "void FUN_0002b5d0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}" primitive_type (function_declarator "FUN_0002b5d0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005a8b0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2b5d9;" (assignment_expression "uStack_14 = 0x2b5d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar5 = *(int *)(DAT_0007b640 + 0x1c)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" * (cast_expression "(int *)(DAT_0007b640 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x1c)" ( (binary_expression "DAT_0007b640 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" if (parenthesized_expression "(*(int *)(DAT_0007b640 + 0x30) == 0)" ( (binary_expression "*(int *)(DAT_0007b640 + 0x30) == 0" (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" * (cast_expression "(int *)(DAT_0007b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x30)" ( (binary_expression "DAT_0007b640 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    bVar9 = false;\n    iVar6 = iVar5;\n  }" { (expression_statement "bVar9 = false;" (assignment_expression "bVar9 = false" identifier = false) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" else (compound_statement "{\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" { (expression_statement "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);" (call_expression "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31)" identifier (argument_list "(&local_30,local_28,&local_2c,local_24,&local_31)" ( (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "&local_2c" & identifier) , identifier , (pointer_expression "&local_31" & identifier) ))) ;) (expression_statement "bVar9 = local_30 == local_2c;" (assignment_expression "bVar9 = local_30 == local_2c" identifier = (binary_expression "local_30 == local_2c" identifier == identifier)) ;) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x1c)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" * (cast_expression "(int *)(DAT_0007b640 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x1c)" ( (binary_expression "DAT_0007b640 + 0x1c" identifier + number_literal) ))))) ;) }))) (expression_statement "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);" (assignment_expression "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" identifier = (call_expression "FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" identifier (argument_list "(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" ( (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" * (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x10)" ( (binary_expression "DAT_0007b640 + 0x10" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" * (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x10)" ( (binary_expression "DAT_0007b640 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);" (assignment_expression "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(DAT_0007b640 + 0xc)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 0xc)" ( (binary_expression "DAT_0007b640 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = *(undefined4 **)(DAT_0007b640 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(DAT_0007b640 + 4)" identifier = (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 4)" ( (binary_expression "DAT_0007b640 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" { (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (for_statement "for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" for ( (assignment_expression "puVar8 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ; (binary_expression "puVar8 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar8 = (undefined4 *)puVar8[2]" identifier = (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ]))) ) (compound_statement "{\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" { (expression_statement "puVar3 = (undefined4 *)puVar8[3];" (assignment_expression "puVar3 = (undefined4 *)puVar8[3]" identifier = (cast_expression "(undefined4 *)puVar8[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[3]" identifier [ number_literal ]))) ;) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" identifier (argument_list "((void *)*puVar3)" ( (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ))) ;) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" identifier (argument_list "((void *)puVar3[4])" ( (cast_expression "(void *)puVar3[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "puVar3 = puVar8;" (assignment_expression "puVar3 = puVar8" identifier = identifier) ;) })) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" identifier (argument_list "((void *)*puVar3)" ( (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ))) ;) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" identifier (argument_list "((void *)puVar3[4])" ( (cast_expression "(void *)puVar3[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) })) (expression_statement "iVar4 = DAT_0007b640;" (assignment_expression "iVar4 = DAT_0007b640" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x30);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x30)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" * (cast_expression "(int *)(DAT_0007b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x30)" ( (binary_expression "DAT_0007b640 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)param_1[2];" (assignment_expression "puVar3 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 **)(DAT_0007b640 + 4) = param_1;" (assignment_expression "*(undefined4 **)(DAT_0007b640 + 4) = param_1" (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 4)" ( (binary_expression "DAT_0007b640 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar9 = (bool)(iVar6 != 0 & bVar9);" (assignment_expression "bVar9 = (bool)(iVar6 != 0 & bVar9)" identifier = (cast_expression "(bool)(iVar6 != 0 & bVar9)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(iVar6 != 0 & bVar9)" ( (binary_expression "iVar6 != 0 & bVar9" (binary_expression "iVar6 != 0" identifier != number_literal) & identifier) )))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }" { (expression_statement "*(undefined4 **)(iVar4 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" * (cast_expression "(undefined4 **)(iVar4 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "sVar7 = strlen((char *)*param_1);" (assignment_expression "sVar7 = strlen((char *)*param_1)" identifier = (call_expression "strlen((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar8 = param_1;" (assignment_expression "puVar8 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" else (compound_statement "{\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" { (do_statement "do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);" do (compound_statement "{\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    }" { (expression_statement "puVar8 = puVar3;" (assignment_expression "puVar8 = puVar3" identifier = identifier) ;) (expression_statement "puVar3 = (undefined4 *)puVar8[2];" (assignment_expression "puVar3 = (undefined4 *)puVar8[2]" identifier = (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "((undefined4 *)puVar8[2] != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)puVar8[2] != (undefined4 *)0x0" (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ])) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 0x10) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" * (cast_expression "(undefined4 **)(iVar4 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "sVar7 = strlen((char *)*puVar8);" (assignment_expression "sVar7 = strlen((char *)*puVar8)" identifier = (call_expression "strlen((char *)*puVar8)" identifier (argument_list "((char *)*puVar8)" ( (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier)) )))) ;) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" if (parenthesized_expression "(param_1 != puVar8)" ( (binary_expression "param_1 != puVar8" identifier != identifier) )) (compound_statement "{\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" { (if_statement "if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" { (if_statement "if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" if (parenthesized_expression "(local_31 == '\0')" ( (binary_expression "local_31 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }" { (expression_statement "*(undefined4 **)(iVar4 + 0x30) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);" (assignment_expression "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" (pointer_expression "*(size_t *)(iVar4 + 0x34)" * (cast_expression "(size_t *)(iVar4 + 0x34)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) = (binary_expression "sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" identifier + (parenthesized_expression "(*(int *)(iVar4 + 0x34) - iVar5)" ( (binary_expression "*(int *)(iVar4 + 0x34) - iVar5" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) - identifier) )))) ;) }) (else_clause "else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" else (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" { (expression_statement "*(undefined4 **)(iVar4 + 0x30) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) ;) }))) })) (goto_statement "goto LAB_0002b73c;" goto statement_identifier ;) })) }))) (if_statement "if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" if (parenthesized_expression "((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'))" ( (binary_expression "(bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" (parenthesized_expression "(bVar9)" ( identifier )) && (parenthesized_expression "(*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" ( (comma_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) , (binary_expression "local_31 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" { (expression_statement "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;" (assignment_expression "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) + identifier)) ;) })) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = (binary_expression "sVar7 + iVar5" identifier + identifier)) ;) (labeled_statement "LAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);" statement_identifier : (expression_statement "iVar5 = FUN_0003e3e0(param_1,puVar8);" (assignment_expression "iVar5 = FUN_0003e3e0(param_1,puVar8)" identifier = (call_expression "FUN_0003e3e0(param_1,puVar8)" identifier (argument_list "(param_1,puVar8)" ( identifier , identifier )))) ;)) (expression_statement "iVar6 = DAT_0007b640;" (assignment_expression "iVar6 = DAT_0007b640" identifier = identifier) ;) (expression_statement "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;" (assignment_expression "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" * (cast_expression "(int *)(DAT_0007b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x14)" ( (binary_expression "DAT_0007b640 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" * (cast_expression "(int *)(DAT_0007b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x14)" ( (binary_expression "DAT_0007b640 + 0x14" identifier + number_literal) )))) + identifier)) ;) (expression_statement "iVar5 = *(int *)(iVar6 + 4);" (assignment_expression "iVar5 = *(int *)(iVar6 + 4)" identifier = (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) ))))) ;) (if_statement "if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" if (parenthesized_expression "(puVar1 == puVar2)" ( (binary_expression "puVar1 == puVar2" identifier == identifier) )) (compound_statement "{\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" { (expression_statement "*(int *)(iVar6 + 0xc) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0xc) = iVar5" (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "FUN_0002b0e0(&DAT_0007b644);" (call_expression "FUN_0002b0e0(&DAT_0007b644)" identifier (argument_list "(&DAT_0007b644)" ( (pointer_expression "&DAT_0007b644" & identifier) ))) ;) (if_statement "if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }" { (expression_statement "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");" (call_expression "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug")" identifier (argument_list "(3,"Trying to renumber nothing -- please report a bug")" ( number_literal , (string_literal ""Trying to renumber nothing -- please report a bug"" " string_content ") ))) ;) }) (else_clause "else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" else (compound_statement "{\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" if (parenthesized_expression "(*(int *)(iVar5 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar5 + 0xc) != 0" (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" { (expression_statement "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0xc) + 4)" ( (binary_expression "*(int *)(iVar5 + 0xc) + 4" (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (do_statement "do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);" do (compound_statement "{\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar5 + 4) = iVar6;" (assignment_expression "*(int *)(iVar5 + 4) = iVar6" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = *(int *)(iVar5 + 8);" (assignment_expression "iVar5 = *(int *)(iVar5 + 8)" identifier = (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) }))) (if_statement "if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }" if (parenthesized_expression "(((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))" ( (binary_expression "((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" (parenthesized_expression "((DAT_0007b664 & 0x40000000) == 0)" ( (binary_expression "(DAT_0007b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0007b664 & 0x40000000)" ( (binary_expression "DAT_0007b664 & 0x40000000" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" ( (binary_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8)" * (cast_expression "(char *)**(undefined4 **)(DAT_0007b640 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0007b640 + 8)" * (pointer_expression "*(undefined4 **)(DAT_0007b640 + 8)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 8)" ( (binary_expression "DAT_0007b640 + 8" identifier + number_literal) ))))))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_0003e140();\n  }" { (expression_statement "FUN_0003e140();" (call_expression "FUN_0003e140()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ingraft_buffer(filestruct *somebuffer)\n\n{\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  openfilestruct *poVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  size_t sVar7;\n  size_t top_x_00;\n  filestruct *pfVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  _Bool right_side_up;\n  filestruct *top;\n  filestruct *bot;\n  size_t top_x;\n  size_t bot_x;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  right_side_up = false;\n  sVar5 = openfile->current_x;\n  if (openfile->mark == (filestruct *)0x0) {\n    bVar9 = false;\n    top_x_00 = sVar5;\n  }\n  else {\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }\n  filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00);\n  pfVar1 = openfile->edittop;\n  pfVar2 = openfile->fileage;\n  if (pfVar2 != (filestruct *)0x0) {\n    pfVar8 = pfVar2;\n    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }\n    free(pfVar8->data);\n    free(pfVar8->multidata);\n    free(pfVar8);\n  }\n  poVar4 = openfile;\n  pfVar8 = openfile->mark;\n  pfVar3 = somebuffer->next;\n  openfile->fileage = somebuffer;\n  poVar4->filebot = somebuffer;\n  bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9);\n  if (pfVar3 == (filestruct *)0x0) {\n    poVar4->current = somebuffer;\n    sVar7 = strlen(somebuffer->data);\n    poVar4->current_x = sVar7;\n    pfVar8 = somebuffer;\n  }\n  else {\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (poVar4->mark = pfVar8, right_side_up == false)) {\n    poVar4->mark_x = poVar4->mark_x + sVar7;\n  }\n  poVar4->current_x = sVar7 + sVar5;\nLAB_0002b73c:\n  sVar5 = get_totsize(somebuffer,pfVar8);\n  poVar4 = openfile;\n  openfile->totsize = openfile->totsize + sVar5;\n  pfVar8 = poVar4->fileage;\n  if (pfVar1 == pfVar2) {\n    poVar4->edittop = pfVar8;\n  }\n  unpartition_filestruct(&filepart);\n  if (pfVar8 == (filestruct *)0x0) {\n    statusline(ALERT,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }\n  if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n    new_magicline();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void ingraft_buffer(filestruct *somebuffer)\n\n{\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  openfilestruct *poVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  size_t sVar7;\n  size_t top_x_00;\n  filestruct *pfVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  _Bool right_side_up;\n  filestruct *top;\n  filestruct *bot;\n  size_t top_x;\n  size_t bot_x;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  right_side_up = false;\n  sVar5 = openfile->current_x;\n  if (openfile->mark == (filestruct *)0x0) {\n    bVar9 = false;\n    top_x_00 = sVar5;\n  }\n  else {\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }\n  filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00);\n  pfVar1 = openfile->edittop;\n  pfVar2 = openfile->fileage;\n  if (pfVar2 != (filestruct *)0x0) {\n    pfVar8 = pfVar2;\n    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }\n    free(pfVar8->data);\n    free(pfVar8->multidata);\n    free(pfVar8);\n  }\n  poVar4 = openfile;\n  pfVar8 = openfile->mark;\n  pfVar3 = somebuffer->next;\n  openfile->fileage = somebuffer;\n  poVar4->filebot = somebuffer;\n  bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9);\n  if (pfVar3 == (filestruct *)0x0) {\n    poVar4->current = somebuffer;\n    sVar7 = strlen(somebuffer->data);\n    poVar4->current_x = sVar7;\n    pfVar8 = somebuffer;\n  }\n  else {\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (poVar4->mark = pfVar8, right_side_up == false)) {\n    poVar4->mark_x = poVar4->mark_x + sVar7;\n  }\n  poVar4->current_x = sVar7 + sVar5;\nLAB_0002b73c:\n  sVar5 = get_totsize(somebuffer,pfVar8);\n  poVar4 = openfile;\n  openfile->totsize = openfile->totsize + sVar5;\n  pfVar8 = poVar4->fileage;\n  if (pfVar1 == pfVar2) {\n    poVar4->edittop = pfVar8;\n  }\n  unpartition_filestruct(&filepart);\n  if (pfVar8 == (filestruct *)0x0) {\n    statusline(ALERT,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }\n  if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n    new_magicline();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "ingraft_buffer(filestruct *somebuffer)" identifier (parameter_list "(filestruct *somebuffer)" ( (parameter_declaration "filestruct *somebuffer" type_identifier (pointer_declarator "*somebuffer" * identifier)) ))) (compound_statement "{\n  filestruct *pfVar1;\n  filestruct *pfVar2;\n  filestruct *pfVar3;\n  openfilestruct *poVar4;\n  size_t sVar5;\n  ssize_t sVar6;\n  size_t sVar7;\n  size_t top_x_00;\n  filestruct *pfVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  _Bool right_side_up;\n  filestruct *top;\n  filestruct *bot;\n  size_t top_x;\n  size_t bot_x;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  right_side_up = false;\n  sVar5 = openfile->current_x;\n  if (openfile->mark == (filestruct *)0x0) {\n    bVar9 = false;\n    top_x_00 = sVar5;\n  }\n  else {\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }\n  filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00);\n  pfVar1 = openfile->edittop;\n  pfVar2 = openfile->fileage;\n  if (pfVar2 != (filestruct *)0x0) {\n    pfVar8 = pfVar2;\n    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }\n    free(pfVar8->data);\n    free(pfVar8->multidata);\n    free(pfVar8);\n  }\n  poVar4 = openfile;\n  pfVar8 = openfile->mark;\n  pfVar3 = somebuffer->next;\n  openfile->fileage = somebuffer;\n  poVar4->filebot = somebuffer;\n  bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9);\n  if (pfVar3 == (filestruct *)0x0) {\n    poVar4->current = somebuffer;\n    sVar7 = strlen(somebuffer->data);\n    poVar4->current_x = sVar7;\n    pfVar8 = somebuffer;\n  }\n  else {\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (poVar4->mark = pfVar8, right_side_up == false)) {\n    poVar4->mark_x = poVar4->mark_x + sVar7;\n  }\n  poVar4->current_x = sVar7 + sVar5;\nLAB_0002b73c:\n  sVar5 = get_totsize(somebuffer,pfVar8);\n  poVar4 = openfile;\n  openfile->totsize = openfile->totsize + sVar5;\n  pfVar8 = poVar4->fileage;\n  if (pfVar1 == pfVar2) {\n    poVar4->edittop = pfVar8;\n  }\n  unpartition_filestruct(&filepart);\n  if (pfVar8 == (filestruct *)0x0) {\n    statusline(ALERT,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }\n  if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n    new_magicline();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "filestruct *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "filestruct *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (declaration "filestruct *pfVar3;" type_identifier (pointer_declarator "*pfVar3" * identifier) ;) (declaration "openfilestruct *poVar4;" type_identifier (pointer_declarator "*poVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "ssize_t sVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "size_t top_x_00;" primitive_type identifier ;) (declaration "filestruct *pfVar8;" type_identifier (pointer_declarator "*pfVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "_Bool right_side_up;" type_identifier identifier ;) (declaration "filestruct *top;" type_identifier (pointer_declarator "*top" * identifier) ;) (declaration "filestruct *bot;" type_identifier (pointer_declarator "*bot" * identifier) ;) (declaration "size_t top_x;" primitive_type identifier ;) (declaration "size_t bot_x;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2b5d9;" (assignment_expression "uStack_14 = 0x2b5d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "right_side_up = false;" (assignment_expression "right_side_up = false" identifier = false) ;) (expression_statement "sVar5 = openfile->current_x;" (assignment_expression "sVar5 = openfile->current_x" identifier = (field_expression "openfile->current_x" identifier -> field_identifier)) ;) (if_statement "if (openfile->mark == (filestruct *)0x0) {\n    bVar9 = false;\n    top_x_00 = sVar5;\n  }\n  else {\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }" if (parenthesized_expression "(openfile->mark == (filestruct *)0x0)" ( (binary_expression "openfile->mark == (filestruct *)0x0" (field_expression "openfile->mark" identifier -> field_identifier) == (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar9 = false;\n    top_x_00 = sVar5;\n  }" { (expression_statement "bVar9 = false;" (assignment_expression "bVar9 = false" identifier = false) ;) (expression_statement "top_x_00 = sVar5;" (assignment_expression "top_x_00 = sVar5" identifier = identifier) ;) }) (else_clause "else {\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }" else (compound_statement "{\n    mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);\n    bVar9 = top == bot;\n    top_x_00 = openfile->current_x;\n  }" { (expression_statement "mark_order(&top,&top_x,&bot,&bot_x,&right_side_up);" (call_expression "mark_order(&top,&top_x,&bot,&bot_x,&right_side_up)" identifier (argument_list "(&top,&top_x,&bot,&bot_x,&right_side_up)" ( (pointer_expression "&top" & identifier) , (pointer_expression "&top_x" & identifier) , (pointer_expression "&bot" & identifier) , (pointer_expression "&bot_x" & identifier) , (pointer_expression "&right_side_up" & identifier) ))) ;) (expression_statement "bVar9 = top == bot;" (assignment_expression "bVar9 = top == bot" identifier = (binary_expression "top == bot" identifier == identifier)) ;) (expression_statement "top_x_00 = openfile->current_x;" (assignment_expression "top_x_00 = openfile->current_x" identifier = (field_expression "openfile->current_x" identifier -> field_identifier)) ;) }))) (expression_statement "filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00);" (assignment_expression "filepart = partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00)" identifier = (call_expression "partition_filestruct(openfile->current,top_x_00,openfile->current,top_x_00)" identifier (argument_list "(openfile->current,top_x_00,openfile->current,top_x_00)" ( (field_expression "openfile->current" identifier -> field_identifier) , identifier , (field_expression "openfile->current" identifier -> field_identifier) , identifier )))) ;) (expression_statement "pfVar1 = openfile->edittop;" (assignment_expression "pfVar1 = openfile->edittop" identifier = (field_expression "openfile->edittop" identifier -> field_identifier)) ;) (expression_statement "pfVar2 = openfile->fileage;" (assignment_expression "pfVar2 = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (if_statement "if (pfVar2 != (filestruct *)0x0) {\n    pfVar8 = pfVar2;\n    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }\n    free(pfVar8->data);\n    free(pfVar8->multidata);\n    free(pfVar8);\n  }" if (parenthesized_expression "(pfVar2 != (filestruct *)0x0)" ( (binary_expression "pfVar2 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pfVar8 = pfVar2;\n    for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }\n    free(pfVar8->data);\n    free(pfVar8->multidata);\n    free(pfVar8);\n  }" { (expression_statement "pfVar8 = pfVar2;" (assignment_expression "pfVar8 = pfVar2" identifier = identifier) ;) (for_statement "for (pfVar3 = pfVar2->next; pfVar3 != (filestruct *)0x0; pfVar3 = pfVar3->next) {\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }" for ( (assignment_expression "pfVar3 = pfVar2->next" identifier = (field_expression "pfVar2->next" identifier -> field_identifier)) ; (binary_expression "pfVar3 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "pfVar3 = pfVar3->next" identifier = (field_expression "pfVar3->next" identifier -> field_identifier)) ) (compound_statement "{\n      pfVar8 = pfVar3->prev;\n      free(pfVar8->data);\n      free(pfVar8->multidata);\n      free(pfVar8);\n      pfVar8 = pfVar3;\n    }" { (expression_statement "pfVar8 = pfVar3->prev;" (assignment_expression "pfVar8 = pfVar3->prev" identifier = (field_expression "pfVar3->prev" identifier -> field_identifier)) ;) (expression_statement "free(pfVar8->data);" (call_expression "free(pfVar8->data)" identifier (argument_list "(pfVar8->data)" ( (field_expression "pfVar8->data" identifier -> field_identifier) ))) ;) (expression_statement "free(pfVar8->multidata);" (call_expression "free(pfVar8->multidata)" identifier (argument_list "(pfVar8->multidata)" ( (field_expression "pfVar8->multidata" identifier -> field_identifier) ))) ;) (expression_statement "free(pfVar8);" (call_expression "free(pfVar8)" identifier (argument_list "(pfVar8)" ( identifier ))) ;) (expression_statement "pfVar8 = pfVar3;" (assignment_expression "pfVar8 = pfVar3" identifier = identifier) ;) })) (expression_statement "free(pfVar8->data);" (call_expression "free(pfVar8->data)" identifier (argument_list "(pfVar8->data)" ( (field_expression "pfVar8->data" identifier -> field_identifier) ))) ;) (expression_statement "free(pfVar8->multidata);" (call_expression "free(pfVar8->multidata)" identifier (argument_list "(pfVar8->multidata)" ( (field_expression "pfVar8->multidata" identifier -> field_identifier) ))) ;) (expression_statement "free(pfVar8);" (call_expression "free(pfVar8)" identifier (argument_list "(pfVar8)" ( identifier ))) ;) })) (expression_statement "poVar4 = openfile;" (assignment_expression "poVar4 = openfile" identifier = identifier) ;) (expression_statement "pfVar8 = openfile->mark;" (assignment_expression "pfVar8 = openfile->mark" identifier = (field_expression "openfile->mark" identifier -> field_identifier)) ;) (expression_statement "pfVar3 = somebuffer->next;" (assignment_expression "pfVar3 = somebuffer->next" identifier = (field_expression "somebuffer->next" identifier -> field_identifier)) ;) (expression_statement "openfile->fileage = somebuffer;" (assignment_expression "openfile->fileage = somebuffer" (field_expression "openfile->fileage" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar4->filebot = somebuffer;" (assignment_expression "poVar4->filebot = somebuffer" (field_expression "poVar4->filebot" identifier -> field_identifier) = identifier) ;) (expression_statement "bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9);" (assignment_expression "bVar9 = (bool)(pfVar8 != (filestruct *)0x0 & bVar9)" identifier = (cast_expression "(bool)(pfVar8 != (filestruct *)0x0 & bVar9)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(pfVar8 != (filestruct *)0x0 & bVar9)" ( (binary_expression "pfVar8 != (filestruct *)0x0 & bVar9" (binary_expression "pfVar8 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) & identifier) )))) ;) (if_statement "if (pfVar3 == (filestruct *)0x0) {\n    poVar4->current = somebuffer;\n    sVar7 = strlen(somebuffer->data);\n    poVar4->current_x = sVar7;\n    pfVar8 = somebuffer;\n  }\n  else {\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" if (parenthesized_expression "(pfVar3 == (filestruct *)0x0)" ( (binary_expression "pfVar3 == (filestruct *)0x0" identifier == (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    poVar4->current = somebuffer;\n    sVar7 = strlen(somebuffer->data);\n    poVar4->current_x = sVar7;\n    pfVar8 = somebuffer;\n  }" { (expression_statement "poVar4->current = somebuffer;" (assignment_expression "poVar4->current = somebuffer" (field_expression "poVar4->current" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar7 = strlen(somebuffer->data);" (assignment_expression "sVar7 = strlen(somebuffer->data)" identifier = (call_expression "strlen(somebuffer->data)" identifier (argument_list "(somebuffer->data)" ( (field_expression "somebuffer->data" identifier -> field_identifier) )))) ;) (expression_statement "poVar4->current_x = sVar7;" (assignment_expression "poVar4->current_x = sVar7" (field_expression "poVar4->current_x" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar8 = somebuffer;" (assignment_expression "pfVar8 = somebuffer" identifier = identifier) ;) }) (else_clause "else {\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" else (compound_statement "{\n    do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);\n    poVar4->filebot = pfVar8;\n    poVar4->current = pfVar8;\n    sVar7 = strlen(pfVar8->data);\n    poVar4->current_x = sVar7;\n    if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" { (do_statement "do {\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    } while (pfVar8->next != (filestruct *)0x0);" do (compound_statement "{\n      pfVar8 = pfVar3;\n      pfVar3 = pfVar8->next;\n    }" { (expression_statement "pfVar8 = pfVar3;" (assignment_expression "pfVar8 = pfVar3" identifier = identifier) ;) (expression_statement "pfVar3 = pfVar8->next;" (assignment_expression "pfVar3 = pfVar8->next" identifier = (field_expression "pfVar8->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pfVar8->next != (filestruct *)0x0)" ( (binary_expression "pfVar8->next != (filestruct *)0x0" (field_expression "pfVar8->next" identifier -> field_identifier) != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "poVar4->filebot = pfVar8;" (assignment_expression "poVar4->filebot = pfVar8" (field_expression "poVar4->filebot" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar4->current = pfVar8;" (assignment_expression "poVar4->current = pfVar8" (field_expression "poVar4->current" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar7 = strlen(pfVar8->data);" (assignment_expression "sVar7 = strlen(pfVar8->data)" identifier = (call_expression "strlen(pfVar8->data)" identifier (argument_list "(pfVar8->data)" ( (field_expression "pfVar8->data" identifier -> field_identifier) )))) ;) (expression_statement "poVar4->current_x = sVar7;" (assignment_expression "poVar4->current_x = sVar7" (field_expression "poVar4->current_x" identifier -> field_identifier) = identifier) ;) (if_statement "if (somebuffer != pfVar8) {\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }" if (parenthesized_expression "(somebuffer != pfVar8)" ( (binary_expression "somebuffer != pfVar8" identifier != identifier) )) (compound_statement "{\n      if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }\n      goto LAB_0002b73c;\n    }" { (if_statement "if (bVar9) {\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n        if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }\n      }" { (if_statement "if (right_side_up == false) {\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }\n        else {\n          poVar4->mark = somebuffer;\n        }" if (parenthesized_expression "(right_side_up == false)" ( (binary_expression "right_side_up == false" identifier == false) )) (compound_statement "{\n          poVar4->mark = pfVar8;\n          poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);\n        }" { (expression_statement "poVar4->mark = pfVar8;" (assignment_expression "poVar4->mark = pfVar8" (field_expression "poVar4->mark" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5);" (assignment_expression "poVar4->mark_x = sVar7 + (poVar4->mark_x - sVar5)" (field_expression "poVar4->mark_x" identifier -> field_identifier) = (binary_expression "sVar7 + (poVar4->mark_x - sVar5)" identifier + (parenthesized_expression "(poVar4->mark_x - sVar5)" ( (binary_expression "poVar4->mark_x - sVar5" (field_expression "poVar4->mark_x" identifier -> field_identifier) - identifier) )))) ;) }) (else_clause "else {\n          poVar4->mark = somebuffer;\n        }" else (compound_statement "{\n          poVar4->mark = somebuffer;\n        }" { (expression_statement "poVar4->mark = somebuffer;" (assignment_expression "poVar4->mark = somebuffer" (field_expression "poVar4->mark" identifier -> field_identifier) = identifier) ;) }))) })) (goto_statement "goto LAB_0002b73c;" goto statement_identifier ;) })) }))) (if_statement "if ((bVar9) && (poVar4->mark = pfVar8, right_side_up == false)) {\n    poVar4->mark_x = poVar4->mark_x + sVar7;\n  }" if (parenthesized_expression "((bVar9) && (poVar4->mark = pfVar8, right_side_up == false))" ( (binary_expression "(bVar9) && (poVar4->mark = pfVar8, right_side_up == false)" (parenthesized_expression "(bVar9)" ( identifier )) && (parenthesized_expression "(poVar4->mark = pfVar8, right_side_up == false)" ( (comma_expression "poVar4->mark = pfVar8, right_side_up == false" (assignment_expression "poVar4->mark = pfVar8" (field_expression "poVar4->mark" identifier -> field_identifier) = identifier) , (binary_expression "right_side_up == false" identifier == false)) ))) )) (compound_statement "{\n    poVar4->mark_x = poVar4->mark_x + sVar7;\n  }" { (expression_statement "poVar4->mark_x = poVar4->mark_x + sVar7;" (assignment_expression "poVar4->mark_x = poVar4->mark_x + sVar7" (field_expression "poVar4->mark_x" identifier -> field_identifier) = (binary_expression "poVar4->mark_x + sVar7" (field_expression "poVar4->mark_x" identifier -> field_identifier) + identifier)) ;) })) (expression_statement "poVar4->current_x = sVar7 + sVar5;" (assignment_expression "poVar4->current_x = sVar7 + sVar5" (field_expression "poVar4->current_x" identifier -> field_identifier) = (binary_expression "sVar7 + sVar5" identifier + identifier)) ;) (labeled_statement "LAB_0002b73c:\n  sVar5 = get_totsize(somebuffer,pfVar8);" statement_identifier : (expression_statement "sVar5 = get_totsize(somebuffer,pfVar8);" (assignment_expression "sVar5 = get_totsize(somebuffer,pfVar8)" identifier = (call_expression "get_totsize(somebuffer,pfVar8)" identifier (argument_list "(somebuffer,pfVar8)" ( identifier , identifier )))) ;)) (expression_statement "poVar4 = openfile;" (assignment_expression "poVar4 = openfile" identifier = identifier) ;) (expression_statement "openfile->totsize = openfile->totsize + sVar5;" (assignment_expression "openfile->totsize = openfile->totsize + sVar5" (field_expression "openfile->totsize" identifier -> field_identifier) = (binary_expression "openfile->totsize + sVar5" (field_expression "openfile->totsize" identifier -> field_identifier) + identifier)) ;) (expression_statement "pfVar8 = poVar4->fileage;" (assignment_expression "pfVar8 = poVar4->fileage" identifier = (field_expression "poVar4->fileage" identifier -> field_identifier)) ;) (if_statement "if (pfVar1 == pfVar2) {\n    poVar4->edittop = pfVar8;\n  }" if (parenthesized_expression "(pfVar1 == pfVar2)" ( (binary_expression "pfVar1 == pfVar2" identifier == identifier) )) (compound_statement "{\n    poVar4->edittop = pfVar8;\n  }" { (expression_statement "poVar4->edittop = pfVar8;" (assignment_expression "poVar4->edittop = pfVar8" (field_expression "poVar4->edittop" identifier -> field_identifier) = identifier) ;) })) (expression_statement "unpartition_filestruct(&filepart);" (call_expression "unpartition_filestruct(&filepart)" identifier (argument_list "(&filepart)" ( (pointer_expression "&filepart" & identifier) ))) ;) (if_statement "if (pfVar8 == (filestruct *)0x0) {\n    statusline(ALERT,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }" if (parenthesized_expression "(pfVar8 == (filestruct *)0x0)" ( (binary_expression "pfVar8 == (filestruct *)0x0" identifier == (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    statusline(ALERT,"Trying to renumber nothing -- please report a bug");\n  }" { (expression_statement "statusline(ALERT,"Trying to renumber nothing -- please report a bug");" (call_expression "statusline(ALERT,"Trying to renumber nothing -- please report a bug")" identifier (argument_list "(ALERT,"Trying to renumber nothing -- please report a bug")" ( identifier , (string_literal ""Trying to renumber nothing -- please report a bug"" " string_content ") ))) ;) }) (else_clause "else {\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }" else (compound_statement "{\n    sVar6 = 0;\n    if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }\n    do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);\n  }" { (expression_statement "sVar6 = 0;" (assignment_expression "sVar6 = 0" identifier = number_literal) ;) (if_statement "if (pfVar8->prev != (filestruct *)0x0) {\n      sVar6 = pfVar8->prev->lineno;\n    }" if (parenthesized_expression "(pfVar8->prev != (filestruct *)0x0)" ( (binary_expression "pfVar8->prev != (filestruct *)0x0" (field_expression "pfVar8->prev" identifier -> field_identifier) != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar6 = pfVar8->prev->lineno;\n    }" { (expression_statement "sVar6 = pfVar8->prev->lineno;" (assignment_expression "sVar6 = pfVar8->prev->lineno" identifier = (field_expression "pfVar8->prev->lineno" (field_expression "pfVar8->prev" identifier -> field_identifier) -> field_identifier)) ;) })) (do_statement "do {\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    } while (pfVar8 != (filestruct *)0x0);" do (compound_statement "{\n      sVar6 = sVar6 + 1;\n      pfVar8->lineno = sVar6;\n      pfVar8 = pfVar8->next;\n    }" { (expression_statement "sVar6 = sVar6 + 1;" (assignment_expression "sVar6 = sVar6 + 1" identifier = (binary_expression "sVar6 + 1" identifier + number_literal)) ;) (expression_statement "pfVar8->lineno = sVar6;" (assignment_expression "pfVar8->lineno = sVar6" (field_expression "pfVar8->lineno" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar8 = pfVar8->next;" (assignment_expression "pfVar8 = pfVar8->next" identifier = (field_expression "pfVar8->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pfVar8 != (filestruct *)0x0)" ( (binary_expression "pfVar8 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (if_statement "if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n    new_magicline();\n  }" if (parenthesized_expression "(((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0'))" ( (binary_expression "((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')" (parenthesized_expression "((flags[0] & 0x40000000) == 0)" ( (binary_expression "(flags[0] & 0x40000000) == 0" (parenthesized_expression "(flags[0] & 0x40000000)" ( (binary_expression "flags[0] & 0x40000000" (subscript_expression "flags[0]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) && (parenthesized_expression "(*openfile->filebot->data != '\0')" ( (binary_expression "*openfile->filebot->data != '\0'" (pointer_expression "*openfile->filebot->data" * (field_expression "openfile->filebot->data" (field_expression "openfile->filebot" identifier -> field_identifier) -> field_identifier)) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    new_magicline();\n  }" { (expression_statement "new_magicline();" (call_expression "new_magicline()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_0002b5d0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0005a8b0();\n}\n\n" (function_definition "void FUN_0002b5d0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0005a8b0();\n}" primitive_type (function_declarator "FUN_0002b5d0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0005a8b0();\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined1 local_28 [4];" type_identifier (array_declarator "local_28 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2b5d9;" (assignment_expression "uStack_14 = 0x2b5d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar5 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar5 = *(int *)(DAT_0007b640 + 0x1c)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" * (cast_expression "(int *)(DAT_0007b640 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x1c)" ( (binary_expression "DAT_0007b640 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" if (parenthesized_expression "(*(int *)(DAT_0007b640 + 0x30) == 0)" ( (binary_expression "*(int *)(DAT_0007b640 + 0x30) == 0" (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" * (cast_expression "(int *)(DAT_0007b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x30)" ( (binary_expression "DAT_0007b640 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    bVar9 = false;\n    iVar6 = iVar5;\n  }" { (expression_statement "bVar9 = false;" (assignment_expression "bVar9 = false" identifier = false) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" else (compound_statement "{\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" { (expression_statement "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);" (call_expression "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31)" identifier (argument_list "(&local_30,local_28,&local_2c,local_24,&local_31)" ( (pointer_expression "&local_30" & identifier) , identifier , (pointer_expression "&local_2c" & identifier) , identifier , (pointer_expression "&local_31" & identifier) ))) ;) (expression_statement "bVar9 = local_30 == local_2c;" (assignment_expression "bVar9 = local_30 == local_2c" identifier = (binary_expression "local_30 == local_2c" identifier == identifier)) ;) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x1c)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" * (cast_expression "(int *)(DAT_0007b640 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x1c)" ( (binary_expression "DAT_0007b640 + 0x1c" identifier + number_literal) ))))) ;) }))) (expression_statement "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);" (assignment_expression "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" identifier = (call_expression "FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" identifier (argument_list "(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" ( (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" * (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x10)" ( (binary_expression "DAT_0007b640 + 0x10" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" * (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x10)" ( (binary_expression "DAT_0007b640 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);" (assignment_expression "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc)" identifier = (pointer_expression "*(undefined4 **)(DAT_0007b640 + 0xc)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 0xc)" ( (binary_expression "DAT_0007b640 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = *(undefined4 **)(DAT_0007b640 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(DAT_0007b640 + 4)" identifier = (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 4)" ( (binary_expression "DAT_0007b640 + 4" identifier + number_literal) ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" { (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" identifier = identifier) ;) (for_statement "for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" for ( (assignment_expression "puVar8 = (undefined4 *)puVar2[2]" identifier = (cast_expression "(undefined4 *)puVar2[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) ; (binary_expression "puVar8 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar8 = (undefined4 *)puVar8[2]" identifier = (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ]))) ) (compound_statement "{\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" { (expression_statement "puVar3 = (undefined4 *)puVar8[3];" (assignment_expression "puVar3 = (undefined4 *)puVar8[3]" identifier = (cast_expression "(undefined4 *)puVar8[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[3]" identifier [ number_literal ]))) ;) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" identifier (argument_list "((void *)*puVar3)" ( (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ))) ;) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" identifier (argument_list "((void *)puVar3[4])" ( (cast_expression "(void *)puVar3[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) (expression_statement "puVar3 = puVar8;" (assignment_expression "puVar3 = puVar8" identifier = identifier) ;) })) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" identifier (argument_list "((void *)*puVar3)" ( (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) ))) ;) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" identifier (argument_list "((void *)puVar3[4])" ( (cast_expression "(void *)puVar3[4]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" identifier (argument_list "(puVar3)" ( identifier ))) ;) })) (expression_statement "iVar4 = DAT_0007b640;" (assignment_expression "iVar4 = DAT_0007b640" identifier = identifier) ;) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x30);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x30)" identifier = (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" * (cast_expression "(int *)(DAT_0007b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x30)" ( (binary_expression "DAT_0007b640 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = (undefined4 *)param_1[2];" (assignment_expression "puVar3 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined4 **)(DAT_0007b640 + 4) = param_1;" (assignment_expression "*(undefined4 **)(DAT_0007b640 + 4) = param_1" (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 4)" ( (binary_expression "DAT_0007b640 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar9 = (bool)(iVar6 != 0 & bVar9);" (assignment_expression "bVar9 = (bool)(iVar6 != 0 & bVar9)" identifier = (cast_expression "(bool)(iVar6 != 0 & bVar9)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(iVar6 != 0 & bVar9)" ( (binary_expression "iVar6 != 0 & bVar9" (binary_expression "iVar6 != 0" identifier != number_literal) & identifier) )))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }" { (expression_statement "*(undefined4 **)(iVar4 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" * (cast_expression "(undefined4 **)(iVar4 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "sVar7 = strlen((char *)*param_1);" (assignment_expression "sVar7 = strlen((char *)*param_1)" identifier = (call_expression "strlen((char *)*param_1)" identifier (argument_list "((char *)*param_1)" ( (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar8 = param_1;" (assignment_expression "puVar8 = param_1" identifier = identifier) ;) }) (else_clause "else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" else (compound_statement "{\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" { (do_statement "do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);" do (compound_statement "{\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    }" { (expression_statement "puVar8 = puVar3;" (assignment_expression "puVar8 = puVar3" identifier = identifier) ;) (expression_statement "puVar3 = (undefined4 *)puVar8[2];" (assignment_expression "puVar3 = (undefined4 *)puVar8[2]" identifier = (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "((undefined4 *)puVar8[2] != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)puVar8[2] != (undefined4 *)0x0" (cast_expression "(undefined4 *)puVar8[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[2]" identifier [ number_literal ])) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 8)" * (cast_expression "(undefined4 **)(iVar4 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 8)" ( (binary_expression "iVar4 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 **)(iVar4 + 0x10) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" * (cast_expression "(undefined4 **)(iVar4 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x10)" ( (binary_expression "iVar4 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "sVar7 = strlen((char *)*puVar8);" (assignment_expression "sVar7 = strlen((char *)*puVar8)" identifier = (call_expression "strlen((char *)*puVar8)" identifier (argument_list "((char *)*puVar8)" ( (cast_expression "(char *)*puVar8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier)) )))) ;) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" if (parenthesized_expression "(param_1 != puVar8)" ( (binary_expression "param_1 != puVar8" identifier != identifier) )) (compound_statement "{\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" { (if_statement "if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" if (parenthesized_expression "(bVar9)" ( identifier )) (compound_statement "{\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" { (if_statement "if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" if (parenthesized_expression "(local_31 == '\0')" ( (binary_expression "local_31 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }" { (expression_statement "*(undefined4 **)(iVar4 + 0x30) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);" (assignment_expression "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" (pointer_expression "*(size_t *)(iVar4 + 0x34)" * (cast_expression "(size_t *)(iVar4 + 0x34)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) = (binary_expression "sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" identifier + (parenthesized_expression "(*(int *)(iVar4 + 0x34) - iVar5)" ( (binary_expression "*(int *)(iVar4 + 0x34) - iVar5" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) - identifier) )))) ;) }) (else_clause "else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" else (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" { (expression_statement "*(undefined4 **)(iVar4 + 0x30) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) ;) }))) })) (goto_statement "goto LAB_0002b73c;" goto statement_identifier ;) })) }))) (if_statement "if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" if (parenthesized_expression "((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'))" ( (binary_expression "(bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" (parenthesized_expression "(bVar9)" ( identifier )) && (parenthesized_expression "(*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" ( (comma_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" * (cast_expression "(undefined4 **)(iVar4 + 0x30)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) = identifier) , (binary_expression "local_31 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" { (expression_statement "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;" (assignment_expression "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" * (cast_expression "(int *)(iVar4 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x34)" ( (binary_expression "iVar4 + 0x34" identifier + number_literal) )))) + identifier)) ;) })) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" * (cast_expression "(size_t *)(iVar4 + 0x1c)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x1c)" ( (binary_expression "iVar4 + 0x1c" identifier + number_literal) )))) = (binary_expression "sVar7 + iVar5" identifier + identifier)) ;) (labeled_statement "LAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);" statement_identifier : (expression_statement "iVar5 = FUN_0003e3e0(param_1,puVar8);" (assignment_expression "iVar5 = FUN_0003e3e0(param_1,puVar8)" identifier = (call_expression "FUN_0003e3e0(param_1,puVar8)" identifier (argument_list "(param_1,puVar8)" ( identifier , identifier )))) ;)) (expression_statement "iVar6 = DAT_0007b640;" (assignment_expression "iVar6 = DAT_0007b640" identifier = identifier) ;) (expression_statement "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;" (assignment_expression "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" * (cast_expression "(int *)(DAT_0007b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x14)" ( (binary_expression "DAT_0007b640 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" * (cast_expression "(int *)(DAT_0007b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0x14)" ( (binary_expression "DAT_0007b640 + 0x14" identifier + number_literal) )))) + identifier)) ;) (expression_statement "iVar5 = *(int *)(iVar6 + 4);" (assignment_expression "iVar5 = *(int *)(iVar6 + 4)" identifier = (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) ))))) ;) (if_statement "if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" if (parenthesized_expression "(puVar1 == puVar2)" ( (binary_expression "puVar1 == puVar2" identifier == identifier) )) (compound_statement "{\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" { (expression_statement "*(int *)(iVar6 + 0xc) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0xc) = iVar5" (pointer_expression "*(int *)(iVar6 + 0xc)" * (cast_expression "(int *)(iVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "FUN_0002b0e0(&DAT_0007b644);" (call_expression "FUN_0002b0e0(&DAT_0007b644)" identifier (argument_list "(&DAT_0007b644)" ( (pointer_expression "&DAT_0007b644" & identifier) ))) ;) (if_statement "if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }" { (expression_statement "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");" (call_expression "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug")" identifier (argument_list "(3,"Trying to renumber nothing -- please report a bug")" ( number_literal , (string_literal ""Trying to renumber nothing -- please report a bug"" " string_content ") ))) ;) }) (else_clause "else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" else (compound_statement "{\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" if (parenthesized_expression "(*(int *)(iVar5 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar5 + 0xc) != 0" (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" { (expression_statement "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(iVar5 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(iVar5 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 0xc) + 4)" ( (binary_expression "*(int *)(iVar5 + 0xc) + 4" (pointer_expression "*(int *)(iVar5 + 0xc)" * (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (do_statement "do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);" do (compound_statement "{\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    }" { (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)(iVar5 + 4) = iVar6;" (assignment_expression "*(int *)(iVar5 + 4) = iVar6" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar5 = *(int *)(iVar5 + 8);" (assignment_expression "iVar5 = *(int *)(iVar5 + 8)" identifier = (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) ;) }))) (if_statement "if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }" if (parenthesized_expression "(((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))" ( (binary_expression "((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" (parenthesized_expression "((DAT_0007b664 & 0x40000000) == 0)" ( (binary_expression "(DAT_0007b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0007b664 & 0x40000000)" ( (binary_expression "DAT_0007b664 & 0x40000000" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" ( (binary_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8)" * (cast_expression "(char *)**(undefined4 **)(DAT_0007b640 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0007b640 + 8)" * (pointer_expression "*(undefined4 **)(DAT_0007b640 + 8)" * (cast_expression "(undefined4 **)(DAT_0007b640 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0007b640 + 8)" ( (binary_expression "DAT_0007b640 + 8" identifier + number_literal) ))))))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    FUN_0003e140();\n  }" { (expression_statement "FUN_0003e140();" (call_expression "FUN_0003e140()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == 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 = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (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 ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (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 ))) ;) })) (expression_statement (assignment_expression IDENT = 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) & IDENT) )))) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) })) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) && (parenthesized_expression ( (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (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) )))) + IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (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) )))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0002b5d0(undefined4 *param_1)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0005a8b0();\n}" (primitive_type "void") (function_declarator "FUN_0002b5d0(undefined4 *param_1)" (identifier "FUN_0002b5d0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  size_t sVar7;\n  undefined4 *puVar8;\n  int in_GS_OFFSET;\n  bool bVar9;\n  char local_31;\n  int local_30;\n  int local_2c;\n  undefined1 local_28 [4];\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2b5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_31 = '\0';\n  iVar5 = *(int *)(DAT_0007b640 + 0x1c);\n  if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }\n  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);\n  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);\n  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);\n  if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }\n  iVar4 = DAT_0007b640;\n  iVar6 = *(int *)(DAT_0007b640 + 0x30);\n  puVar3 = (undefined4 *)param_1[2];\n  *(undefined4 **)(DAT_0007b640 + 4) = param_1;\n  *(undefined4 **)(iVar4 + 8) = param_1;\n  bVar9 = (bool)(iVar6 != 0 & bVar9);\n  if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }\n  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }\n  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;\nLAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);\n  iVar6 = DAT_0007b640;\n  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;\n  iVar5 = *(int *)(iVar6 + 4);\n  if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }\n  FUN_0002b0e0(&DAT_0007b644);\n  if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }\n  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0005a8b0();\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "size_t sVar7;" (primitive_type "size_t") (identifier "sVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (declaration "char local_31;" (primitive_type "char") (identifier "local_31") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "undefined1 local_28 [4];" (type_identifier "undefined1") (array_declarator "local_28 [4]" (identifier "local_28") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_24 [4];" (type_identifier "undefined1") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2b5d9;" (assignment_expression "uStack_14 = 0x2b5d9" (identifier "uStack_14") (= "=") (number_literal "0x2b5d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" (identifier "local_31") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar5 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar5 = *(int *)(DAT_0007b640 + 0x1c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x1c)" (( "(") (binary_expression "DAT_0007b640 + 0x1c" (identifier "DAT_0007b640") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (*(int *)(DAT_0007b640 + 0x30) == 0) {\n    bVar9 = false;\n    iVar6 = iVar5;\n  }\n  else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0007b640 + 0x30) == 0)" (( "(") (binary_expression "*(int *)(DAT_0007b640 + 0x30) == 0" (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x30)" (( "(") (binary_expression "DAT_0007b640 + 0x30" (identifier "DAT_0007b640") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    bVar9 = false;\n    iVar6 = iVar5;\n  }" ({ "{") (expression_statement "bVar9 = false;" (assignment_expression "bVar9 = false" (identifier "bVar9") (= "=") (false "false")) (; ";")) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" (else "else") (compound_statement "{\n    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);\n    bVar9 = local_30 == local_2c;\n    iVar6 = *(int *)(DAT_0007b640 + 0x1c);\n  }" ({ "{") (expression_statement "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);" (call_expression "FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31)" (identifier "FUN_0003e230") (argument_list "(&local_30,local_28,&local_2c,local_24,&local_31)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "local_28") (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "local_24") (, ",") (pointer_expression "&local_31" (& "&") (identifier "local_31")) () ")"))) (; ";")) (expression_statement "bVar9 = local_30 == local_2c;" (assignment_expression "bVar9 = local_30 == local_2c" (identifier "bVar9") (= "=") (binary_expression "local_30 == local_2c" (identifier "local_30") (== "==") (identifier "local_2c"))) (; ";")) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x1c);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x1c)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(DAT_0007b640 + 0x1c)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x1c)" (( "(") (binary_expression "DAT_0007b640 + 0x1c" (identifier "DAT_0007b640") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (} "}")))) (expression_statement "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);" (assignment_expression "DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" (identifier "DAT_0007b644") (= "=") (call_expression "FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" (identifier "FUN_0002afe0") (argument_list "(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,\n                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6)" (( "(") (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x10)" (( "(") (binary_expression "DAT_0007b640 + 0x10" (identifier "DAT_0007b640") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "iVar6") (, ",") (pointer_expression "*(undefined4 *)(DAT_0007b640 + 0x10)" (* "*") (cast_expression "(undefined4 *)(DAT_0007b640 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x10)" (( "(") (binary_expression "DAT_0007b640 + 0x10" (identifier "DAT_0007b640") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);" (assignment_expression "puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(DAT_0007b640 + 0xc)" (* "*") (cast_expression "(undefined4 **)(DAT_0007b640 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0007b640 + 0xc)" (( "(") (binary_expression "DAT_0007b640 + 0xc" (identifier "DAT_0007b640") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(DAT_0007b640 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(DAT_0007b640 + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0007b640 + 4)" (( "(") (binary_expression "DAT_0007b640 + 4" (identifier "DAT_0007b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar3 = puVar2;\n    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }\n    free((void *)*puVar3);\n    free((void *)puVar3[4]);\n    free(puVar3);\n  }" ({ "{") (expression_statement "puVar3 = puVar2;" (assignment_expression "puVar3 = puVar2" (identifier "puVar3") (= "=") (identifier "puVar2")) (; ";")) (for_statement "for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;\n        puVar8 = (undefined4 *)puVar8[2]) {\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" (for "for") (( "(") (assignment_expression "puVar8 = (undefined4 *)puVar2[2]" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)puVar2[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")))) (; ";") (binary_expression "puVar8 != (undefined4 *)0x0" (identifier "puVar8") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar8 = (undefined4 *)puVar8[2]" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)puVar8[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")))) () ")") (compound_statement "{\n      puVar3 = (undefined4 *)puVar8[3];\n      free((void *)*puVar3);\n      free((void *)puVar3[4]);\n      free(puVar3);\n      puVar3 = puVar8;\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)puVar8[3];" (assignment_expression "puVar3 = (undefined4 *)puVar8[3]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)puVar8[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[3]" (identifier "puVar8") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" (identifier "free") (argument_list "((void *)*puVar3)" (( "(") (cast_expression "(void *)*puVar3" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" (identifier "free") (argument_list "((void *)puVar3[4])" (( "(") (cast_expression "(void *)puVar3[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) () ")"))) (; ";")) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" (identifier "free") (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (expression_statement "puVar3 = puVar8;" (assignment_expression "puVar3 = puVar8" (identifier "puVar3") (= "=") (identifier "puVar8")) (; ";")) (} "}"))) (expression_statement "free((void *)*puVar3);" (call_expression "free((void *)*puVar3)" (identifier "free") (argument_list "((void *)*puVar3)" (( "(") (cast_expression "(void *)*puVar3" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "free((void *)puVar3[4]);" (call_expression "free((void *)puVar3[4])" (identifier "free") (argument_list "((void *)puVar3[4])" (( "(") (cast_expression "(void *)puVar3[4]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) () ")"))) (; ";")) (expression_statement "free(puVar3);" (call_expression "free(puVar3)" (identifier "free") (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = DAT_0007b640;" (assignment_expression "iVar4 = DAT_0007b640" (identifier "iVar4") (= "=") (identifier "DAT_0007b640")) (; ";")) (expression_statement "iVar6 = *(int *)(DAT_0007b640 + 0x30);" (assignment_expression "iVar6 = *(int *)(DAT_0007b640 + 0x30)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(DAT_0007b640 + 0x30)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x30)" (( "(") (binary_expression "DAT_0007b640 + 0x30" (identifier "DAT_0007b640") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)param_1[2];" (assignment_expression "puVar3 = (undefined4 *)param_1[2]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*(undefined4 **)(DAT_0007b640 + 4) = param_1;" (assignment_expression "*(undefined4 **)(DAT_0007b640 + 4) = param_1" (pointer_expression "*(undefined4 **)(DAT_0007b640 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_0007b640 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0007b640 + 4)" (( "(") (binary_expression "DAT_0007b640 + 4" (identifier "DAT_0007b640") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 **)(iVar4 + 8) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "bVar9 = (bool)(iVar6 != 0 & bVar9);" (assignment_expression "bVar9 = (bool)(iVar6 != 0 & bVar9)" (identifier "bVar9") (= "=") (cast_expression "(bool)(iVar6 != 0 & bVar9)" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (parenthesized_expression "(iVar6 != 0 & bVar9)" (( "(") (binary_expression "iVar6 != 0 & bVar9" (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) (& "&") (identifier "bVar9")) () ")")))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }\n  else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(undefined4 **)(iVar4 + 0x10) = param_1;\n    sVar7 = strlen((char *)*param_1);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    puVar8 = param_1;\n  }" ({ "{") (expression_statement "*(undefined4 **)(iVar4 + 0x10) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "sVar7 = strlen((char *)*param_1);" (assignment_expression "sVar7 = strlen((char *)*param_1)" (identifier "sVar7") (= "=") (call_expression "strlen((char *)*param_1)" (identifier "strlen") (argument_list "((char *)*param_1)" (( "(") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" (* "*") (cast_expression "(size_t *)(iVar4 + 0x1c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x1c)" (( "(") (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "sVar7")) (; ";")) (expression_statement "puVar8 = param_1;" (assignment_expression "puVar8 = param_1" (identifier "puVar8") (= "=") (identifier "param_1")) (; ";")) (} "}")) (else_clause "else {\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" (else "else") (compound_statement "{\n    do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);\n    *(undefined4 **)(iVar4 + 8) = puVar8;\n    *(undefined4 **)(iVar4 + 0x10) = puVar8;\n    sVar7 = strlen((char *)*puVar8);\n    *(size_t *)(iVar4 + 0x1c) = sVar7;\n    if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }\n  }" ({ "{") (do_statement "do {\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);" (do "do") (compound_statement "{\n      puVar8 = puVar3;\n      puVar3 = (undefined4 *)puVar8[2];\n    }" ({ "{") (expression_statement "puVar8 = puVar3;" (assignment_expression "puVar8 = puVar3" (identifier "puVar8") (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = (undefined4 *)puVar8[2];" (assignment_expression "puVar3 = (undefined4 *)puVar8[2]" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)puVar8[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)puVar8[2] != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)puVar8[2] != (undefined4 *)0x0" (cast_expression "(undefined4 *)puVar8[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]"))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "*(undefined4 **)(iVar4 + 8) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 8) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 8)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 8)" (( "(") (binary_expression "iVar4 + 8" (identifier "iVar4") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (expression_statement "*(undefined4 **)(iVar4 + 0x10) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x10) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x10)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x10)" (( "(") (binary_expression "iVar4 + 0x10" (identifier "iVar4") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (expression_statement "sVar7 = strlen((char *)*puVar8);" (assignment_expression "sVar7 = strlen((char *)*puVar8)" (identifier "sVar7") (= "=") (call_expression "strlen((char *)*puVar8)" (identifier "strlen") (argument_list "((char *)*puVar8)" (( "(") (cast_expression "(char *)*puVar8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) () ")")))) (; ";")) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" (* "*") (cast_expression "(size_t *)(iVar4 + 0x1c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x1c)" (( "(") (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "sVar7")) (; ";")) (if_statement "if (param_1 != puVar8) {\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" (if "if") (parenthesized_expression "(param_1 != puVar8)" (( "(") (binary_expression "param_1 != puVar8" (identifier "param_1") (!= "!=") (identifier "puVar8")) () ")")) (compound_statement "{\n      if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }\n      goto LAB_0002b73c;\n    }" ({ "{") (if_statement "if (bVar9) {\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" (if "if") (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (compound_statement "{\n        if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }\n      }" ({ "{") (if_statement "if (local_31 == '\0') {\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }\n        else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" (if "if") (parenthesized_expression "(local_31 == '\0')" (( "(") (binary_expression "local_31 == '\0'" (identifier "local_31") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = puVar8;\n          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);\n        }" ({ "{") (expression_statement "*(undefined4 **)(iVar4 + 0x30) = puVar8;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 0x30)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "puVar8")) (; ";")) (expression_statement "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);" (assignment_expression "*(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" (pointer_expression "*(size_t *)(iVar4 + 0x34)" (* "*") (cast_expression "(size_t *)(iVar4 + 0x34)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x34)" (( "(") (binary_expression "iVar4 + 0x34" (identifier "iVar4") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "sVar7 + (*(int *)(iVar4 + 0x34) - iVar5)" (identifier "sVar7") (+ "+") (parenthesized_expression "(*(int *)(iVar4 + 0x34) - iVar5)" (( "(") (binary_expression "*(int *)(iVar4 + 0x34) - iVar5" (pointer_expression "*(int *)(iVar4 + 0x34)" (* "*") (cast_expression "(int *)(iVar4 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x34)" (( "(") (binary_expression "iVar4 + 0x34" (identifier "iVar4") (+ "+") (number_literal "0x34")) () ")")))) (- "-") (identifier "iVar5")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" (else "else") (compound_statement "{\n          *(undefined4 **)(iVar4 + 0x30) = param_1;\n        }" ({ "{") (expression_statement "*(undefined4 **)(iVar4 + 0x30) = param_1;" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = param_1" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 0x30)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_0002b73c;" (goto "goto") (statement_identifier "LAB_0002b73c") (; ";")) (} "}"))) (} "}")))) (if_statement "if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" (if "if") (parenthesized_expression "((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'))" (( "(") (binary_expression "(bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" (parenthesized_expression "(bVar9)" (( "(") (identifier "bVar9") () ")")) (&& "&&") (parenthesized_expression "(*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')" (( "(") (comma_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0'" (assignment_expression "*(undefined4 **)(iVar4 + 0x30) = puVar8" (pointer_expression "*(undefined4 **)(iVar4 + 0x30)" (* "*") (cast_expression "(undefined4 **)(iVar4 + 0x30)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "puVar8")) (, ",") (binary_expression "local_31 == '\0'" (identifier "local_31") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;\n  }" ({ "{") (expression_statement "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;" (assignment_expression "*(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" (* "*") (cast_expression "(int *)(iVar4 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x34)" (( "(") (binary_expression "iVar4 + 0x34" (identifier "iVar4") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(iVar4 + 0x34) + sVar7" (pointer_expression "*(int *)(iVar4 + 0x34)" (* "*") (cast_expression "(int *)(iVar4 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x34)" (( "(") (binary_expression "iVar4 + 0x34" (identifier "iVar4") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (identifier "sVar7"))) (; ";")) (} "}"))) (expression_statement "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;" (assignment_expression "*(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5" (pointer_expression "*(size_t *)(iVar4 + 0x1c)" (* "*") (cast_expression "(size_t *)(iVar4 + 0x1c)" (( "(") (type_descriptor "size_t *" (primitive_type "size_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0x1c)" (( "(") (binary_expression "iVar4 + 0x1c" (identifier "iVar4") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "sVar7 + iVar5" (identifier "sVar7") (+ "+") (identifier "iVar5"))) (; ";")) (labeled_statement "LAB_0002b73c:\n  iVar5 = FUN_0003e3e0(param_1,puVar8);" (statement_identifier "LAB_0002b73c") (: ":") (expression_statement "iVar5 = FUN_0003e3e0(param_1,puVar8);" (assignment_expression "iVar5 = FUN_0003e3e0(param_1,puVar8)" (identifier "iVar5") (= "=") (call_expression "FUN_0003e3e0(param_1,puVar8)" (identifier "FUN_0003e3e0") (argument_list "(param_1,puVar8)" (( "(") (identifier "param_1") (, ",") (identifier "puVar8") () ")")))) (; ";"))) (expression_statement "iVar6 = DAT_0007b640;" (assignment_expression "iVar6 = DAT_0007b640" (identifier "iVar6") (= "=") (identifier "DAT_0007b640")) (; ";")) (expression_statement "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;" (assignment_expression "*(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x14)" (( "(") (binary_expression "DAT_0007b640 + 0x14" (identifier "DAT_0007b640") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_0007b640 + 0x14) + iVar5" (pointer_expression "*(int *)(DAT_0007b640 + 0x14)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0x14)" (( "(") (binary_expression "DAT_0007b640 + 0x14" (identifier "DAT_0007b640") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = *(int *)(iVar6 + 4);" (assignment_expression "iVar5 = *(int *)(iVar6 + 4)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (puVar1 == puVar2) {\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" (if "if") (parenthesized_expression "(puVar1 == puVar2)" (( "(") (binary_expression "puVar1 == puVar2" (identifier "puVar1") (== "==") (identifier "puVar2")) () ")")) (compound_statement "{\n    *(int *)(iVar6 + 0xc) = iVar5;\n  }" ({ "{") (expression_statement "*(int *)(iVar6 + 0xc) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0xc) = iVar5" (pointer_expression "*(int *)(iVar6 + 0xc)" (* "*") (cast_expression "(int *)(iVar6 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (} "}"))) (expression_statement "FUN_0002b0e0(&DAT_0007b644);" (call_expression "FUN_0002b0e0(&DAT_0007b644)" (identifier "FUN_0002b0e0") (argument_list "(&DAT_0007b644)" (( "(") (pointer_expression "&DAT_0007b644" (& "&") (identifier "DAT_0007b644")) () ")"))) (; ";")) (if_statement "if (iVar5 == 0) {\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }\n  else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");\n  }" ({ "{") (expression_statement "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");" (call_expression "FUN_00040b60(3,"Trying to renumber nothing -- please report a bug")" (identifier "FUN_00040b60") (argument_list "(3,"Trying to renumber nothing -- please report a bug")" (( "(") (number_literal "3") (, ",") (string_literal ""Trying to renumber nothing -- please report a bug"" (" """) (string_content "Trying to renumber nothing -- please report a bug") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" (else "else") (compound_statement "{\n    iVar6 = 0;\n    if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }\n    do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(iVar5 + 0xc) != 0) {\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar5 + 0xc) != 0" (pointer_expression "*(int *)(iVar5 + 0xc)" (* "*") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);\n    }" ({ "{") (expression_statement "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);" (assignment_expression "iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(*(int *)(iVar5 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(iVar5 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(iVar5 + 0xc) + 4" (pointer_expression "*(int *)(iVar5 + 0xc)" (* "*") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (do_statement "do {\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    } while (iVar5 != 0);" (do "do") (compound_statement "{\n      iVar6 = iVar6 + 1;\n      *(int *)(iVar5 + 4) = iVar6;\n      iVar5 = *(int *)(iVar5 + 8);\n    }" ({ "{") (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(iVar5 + 4) = iVar6;" (assignment_expression "*(int *)(iVar5 + 4) = iVar6" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "iVar5 = *(int *)(iVar5 + 8);" (assignment_expression "iVar5 = *(int *)(iVar5 + 8)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (if_statement "if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))\n  {\n    FUN_0003e140();\n  }" (if "if") (parenthesized_expression "(((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))" (( "(") (binary_expression "((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" (parenthesized_expression "((DAT_0007b664 & 0x40000000) == 0)" (( "(") (binary_expression "(DAT_0007b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0007b664 & 0x40000000)" (( "(") (binary_expression "DAT_0007b664 & 0x40000000" (identifier "DAT_0007b664") (& "&") (number_literal "0x40000000")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0')" (( "(") (binary_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0007b640 + 8)" (* "*") (cast_expression "(char *)**(undefined4 **)(DAT_0007b640 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(DAT_0007b640 + 8)" (* "*") (pointer_expression "*(undefined4 **)(DAT_0007b640 + 8)" (* "*") (cast_expression "(undefined4 **)(DAT_0007b640 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0007b640 + 8)" (( "(") (binary_expression "DAT_0007b640 + 8" (identifier "DAT_0007b640") (+ "+") (number_literal "8")) () ")"))))))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    FUN_0003e140();\n  }" ({ "{") (expression_statement "FUN_0003e140();" (call_expression "FUN_0003e140()" (identifier "FUN_0003e140") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0005a8b0();" (call_expression "FUN_0005a8b0()" (identifier "FUN_0005a8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(type_1 *var_12)

{
  type_1 *var_17;
  type_1 *var_6;
  type_1 *var_7;
  type_2 *poVar4;
  size_t var_15;
  ssize_t var_20;
  size_t var_14;
  size_t top_x_00;
  type_1 *var_9;
  int var_1;
  bool var_10;
  type_3 var_13;
  type_1 *var_3;
  type_1 *var_4;
  size_t top_x;
  size_t bot_x;
  int var_22;
  type_4 uStack_14;
  
  uStack_14 = 0x2b5d9;
  var_22 = *(int *)(var_1 + 0x14);
  var_13 = false;
  var_15 = openfile->current_x;
  if (openfile->mark == (type_1 *)0x0) {
    var_10 = false;
    top_x_00 = var_15;
  }
  else {
    var_2(&var_3,&top_x,&var_4,&bot_x,&var_13);
    var_10 = var_3 == var_4;
    top_x_00 = openfile->current_x;
  }
  filepart = var_5(openfile->current,top_x_00,openfile->current,top_x_00);
  var_17 = openfile->edittop;
  var_6 = openfile->fileage;
  if (var_6 != (type_1 *)0x0) {
    var_9 = var_6;
    for (var_7 = var_6->next; var_7 != (type_1 *)0x0; var_7 = var_7->next) {
      var_9 = var_7->prev;
      var_8(var_9->data);
      var_8(var_9->multidata);
      var_8(var_9);
      var_9 = var_7;
    }
    var_8(var_9->data);
    var_8(var_9->multidata);
    var_8(var_9);
  }
  poVar4 = openfile;
  var_9 = openfile->mark;
  var_7 = var_12->next;
  openfile->fileage = var_12;
  poVar4->filebot = var_12;
  var_10 = (bool)(var_9 != (type_1 *)0x0 & var_10);
  if (var_7 == (type_1 *)0x0) {
    poVar4->current = var_12;
    var_14 = var_11(var_12->data);
    poVar4->current_x = var_14;
    var_9 = var_12;
  }
  else {
    do {
      var_9 = var_7;
      var_7 = var_9->next;
    } while (var_9->next != (type_1 *)0x0);
    poVar4->filebot = var_9;
    poVar4->current = var_9;
    var_14 = var_11(var_9->data);
    poVar4->current_x = var_14;
    if (var_12 != var_9) {
      if (var_10) {
        if (var_13 == false) {
          poVar4->mark = var_9;
          poVar4->mark_x = var_14 + (poVar4->mark_x - var_15);
        }
        else {
          poVar4->mark = var_12;
        }
      }
      goto LAB_0002b73c;
    }
  }
  if ((var_10) && (poVar4->mark = var_9, var_13 == false)) {
    poVar4->mark_x = poVar4->mark_x + var_14;
  }
  poVar4->current_x = var_14 + var_15;
LAB_0002b73c:
  var_15 = var_16(var_12,var_9);
  poVar4 = openfile;
  openfile->totsize = openfile->totsize + var_15;
  var_9 = poVar4->fileage;
  if (var_17 == var_6) {
    poVar4->edittop = var_9;
  }
  var_18(&filepart);
  if (var_9 == (type_1 *)0x0) {
    var_19(ALERT,"Trying to renumber nothing -- please report a bug");
  }
  else {
    var_20 = 0;
    if (var_9->prev != (type_1 *)0x0) {
      var_20 = var_9->prev->lineno;
    }
    do {
      var_20 = var_20 + 1;
      var_9->lineno = var_20;
      var_9 = var_9->next;
    } while (var_9 != (type_1 *)0x0);
  }
  if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {
    var_21();
  }
  if (var_22 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_23();
}


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

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

void MASKED(undefined4 *param_1)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  size_t sVar7;
  undefined4 *puVar8;
  int in_GS_OFFSET;
  bool bVar9;
  char local_31;
  int local_30;
  int local_2c;
  undefined1 local_28 [4];
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2b5d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_31 = '\0';
  iVar5 = *(int *)(DAT_0007b640 + 0x1c);
  if (*(int *)(DAT_0007b640 + 0x30) == 0) {
    bVar9 = false;
    iVar6 = iVar5;
  }
  else {
    FUN_0003e230(&local_30,local_28,&local_2c,local_24,&local_31);
    bVar9 = local_30 == local_2c;
    iVar6 = *(int *)(DAT_0007b640 + 0x1c);
  }
  DAT_0007b644 = FUN_0002afe0(*(undefined4 *)(DAT_0007b640 + 0x10),iVar6,
                              *(undefined4 *)(DAT_0007b640 + 0x10),iVar6);
  puVar1 = *(undefined4 **)(DAT_0007b640 + 0xc);
  puVar2 = *(undefined4 **)(DAT_0007b640 + 4);
  if (puVar2 != (undefined4 *)0x0) {
    puVar3 = puVar2;
    for (puVar8 = (undefined4 *)puVar2[2]; puVar8 != (undefined4 *)0x0;
        puVar8 = (undefined4 *)puVar8[2]) {
      puVar3 = (undefined4 *)puVar8[3];
      free((void *)*puVar3);
      free((void *)puVar3[4]);
      free(puVar3);
      puVar3 = puVar8;
    }
    free((void *)*puVar3);
    free((void *)puVar3[4]);
    free(puVar3);
  }
  iVar4 = DAT_0007b640;
  iVar6 = *(int *)(DAT_0007b640 + 0x30);
  puVar3 = (undefined4 *)param_1[2];
  *(undefined4 **)(DAT_0007b640 + 4) = param_1;
  *(undefined4 **)(iVar4 + 8) = param_1;
  bVar9 = (bool)(iVar6 != 0 & bVar9);
  if (puVar3 == (undefined4 *)0x0) {
    *(undefined4 **)(iVar4 + 0x10) = param_1;
    sVar7 = strlen((char *)*param_1);
    *(size_t *)(iVar4 + 0x1c) = sVar7;
    puVar8 = param_1;
  }
  else {
    do {
      puVar8 = puVar3;
      puVar3 = (undefined4 *)puVar8[2];
    } while ((undefined4 *)puVar8[2] != (undefined4 *)0x0);
    *(undefined4 **)(iVar4 + 8) = puVar8;
    *(undefined4 **)(iVar4 + 0x10) = puVar8;
    sVar7 = strlen((char *)*puVar8);
    *(size_t *)(iVar4 + 0x1c) = sVar7;
    if (param_1 != puVar8) {
      if (bVar9) {
        if (local_31 == '\0') {
          *(undefined4 **)(iVar4 + 0x30) = puVar8;
          *(size_t *)(iVar4 + 0x34) = sVar7 + (*(int *)(iVar4 + 0x34) - iVar5);
        }
        else {
          *(undefined4 **)(iVar4 + 0x30) = param_1;
        }
      }
      goto LAB_0002b73c;
    }
  }
  if ((bVar9) && (*(undefined4 **)(iVar4 + 0x30) = puVar8, local_31 == '\0')) {
    *(int *)(iVar4 + 0x34) = *(int *)(iVar4 + 0x34) + sVar7;
  }
  *(size_t *)(iVar4 + 0x1c) = sVar7 + iVar5;
LAB_0002b73c:
  iVar5 = FUN_0003e3e0(param_1,puVar8);
  iVar6 = DAT_0007b640;
  *(int *)(DAT_0007b640 + 0x14) = *(int *)(DAT_0007b640 + 0x14) + iVar5;
  iVar5 = *(int *)(iVar6 + 4);
  if (puVar1 == puVar2) {
    *(int *)(iVar6 + 0xc) = iVar5;
  }
  FUN_0002b0e0(&DAT_0007b644);
  if (iVar5 == 0) {
    FUN_00040b60(3,"Trying to renumber nothing -- please report a bug");
  }
  else {
    iVar6 = 0;
    if (*(int *)(iVar5 + 0xc) != 0) {
      iVar6 = *(int *)(*(int *)(iVar5 + 0xc) + 4);
    }
    do {
      iVar6 = iVar6 + 1;
      *(int *)(iVar5 + 4) = iVar6;
      iVar5 = *(int *)(iVar5 + 8);
    } while (iVar5 != 0);
  }
  if (((DAT_0007b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0007b640 + 8) != '\0'))
  {
    FUN_0003e140();
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005a8b0();
}

