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

void extract_buffer(filestruct **file_top,filestruct **file_bot,filestruct *top,size_t top_x,
                   filestruct *bot,size_t bot_x)

{
  int iVar1;
  filestruct *pfVar2;
  bool bVar3;
  bool bVar4;
  openfilestruct *poVar5;
  size_t sVar6;
  size_t sVar7;
  size_t sVar8;
  char *pcVar9;
  filestruct *pfVar10;
  filestruct *pfVar11;
  bool bVar12;
  
  bVar3 = top == bot && top_x == bot_x;
  if (top != bot || top_x != bot_x) {
    filepart = partition_filestruct(top,top_x,bot,bot_x);
    pfVar11 = openfile->fileage;
    iVar1 = openfile->edittop->lineno;
    bVar4 = false;
    if (pfVar11->lineno <= iVar1) {
      bVar4 = iVar1 <= openfile->filebot->lineno;
    }
    pfVar10 = openfile->mark;
    bVar12 = false;
    if (pfVar10 != (filestruct *)0x0) {
      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))
          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&
         (bVar3 = true, pfVar10 == openfile->filebot)) {
        bVar3 = openfile->mark_x <= bot_x;
      }
      bVar12 = pfVar11 == pfVar10;
    }
    sVar6 = get_totsize(top,bot);
    poVar5 = openfile;
    openfile->totsize = openfile->totsize - sVar6;
    if (*file_top == (filestruct *)0x0) {
      *file_top = poVar5->fileage;
      *file_bot = poVar5->filebot;
      renumber(*file_top);
    }
    else {
      pfVar11 = *file_bot;
      pcVar9 = pfVar11->data;
      sVar7 = strlen(pcVar9);
      sVar8 = strlen(poVar5->fileage->data);
      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);
      pfVar11->data = pcVar9;
      strcat((*file_bot)->data,openfile->fileage->data);
      poVar5 = openfile;
      pfVar10 = openfile->fileage;
      (*file_bot)->next = pfVar10->next;
      pfVar2 = (*file_bot)->next;
      if (pfVar2 != (filestruct *)0x0) {
        pfVar2->prev = *file_bot;
        *file_bot = poVar5->filebot;
        pfVar10 = poVar5->fileage;
      }
      delete_node(pfVar10);
      renumber(pfVar11);
    }
    poVar5 = openfile;
    pfVar11 = (filestruct *)nmalloc(0x14);
    pfVar11->lineno = 1;
    pfVar11->data = (char *)0x0;
    pfVar11->prev = (filestruct *)0x0;
    pfVar11->next = (filestruct *)0x0;
    pfVar11->multidata = (short *)0x0;
    poVar5->fileage = pfVar11;
    pfVar11 = openfile->fileage;
    pcVar9 = mallocstrcpy((char *)0x0,"");
    pfVar11->data = pcVar9;
    poVar5 = openfile;
    pfVar11 = openfile->fileage;
    openfile->current_x = top_x;
    poVar5->filebot = pfVar11;
    poVar5->current = pfVar11;
    if (bVar3) {
      poVar5->mark = pfVar11;
      poVar5->mark_x = top_x;
    }
    else if (bVar12) {
      poVar5->mark = pfVar11;
    }
    unpartition_filestruct(&filepart);
    if (bVar4) {
      adjust_viewport(STATIONARY);
      refresh_needed = true;
    }
    renumber(pfVar11);
    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {
      new_magicline();
    }
  }
  return;
}



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

void FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)

{
  char *__s;
  bool bVar1;
  bool bVar2;
  int iVar3;
  int iVar4;
  size_t sVar5;
  size_t sVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 *puVar9;
  bool bVar10;
  
  bVar1 = param_3 == param_5 && param_4 == param_6;
  if (param_3 != param_5 || param_4 != param_6) {
    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);
    iVar8 = *(int *)(DAT_0006b640 + 4);
    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);
    bVar2 = false;
    if (*(int *)(iVar8 + 4) <= iVar4) {
      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);
    }
    iVar4 = *(int *)(DAT_0006b640 + 0x30);
    bVar10 = false;
    if (iVar4 != 0) {
      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&
           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&
          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&
         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {
        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;
      }
      bVar10 = iVar8 == iVar4;
    }
    iVar4 = FUN_00035ca0(param_3,param_5);
    iVar8 = DAT_0006b640;
    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;
    if (*param_1 == 0) {
      *param_1 = *(int *)(iVar8 + 4);
      *param_2 = *(int *)(iVar8 + 8);
      FUN_00025740(*param_1);
    }
    else {
      puVar9 = (undefined4 *)*param_2;
      __s = (char *)*puVar9;
      sVar5 = strlen(__s);
      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));
      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);
      *puVar9 = uVar7;
      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));
      iVar3 = DAT_0006b640;
      iVar8 = *(int *)(DAT_0006b640 + 4);
      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);
      iVar4 = *(int *)(*param_2 + 8);
      if (iVar4 != 0) {
        *(int *)(iVar4 + 0xc) = *param_2;
        *param_2 = *(int *)(iVar3 + 8);
        iVar8 = *(int *)(iVar3 + 4);
      }
      FUN_000255f0(iVar8);
      FUN_00025740(puVar9);
    }
    iVar8 = DAT_0006b640;
    puVar9 = (undefined4 *)FUN_00035440(0x14);
    puVar9[1] = 1;
    *puVar9 = 0;
    puVar9[3] = 0;
    puVar9[2] = 0;
    puVar9[4] = 0;
    *(undefined4 **)(iVar8 + 4) = puVar9;
    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);
    uVar7 = FUN_00035640(0,&DAT_000503a2);
    *puVar9 = uVar7;
    iVar8 = DAT_0006b640;
    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);
    *(uint *)(DAT_0006b640 + 0x1c) = param_4;
    *(undefined4 *)(iVar8 + 8) = uVar7;
    *(undefined4 *)(iVar8 + 0x10) = uVar7;
    if (bVar1) {
      *(undefined4 *)(iVar8 + 0x30) = uVar7;
      *(uint *)(iVar8 + 0x34) = param_4;
    }
    else if (bVar10) {
      *(undefined4 *)(iVar8 + 0x30) = uVar7;
    }
    FUN_000258a0(&DAT_0006b644);
    if (bVar2) {
      FUN_0003aca0(2);
      DAT_0006b604 = 1;
    }
    FUN_00025740(uVar7);
    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')
       ) {
      FUN_00035a30();
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x451b7
SUB ESP,0x2c
MOV EBP,dword ptr [ESP + 0x48]
CMP EBP,dword ptr [ESP + 0x50]
SETZ DL
MOV EAX,dword ptr [ESP + 0x54]
CMP dword ptr [ESP + 0x4c],EAX
SETZ AL
AND DL,AL
MOV byte ptr [ESP + 0x12],DL
JZ 0x00025a50
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x54]
PUSH dword ptr [ESP + 0x54]
PUSH EBP
CALL 0x000257a0
LEA ESI,[EBX + 0xa74]
MOV dword ptr [ESP + 0x24],ESI
MOV dword ptr [ESI],EAX
LEA ESI,[EBX + 0xa70]
MOV EAX,dword ptr [ESI]
MOV EDI,dword ptr [EAX + 0x4]
MOV EDX,dword ptr [EAX + 0xc]
MOV dword ptr [ESP + 0x28],EDI
MOV EDX,dword ptr [EDX + 0x4]
ADD ESP,0x10
MOV EDI,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0xc],0x0
CMP EDX,EDI
JL 0x00025aa5
MOV ECX,dword ptr [EAX + 0x8]
CMP EDX,dword ptr [ECX + 0x4]
SETLE DL
MOVZX EDX,DL
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,dword ptr [EAX + 0x30]
MOV byte ptr [ESP + 0x13],0x0
TEST EDX,EDX
JZ 0x00025ac5
MOV ECX,dword ptr [EDX + 0x4]
CMP EDI,ECX
JLE 0x00025c50
CMP dword ptr [ESP + 0x18],EDX
SETZ byte ptr [ESP + 0x13]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x58]
PUSH EBP
CALL 0x00035ca0
MOV EDI,dword ptr [ESI]
ADD ESP,0x10
SUB dword ptr [EDI + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x00025ca0
MOV EAX,dword ptr [ESP + 0x44]
SUB ESP,0xc
MOV EBP,dword ptr [EAX]
MOV EDX,dword ptr [EBP]
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
CALL 0x00013630
POP EDX
MOV dword ptr [ESP + 0x24],EAX
MOV EAX,dword ptr [EDI + 0x4]
PUSH dword ptr [EAX]
CALL 0x00013630
POP ECX
POP EDI
MOV ECX,dword ptr [ESP + 0x20]
LEA EAX,[ECX + EAX*0x1 + 0x1]
PUSH EAX
MOV EDX,dword ptr [ESP + 0x28]
PUSH EDX
CALL 0x00035500
MOV dword ptr [EBP],EAX
POP EAX
MOV EAX,dword ptr [ESI]
POP EDX
MOV EAX,dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX]
CALL 0x00013480
MOV EDX,dword ptr [ESI]
MOV ECX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [ECX]
MOV EDI,dword ptr [EAX + 0x8]
MOV dword ptr [ECX + 0x8],EDI
MOV ECX,dword ptr [ESP + 0x54]
ADD ESP,0x10
MOV EDI,dword ptr [ECX]
MOV ECX,dword ptr [EDI + 0x8]
TEST ECX,ECX
JZ 0x00025b6b
MOV dword ptr [ECX + 0xc],EDI
MOV EAX,dword ptr [EDX + 0x8]
MOV EDI,dword ptr [ESP + 0x44]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [EDX + 0x4]
SUB ESP,0xc
PUSH EAX
CALL 0x000255f0
MOV dword ptr [ESP],EBP
CALL 0x00025740
ADD ESP,0x10
SUB ESP,0xc
MOV EDI,dword ptr [ESI]
PUSH 0x14
CALL 0x00035440
MOV dword ptr [EAX + 0x4],0x1
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [ESI]
POP EDX
POP ECX
MOV EDI,dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffe57d2]
PUSH EAX
PUSH 0x0
CALL 0x00035640
MOV ECX,dword ptr [ESP + 0x5c]
ADD ESP,0x10
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESI]
CMP byte ptr [ESP + 0x12],0x0
MOV EDI,dword ptr [EAX + 0x4]
MOV dword ptr [EAX + 0x1c],ECX
MOV dword ptr [EAX + 0x8],EDI
MOV dword ptr [EAX + 0x10],EDI
JZ 0x00025c40
MOV ECX,dword ptr [ESP + 0x4c]
MOV dword ptr [EAX + 0x30],EDI
MOV dword ptr [EAX + 0x34],ECX
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x000258a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x00025c80
SUB ESP,0xc
PUSH EDI
CALL 0x00025740
LEA EAX,[EBX + 0xa94]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
TEST EAX,0x40000000
JNZ 0x00025a40
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EAX]
CMP byte ptr [EAX],0x0
JZ 0x00025a40
CALL 0x00035a30
JMP 0x00025a40
CMP byte ptr [ESP + 0x13],0x0
JZ 0x00025bed
MOV dword ptr [EAX + 0x30],EDI
JMP 0x00025bed
MOV EDI,dword ptr [EAX + 0x8]
CMP ECX,dword ptr [EDI + 0x4]
JG 0x00025abc
CMP dword ptr [ESP + 0x18],EDX
JZ 0x00025cd0
MOV byte ptr [ESP + 0x12],0x1
CMP EDX,EDI
JNZ 0x00025abc
MOV EDI,dword ptr [ESP + 0x54]
CMP dword ptr [EAX + 0x34],EDI
SETBE byte ptr [ESP + 0x12]
JMP 0x00025abc
SUB ESP,0xc
PUSH 0x2
CALL 0x0003aca0
LEA EAX,[EBX + 0xa34]
ADD ESP,0x10
MOV byte ptr [EAX],0x1
JMP 0x00025c04
MOV ECX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [EDI + 0x4]
SUB ESP,0xc
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [EDI + 0x8]
MOV EDI,dword ptr [ESP + 0x50]
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESP + 0x4c]
PUSH dword ptr [EAX]
CALL 0x00025740
ADD ESP,0x10
JMP 0x00025b7f
MOV ECX,dword ptr [ESP + 0x4c]
CMP dword ptr [EAX + 0x34],ECX
JC 0x00025abc
JMP 0x00025c62
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)\n\n{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)\n\n{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (expression_statement "bVar1 = param_3 == param_5 && param_4 == param_6;" (assignment_expression "bVar1 = param_3 == param_5 && param_4 == param_6" identifier = (binary_expression "param_3 == param_5 && param_4 == param_6" (binary_expression "param_3 == param_5" identifier == identifier) && (binary_expression "param_4 == param_6" identifier == identifier))) ;) (if_statement "if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" if (parenthesized_expression "(param_3 != param_5 || param_4 != param_6)" ( (binary_expression "param_3 != param_5 || param_4 != param_6" (binary_expression "param_3 != param_5" identifier != identifier) || (binary_expression "param_4 != param_6" identifier != identifier)) )) (compound_statement "{\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" { (expression_statement "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);" (assignment_expression "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_000257a0(param_3,param_4,param_5,param_6)" identifier (argument_list "(param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 0xc)" * (cast_expression "(int *)(DAT_0006b640 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0xc)" ( (binary_expression "DAT_0006b640 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" if (parenthesized_expression "(*(int *)(iVar8 + 4) <= iVar4)" ( (binary_expression "*(int *)(iVar8 + 4) <= iVar4" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" { (expression_statement "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);" (assignment_expression "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" identifier = (binary_expression "iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" identifier <= (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))) + number_literal) )))))) ;) })) (expression_statement "iVar4 = *(int *)(DAT_0006b640 + 0x30);" (assignment_expression "iVar4 = *(int *)(DAT_0006b640 + 0x30)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" * (cast_expression "(int *)(DAT_0006b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x30)" ( (binary_expression "DAT_0006b640 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" identifier = false) ;) (if_statement "if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" { (if_statement "if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" if (parenthesized_expression "((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)))" ( (binary_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" (parenthesized_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))))" ( (binary_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" (parenthesized_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)))" ( (binary_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" (parenthesized_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4))" ( (binary_expression "*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) <= (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" ( (binary_expression "*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) <= (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))) + number_literal) ))))) ))) )) && (parenthesized_expression "((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" ( (parenthesized_expression "(iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))" ( (binary_expression "iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))" (binary_expression "iVar8 != iVar4" identifier != identifier) || (parenthesized_expression "(param_4 <= *(uint *)(DAT_0006b640 + 0x34))" ( (binary_expression "param_4 <= *(uint *)(DAT_0006b640 + 0x34)" identifier <= (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" * (cast_expression "(uint *)(DAT_0006b640 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x34)" ( (binary_expression "DAT_0006b640 + 0x34" identifier + number_literal) ))))) ))) )) ))) )) && (parenthesized_expression "(bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" ( (comma_expression "bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)" (assignment_expression "bVar1 = true" identifier = true) , (binary_expression "iVar4 == *(int *)(DAT_0006b640 + 8)" identifier == (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" { (expression_statement "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;" (assignment_expression "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6" identifier = (binary_expression "*(uint *)(DAT_0006b640 + 0x34) <= param_6" (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" * (cast_expression "(uint *)(DAT_0006b640 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x34)" ( (binary_expression "DAT_0006b640 + 0x34" identifier + number_literal) )))) <= identifier)) ;) })) (expression_statement "bVar10 = iVar8 == iVar4;" (assignment_expression "bVar10 = iVar8 == iVar4" identifier = (binary_expression "iVar8 == iVar4" identifier == identifier)) ;) })) (expression_statement "iVar4 = FUN_00035ca0(param_3,param_5);" (assignment_expression "iVar4 = FUN_00035ca0(param_3,param_5)" identifier = (call_expression "FUN_00035ca0(param_3,param_5)" identifier (argument_list "(param_3,param_5)" ( identifier , identifier )))) ;) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;" (assignment_expression "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" * (cast_expression "(int *)(DAT_0006b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x14)" ( (binary_expression "DAT_0006b640 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" * (cast_expression "(int *)(DAT_0006b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x14)" ( (binary_expression "DAT_0006b640 + 0x14" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }" { (expression_statement "*param_1 = *(int *)(iVar8 + 4);" (assignment_expression "*param_1 = *(int *)(iVar8 + 4)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = *(int *)(iVar8 + 8);" (assignment_expression "*param_2 = *(int *)(iVar8 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(iVar8 + 8)" * (cast_expression "(int *)(iVar8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_00025740(*param_1);" (call_expression "FUN_00025740(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" else (compound_statement "{\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" { (expression_statement "puVar9 = (undefined4 *)*param_2;" (assignment_expression "puVar9 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s = (char *)*puVar9;" (assignment_expression "__s = (char *)*puVar9" identifier = (cast_expression "(char *)*puVar9" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));" (assignment_expression "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4))" identifier = (call_expression "strlen((char *)**(undefined4 **)(iVar8 + 4))" identifier (argument_list "((char *)**(undefined4 **)(iVar8 + 4))" ( (cast_expression "(char *)**(undefined4 **)(iVar8 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(iVar8 + 4)" * (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))))) )))) ;) (expression_statement "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);" (assignment_expression "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6)" identifier = (call_expression "FUN_00035500(__s,sVar5 + 1 + sVar6)" identifier (argument_list "(__s,sVar5 + 1 + sVar6)" ( identifier , (binary_expression "sVar5 + 1 + sVar6" (binary_expression "sVar5 + 1" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));" (call_expression "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" identifier (argument_list "(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" ( (pointer_expression "*(char **)*param_2" * (cast_expression "(char **)*param_2" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_2" * identifier))) , (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0006b640 + 4)" * (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) )))))) ))) ;) (expression_statement "iVar3 = DAT_0006b640;" (assignment_expression "iVar3 = DAT_0006b640" identifier = identifier) ;) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);" (assignment_expression "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8)" (pointer_expression "*(undefined4 *)(*param_2 + 8)" * (cast_expression "(undefined4 *)(*param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*param_2 + 8);" (assignment_expression "iVar4 = *(int *)(*param_2 + 8)" identifier = (pointer_expression "*(int *)(*param_2 + 8)" * (cast_expression "(int *)(*param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" { (expression_statement "*(int *)(iVar4 + 0xc) = *param_2;" (assignment_expression "*(int *)(iVar4 + 0xc) = *param_2" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = *(int *)(iVar3 + 8);" (assignment_expression "*param_2 = *(int *)(iVar3 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(iVar3 + 4);" (assignment_expression "iVar8 = *(int *)(iVar3 + 4)" identifier = (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000255f0(iVar8);" (call_expression "FUN_000255f0(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "FUN_00025740(puVar9);" (call_expression "FUN_00025740(puVar9)" identifier (argument_list "(puVar9)" ( identifier ))) ;) }))) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "puVar9 = (undefined4 *)FUN_00035440(0x14);" (assignment_expression "puVar9 = (undefined4 *)FUN_00035440(0x14)" identifier = (cast_expression "(undefined4 *)FUN_00035440(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035440(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar9[1] = 1;" (assignment_expression "puVar9[1] = 1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9[3] = 0;" (assignment_expression "puVar9[3] = 0" (subscript_expression "puVar9[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar9[2] = 0;" (assignment_expression "puVar9[2] = 0" (subscript_expression "puVar9[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar9[4] = 0;" (assignment_expression "puVar9[4] = 0" (subscript_expression "puVar9[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 **)(iVar8 + 4) = puVar9;" (assignment_expression "*(undefined4 **)(iVar8 + 4) = puVar9" (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar9 = *(undefined4 **)(DAT_0006b640 + 4);" (assignment_expression "puVar9 = *(undefined4 **)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = FUN_00035640(0,&DAT_000503a2);" (assignment_expression "uVar7 = FUN_00035640(0,&DAT_000503a2)" identifier = (call_expression "FUN_00035640(0,&DAT_000503a2)" identifier (argument_list "(0,&DAT_000503a2)" ( number_literal , (pointer_expression "&DAT_000503a2" & identifier) )))) ;) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "uVar7 = *(undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "uVar7 = *(undefined4 *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(undefined4 *)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(DAT_0006b640 + 0x1c) = param_4;" (assignment_expression "*(uint *)(DAT_0006b640 + 0x1c) = param_4" (pointer_expression "*(uint *)(DAT_0006b640 + 0x1c)" * (cast_expression "(uint *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 8) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" * (cast_expression "(undefined4 *)(iVar8 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10)" ( (binary_expression "iVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }" { (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar8 + 0x34) = param_4;" (assignment_expression "*(uint *)(iVar8 + 0x34) = param_4" (pointer_expression "*(uint *)(iVar8 + 0x34)" * (cast_expression "(uint *)(iVar8 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x34)" ( (binary_expression "iVar8 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" else (if_statement "if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" { (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = identifier) ;) })))) (expression_statement "FUN_000258a0(&DAT_0006b644);" (call_expression "FUN_000258a0(&DAT_0006b644)" identifier (argument_list "(&DAT_0006b644)" ( (pointer_expression "&DAT_0006b644" & identifier) ))) ;) (if_statement "if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" { (expression_statement "FUN_0003aca0(2);" (call_expression "FUN_0003aca0(2)" identifier (argument_list "(2)" ( number_literal ))) ;) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" identifier = number_literal) ;) })) (expression_statement "FUN_00025740(uVar7);" (call_expression "FUN_00025740(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (if_statement "if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }" if (parenthesized_expression "(((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       )" ( (binary_expression "((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" (parenthesized_expression "((DAT_0006b664 & 0x40000000) == 0)" ( (binary_expression "(DAT_0006b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x40000000)" ( (binary_expression "DAT_0006b664 & 0x40000000" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" ( (binary_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8)" * (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0006b640 + 8)" * (pointer_expression "*(undefined4 **)(DAT_0006b640 + 8)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) ))))))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      FUN_00035a30();\n    }" { (expression_statement "FUN_00035a30();" (call_expression "FUN_00035a30()" identifier (argument_list "()" ( ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid extract_buffer(filestruct **file_top,filestruct **file_bot,filestruct *top,size_t top_x,\n                   filestruct *bot,size_t bot_x)\n\n{\n  int iVar1;\n  filestruct *pfVar2;\n  bool bVar3;\n  bool bVar4;\n  openfilestruct *poVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  char *pcVar9;\n  filestruct *pfVar10;\n  filestruct *pfVar11;\n  bool bVar12;\n  \n  bVar3 = top == bot && top_x == bot_x;\n  if (top != bot || top_x != bot_x) {\n    filepart = partition_filestruct(top,top_x,bot,bot_x);\n    pfVar11 = openfile->fileage;\n    iVar1 = openfile->edittop->lineno;\n    bVar4 = false;\n    if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }\n    pfVar10 = openfile->mark;\n    bVar12 = false;\n    if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }\n    sVar6 = get_totsize(top,bot);\n    poVar5 = openfile;\n    openfile->totsize = openfile->totsize - sVar6;\n    if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }\n    poVar5 = openfile;\n    pfVar11 = (filestruct *)nmalloc(0x14);\n    pfVar11->lineno = 1;\n    pfVar11->data = (char *)0x0;\n    pfVar11->prev = (filestruct *)0x0;\n    pfVar11->next = (filestruct *)0x0;\n    pfVar11->multidata = (short *)0x0;\n    poVar5->fileage = pfVar11;\n    pfVar11 = openfile->fileage;\n    pcVar9 = mallocstrcpy((char *)0x0,"");\n    pfVar11->data = pcVar9;\n    poVar5 = openfile;\n    pfVar11 = openfile->fileage;\n    openfile->current_x = top_x;\n    poVar5->filebot = pfVar11;\n    poVar5->current = pfVar11;\n    if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }\n    unpartition_filestruct(&filepart);\n    if (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }\n    renumber(pfVar11);\n    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n      new_magicline();\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void extract_buffer(filestruct **file_top,filestruct **file_bot,filestruct *top,size_t top_x,\n                   filestruct *bot,size_t bot_x)\n\n{\n  int iVar1;\n  filestruct *pfVar2;\n  bool bVar3;\n  bool bVar4;\n  openfilestruct *poVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  char *pcVar9;\n  filestruct *pfVar10;\n  filestruct *pfVar11;\n  bool bVar12;\n  \n  bVar3 = top == bot && top_x == bot_x;\n  if (top != bot || top_x != bot_x) {\n    filepart = partition_filestruct(top,top_x,bot,bot_x);\n    pfVar11 = openfile->fileage;\n    iVar1 = openfile->edittop->lineno;\n    bVar4 = false;\n    if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }\n    pfVar10 = openfile->mark;\n    bVar12 = false;\n    if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }\n    sVar6 = get_totsize(top,bot);\n    poVar5 = openfile;\n    openfile->totsize = openfile->totsize - sVar6;\n    if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }\n    poVar5 = openfile;\n    pfVar11 = (filestruct *)nmalloc(0x14);\n    pfVar11->lineno = 1;\n    pfVar11->data = (char *)0x0;\n    pfVar11->prev = (filestruct *)0x0;\n    pfVar11->next = (filestruct *)0x0;\n    pfVar11->multidata = (short *)0x0;\n    poVar5->fileage = pfVar11;\n    pfVar11 = openfile->fileage;\n    pcVar9 = mallocstrcpy((char *)0x0,"");\n    pfVar11->data = pcVar9;\n    poVar5 = openfile;\n    pfVar11 = openfile->fileage;\n    openfile->current_x = top_x;\n    poVar5->filebot = pfVar11;\n    poVar5->current = pfVar11;\n    if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }\n    unpartition_filestruct(&filepart);\n    if (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }\n    renumber(pfVar11);\n    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n      new_magicline();\n    }\n  }\n  return;\n}" primitive_type (function_declarator "extract_buffer(filestruct **file_top,filestruct **file_bot,filestruct *top,size_t top_x,\n                   filestruct *bot,size_t bot_x)" identifier (parameter_list "(filestruct **file_top,filestruct **file_bot,filestruct *top,size_t top_x,\n                   filestruct *bot,size_t bot_x)" ( (parameter_declaration "filestruct **file_top" type_identifier (pointer_declarator "**file_top" * (pointer_declarator "*file_top" * identifier))) , (parameter_declaration "filestruct **file_bot" type_identifier (pointer_declarator "**file_bot" * (pointer_declarator "*file_bot" * identifier))) , (parameter_declaration "filestruct *top" type_identifier (pointer_declarator "*top" * identifier)) , (parameter_declaration "size_t top_x" primitive_type identifier) , (parameter_declaration "filestruct *bot" type_identifier (pointer_declarator "*bot" * identifier)) , (parameter_declaration "size_t bot_x" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  filestruct *pfVar2;\n  bool bVar3;\n  bool bVar4;\n  openfilestruct *poVar5;\n  size_t sVar6;\n  size_t sVar7;\n  size_t sVar8;\n  char *pcVar9;\n  filestruct *pfVar10;\n  filestruct *pfVar11;\n  bool bVar12;\n  \n  bVar3 = top == bot && top_x == bot_x;\n  if (top != bot || top_x != bot_x) {\n    filepart = partition_filestruct(top,top_x,bot,bot_x);\n    pfVar11 = openfile->fileage;\n    iVar1 = openfile->edittop->lineno;\n    bVar4 = false;\n    if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }\n    pfVar10 = openfile->mark;\n    bVar12 = false;\n    if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }\n    sVar6 = get_totsize(top,bot);\n    poVar5 = openfile;\n    openfile->totsize = openfile->totsize - sVar6;\n    if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }\n    poVar5 = openfile;\n    pfVar11 = (filestruct *)nmalloc(0x14);\n    pfVar11->lineno = 1;\n    pfVar11->data = (char *)0x0;\n    pfVar11->prev = (filestruct *)0x0;\n    pfVar11->next = (filestruct *)0x0;\n    pfVar11->multidata = (short *)0x0;\n    poVar5->fileage = pfVar11;\n    pfVar11 = openfile->fileage;\n    pcVar9 = mallocstrcpy((char *)0x0,"");\n    pfVar11->data = pcVar9;\n    poVar5 = openfile;\n    pfVar11 = openfile->fileage;\n    openfile->current_x = top_x;\n    poVar5->filebot = pfVar11;\n    poVar5->current = pfVar11;\n    if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }\n    unpartition_filestruct(&filepart);\n    if (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }\n    renumber(pfVar11);\n    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n      new_magicline();\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "filestruct *pfVar2;" type_identifier (pointer_declarator "*pfVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "openfilestruct *poVar5;" type_identifier (pointer_declarator "*poVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "filestruct *pfVar10;" type_identifier (pointer_declarator "*pfVar10" * identifier) ;) (declaration "filestruct *pfVar11;" type_identifier (pointer_declarator "*pfVar11" * identifier) ;) (declaration "bool bVar12;" primitive_type identifier ;) (expression_statement "bVar3 = top == bot && top_x == bot_x;" (assignment_expression "bVar3 = top == bot && top_x == bot_x" identifier = (binary_expression "top == bot && top_x == bot_x" (binary_expression "top == bot" identifier == identifier) && (binary_expression "top_x == bot_x" identifier == identifier))) ;) (if_statement "if (top != bot || top_x != bot_x) {\n    filepart = partition_filestruct(top,top_x,bot,bot_x);\n    pfVar11 = openfile->fileage;\n    iVar1 = openfile->edittop->lineno;\n    bVar4 = false;\n    if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }\n    pfVar10 = openfile->mark;\n    bVar12 = false;\n    if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }\n    sVar6 = get_totsize(top,bot);\n    poVar5 = openfile;\n    openfile->totsize = openfile->totsize - sVar6;\n    if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }\n    poVar5 = openfile;\n    pfVar11 = (filestruct *)nmalloc(0x14);\n    pfVar11->lineno = 1;\n    pfVar11->data = (char *)0x0;\n    pfVar11->prev = (filestruct *)0x0;\n    pfVar11->next = (filestruct *)0x0;\n    pfVar11->multidata = (short *)0x0;\n    poVar5->fileage = pfVar11;\n    pfVar11 = openfile->fileage;\n    pcVar9 = mallocstrcpy((char *)0x0,"");\n    pfVar11->data = pcVar9;\n    poVar5 = openfile;\n    pfVar11 = openfile->fileage;\n    openfile->current_x = top_x;\n    poVar5->filebot = pfVar11;\n    poVar5->current = pfVar11;\n    if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }\n    unpartition_filestruct(&filepart);\n    if (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }\n    renumber(pfVar11);\n    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n      new_magicline();\n    }\n  }" if (parenthesized_expression "(top != bot || top_x != bot_x)" ( (binary_expression "top != bot || top_x != bot_x" (binary_expression "top != bot" identifier != identifier) || (binary_expression "top_x != bot_x" identifier != identifier)) )) (compound_statement "{\n    filepart = partition_filestruct(top,top_x,bot,bot_x);\n    pfVar11 = openfile->fileage;\n    iVar1 = openfile->edittop->lineno;\n    bVar4 = false;\n    if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }\n    pfVar10 = openfile->mark;\n    bVar12 = false;\n    if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }\n    sVar6 = get_totsize(top,bot);\n    poVar5 = openfile;\n    openfile->totsize = openfile->totsize - sVar6;\n    if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }\n    poVar5 = openfile;\n    pfVar11 = (filestruct *)nmalloc(0x14);\n    pfVar11->lineno = 1;\n    pfVar11->data = (char *)0x0;\n    pfVar11->prev = (filestruct *)0x0;\n    pfVar11->next = (filestruct *)0x0;\n    pfVar11->multidata = (short *)0x0;\n    poVar5->fileage = pfVar11;\n    pfVar11 = openfile->fileage;\n    pcVar9 = mallocstrcpy((char *)0x0,"");\n    pfVar11->data = pcVar9;\n    poVar5 = openfile;\n    pfVar11 = openfile->fileage;\n    openfile->current_x = top_x;\n    poVar5->filebot = pfVar11;\n    poVar5->current = pfVar11;\n    if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }\n    unpartition_filestruct(&filepart);\n    if (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }\n    renumber(pfVar11);\n    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {\n      new_magicline();\n    }\n  }" { (expression_statement "filepart = partition_filestruct(top,top_x,bot,bot_x);" (assignment_expression "filepart = partition_filestruct(top,top_x,bot,bot_x)" identifier = (call_expression "partition_filestruct(top,top_x,bot,bot_x)" identifier (argument_list "(top,top_x,bot,bot_x)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "pfVar11 = openfile->fileage;" (assignment_expression "pfVar11 = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (expression_statement "iVar1 = openfile->edittop->lineno;" (assignment_expression "iVar1 = openfile->edittop->lineno" identifier = (field_expression "openfile->edittop->lineno" (field_expression "openfile->edittop" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if (pfVar11->lineno <= iVar1) {\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }" if (parenthesized_expression "(pfVar11->lineno <= iVar1)" ( (binary_expression "pfVar11->lineno <= iVar1" (field_expression "pfVar11->lineno" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n      bVar4 = iVar1 <= openfile->filebot->lineno;\n    }" { (expression_statement "bVar4 = iVar1 <= openfile->filebot->lineno;" (assignment_expression "bVar4 = iVar1 <= openfile->filebot->lineno" identifier = (binary_expression "iVar1 <= openfile->filebot->lineno" identifier <= (field_expression "openfile->filebot->lineno" (field_expression "openfile->filebot" identifier -> field_identifier) -> field_identifier))) ;) })) (expression_statement "pfVar10 = openfile->mark;" (assignment_expression "pfVar10 = openfile->mark" identifier = (field_expression "openfile->mark" identifier -> field_identifier)) ;) (expression_statement "bVar12 = false;" (assignment_expression "bVar12 = false" identifier = false) ;) (if_statement "if (pfVar10 != (filestruct *)0x0) {\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }" if (parenthesized_expression "(pfVar10 != (filestruct *)0x0)" ( (binary_expression "pfVar10 != (filestruct *)0x0" identifier != (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }\n      bVar12 = pfVar11 == pfVar10;\n    }" { (if_statement "if ((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)) {\n        bVar3 = openfile->mark_x <= bot_x;\n      }" if (parenthesized_expression "((((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot))" ( (binary_expression "(((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))) &&\n         (bVar3 = true, pfVar10 == openfile->filebot)" (parenthesized_expression "(((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x))))" ( (binary_expression "((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))\n          && ((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))" (parenthesized_expression "((pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno))" ( (binary_expression "(pfVar11->lineno <= pfVar10->lineno) && (pfVar10->lineno <= openfile->filebot->lineno)" (parenthesized_expression "(pfVar11->lineno <= pfVar10->lineno)" ( (binary_expression "pfVar11->lineno <= pfVar10->lineno" (field_expression "pfVar11->lineno" identifier -> field_identifier) <= (field_expression "pfVar10->lineno" identifier -> field_identifier)) )) && (parenthesized_expression "(pfVar10->lineno <= openfile->filebot->lineno)" ( (binary_expression "pfVar10->lineno <= openfile->filebot->lineno" (field_expression "pfVar10->lineno" identifier -> field_identifier) <= (field_expression "openfile->filebot->lineno" (field_expression "openfile->filebot" identifier -> field_identifier) -> field_identifier)) ))) )) && (parenthesized_expression "((pfVar11 != pfVar10 || (top_x <= openfile->mark_x)))" ( (parenthesized_expression "(pfVar11 != pfVar10 || (top_x <= openfile->mark_x))" ( (binary_expression "pfVar11 != pfVar10 || (top_x <= openfile->mark_x)" (binary_expression "pfVar11 != pfVar10" identifier != identifier) || (parenthesized_expression "(top_x <= openfile->mark_x)" ( (binary_expression "top_x <= openfile->mark_x" identifier <= (field_expression "openfile->mark_x" identifier -> field_identifier)) ))) )) ))) )) && (parenthesized_expression "(bVar3 = true, pfVar10 == openfile->filebot)" ( (comma_expression "bVar3 = true, pfVar10 == openfile->filebot" (assignment_expression "bVar3 = true" identifier = true) , (binary_expression "pfVar10 == openfile->filebot" identifier == (field_expression "openfile->filebot" identifier -> field_identifier))) ))) )) (compound_statement "{\n        bVar3 = openfile->mark_x <= bot_x;\n      }" { (expression_statement "bVar3 = openfile->mark_x <= bot_x;" (assignment_expression "bVar3 = openfile->mark_x <= bot_x" identifier = (binary_expression "openfile->mark_x <= bot_x" (field_expression "openfile->mark_x" identifier -> field_identifier) <= identifier)) ;) })) (expression_statement "bVar12 = pfVar11 == pfVar10;" (assignment_expression "bVar12 = pfVar11 == pfVar10" identifier = (binary_expression "pfVar11 == pfVar10" identifier == identifier)) ;) })) (expression_statement "sVar6 = get_totsize(top,bot);" (assignment_expression "sVar6 = get_totsize(top,bot)" identifier = (call_expression "get_totsize(top,bot)" identifier (argument_list "(top,bot)" ( identifier , identifier )))) ;) (expression_statement "poVar5 = openfile;" (assignment_expression "poVar5 = openfile" identifier = identifier) ;) (expression_statement "openfile->totsize = openfile->totsize - sVar6;" (assignment_expression "openfile->totsize = openfile->totsize - sVar6" (field_expression "openfile->totsize" identifier -> field_identifier) = (binary_expression "openfile->totsize - sVar6" (field_expression "openfile->totsize" identifier -> field_identifier) - identifier)) ;) (if_statement "if (*file_top == (filestruct *)0x0) {\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }\n    else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }" if (parenthesized_expression "(*file_top == (filestruct *)0x0)" ( (binary_expression "*file_top == (filestruct *)0x0" (pointer_expression "*file_top" * identifier) == (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *file_top = poVar5->fileage;\n      *file_bot = poVar5->filebot;\n      renumber(*file_top);\n    }" { (expression_statement "*file_top = poVar5->fileage;" (assignment_expression "*file_top = poVar5->fileage" (pointer_expression "*file_top" * identifier) = (field_expression "poVar5->fileage" identifier -> field_identifier)) ;) (expression_statement "*file_bot = poVar5->filebot;" (assignment_expression "*file_bot = poVar5->filebot" (pointer_expression "*file_bot" * identifier) = (field_expression "poVar5->filebot" identifier -> field_identifier)) ;) (expression_statement "renumber(*file_top);" (call_expression "renumber(*file_top)" identifier (argument_list "(*file_top)" ( (pointer_expression "*file_top" * identifier) ))) ;) }) (else_clause "else {\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }" else (compound_statement "{\n      pfVar11 = *file_bot;\n      pcVar9 = pfVar11->data;\n      sVar7 = strlen(pcVar9);\n      sVar8 = strlen(poVar5->fileage->data);\n      pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);\n      pfVar11->data = pcVar9;\n      strcat((*file_bot)->data,openfile->fileage->data);\n      poVar5 = openfile;\n      pfVar10 = openfile->fileage;\n      (*file_bot)->next = pfVar10->next;\n      pfVar2 = (*file_bot)->next;\n      if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }\n      delete_node(pfVar10);\n      renumber(pfVar11);\n    }" { (expression_statement "pfVar11 = *file_bot;" (assignment_expression "pfVar11 = *file_bot" identifier = (pointer_expression "*file_bot" * identifier)) ;) (expression_statement "pcVar9 = pfVar11->data;" (assignment_expression "pcVar9 = pfVar11->data" identifier = (field_expression "pfVar11->data" identifier -> field_identifier)) ;) (expression_statement "sVar7 = strlen(pcVar9);" (assignment_expression "sVar7 = strlen(pcVar9)" identifier = (call_expression "strlen(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier )))) ;) (expression_statement "sVar8 = strlen(poVar5->fileage->data);" (assignment_expression "sVar8 = strlen(poVar5->fileage->data)" identifier = (call_expression "strlen(poVar5->fileage->data)" identifier (argument_list "(poVar5->fileage->data)" ( (field_expression "poVar5->fileage->data" (field_expression "poVar5->fileage" identifier -> field_identifier) -> field_identifier) )))) ;) (expression_statement "pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8);" (assignment_expression "pcVar9 = (char *)nrealloc(pcVar9,sVar7 + 1 + sVar8)" identifier = (cast_expression "(char *)nrealloc(pcVar9,sVar7 + 1 + sVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nrealloc(pcVar9,sVar7 + 1 + sVar8)" identifier (argument_list "(pcVar9,sVar7 + 1 + sVar8)" ( identifier , (binary_expression "sVar7 + 1 + sVar8" (binary_expression "sVar7 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "pfVar11->data = pcVar9;" (assignment_expression "pfVar11->data = pcVar9" (field_expression "pfVar11->data" identifier -> field_identifier) = identifier) ;) (expression_statement "strcat((*file_bot)->data,openfile->fileage->data);" (call_expression "strcat((*file_bot)->data,openfile->fileage->data)" identifier (argument_list "((*file_bot)->data,openfile->fileage->data)" ( (field_expression "(*file_bot)->data" (parenthesized_expression "(*file_bot)" ( (pointer_expression "*file_bot" * identifier) )) -> field_identifier) , (field_expression "openfile->fileage->data" (field_expression "openfile->fileage" identifier -> field_identifier) -> field_identifier) ))) ;) (expression_statement "poVar5 = openfile;" (assignment_expression "poVar5 = openfile" identifier = identifier) ;) (expression_statement "pfVar10 = openfile->fileage;" (assignment_expression "pfVar10 = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (expression_statement "(*file_bot)->next = pfVar10->next;" (assignment_expression "(*file_bot)->next = pfVar10->next" (field_expression "(*file_bot)->next" (parenthesized_expression "(*file_bot)" ( (pointer_expression "*file_bot" * identifier) )) -> field_identifier) = (field_expression "pfVar10->next" identifier -> field_identifier)) ;) (expression_statement "pfVar2 = (*file_bot)->next;" (assignment_expression "pfVar2 = (*file_bot)->next" identifier = (field_expression "(*file_bot)->next" (parenthesized_expression "(*file_bot)" ( (pointer_expression "*file_bot" * identifier) )) -> field_identifier)) ;) (if_statement "if (pfVar2 != (filestruct *)0x0) {\n        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\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        pfVar2->prev = *file_bot;\n        *file_bot = poVar5->filebot;\n        pfVar10 = poVar5->fileage;\n      }" { (expression_statement "pfVar2->prev = *file_bot;" (assignment_expression "pfVar2->prev = *file_bot" (field_expression "pfVar2->prev" identifier -> field_identifier) = (pointer_expression "*file_bot" * identifier)) ;) (expression_statement "*file_bot = poVar5->filebot;" (assignment_expression "*file_bot = poVar5->filebot" (pointer_expression "*file_bot" * identifier) = (field_expression "poVar5->filebot" identifier -> field_identifier)) ;) (expression_statement "pfVar10 = poVar5->fileage;" (assignment_expression "pfVar10 = poVar5->fileage" identifier = (field_expression "poVar5->fileage" identifier -> field_identifier)) ;) })) (expression_statement "delete_node(pfVar10);" (call_expression "delete_node(pfVar10)" identifier (argument_list "(pfVar10)" ( identifier ))) ;) (expression_statement "renumber(pfVar11);" (call_expression "renumber(pfVar11)" identifier (argument_list "(pfVar11)" ( identifier ))) ;) }))) (expression_statement "poVar5 = openfile;" (assignment_expression "poVar5 = openfile" identifier = identifier) ;) (expression_statement "pfVar11 = (filestruct *)nmalloc(0x14);" (assignment_expression "pfVar11 = (filestruct *)nmalloc(0x14)" identifier = (cast_expression "(filestruct *)nmalloc(0x14)" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "pfVar11->lineno = 1;" (assignment_expression "pfVar11->lineno = 1" (field_expression "pfVar11->lineno" identifier -> field_identifier) = number_literal) ;) (expression_statement "pfVar11->data = (char *)0x0;" (assignment_expression "pfVar11->data = (char *)0x0" (field_expression "pfVar11->data" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pfVar11->prev = (filestruct *)0x0;" (assignment_expression "pfVar11->prev = (filestruct *)0x0" (field_expression "pfVar11->prev" identifier -> field_identifier) = (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pfVar11->next = (filestruct *)0x0;" (assignment_expression "pfVar11->next = (filestruct *)0x0" (field_expression "pfVar11->next" identifier -> field_identifier) = (cast_expression "(filestruct *)0x0" ( (type_descriptor "filestruct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pfVar11->multidata = (short *)0x0;" (assignment_expression "pfVar11->multidata = (short *)0x0" (field_expression "pfVar11->multidata" identifier -> field_identifier) = (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "poVar5->fileage = pfVar11;" (assignment_expression "poVar5->fileage = pfVar11" (field_expression "poVar5->fileage" identifier -> field_identifier) = identifier) ;) (expression_statement "pfVar11 = openfile->fileage;" (assignment_expression "pfVar11 = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (expression_statement "pcVar9 = mallocstrcpy((char *)0x0,"");" (assignment_expression "pcVar9 = mallocstrcpy((char *)0x0,"")" identifier = (call_expression "mallocstrcpy((char *)0x0,"")" identifier (argument_list "((char *)0x0,"")" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (string_literal """" " ") )))) ;) (expression_statement "pfVar11->data = pcVar9;" (assignment_expression "pfVar11->data = pcVar9" (field_expression "pfVar11->data" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar5 = openfile;" (assignment_expression "poVar5 = openfile" identifier = identifier) ;) (expression_statement "pfVar11 = openfile->fileage;" (assignment_expression "pfVar11 = openfile->fileage" identifier = (field_expression "openfile->fileage" identifier -> field_identifier)) ;) (expression_statement "openfile->current_x = top_x;" (assignment_expression "openfile->current_x = top_x" (field_expression "openfile->current_x" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar5->filebot = pfVar11;" (assignment_expression "poVar5->filebot = pfVar11" (field_expression "poVar5->filebot" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar5->current = pfVar11;" (assignment_expression "poVar5->current = pfVar11" (field_expression "poVar5->current" identifier -> field_identifier) = identifier) ;) (if_statement "if (bVar3) {\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }\n    else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n      poVar5->mark = pfVar11;\n      poVar5->mark_x = top_x;\n    }" { (expression_statement "poVar5->mark = pfVar11;" (assignment_expression "poVar5->mark = pfVar11" (field_expression "poVar5->mark" identifier -> field_identifier) = identifier) ;) (expression_statement "poVar5->mark_x = top_x;" (assignment_expression "poVar5->mark_x = top_x" (field_expression "poVar5->mark_x" identifier -> field_identifier) = identifier) ;) }) (else_clause "else if (bVar12) {\n      poVar5->mark = pfVar11;\n    }" else (if_statement "if (bVar12) {\n      poVar5->mark = pfVar11;\n    }" if (parenthesized_expression "(bVar12)" ( identifier )) (compound_statement "{\n      poVar5->mark = pfVar11;\n    }" { (expression_statement "poVar5->mark = pfVar11;" (assignment_expression "poVar5->mark = pfVar11" (field_expression "poVar5->mark" 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 (bVar4) {\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n      adjust_viewport(STATIONARY);\n      refresh_needed = true;\n    }" { (expression_statement "adjust_viewport(STATIONARY);" (call_expression "adjust_viewport(STATIONARY)" identifier (argument_list "(STATIONARY)" ( identifier ))) ;) (expression_statement "refresh_needed = true;" (assignment_expression "refresh_needed = true" identifier = true) ;) })) (expression_statement "renumber(pfVar11);" (call_expression "renumber(pfVar11)" identifier (argument_list "(pfVar11)" ( identifier ))) ;) (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 "()" ( ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)\n\n{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)\n\n{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" identifier (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "bool bVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "bool bVar10;" primitive_type identifier ;) (expression_statement "bVar1 = param_3 == param_5 && param_4 == param_6;" (assignment_expression "bVar1 = param_3 == param_5 && param_4 == param_6" identifier = (binary_expression "param_3 == param_5 && param_4 == param_6" (binary_expression "param_3 == param_5" identifier == identifier) && (binary_expression "param_4 == param_6" identifier == identifier))) ;) (if_statement "if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" if (parenthesized_expression "(param_3 != param_5 || param_4 != param_6)" ( (binary_expression "param_3 != param_5 || param_4 != param_6" (binary_expression "param_3 != param_5" identifier != identifier) || (binary_expression "param_4 != param_6" identifier != identifier)) )) (compound_statement "{\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" { (expression_statement "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);" (assignment_expression "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6)" identifier = (call_expression "FUN_000257a0(param_3,param_4,param_5,param_6)" identifier (argument_list "(param_3,param_4,param_5,param_6)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 0xc)" * (cast_expression "(int *)(DAT_0006b640 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0xc)" ( (binary_expression "DAT_0006b640 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (if_statement "if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" if (parenthesized_expression "(*(int *)(iVar8 + 4) <= iVar4)" ( (binary_expression "*(int *)(iVar8 + 4) <= iVar4" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" { (expression_statement "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);" (assignment_expression "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" identifier = (binary_expression "iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" identifier <= (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))) + number_literal) )))))) ;) })) (expression_statement "iVar4 = *(int *)(DAT_0006b640 + 0x30);" (assignment_expression "iVar4 = *(int *)(DAT_0006b640 + 0x30)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" * (cast_expression "(int *)(DAT_0006b640 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x30)" ( (binary_expression "DAT_0006b640 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" identifier = false) ;) (if_statement "if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" { (if_statement "if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" if (parenthesized_expression "((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)))" ( (binary_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" (parenthesized_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))))" ( (binary_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" (parenthesized_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)))" ( (binary_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" (parenthesized_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4))" ( (binary_expression "*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)" (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) <= (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) ))))) )) && (parenthesized_expression "(*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" ( (binary_expression "*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (pointer_expression "*(int *)(iVar4 + 4)" * (cast_expression "(int *)(iVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 4)" ( (binary_expression "iVar4 + 4" identifier + number_literal) )))) <= (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" ( (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))) + number_literal) ))))) ))) )) && (parenthesized_expression "((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" ( (parenthesized_expression "(iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))" ( (binary_expression "iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))" (binary_expression "iVar8 != iVar4" identifier != identifier) || (parenthesized_expression "(param_4 <= *(uint *)(DAT_0006b640 + 0x34))" ( (binary_expression "param_4 <= *(uint *)(DAT_0006b640 + 0x34)" identifier <= (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" * (cast_expression "(uint *)(DAT_0006b640 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x34)" ( (binary_expression "DAT_0006b640 + 0x34" identifier + number_literal) ))))) ))) )) ))) )) && (parenthesized_expression "(bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" ( (comma_expression "bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)" (assignment_expression "bVar1 = true" identifier = true) , (binary_expression "iVar4 == *(int *)(DAT_0006b640 + 8)" identifier == (pointer_expression "*(int *)(DAT_0006b640 + 8)" * (cast_expression "(int *)(DAT_0006b640 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" { (expression_statement "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;" (assignment_expression "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6" identifier = (binary_expression "*(uint *)(DAT_0006b640 + 0x34) <= param_6" (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" * (cast_expression "(uint *)(DAT_0006b640 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x34)" ( (binary_expression "DAT_0006b640 + 0x34" identifier + number_literal) )))) <= identifier)) ;) })) (expression_statement "bVar10 = iVar8 == iVar4;" (assignment_expression "bVar10 = iVar8 == iVar4" identifier = (binary_expression "iVar8 == iVar4" identifier == identifier)) ;) })) (expression_statement "iVar4 = FUN_00035ca0(param_3,param_5);" (assignment_expression "iVar4 = FUN_00035ca0(param_3,param_5)" identifier = (call_expression "FUN_00035ca0(param_3,param_5)" identifier (argument_list "(param_3,param_5)" ( identifier , identifier )))) ;) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;" (assignment_expression "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" * (cast_expression "(int *)(DAT_0006b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x14)" ( (binary_expression "DAT_0006b640 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" * (cast_expression "(int *)(DAT_0006b640 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x14)" ( (binary_expression "DAT_0006b640 + 0x14" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }" { (expression_statement "*param_1 = *(int *)(iVar8 + 4);" (assignment_expression "*param_1 = *(int *)(iVar8 + 4)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(int *)(iVar8 + 4)" * (cast_expression "(int *)(iVar8 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = *(int *)(iVar8 + 8);" (assignment_expression "*param_2 = *(int *)(iVar8 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(iVar8 + 8)" * (cast_expression "(int *)(iVar8 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "FUN_00025740(*param_1);" (call_expression "FUN_00025740(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) }) (else_clause "else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" else (compound_statement "{\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" { (expression_statement "puVar9 = (undefined4 *)*param_2;" (assignment_expression "puVar9 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "__s = (char *)*puVar9;" (assignment_expression "__s = (char *)*puVar9" identifier = (cast_expression "(char *)*puVar9" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar9" * identifier))) ;) (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));" (assignment_expression "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4))" identifier = (call_expression "strlen((char *)**(undefined4 **)(iVar8 + 4))" identifier (argument_list "((char *)**(undefined4 **)(iVar8 + 4))" ( (cast_expression "(char *)**(undefined4 **)(iVar8 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(iVar8 + 4)" * (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))))) )))) ;) (expression_statement "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);" (assignment_expression "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6)" identifier = (call_expression "FUN_00035500(__s,sVar5 + 1 + sVar6)" identifier (argument_list "(__s,sVar5 + 1 + sVar6)" ( identifier , (binary_expression "sVar5 + 1 + sVar6" (binary_expression "sVar5 + 1" identifier + number_literal) + identifier) )))) ;) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));" (call_expression "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" identifier (argument_list "(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" ( (pointer_expression "*(char **)*param_2" * (cast_expression "(char **)*param_2" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_2" * identifier))) , (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0006b640 + 4)" * (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) )))))) ))) ;) (expression_statement "iVar3 = DAT_0006b640;" (assignment_expression "iVar3 = DAT_0006b640" identifier = identifier) ;) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(int *)(DAT_0006b640 + 4)" * (cast_expression "(int *)(DAT_0006b640 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);" (assignment_expression "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8)" (pointer_expression "*(undefined4 *)(*param_2 + 8)" * (cast_expression "(undefined4 *)(*param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(*param_2 + 8);" (assignment_expression "iVar4 = *(int *)(*param_2 + 8)" identifier = (pointer_expression "*(int *)(*param_2 + 8)" * (cast_expression "(int *)(*param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" { (expression_statement "*(int *)(iVar4 + 0xc) = *param_2;" (assignment_expression "*(int *)(iVar4 + 0xc) = *param_2" (pointer_expression "*(int *)(iVar4 + 0xc)" * (cast_expression "(int *)(iVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_2 = *(int *)(iVar3 + 8);" (assignment_expression "*param_2 = *(int *)(iVar3 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(iVar3 + 4);" (assignment_expression "iVar8 = *(int *)(iVar3 + 4)" identifier = (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000255f0(iVar8);" (call_expression "FUN_000255f0(iVar8)" identifier (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "FUN_00025740(puVar9);" (call_expression "FUN_00025740(puVar9)" identifier (argument_list "(puVar9)" ( identifier ))) ;) }))) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "puVar9 = (undefined4 *)FUN_00035440(0x14);" (assignment_expression "puVar9 = (undefined4 *)FUN_00035440(0x14)" identifier = (cast_expression "(undefined4 *)FUN_00035440(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00035440(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "puVar9[1] = 1;" (assignment_expression "puVar9[1] = 1" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9[3] = 0;" (assignment_expression "puVar9[3] = 0" (subscript_expression "puVar9[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar9[2] = 0;" (assignment_expression "puVar9[2] = 0" (subscript_expression "puVar9[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar9[4] = 0;" (assignment_expression "puVar9[4] = 0" (subscript_expression "puVar9[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 **)(iVar8 + 4) = puVar9;" (assignment_expression "*(undefined4 **)(iVar8 + 4) = puVar9" (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar9 = *(undefined4 **)(DAT_0006b640 + 4);" (assignment_expression "puVar9 = *(undefined4 **)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = FUN_00035640(0,&DAT_000503a2);" (assignment_expression "uVar7 = FUN_00035640(0,&DAT_000503a2)" identifier = (call_expression "FUN_00035640(0,&DAT_000503a2)" identifier (argument_list "(0,&DAT_000503a2)" ( number_literal , (pointer_expression "&DAT_000503a2" & identifier) )))) ;) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" * identifier) = identifier) ;) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" identifier = identifier) ;) (expression_statement "uVar7 = *(undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "uVar7 = *(undefined4 *)(DAT_0006b640 + 4)" identifier = (pointer_expression "*(undefined4 *)(DAT_0006b640 + 4)" * (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 4)" ( (binary_expression "DAT_0006b640 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(DAT_0006b640 + 0x1c) = param_4;" (assignment_expression "*(uint *)(DAT_0006b640 + 0x1c) = param_4" (pointer_expression "*(uint *)(DAT_0006b640 + 0x1c)" * (cast_expression "(uint *)(DAT_0006b640 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0006b640 + 0x1c)" ( (binary_expression "DAT_0006b640 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 8) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 8)" * (cast_expression "(undefined4 *)(iVar8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 8)" ( (binary_expression "iVar8 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" * (cast_expression "(undefined4 *)(iVar8 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x10)" ( (binary_expression "iVar8 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }" { (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar8 + 0x34) = param_4;" (assignment_expression "*(uint *)(iVar8 + 0x34) = param_4" (pointer_expression "*(uint *)(iVar8 + 0x34)" * (cast_expression "(uint *)(iVar8 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x34)" ( (binary_expression "iVar8 + 0x34" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" else (if_statement "if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" if (parenthesized_expression "(bVar10)" ( identifier )) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" { (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" * (cast_expression "(undefined4 *)(iVar8 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x30)" ( (binary_expression "iVar8 + 0x30" identifier + number_literal) )))) = identifier) ;) })))) (expression_statement "FUN_000258a0(&DAT_0006b644);" (call_expression "FUN_000258a0(&DAT_0006b644)" identifier (argument_list "(&DAT_0006b644)" ( (pointer_expression "&DAT_0006b644" & identifier) ))) ;) (if_statement "if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" { (expression_statement "FUN_0003aca0(2);" (call_expression "FUN_0003aca0(2)" identifier (argument_list "(2)" ( number_literal ))) ;) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" identifier = number_literal) ;) })) (expression_statement "FUN_00025740(uVar7);" (call_expression "FUN_00025740(uVar7)" identifier (argument_list "(uVar7)" ( identifier ))) ;) (if_statement "if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }" if (parenthesized_expression "(((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       )" ( (binary_expression "((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" (parenthesized_expression "((DAT_0006b664 & 0x40000000) == 0)" ( (binary_expression "(DAT_0006b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x40000000)" ( (binary_expression "DAT_0006b664 & 0x40000000" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" ( (binary_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8)" * (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(undefined4 **)(DAT_0006b640 + 8)" * (pointer_expression "*(undefined4 **)(DAT_0006b640 + 8)" * (cast_expression "(undefined4 **)(DAT_0006b640 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(DAT_0006b640 + 8)" ( (binary_expression "DAT_0006b640 + 8" identifier + number_literal) ))))))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      FUN_00035a30();\n    }" { (expression_statement "FUN_00035a30();" (call_expression "FUN_00035a30()" identifier (argument_list "()" ( ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT == IDENT) && (binary_expression IDENT == IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) || (binary_expression IDENT != IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , 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 = (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) ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_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) )))))) ;) })) (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 = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (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) ))))) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) || (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = BOOL) , (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == IDENT)) ;) })) (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)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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) )))))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT))) , (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) )))))) ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 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 = (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = 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 (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) )))) = 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 ( 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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( 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 ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 ( ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)\n\n{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00025a10(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" (identifier "FUN_00025a10") (parameter_list "(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) () ")"))) (compound_statement "{\n  char *__s;\n  bool bVar1;\n  bool bVar2;\n  int iVar3;\n  int iVar4;\n  size_t sVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined4 *puVar9;\n  bool bVar10;\n  \n  bVar1 = param_3 == param_5 && param_4 == param_6;\n  if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }\n  return;\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 *puVar9;" (type_identifier "undefined4") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "bool bVar10;" (primitive_type "bool") (identifier "bVar10") (; ";")) (expression_statement "bVar1 = param_3 == param_5 && param_4 == param_6;" (assignment_expression "bVar1 = param_3 == param_5 && param_4 == param_6" (identifier "bVar1") (= "=") (binary_expression "param_3 == param_5 && param_4 == param_6" (binary_expression "param_3 == param_5" (identifier "param_3") (== "==") (identifier "param_5")) (&& "&&") (binary_expression "param_4 == param_6" (identifier "param_4") (== "==") (identifier "param_6")))) (; ";")) (if_statement "if (param_3 != param_5 || param_4 != param_6) {\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" (if "if") (parenthesized_expression "(param_3 != param_5 || param_4 != param_6)" (( "(") (binary_expression "param_3 != param_5 || param_4 != param_6" (binary_expression "param_3 != param_5" (identifier "param_3") (!= "!=") (identifier "param_5")) (|| "||") (binary_expression "param_4 != param_6" (identifier "param_4") (!= "!=") (identifier "param_6"))) () ")")) (compound_statement "{\n    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);\n    iVar8 = *(int *)(DAT_0006b640 + 4);\n    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);\n    bVar2 = false;\n    if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }\n    iVar4 = *(int *)(DAT_0006b640 + 0x30);\n    bVar10 = false;\n    if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }\n    iVar4 = FUN_00035ca0(param_3,param_5);\n    iVar8 = DAT_0006b640;\n    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;\n    if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }\n    iVar8 = DAT_0006b640;\n    puVar9 = (undefined4 *)FUN_00035440(0x14);\n    puVar9[1] = 1;\n    *puVar9 = 0;\n    puVar9[3] = 0;\n    puVar9[2] = 0;\n    puVar9[4] = 0;\n    *(undefined4 **)(iVar8 + 4) = puVar9;\n    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);\n    uVar7 = FUN_00035640(0,&DAT_000503a2);\n    *puVar9 = uVar7;\n    iVar8 = DAT_0006b640;\n    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);\n    *(uint *)(DAT_0006b640 + 0x1c) = param_4;\n    *(undefined4 *)(iVar8 + 8) = uVar7;\n    *(undefined4 *)(iVar8 + 0x10) = uVar7;\n    if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }\n    FUN_000258a0(&DAT_0006b644);\n    if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }\n    FUN_00025740(uVar7);\n    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }\n  }" ({ "{") (expression_statement "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);" (assignment_expression "DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6)" (identifier "DAT_0006b644") (= "=") (call_expression "FUN_000257a0(param_3,param_4,param_5,param_6)" (identifier "FUN_000257a0") (argument_list "(param_3,param_4,param_5,param_6)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 4)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);" (assignment_expression "iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0006b640 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0006b640 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 0xc)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0xc)" (( "(") (binary_expression "DAT_0006b640 + 0xc" (identifier "DAT_0006b640") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (if_statement "if (*(int *)(iVar8 + 4) <= iVar4) {\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar8 + 4) <= iVar4)" (( "(") (binary_expression "*(int *)(iVar8 + 4) <= iVar4" (pointer_expression "*(int *)(iVar8 + 4)" (* "*") (cast_expression "(int *)(iVar8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (identifier "iVar4")) () ")")) (compound_statement "{\n      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);\n    }" ({ "{") (expression_statement "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);" (assignment_expression "bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (identifier "bVar2") (= "=") (binary_expression "iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (identifier "iVar4") (<= "<=") (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 8)" (( "(") (binary_expression "DAT_0006b640 + 8" (identifier "DAT_0006b640") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "4")) () ")")))))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(DAT_0006b640 + 0x30);" (assignment_expression "iVar4 = *(int *)(DAT_0006b640 + 0x30)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 0x30)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x30)" (( "(") (binary_expression "DAT_0006b640 + 0x30" (identifier "DAT_0006b640") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "bVar10 = false;" (assignment_expression "bVar10 = false" (identifier "bVar10") (= "=") (false "false")) (; ";")) (if_statement "if (iVar4 != 0) {\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }\n      bVar10 = iVar8 == iVar4;\n    }" ({ "{") (if_statement "if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" (if "if") (parenthesized_expression "((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)))" (( "(") (binary_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&\n         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" (parenthesized_expression "(((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))))" (( "(") (binary_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&\n          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" (parenthesized_expression "((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)))" (( "(") (binary_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&\n           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" (parenthesized_expression "(*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4))" (( "(") (binary_expression "*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)" (pointer_expression "*(int *)(iVar8 + 4)" (* "*") (cast_expression "(int *)(iVar8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))" (( "(") (binary_expression "*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (pointer_expression "*(int *)(iVar4 + 4)" (* "*") (cast_expression "(int *)(iVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 4)" (( "(") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (pointer_expression "*(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0006b640 + 8) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0006b640 + 8) + 4)" (( "(") (binary_expression "*(int *)(DAT_0006b640 + 8) + 4" (pointer_expression "*(int *)(DAT_0006b640 + 8)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 8)" (( "(") (binary_expression "DAT_0006b640 + 8" (identifier "DAT_0006b640") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))" (( "(") (parenthesized_expression "(iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34)))" (( "(") (binary_expression "iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))" (binary_expression "iVar8 != iVar4" (identifier "iVar8") (!= "!=") (identifier "iVar4")) (|| "||") (parenthesized_expression "(param_4 <= *(uint *)(DAT_0006b640 + 0x34))" (( "(") (binary_expression "param_4 <= *(uint *)(DAT_0006b640 + 0x34)" (identifier "param_4") (<= "<=") (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" (* "*") (cast_expression "(uint *)(DAT_0006b640 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x34)" (( "(") (binary_expression "DAT_0006b640 + 0x34" (identifier "DAT_0006b640") (+ "+") (number_literal "0x34")) () ")"))))) () ")"))) () ")")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))" (( "(") (comma_expression "bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8)" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (, ",") (binary_expression "iVar4 == *(int *)(DAT_0006b640 + 8)" (identifier "iVar4") (== "==") (pointer_expression "*(int *)(DAT_0006b640 + 8)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 8)" (( "(") (binary_expression "DAT_0006b640 + 8" (identifier "DAT_0006b640") (+ "+") (number_literal "8")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;\n      }" ({ "{") (expression_statement "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;" (assignment_expression "bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6" (identifier "bVar1") (= "=") (binary_expression "*(uint *)(DAT_0006b640 + 0x34) <= param_6" (pointer_expression "*(uint *)(DAT_0006b640 + 0x34)" (* "*") (cast_expression "(uint *)(DAT_0006b640 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x34)" (( "(") (binary_expression "DAT_0006b640 + 0x34" (identifier "DAT_0006b640") (+ "+") (number_literal "0x34")) () ")")))) (<= "<=") (identifier "param_6"))) (; ";")) (} "}"))) (expression_statement "bVar10 = iVar8 == iVar4;" (assignment_expression "bVar10 = iVar8 == iVar4" (identifier "bVar10") (= "=") (binary_expression "iVar8 == iVar4" (identifier "iVar8") (== "==") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_00035ca0(param_3,param_5);" (assignment_expression "iVar4 = FUN_00035ca0(param_3,param_5)" (identifier "iVar4") (= "=") (call_expression "FUN_00035ca0(param_3,param_5)" (identifier "FUN_00035ca0") (argument_list "(param_3,param_5)" (( "(") (identifier "param_3") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" (identifier "iVar8") (= "=") (identifier "DAT_0006b640")) (; ";")) (expression_statement "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;" (assignment_expression "*(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x14)" (( "(") (binary_expression "DAT_0006b640 + 0x14" (identifier "DAT_0006b640") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(DAT_0006b640 + 0x14) - iVar4" (pointer_expression "*(int *)(DAT_0006b640 + 0x14)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x14)" (( "(") (binary_expression "DAT_0006b640 + 0x14" (identifier "DAT_0006b640") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (identifier "iVar4"))) (; ";")) (if_statement "if (*param_1 == 0) {\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }\n    else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_1 = *(int *)(iVar8 + 4);\n      *param_2 = *(int *)(iVar8 + 8);\n      FUN_00025740(*param_1);\n    }" ({ "{") (expression_statement "*param_1 = *(int *)(iVar8 + 4);" (assignment_expression "*param_1 = *(int *)(iVar8 + 4)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(int *)(iVar8 + 4)" (* "*") (cast_expression "(int *)(iVar8 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_2 = *(int *)(iVar8 + 8);" (assignment_expression "*param_2 = *(int *)(iVar8 + 8)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(int *)(iVar8 + 8)" (* "*") (cast_expression "(int *)(iVar8 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "FUN_00025740(*param_1);" (call_expression "FUN_00025740(*param_1)" (identifier "FUN_00025740") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" (else "else") (compound_statement "{\n      puVar9 = (undefined4 *)*param_2;\n      __s = (char *)*puVar9;\n      sVar5 = strlen(__s);\n      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));\n      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);\n      *puVar9 = uVar7;\n      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));\n      iVar3 = DAT_0006b640;\n      iVar8 = *(int *)(DAT_0006b640 + 4);\n      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);\n      iVar4 = *(int *)(*param_2 + 8);\n      if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }\n      FUN_000255f0(iVar8);\n      FUN_00025740(puVar9);\n    }" ({ "{") (expression_statement "puVar9 = (undefined4 *)*param_2;" (assignment_expression "puVar9 = (undefined4 *)*param_2" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "__s = (char *)*puVar9;" (assignment_expression "__s = (char *)*puVar9" (identifier "__s") (= "=") (cast_expression "(char *)*puVar9" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar9" (* "*") (identifier "puVar9")))) (; ";")) (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" (identifier "sVar5") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));" (assignment_expression "sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4))" (identifier "sVar6") (= "=") (call_expression "strlen((char *)**(undefined4 **)(iVar8 + 4))" (identifier "strlen") (argument_list "((char *)**(undefined4 **)(iVar8 + 4))" (( "(") (cast_expression "(char *)**(undefined4 **)(iVar8 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(iVar8 + 4)" (* "*") (pointer_expression "*(undefined4 **)(iVar8 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar8 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))))) () ")")))) (; ";")) (expression_statement "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);" (assignment_expression "uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6)" (identifier "uVar7") (= "=") (call_expression "FUN_00035500(__s,sVar5 + 1 + sVar6)" (identifier "FUN_00035500") (argument_list "(__s,sVar5 + 1 + sVar6)" (( "(") (identifier "__s") (, ",") (binary_expression "sVar5 + 1 + sVar6" (binary_expression "sVar5 + 1" (identifier "sVar5") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar6")) () ")")))) (; ";")) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));" (call_expression "strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" (identifier "strcat") (argument_list "(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4))" (( "(") (pointer_expression "*(char **)*param_2" (* "*") (cast_expression "(char **)*param_2" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (, ",") (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(DAT_0006b640 + 4)" (* "*") (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")")))))) () ")"))) (; ";")) (expression_statement "iVar3 = DAT_0006b640;" (assignment_expression "iVar3 = DAT_0006b640" (identifier "iVar3") (= "=") (identifier "DAT_0006b640")) (; ";")) (expression_statement "iVar8 = *(int *)(DAT_0006b640 + 4);" (assignment_expression "iVar8 = *(int *)(DAT_0006b640 + 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(DAT_0006b640 + 4)" (* "*") (cast_expression "(int *)(DAT_0006b640 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);" (assignment_expression "*(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8)" (pointer_expression "*(undefined4 *)(*param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(*param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar8 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(*param_2 + 8);" (assignment_expression "iVar4 = *(int *)(*param_2 + 8)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(*param_2 + 8)" (* "*") (cast_expression "(int *)(*param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0) {\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int *)(iVar4 + 0xc) = *param_2;\n        *param_2 = *(int *)(iVar3 + 8);\n        iVar8 = *(int *)(iVar3 + 4);\n      }" ({ "{") (expression_statement "*(int *)(iVar4 + 0xc) = *param_2;" (assignment_expression "*(int *)(iVar4 + 0xc) = *param_2" (pointer_expression "*(int *)(iVar4 + 0xc)" (* "*") (cast_expression "(int *)(iVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + 0xc)" (( "(") (binary_expression "iVar4 + 0xc" (identifier "iVar4") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_2 = *(int *)(iVar3 + 8);" (assignment_expression "*param_2 = *(int *)(iVar3 + 8)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar3 + 4);" (assignment_expression "iVar8 = *(int *)(iVar3 + 4)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000255f0(iVar8);" (call_expression "FUN_000255f0(iVar8)" (identifier "FUN_000255f0") (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "FUN_00025740(puVar9);" (call_expression "FUN_00025740(puVar9)" (identifier "FUN_00025740") (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")"))) (; ";")) (} "}")))) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" (identifier "iVar8") (= "=") (identifier "DAT_0006b640")) (; ";")) (expression_statement "puVar9 = (undefined4 *)FUN_00035440(0x14);" (assignment_expression "puVar9 = (undefined4 *)FUN_00035440(0x14)" (identifier "puVar9") (= "=") (cast_expression "(undefined4 *)FUN_00035440(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00035440(0x14)" (identifier "FUN_00035440") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "puVar9[1] = 1;" (assignment_expression "puVar9[1] = 1" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar9[3] = 0;" (assignment_expression "puVar9[3] = 0" (subscript_expression "puVar9[3]" (identifier "puVar9") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar9[2] = 0;" (assignment_expression "puVar9[2] = 0" (subscript_expression "puVar9[2]" (identifier "puVar9") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar9[4] = 0;" (assignment_expression "puVar9[4] = 0" (subscript_expression "puVar9[4]" (identifier "puVar9") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 **)(iVar8 + 4) = puVar9;" (assignment_expression "*(undefined4 **)(iVar8 + 4) = puVar9" (pointer_expression "*(undefined4 **)(iVar8 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar8 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "puVar9")) (; ";")) (expression_statement "puVar9 = *(undefined4 **)(DAT_0006b640 + 4);" (assignment_expression "puVar9 = *(undefined4 **)(DAT_0006b640 + 4)" (identifier "puVar9") (= "=") (pointer_expression "*(undefined4 **)(DAT_0006b640 + 4)" (* "*") (cast_expression "(undefined4 **)(DAT_0006b640 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "uVar7 = FUN_00035640(0,&DAT_000503a2);" (assignment_expression "uVar7 = FUN_00035640(0,&DAT_000503a2)" (identifier "uVar7") (= "=") (call_expression "FUN_00035640(0,&DAT_000503a2)" (identifier "FUN_00035640") (argument_list "(0,&DAT_000503a2)" (( "(") (number_literal "0") (, ",") (pointer_expression "&DAT_000503a2" (& "&") (identifier "DAT_000503a2")) () ")")))) (; ";")) (expression_statement "*puVar9 = uVar7;" (assignment_expression "*puVar9 = uVar7" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "iVar8 = DAT_0006b640;" (assignment_expression "iVar8 = DAT_0006b640" (identifier "iVar8") (= "=") (identifier "DAT_0006b640")) (; ";")) (expression_statement "uVar7 = *(undefined4 *)(DAT_0006b640 + 4);" (assignment_expression "uVar7 = *(undefined4 *)(DAT_0006b640 + 4)" (identifier "uVar7") (= "=") (pointer_expression "*(undefined4 *)(DAT_0006b640 + 4)" (* "*") (cast_expression "(undefined4 *)(DAT_0006b640 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 4)" (( "(") (binary_expression "DAT_0006b640 + 4" (identifier "DAT_0006b640") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(uint *)(DAT_0006b640 + 0x1c) = param_4;" (assignment_expression "*(uint *)(DAT_0006b640 + 0x1c) = param_4" (pointer_expression "*(uint *)(DAT_0006b640 + 0x1c)" (* "*") (cast_expression "(uint *)(DAT_0006b640 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0006b640 + 0x1c)" (( "(") (binary_expression "DAT_0006b640 + 0x1c" (identifier "DAT_0006b640") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 8) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 8) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 8)" (( "(") (binary_expression "iVar8 + 8" (identifier "iVar8") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + 0x10) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x10) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x10)" (( "(") (binary_expression "iVar8 + 0x10" (identifier "iVar8") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (bVar1) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }\n    else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n      *(uint *)(iVar8 + 0x34) = param_4;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x30)" (( "(") (binary_expression "iVar8 + 0x30" (identifier "iVar8") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*(uint *)(iVar8 + 0x34) = param_4;" (assignment_expression "*(uint *)(iVar8 + 0x34) = param_4" (pointer_expression "*(uint *)(iVar8 + 0x34)" (* "*") (cast_expression "(uint *)(iVar8 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x34)" (( "(") (binary_expression "iVar8 + 0x34" (identifier "iVar8") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (} "}")) (else_clause "else if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" (else "else") (if_statement "if (bVar10) {\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" (if "if") (parenthesized_expression "(bVar10)" (( "(") (identifier "bVar10") () ")")) (compound_statement "{\n      *(undefined4 *)(iVar8 + 0x30) = uVar7;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar8 + 0x30) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + 0x30) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar8 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x30)" (( "(") (binary_expression "iVar8 + 0x30" (identifier "iVar8") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}"))))) (expression_statement "FUN_000258a0(&DAT_0006b644);" (call_expression "FUN_000258a0(&DAT_0006b644)" (identifier "FUN_000258a0") (argument_list "(&DAT_0006b644)" (( "(") (pointer_expression "&DAT_0006b644" (& "&") (identifier "DAT_0006b644")) () ")"))) (; ";")) (if_statement "if (bVar2) {\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n      FUN_0003aca0(2);\n      DAT_0006b604 = 1;\n    }" ({ "{") (expression_statement "FUN_0003aca0(2);" (call_expression "FUN_0003aca0(2)" (identifier "FUN_0003aca0") (argument_list "(2)" (( "(") (number_literal "2") () ")"))) (; ";")) (expression_statement "DAT_0006b604 = 1;" (assignment_expression "DAT_0006b604 = 1" (identifier "DAT_0006b604") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "FUN_00025740(uVar7);" (call_expression "FUN_00025740(uVar7)" (identifier "FUN_00025740") (argument_list "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (if_statement "if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       ) {\n      FUN_00035a30();\n    }" (if "if") (parenthesized_expression "(((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')\n       )" (( "(") (binary_expression "((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" (parenthesized_expression "((DAT_0006b664 & 0x40000000) == 0)" (( "(") (binary_expression "(DAT_0006b664 & 0x40000000) == 0" (parenthesized_expression "(DAT_0006b664 & 0x40000000)" (( "(") (binary_expression "DAT_0006b664 & 0x40000000" (identifier "DAT_0006b664") (& "&") (number_literal "0x40000000")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')" (( "(") (binary_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0'" (pointer_expression "*(char *)**(undefined4 **)(DAT_0006b640 + 8)" (* "*") (cast_expression "(char *)**(undefined4 **)(DAT_0006b640 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(undefined4 **)(DAT_0006b640 + 8)" (* "*") (pointer_expression "*(undefined4 **)(DAT_0006b640 + 8)" (* "*") (cast_expression "(undefined4 **)(DAT_0006b640 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(DAT_0006b640 + 8)" (( "(") (binary_expression "DAT_0006b640 + 8" (identifier "DAT_0006b640") (+ "+") (number_literal "8")) () ")"))))))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      FUN_00035a30();\n    }" ({ "{") (expression_statement "FUN_00035a30();" (call_expression "FUN_00035a30()" (identifier "FUN_00035a30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 **file_top,type_1 **file_bot,type_1 *var_1,size_t var_3,
                   type_1 *var_2,size_t var_4)

{
  int var_6;
  type_1 *var_17;
  bool bVar3;
  bool bVar4;
  type_2 *poVar5;
  size_t var_10;
  size_t var_14;
  size_t var_15;
  char *pcVar9;
  type_1 *var_7;
  type_1 *var_8;
  bool bVar12;
  
  bVar3 = var_1 == var_2 && var_3 == var_4;
  if (var_1 != var_2 || var_3 != var_4) {
    filepart = var_5(var_1,var_3,var_2,var_4);
    var_8 = openfile->fileage;
    var_6 = openfile->edittop->lineno;
    bVar4 = false;
    if (var_8->lineno <= var_6) {
      bVar4 = var_6 <= openfile->filebot->lineno;
    }
    var_7 = openfile->mark;
    bVar12 = false;
    if (var_7 != (type_1 *)0x0) {
      if ((((var_8->lineno <= var_7->lineno) && (var_7->lineno <= openfile->filebot->lineno))
          && ((var_8 != var_7 || (var_3 <= openfile->mark_x)))) &&
         (bVar3 = true, var_7 == openfile->filebot)) {
        bVar3 = openfile->mark_x <= var_4;
      }
      bVar12 = var_8 == var_7;
    }
    var_10 = var_9(var_1,var_2);
    poVar5 = openfile;
    openfile->totsize = openfile->totsize - var_10;
    if (*file_top == (type_1 *)0x0) {
      *file_top = poVar5->fileage;
      *file_bot = poVar5->filebot;
      var_11(*file_top);
    }
    else {
      var_8 = *file_bot;
      pcVar9 = var_8->data;
      var_14 = var_12(pcVar9);
      var_15 = var_12(poVar5->fileage->data);
      pcVar9 = (char *)var_13(pcVar9,var_14 + 1 + var_15);
      var_8->data = pcVar9;
      var_16((*file_bot)->data,openfile->fileage->data);
      poVar5 = openfile;
      var_7 = openfile->fileage;
      (*file_bot)->next = var_7->next;
      var_17 = (*file_bot)->next;
      if (var_17 != (type_1 *)0x0) {
        var_17->prev = *file_bot;
        *file_bot = poVar5->filebot;
        var_7 = poVar5->fileage;
      }
      var_18(var_7);
      var_11(var_8);
    }
    poVar5 = openfile;
    var_8 = (type_1 *)var_19(0x14);
    var_8->lineno = 1;
    var_8->data = (char *)0x0;
    var_8->prev = (type_1 *)0x0;
    var_8->next = (type_1 *)0x0;
    var_8->multidata = (short *)0x0;
    poVar5->fileage = var_8;
    var_8 = openfile->fileage;
    pcVar9 = var_20((char *)0x0,"");
    var_8->data = pcVar9;
    poVar5 = openfile;
    var_8 = openfile->fileage;
    openfile->current_x = var_3;
    poVar5->filebot = var_8;
    poVar5->current = var_8;
    if (bVar3) {
      poVar5->mark = var_8;
      poVar5->mark_x = var_3;
    }
    else if (bVar12) {
      poVar5->mark = var_8;
    }
    var_21(&filepart);
    if (bVar4) {
      var_22(STATIONARY);
      refresh_needed = true;
    }
    var_11(var_8);
    if (((flags[0] & 0x40000000) == 0) && (*openfile->filebot->data != '\0')) {
      var_23();
    }
  }
  return;
}


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

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

void MASKED(int *param_1,int *param_2,int param_3,uint param_4,int param_5,uint param_6)

{
  char *__s;
  bool bVar1;
  bool bVar2;
  int iVar3;
  int iVar4;
  size_t sVar5;
  size_t sVar6;
  undefined4 uVar7;
  int iVar8;
  undefined4 *puVar9;
  bool bVar10;
  
  bVar1 = param_3 == param_5 && param_4 == param_6;
  if (param_3 != param_5 || param_4 != param_6) {
    DAT_0006b644 = FUN_000257a0(param_3,param_4,param_5,param_6);
    iVar8 = *(int *)(DAT_0006b640 + 4);
    iVar4 = *(int *)(*(int *)(DAT_0006b640 + 0xc) + 4);
    bVar2 = false;
    if (*(int *)(iVar8 + 4) <= iVar4) {
      bVar2 = iVar4 <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4);
    }
    iVar4 = *(int *)(DAT_0006b640 + 0x30);
    bVar10 = false;
    if (iVar4 != 0) {
      if ((((*(int *)(iVar8 + 4) <= *(int *)(iVar4 + 4)) &&
           (*(int *)(iVar4 + 4) <= *(int *)(*(int *)(DAT_0006b640 + 8) + 4))) &&
          ((iVar8 != iVar4 || (param_4 <= *(uint *)(DAT_0006b640 + 0x34))))) &&
         (bVar1 = true, iVar4 == *(int *)(DAT_0006b640 + 8))) {
        bVar1 = *(uint *)(DAT_0006b640 + 0x34) <= param_6;
      }
      bVar10 = iVar8 == iVar4;
    }
    iVar4 = FUN_00035ca0(param_3,param_5);
    iVar8 = DAT_0006b640;
    *(int *)(DAT_0006b640 + 0x14) = *(int *)(DAT_0006b640 + 0x14) - iVar4;
    if (*param_1 == 0) {
      *param_1 = *(int *)(iVar8 + 4);
      *param_2 = *(int *)(iVar8 + 8);
      FUN_00025740(*param_1);
    }
    else {
      puVar9 = (undefined4 *)*param_2;
      __s = (char *)*puVar9;
      sVar5 = strlen(__s);
      sVar6 = strlen((char *)**(undefined4 **)(iVar8 + 4));
      uVar7 = FUN_00035500(__s,sVar5 + 1 + sVar6);
      *puVar9 = uVar7;
      strcat(*(char **)*param_2,(char *)**(undefined4 **)(DAT_0006b640 + 4));
      iVar3 = DAT_0006b640;
      iVar8 = *(int *)(DAT_0006b640 + 4);
      *(undefined4 *)(*param_2 + 8) = *(undefined4 *)(iVar8 + 8);
      iVar4 = *(int *)(*param_2 + 8);
      if (iVar4 != 0) {
        *(int *)(iVar4 + 0xc) = *param_2;
        *param_2 = *(int *)(iVar3 + 8);
        iVar8 = *(int *)(iVar3 + 4);
      }
      FUN_000255f0(iVar8);
      FUN_00025740(puVar9);
    }
    iVar8 = DAT_0006b640;
    puVar9 = (undefined4 *)FUN_00035440(0x14);
    puVar9[1] = 1;
    *puVar9 = 0;
    puVar9[3] = 0;
    puVar9[2] = 0;
    puVar9[4] = 0;
    *(undefined4 **)(iVar8 + 4) = puVar9;
    puVar9 = *(undefined4 **)(DAT_0006b640 + 4);
    uVar7 = FUN_00035640(0,&DAT_000503a2);
    *puVar9 = uVar7;
    iVar8 = DAT_0006b640;
    uVar7 = *(undefined4 *)(DAT_0006b640 + 4);
    *(uint *)(DAT_0006b640 + 0x1c) = param_4;
    *(undefined4 *)(iVar8 + 8) = uVar7;
    *(undefined4 *)(iVar8 + 0x10) = uVar7;
    if (bVar1) {
      *(undefined4 *)(iVar8 + 0x30) = uVar7;
      *(uint *)(iVar8 + 0x34) = param_4;
    }
    else if (bVar10) {
      *(undefined4 *)(iVar8 + 0x30) = uVar7;
    }
    FUN_000258a0(&DAT_0006b644);
    if (bVar2) {
      FUN_0003aca0(2);
      DAT_0006b604 = 1;
    }
    FUN_00025740(uVar7);
    if (((DAT_0006b664 & 0x40000000) == 0) && (*(char *)**(undefined4 **)(DAT_0006b640 + 8) != '\0')
       ) {
      FUN_00035a30();
    }
  }
  return;
}

