
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int __regparm3 whereLoopInsert(WhereLoopBuilder *pBuilder,WhereLoop *pTemplate)

{
  u8 uVar1;
  WhereOrSet *pSet;
  WhereInfo *pWVar2;
  sqlite3 *db;
  WhereLoop *pWVar3;
  uint uVar4;
  Index *pIVar5;
  u32 uVar6;
  LogEst LVar7;
  WhereInfo **pWInfo;
  WhereLoop **ppWVar8;
  WhereLoop *pWVar9;
  undefined **ppuVar10;
  int iVar11;
  undefined4 in_stack_ffffffd4;
  undefined **ppuVar12;
  
  ppuVar10 = &_GLOBAL_OFFSET_TABLE_;
  pSet = pBuilder->pOrSet;
  if (pBuilder->iPlanLimit == 0) {
    iVar11 = 0x65;
    if (pSet != (WhereOrSet *)0x0) {
      pSet->n = 0;
    }
  }
  else {
    pWVar2 = pBuilder->pWInfo;
    uVar6 = pTemplate->wsFlags;
    db = pWVar2->pParse->db;
    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;
    ppuVar12 = ppuVar10;
    if (((uVar6 & 0x200) != 0) &&
       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {
      uVar1 = pTemplate->iTab;
      do {
        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {
          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);
          if (iVar11 == 0) {
            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);
            if (iVar11 != 0) {
              pTemplate->rRun = pWVar9->rRun;
              pTemplate->nOut = pWVar9->nOut + 1;
            }
          }
          else {
            pTemplate->rRun = pWVar9->rRun;
            pTemplate->nOut = pWVar9->nOut + -1;
          }
        }
        pWVar9 = pWVar9->pNextLoop;
        ppuVar12 = ppuVar10;
      } while (pWVar9 != (WhereLoop *)0x0);
    }
    if (pSet == (WhereOrSet *)0x0) {
      iVar11 = 0;
      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);
      if (ppWVar8 != (WhereLoop **)0x0) {
        pWVar9 = *ppWVar8;
        if (pWVar9 == (WhereLoop *)0x0) {
          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));
          *ppWVar8 = pWVar9;
          if (pWVar9 == (WhereLoop *)0x0) {
            return 7;
          }
          pWVar9->nLTerm = 0;
          pWVar9->nLSlot = 3;
          pWVar9->aLTerm = pWVar9->aLTermSpace;
          pWVar9->wsFlags = 0;
          pWVar9->pNextLoop = (WhereLoop *)0x0;
        }
        else {
          pWVar3 = pWVar9->pNextLoop;
          ppWVar8 = &pWVar9->pNextLoop;
          while (((pWVar3 != (WhereLoop *)0x0 &&
                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))
                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {
            *ppWVar8 = pWVar3->pNextLoop;
            whereLoopClear(db,pWVar3);
            sqlite3DbFreeNN(db,pWVar3);
            pWVar3 = *ppWVar8;
          }
        }
        whereLoopClearUnion(db,pWVar9);
        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&
           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {
          (pWVar9->u).vtab.idxNum = 0;
          *(undefined4 *)((int)&pWVar9->u + 4) = 0;
          iVar11 = 7;
          (pWVar9->u).btree.pIndex = (Index *)0x0;
        }
        else {
          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;
          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);
          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;
          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =
               *(undefined4 *)((int)&pTemplate->maskSelf + 4);
          uVar1 = pTemplate->iSortIdx;
          LVar7 = pTemplate->rSetup;
          pWVar9->iTab = pTemplate->iTab;
          pWVar9->iSortIdx = uVar1;
          pWVar9->rSetup = LVar7;
          LVar7 = pTemplate->nOut;
          pWVar9->rRun = pTemplate->rRun;
          pWVar9->nOut = LVar7;
          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;
          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);
          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;
          pWVar9->wsFlags = pTemplate->wsFlags;
          uVar4._0_2_ = pTemplate->nLTerm;
          uVar4._2_2_ = pTemplate->nSkip;
          pWVar9->nLTerm = (short)uVar4;
          pWVar9->nSkip = (short)(uVar4 >> 0x10);
          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);
          if ((pTemplate->wsFlags & 0x400) == 0) {
            iVar11 = 0;
            if ((pTemplate->wsFlags & 0x4000) != 0) {
              (pTemplate->u).btree.pIndex = (Index *)0x0;
            }
          }
          else {
            (pTemplate->u).vtab.needFree = '\0';
            iVar11 = 0;
          }
        }
        if ((((pWVar9->wsFlags & 0x400) == 0) &&
            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&
           ((pIVar5->field_0x37 & 3) == 3)) {
          (pWVar9->u).btree.pIndex = (Index *)0x0;
        }
      }
    }
    else {
      iVar11 = 0;
      if (pTemplate->nLTerm != 0) {
        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),
                      (LogEst)(int)pTemplate->prereq,
                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));
      }
    }
  }
  return iVar11;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)

{
  byte bVar1;
  char cVar2;
  undefined2 *puVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  
  puVar3 = (undefined2 *)param_1[4];
  if (param_1[6] == 0) {
    uVar9 = 0x65;
    if (puVar3 != (undefined2 *)0x0) {
      *puVar3 = 0;
    }
  }
  else {
    bVar1 = *(byte *)((int)param_2 + 0x25);
    param_1[6] = param_1[6] + -1;
    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {
      cVar2 = *(char *)(param_2 + 4);
      do {
        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {
          iVar5 = FUN_00020a80();
          if (iVar5 == 0) {
            iVar5 = FUN_00020a80();
            if (iVar5 != 0) {
              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);
              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;
            }
          }
          else {
            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);
            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;
          }
        }
        iVar7 = *(int *)(iVar7 + 0x34);
      } while (iVar7 != 0);
    }
    if (puVar3 == (undefined2 *)0x0) {
      uVar9 = 0;
      piVar6 = (int *)FUN_00020b80();
      if (piVar6 != (int *)0x0) {
        puVar8 = (undefined4 *)*piVar6;
        if (puVar8 == (undefined4 *)0x0) {
          puVar8 = (undefined4 *)FUN_0002e2d0();
          *piVar6 = (int)puVar8;
          if (puVar8 == (undefined4 *)0x0) {
            return 7;
          }
          *(undefined2 *)(puVar8 + 10) = 0;
          *(undefined2 *)(puVar8 + 0xb) = 3;
          puVar8[0xc] = puVar8 + 0xe;
          puVar8[9] = 0;
          puVar8[0xd] = 0;
        }
        else {
          iVar7 = puVar8[0xd];
          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&
                 (*piVar6 != 0))) {
            *piVar6 = *(int *)(*piVar6 + 0x34);
            FUN_0002b6a0();
            FUN_00024720();
            iVar7 = *piVar6;
          }
        }
        FUN_0002b620();
        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&
           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {
          puVar8[6] = 0;
          puVar8[7] = 0;
          uVar9 = 7;
          puVar8[8] = 0;
        }
        else {
          *puVar8 = *param_2;
          puVar8[1] = param_2[1];
          puVar8[2] = param_2[2];
          puVar8[3] = param_2[3];
          puVar8[4] = param_2[4];
          puVar8[5] = param_2[5];
          puVar8[6] = param_2[6];
          puVar8[7] = param_2[7];
          puVar8[8] = param_2[8];
          puVar8[9] = param_2[9];
          uVar4 = param_2[10];
          puVar8[10] = uVar4;
          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);
          if ((param_2[9] & 0x400) == 0) {
            uVar9 = 0;
            if ((param_2[9] & 0x4000) != 0) {
              param_2[8] = 0;
            }
          }
          else {
            *(undefined1 *)(param_2 + 7) = 0;
            uVar9 = 0;
          }
        }
        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&
           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {
          puVar8[8] = 0;
        }
      }
    }
    else {
      uVar9 = 0;
      if (*(short *)(param_2 + 10) != 0) {
        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));
      }
    }
  }
  return uVar9;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000a94f7
ADD ECX,0xae127
SUB ESP,0x1c
MOV EBX,dword ptr [EAX + 0x18]
MOV EDI,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x4],ECX
TEST EBX,EBX
JNZ 0x0002ff10
TEST EDI,EDI
MOV EBX,0x65
JZ 0x0002fefe
XOR EBP,EBP
MOV word ptr [EDI],BP
ADD ESP,0x1c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [EAX]
MOV ESI,EDX
SUB EBX,0x1
TEST byte ptr [ESI + 0x25],0x2
MOV EDX,dword ptr [EBP]
MOV ECX,dword ptr [EDX]
MOV dword ptr [EAX + 0x18],EBX
MOV dword ptr [ESP + 0x8],ECX
JZ 0x0002ffa4
MOV EBX,dword ptr [EBP + 0x38]
TEST EBX,EBX
JZ 0x0002ffa4
MOVZX ECX,byte ptr [ESI + 0x10]
MOV dword ptr [ESP + 0xc],EDI
MOV EDI,ECX
JMP 0x0002ff5f
MOVZX EAX,word ptr [EBX + 0x14]
MOV word ptr [ESI + 0x14],AX
MOVZX EAX,word ptr [EBX + 0x16]
SUB EAX,0x1
MOV word ptr [ESI + 0x16],AX
NOP
LEA ESI,[ESI]
MOV EBX,dword ptr [EBX + 0x34]
TEST EBX,EBX
JZ 0x0002ffa0
MOV EAX,EDI
CMP byte ptr [EBX + 0x10],AL
JNZ 0x0002ff58
TEST byte ptr [EBX + 0x25],0x2
JZ 0x0002ff58
MOV EDX,ESI
MOV EAX,EBX
CALL 0x00020a80
TEST EAX,EAX
JNZ 0x0002ff40
MOV EDX,EBX
MOV EAX,ESI
CALL 0x00020a80
TEST EAX,EAX
JZ 0x0002ff58
MOVZX EAX,word ptr [EBX + 0x14]
MOV word ptr [ESI + 0x14],AX
MOVZX EAX,word ptr [EBX + 0x16]
ADD EAX,0x1
MOV word ptr [ESI + 0x16],AX
JMP 0x0002ff58
MOV EDI,dword ptr [ESP + 0xc]
TEST EDI,EDI
JZ 0x0002ffd8
XOR EBX,EBX
CMP word ptr [ESI + 0x28],0x0
JZ 0x0002fefe
MOVSX EAX,word ptr [ESI + 0x16]
MOV EDX,dword ptr [ESI]
MOV ECX,dword ptr [ESI + 0x4]
PUSH EAX
MOVSX EAX,word ptr [ESI + 0x14]
PUSH EAX
MOV EAX,EDI
CALL 0x000208e0
POP ESI
POP EDI
JMP 0x0002fefe
LEA EAX,[EBP + 0x38]
MOV EDX,ESI
XOR EBX,EBX
CALL 0x00020b80
TEST EAX,EAX
MOV EBP,EAX
JZ 0x0002fefe
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JZ 0x00030120
MOV EDX,dword ptr [EDI + 0x34]
LEA EBX,[EDI + 0x34]
TEST EDX,EDX
JZ 0x00030046
MOV dword ptr [ESP + 0xc],EDI
MOV EBP,dword ptr [ESP + 0x8]
JMP 0x00030033
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JZ 0x00030042
MOV EAX,dword ptr [EDI + 0x34]
MOV EDX,EDI
MOV dword ptr [EBX],EAX
MOV EAX,EBP
CALL 0x0002b6a0
MOV EAX,EBP
MOV EDX,EDI
CALL 0x00024720
MOV EAX,dword ptr [EBX]
TEST EAX,EAX
JZ 0x00030042
MOV EAX,EBX
MOV EDX,ESI
CALL 0x00020b80
TEST EAX,EAX
MOV EBX,EAX
JNZ 0x00030010
MOV EDI,dword ptr [ESP + 0xc]
MOV EBX,dword ptr [ESP + 0x8]
MOV EDX,EDI
MOV EAX,EBX
CALL 0x0002b620
MOVZX EAX,word ptr [ESI + 0x28]
MOVZX ECX,word ptr [ESI + 0x28]
CMP word ptr [EDI + 0x2c],AX
JNC 0x00030072
MOV EDX,EDI
MOV EAX,EBX
CALL 0x0002fe50
TEST EAX,EAX
JNZ 0x00030161
MOV EAX,dword ptr [ESI]
SUB ESP,0x4
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EDI + 0x4],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [EDI + 0x14],EAX
MOV EAX,dword ptr [ESI + 0x18]
MOV dword ptr [EDI + 0x18],EAX
MOV EAX,dword ptr [ESI + 0x1c]
MOV dword ptr [EDI + 0x1c],EAX
MOV EAX,dword ptr [ESI + 0x20]
MOV dword ptr [EDI + 0x20],EAX
MOV EAX,dword ptr [ESI + 0x24]
MOV dword ptr [EDI + 0x24],EAX
MOV EAX,dword ptr [ESI + 0x28]
MOV dword ptr [EDI + 0x28],EAX
MOVZX EAX,AX
SHL EAX,0x2
PUSH EAX
PUSH dword ptr [ESI + 0x30]
PUSH dword ptr [EDI + 0x30]
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00016490
MOV EAX,dword ptr [ESI + 0x24]
ADD ESP,0x10
TEST AH,0x4
JNZ 0x00030118
XOR EBX,EBX
TEST AH,0x40
JZ 0x000300e4
MOV dword ptr [ESI + 0x20],0x0
TEST byte ptr [EDI + 0x25],0x4
JNZ 0x0002fefe
MOV EAX,dword ptr [EDI + 0x20]
TEST EAX,EAX
JZ 0x0002fefe
MOVZX EAX,byte ptr [EAX + 0x37]
AND EAX,0x3
CMP AL,0x3
JNZ 0x0002fefe
MOV dword ptr [EDI + 0x20],0x0
JMP 0x0002fefe
MOV byte ptr [ESI + 0x1c],0x0
XOR EBX,EBX
JMP 0x000300e4
MOV EAX,dword ptr [ESP + 0x8]
XOR ECX,ECX
MOV EDX,0x44
CALL 0x0002e2d0
TEST EAX,EAX
MOV EDI,EAX
MOV dword ptr [EBP],EAX
JZ 0x00030180
LEA EAX,[EAX + 0x38]
XOR ECX,ECX
MOV EBX,0x3
MOV word ptr [EDI + 0x28],CX
MOV word ptr [EDI + 0x2c],BX
MOV dword ptr [EDI + 0x30],EAX
MOV dword ptr [EDI + 0x24],0x0
MOV dword ptr [EDI + 0x34],0x0
JMP 0x00030046
MOV dword ptr [EDI + 0x18],0x0
MOV dword ptr [EDI + 0x1c],0x0
MOV EBX,0x7
MOV dword ptr [EDI + 0x20],0x0
JMP 0x000300e4
MOV EBX,0x7
JMP 0x0002fefe
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002fed0(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "puVar3 = (undefined2 *)param_1[4];" (assignment_expression "puVar3 = (undefined2 *)param_1[4]" identifier = (cast_expression "(undefined2 *)param_1[4]" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" if (parenthesized_expression "(param_1[6] == 0)" ( (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }" { (expression_statement "uVar9 = 0x65;" (assignment_expression "uVar9 = 0x65" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }" if (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" ( (binary_expression "puVar3 != (undefined2 *)0x0" identifier != (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar3 = 0;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" else (compound_statement "{\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" { (expression_statement "bVar1 = *(byte *)((int)param_2 + 0x25);" (assignment_expression "bVar1 = *(byte *)((int)param_2 + 0x25)" identifier = (pointer_expression "*(byte *)((int)param_2 + 0x25)" * (cast_expression "(byte *)((int)param_2 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x25)" ( (binary_expression "(int)param_2 + 0x25" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "param_1[6] = param_1[6] + -1;" (assignment_expression "param_1[6] = param_1[6] + -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "param_1[6] + -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" if (parenthesized_expression "(((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0))" ( (binary_expression "((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" (parenthesized_expression "((bVar1 & 2) != 0)" ( (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" ( (comma_expression "iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0" (assignment_expression "iVar7 = *(int *)(*param_1 + 0x38)" identifier = (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) , (binary_expression "iVar7 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" { (expression_statement "cVar2 = *(char *)(param_2 + 4);" (assignment_expression "cVar2 = *(char *)(param_2 + 4)" identifier = (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);" do (compound_statement "{\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      }" { (if_statement "if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" if (parenthesized_expression "((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0))" ( (binary_expression "(*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)" (parenthesized_expression "(*(char *)(iVar7 + 0x10) == cVar2)" ( (binary_expression "*(char *)(iVar7 + 0x10) == cVar2" (pointer_expression "*(char *)(iVar7 + 0x10)" * (cast_expression "(char *)(iVar7 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "((*(byte *)(iVar7 + 0x25) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x25) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x25) & 2)" ( (binary_expression "*(byte *)(iVar7 + 0x25) & 2" (pointer_expression "*(byte *)(iVar7 + 0x25)" * (cast_expression "(byte *)(iVar7 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x25)" ( (binary_expression "iVar7 + 0x25" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" { (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" identifier = (call_expression "FUN_00020a80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }" { (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" identifier = (call_expression "FUN_00020a80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" { (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" * (cast_expression "(undefined2 *)(param_2 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" * (cast_expression "(undefined2 *)(iVar7 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)(iVar7 + 0x16)" * (cast_expression "(short *)(iVar7 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x16)" ( (binary_expression "iVar7 + 0x16" identifier + number_literal) )))) + number_literal)) ;) })) }) (else_clause "else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" else (compound_statement "{\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" { (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" * (cast_expression "(undefined2 *)(param_2 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" * (cast_expression "(undefined2 *)(iVar7 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)(iVar7 + 0x16)" * (cast_expression "(short *)(iVar7 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x16)" ( (binary_expression "iVar7 + 0x16" identifier + number_literal) )))) + number_literal)) ;) }))) })) (expression_statement "iVar7 = *(int *)(iVar7 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar7 + 0x34)" identifier = (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) })) (if_statement "if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" if (parenthesized_expression "(puVar3 == (undefined2 *)0x0)" ( (binary_expression "puVar3 == (undefined2 *)0x0" identifier == (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar6 = (int *)FUN_00020b80();" (assignment_expression "piVar6 = (int *)FUN_00020b80()" identifier = (cast_expression "(int *)FUN_00020b80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020b80()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" { (expression_statement "puVar8 = (undefined4 *)*piVar6;" (assignment_expression "puVar8 = (undefined4 *)*piVar6" identifier = (cast_expression "(undefined4 *)*piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" if (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" ( (binary_expression "puVar8 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }" { (expression_statement "puVar8 = (undefined4 *)FUN_0002e2d0();" (assignment_expression "puVar8 = (undefined4 *)FUN_0002e2d0()" identifier = (cast_expression "(undefined4 *)FUN_0002e2d0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e2d0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar6 = (int)puVar8;" (assignment_expression "*piVar6 = (int)puVar8" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }" if (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" ( (binary_expression "puVar8 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 7;\n          }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*(undefined2 *)(puVar8 + 10) = 0;" (assignment_expression "*(undefined2 *)(puVar8 + 10) = 0" (pointer_expression "*(undefined2 *)(puVar8 + 10)" * (cast_expression "(undefined2 *)(puVar8 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 10)" ( (binary_expression "puVar8 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar8 + 0xb) = 3;" (assignment_expression "*(undefined2 *)(puVar8 + 0xb) = 3" (pointer_expression "*(undefined2 *)(puVar8 + 0xb)" * (cast_expression "(undefined2 *)(puVar8 + 0xb)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xb)" ( (binary_expression "puVar8 + 0xb" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[0xc] = puVar8 + 0xe;" (assignment_expression "puVar8[0xc] = puVar8 + 0xe" (subscript_expression "puVar8[0xc]" identifier [ number_literal ]) = (binary_expression "puVar8 + 0xe" identifier + number_literal)) ;) (expression_statement "puVar8[9] = 0;" (assignment_expression "puVar8[9] = 0" (subscript_expression "puVar8[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8[0xd] = 0;" (assignment_expression "puVar8[0xd] = 0" (subscript_expression "puVar8[0xd]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" else (compound_statement "{\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" { (expression_statement "iVar7 = puVar8[0xd];" (assignment_expression "iVar7 = puVar8[0xd]" identifier = (subscript_expression "puVar8[0xd]" identifier [ number_literal ])) ;) (while_statement "while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" while (parenthesized_expression "(((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)))" ( (parenthesized_expression "((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))" ( (binary_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)" (parenthesized_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0))" ( (binary_expression "iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" (binary_expression "iVar7 != 0" identifier != number_literal) && (parenthesized_expression "(piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" ( (comma_expression "piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00020b80()" identifier = (cast_expression "(int *)FUN_00020b80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020b80()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) ))) )) )) (compound_statement "{\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" { (expression_statement "*piVar6 = *(int *)(*piVar6 + 0x34);" (assignment_expression "*piVar6 = *(int *)(*piVar6 + 0x34)" (pointer_expression "*piVar6" * identifier) = (pointer_expression "*(int *)(*piVar6 + 0x34)" * (cast_expression "(int *)(*piVar6 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 0x34)" ( (binary_expression "*piVar6 + 0x34" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) ;) (expression_statement "FUN_0002b6a0();" (call_expression "FUN_0002b6a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) })) }))) (expression_statement "FUN_0002b620();" (call_expression "FUN_0002b620()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" if (parenthesized_expression "((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0))" ( (binary_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)" (parenthesized_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10))" ( (binary_expression "*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)" (pointer_expression "*(ushort *)(puVar8 + 0xb)" * (cast_expression "(ushort *)(puVar8 + 0xb)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xb)" ( (binary_expression "puVar8 + 0xb" identifier + number_literal) )))) < (pointer_expression "*(ushort *)(param_2 + 10)" * (cast_expression "(ushort *)(param_2 + 10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar7 = FUN_0002fe50(), iVar7 != 0)" ( (comma_expression "iVar7 = FUN_0002fe50(), iVar7 != 0" (assignment_expression "iVar7 = FUN_0002fe50()" identifier = (call_expression "FUN_0002fe50()" identifier (argument_list "()" ( )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }" { (expression_statement "puVar8[6] = 0;" (assignment_expression "puVar8[6] = 0" (subscript_expression "puVar8[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8[7] = 0;" (assignment_expression "puVar8[7] = 0" (subscript_expression "puVar8[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar9 = 7;" (assignment_expression "uVar9 = 7" identifier = number_literal) ;) (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" else (compound_statement "{\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" { (expression_statement "*puVar8 = *param_2;" (assignment_expression "*puVar8 = *param_2" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar8[1] = param_2[1];" (assignment_expression "puVar8[1] = param_2[1]" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar8[2] = param_2[2];" (assignment_expression "puVar8[2] = param_2[2]" (subscript_expression "puVar8[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "puVar8[3] = param_2[3];" (assignment_expression "puVar8[3] = param_2[3]" (subscript_expression "puVar8[3]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "puVar8[4] = param_2[4];" (assignment_expression "puVar8[4] = param_2[4]" (subscript_expression "puVar8[4]" identifier [ number_literal ]) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "puVar8[5] = param_2[5];" (assignment_expression "puVar8[5] = param_2[5]" (subscript_expression "puVar8[5]" identifier [ number_literal ]) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "puVar8[6] = param_2[6];" (assignment_expression "puVar8[6] = param_2[6]" (subscript_expression "puVar8[6]" identifier [ number_literal ]) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "puVar8[7] = param_2[7];" (assignment_expression "puVar8[7] = param_2[7]" (subscript_expression "puVar8[7]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "puVar8[8] = param_2[8];" (assignment_expression "puVar8[8] = param_2[8]" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "puVar8[9] = param_2[9];" (assignment_expression "puVar8[9] = param_2[9]" (subscript_expression "puVar8[9]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_2[10];" (assignment_expression "uVar4 = param_2[10]" identifier = (subscript_expression "param_2[10]" identifier [ number_literal ])) ;) (expression_statement "puVar8[10] = uVar4;" (assignment_expression "puVar8[10] = uVar4" (subscript_expression "puVar8[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);" (call_expression "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" identifier (argument_list "((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" ( (cast_expression "(void *)puVar8[0xc]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[0xc]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0xc]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ])) , (binary_expression "(uVar4 & 0xffff) << 2" (parenthesized_expression "(uVar4 & 0xffff)" ( (binary_expression "uVar4 & 0xffff" identifier & number_literal) )) << number_literal) ))) ;) (if_statement "if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" if (parenthesized_expression "((param_2[9] & 0x400) == 0)" ( (binary_expression "(param_2[9] & 0x400) == 0" (parenthesized_expression "(param_2[9] & 0x400)" ( (binary_expression "param_2[9] & 0x400" (subscript_expression "param_2[9]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }" if (parenthesized_expression "((param_2[9] & 0x4000) != 0)" ( (binary_expression "(param_2[9] & 0x4000) != 0" (parenthesized_expression "(param_2[9] & 0x4000)" ( (binary_expression "param_2[9] & 0x4000" (subscript_expression "param_2[9]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n              param_2[8] = 0;\n            }" { (expression_statement "param_2[8] = 0;" (assignment_expression "param_2[8] = 0" (subscript_expression "param_2[8]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" else (compound_statement "{\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" { (expression_statement "*(undefined1 *)(param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 7) = 0" (pointer_expression "*(undefined1 *)(param_2 + 7)" * (cast_expression "(undefined1 *)(param_2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 7)" ( (binary_expression "param_2 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }))) }))) (if_statement "if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }" if (parenthesized_expression "((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3))" ( (binary_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" (parenthesized_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0))" ( (binary_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)" (parenthesized_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0)" ( (binary_expression "(*(byte *)((int)puVar8 + 0x25) & 4) == 0" (parenthesized_expression "(*(byte *)((int)puVar8 + 0x25) & 4)" ( (binary_expression "*(byte *)((int)puVar8 + 0x25) & 4" (pointer_expression "*(byte *)((int)puVar8 + 0x25)" * (cast_expression "(byte *)((int)puVar8 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x25)" ( (binary_expression "(int)puVar8 + 0x25" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(puVar8[8] != 0)" ( (binary_expression "puVar8[8] != 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" ( (binary_expression "(*(byte *)(puVar8[8] + 0x37) & 3) == 3" (parenthesized_expression "(*(byte *)(puVar8[8] + 0x37) & 3)" ( (binary_expression "*(byte *)(puVar8[8] + 0x37) & 3" (pointer_expression "*(byte *)(puVar8[8] + 0x37)" * (cast_expression "(byte *)(puVar8[8] + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8[8] + 0x37)" ( (binary_expression "puVar8[8] + 0x37" (subscript_expression "puVar8[8]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          puVar8[8] = 0;\n        }" { (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = number_literal) ;) })) })) }) (else_clause "else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" else (compound_statement "{\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" if (parenthesized_expression "(*(short *)(param_2 + 10) != 0)" ( (binary_expression "*(short *)(param_2 + 10) != 0" (pointer_expression "*(short *)(param_2 + 10)" * (cast_expression "(short *)(param_2 + 10)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" { (expression_statement "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));" (call_expression "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" identifier (argument_list "((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" ( (cast_expression "(int)*(short *)(param_2 + 5)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_2 + 5)" * (cast_expression "(short *)(param_2 + 5)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) ))))) , (cast_expression "(int)*(short *)((int)param_2 + 0x16)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) ;) })) }))) }))) (return_statement "return uVar9;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nint __regparm3 whereLoopInsert(WhereLoopBuilder *pBuilder,WhereLoop *pTemplate)\n\n{\n  u8 uVar1;\n  WhereOrSet *pSet;\n  WhereInfo *pWVar2;\n  sqlite3 *db;\n  WhereLoop *pWVar3;\n  uint uVar4;\n  Index *pIVar5;\n  u32 uVar6;\n  LogEst LVar7;\n  WhereInfo **pWInfo;\n  WhereLoop **ppWVar8;\n  WhereLoop *pWVar9;\n  undefined **ppuVar10;\n  int iVar11;\n  undefined4 in_stack_ffffffd4;\n  undefined **ppuVar12;\n  \n  ppuVar10 = &_GLOBAL_OFFSET_TABLE_;\n  pSet = pBuilder->pOrSet;\n  if (pBuilder->iPlanLimit == 0) {\n    iVar11 = 0x65;\n    if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }\n  }\n  else {\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }\n  return iVar11;\n}\n\n" comment (function_definition "int __regparm3 whereLoopInsert(WhereLoopBuilder *pBuilder,WhereLoop *pTemplate)\n\n{\n  u8 uVar1;\n  WhereOrSet *pSet;\n  WhereInfo *pWVar2;\n  sqlite3 *db;\n  WhereLoop *pWVar3;\n  uint uVar4;\n  Index *pIVar5;\n  u32 uVar6;\n  LogEst LVar7;\n  WhereInfo **pWInfo;\n  WhereLoop **ppWVar8;\n  WhereLoop *pWVar9;\n  undefined **ppuVar10;\n  int iVar11;\n  undefined4 in_stack_ffffffd4;\n  undefined **ppuVar12;\n  \n  ppuVar10 = &_GLOBAL_OFFSET_TABLE_;\n  pSet = pBuilder->pOrSet;\n  if (pBuilder->iPlanLimit == 0) {\n    iVar11 = 0x65;\n    if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }\n  }\n  else {\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }\n  return iVar11;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "whereLoopInsert(WhereLoopBuilder *pBuilder,WhereLoop *pTemplate)" identifier (parameter_list "(WhereLoopBuilder *pBuilder,WhereLoop *pTemplate)" ( (parameter_declaration "WhereLoopBuilder *pBuilder" type_identifier (pointer_declarator "*pBuilder" * identifier)) , (parameter_declaration "WhereLoop *pTemplate" type_identifier (pointer_declarator "*pTemplate" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  WhereOrSet *pSet;\n  WhereInfo *pWVar2;\n  sqlite3 *db;\n  WhereLoop *pWVar3;\n  uint uVar4;\n  Index *pIVar5;\n  u32 uVar6;\n  LogEst LVar7;\n  WhereInfo **pWInfo;\n  WhereLoop **ppWVar8;\n  WhereLoop *pWVar9;\n  undefined **ppuVar10;\n  int iVar11;\n  undefined4 in_stack_ffffffd4;\n  undefined **ppuVar12;\n  \n  ppuVar10 = &_GLOBAL_OFFSET_TABLE_;\n  pSet = pBuilder->pOrSet;\n  if (pBuilder->iPlanLimit == 0) {\n    iVar11 = 0x65;\n    if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }\n  }\n  else {\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }\n  return iVar11;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "WhereOrSet *pSet;" type_identifier (pointer_declarator "*pSet" * identifier) ;) (declaration "WhereInfo *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "WhereLoop *pWVar3;" type_identifier (pointer_declarator "*pWVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "Index *pIVar5;" type_identifier (pointer_declarator "*pIVar5" * identifier) ;) (declaration "u32 uVar6;" type_identifier identifier ;) (declaration "LogEst LVar7;" type_identifier identifier ;) (declaration "WhereInfo **pWInfo;" type_identifier (pointer_declarator "**pWInfo" * (pointer_declarator "*pWInfo" * identifier)) ;) (declaration "WhereLoop **ppWVar8;" type_identifier (pointer_declarator "**ppWVar8" * (pointer_declarator "*ppWVar8" * identifier)) ;) (declaration "WhereLoop *pWVar9;" type_identifier (pointer_declarator "*pWVar9" * identifier) ;) (declaration "undefined **ppuVar10;" type_identifier (pointer_declarator "**ppuVar10" * (pointer_declarator "*ppuVar10" * identifier)) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined4 in_stack_ffffffd4;" type_identifier identifier ;) (declaration "undefined **ppuVar12;" type_identifier (pointer_declarator "**ppuVar12" * (pointer_declarator "*ppuVar12" * identifier)) ;) (expression_statement "ppuVar10 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuVar10 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) ;) (expression_statement "pSet = pBuilder->pOrSet;" (assignment_expression "pSet = pBuilder->pOrSet" identifier = (field_expression "pBuilder->pOrSet" identifier -> field_identifier)) ;) (if_statement "if (pBuilder->iPlanLimit == 0) {\n    iVar11 = 0x65;\n    if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }\n  }\n  else {\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }" if (parenthesized_expression "(pBuilder->iPlanLimit == 0)" ( (binary_expression "pBuilder->iPlanLimit == 0" (field_expression "pBuilder->iPlanLimit" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar11 = 0x65;\n    if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }\n  }" { (expression_statement "iVar11 = 0x65;" (assignment_expression "iVar11 = 0x65" identifier = number_literal) ;) (if_statement "if (pSet != (WhereOrSet *)0x0) {\n      pSet->n = 0;\n    }" if (parenthesized_expression "(pSet != (WhereOrSet *)0x0)" ( (binary_expression "pSet != (WhereOrSet *)0x0" identifier != (cast_expression "(WhereOrSet *)0x0" ( (type_descriptor "WhereOrSet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pSet->n = 0;\n    }" { (expression_statement "pSet->n = 0;" (assignment_expression "pSet->n = 0" (field_expression "pSet->n" identifier -> field_identifier) = number_literal) ;) })) }) (else_clause "else {\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }" else (compound_statement "{\n    pWVar2 = pBuilder->pWInfo;\n    uVar6 = pTemplate->wsFlags;\n    db = pWVar2->pParse->db;\n    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;\n    ppuVar12 = ppuVar10;\n    if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }\n    if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }\n  }" { (expression_statement "pWVar2 = pBuilder->pWInfo;" (assignment_expression "pWVar2 = pBuilder->pWInfo" identifier = (field_expression "pBuilder->pWInfo" identifier -> field_identifier)) ;) (expression_statement "uVar6 = pTemplate->wsFlags;" (assignment_expression "uVar6 = pTemplate->wsFlags" identifier = (field_expression "pTemplate->wsFlags" identifier -> field_identifier)) ;) (expression_statement "db = pWVar2->pParse->db;" (assignment_expression "db = pWVar2->pParse->db" identifier = (field_expression "pWVar2->pParse->db" (field_expression "pWVar2->pParse" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;" (assignment_expression "pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1" (field_expression "pBuilder->iPlanLimit" identifier -> field_identifier) = (binary_expression "pBuilder->iPlanLimit - 1" (field_expression "pBuilder->iPlanLimit" identifier -> field_identifier) - number_literal)) ;) (expression_statement "ppuVar12 = ppuVar10;" (assignment_expression "ppuVar12 = ppuVar10" identifier = identifier) ;) (if_statement "if (((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)) {\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }" if (parenthesized_expression "(((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0))" ( (binary_expression "((uVar6 & 0x200) != 0) &&\n       (pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)" (parenthesized_expression "((uVar6 & 0x200) != 0)" ( (binary_expression "(uVar6 & 0x200) != 0" (parenthesized_expression "(uVar6 & 0x200)" ( (binary_expression "uVar6 & 0x200" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0)" ( (comma_expression "pWVar9 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0" (assignment_expression "pWVar9 = pWVar2->pLoops" identifier = (field_expression "pWVar2->pLoops" identifier -> field_identifier)) , (comma_expression "ppuVar12 = &_GLOBAL_OFFSET_TABLE_, pWVar9 != (WhereLoop *)0x0" (assignment_expression "ppuVar12 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) , (binary_expression "pWVar9 != (WhereLoop *)0x0" identifier != (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (compound_statement "{\n      uVar1 = pTemplate->iTab;\n      do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);\n    }" { (expression_statement "uVar1 = pTemplate->iTab;" (assignment_expression "uVar1 = pTemplate->iTab" identifier = (field_expression "pTemplate->iTab" identifier -> field_identifier)) ;) (do_statement "do {\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      } while (pWVar9 != (WhereLoop *)0x0);" do (compound_statement "{\n        if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }\n        pWVar9 = pWVar9->pNextLoop;\n        ppuVar12 = ppuVar10;\n      }" { (if_statement "if ((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)) {\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }" if (parenthesized_expression "((pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0))" ( (binary_expression "(pWVar9->iTab == uVar1) && ((pWVar9->wsFlags & 0x200) != 0)" (parenthesized_expression "(pWVar9->iTab == uVar1)" ( (binary_expression "pWVar9->iTab == uVar1" (field_expression "pWVar9->iTab" identifier -> field_identifier) == identifier) )) && (parenthesized_expression "((pWVar9->wsFlags & 0x200) != 0)" ( (binary_expression "(pWVar9->wsFlags & 0x200) != 0" (parenthesized_expression "(pWVar9->wsFlags & 0x200)" ( (binary_expression "pWVar9->wsFlags & 0x200" (field_expression "pWVar9->wsFlags" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n          iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);\n          if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }\n        }" { (expression_statement "iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate);" (assignment_expression "iVar11 = whereLoopCheaperProperSubset(pWVar9,pTemplate)" identifier = (call_expression "whereLoopCheaperProperSubset(pWVar9,pTemplate)" identifier (argument_list "(pWVar9,pTemplate)" ( identifier , identifier )))) ;) (if_statement "if (iVar11 == 0) {\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }\n          else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);\n            if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }\n          }" { (expression_statement "iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9);" (assignment_expression "iVar11 = whereLoopCheaperProperSubset(pTemplate,pWVar9)" identifier = (call_expression "whereLoopCheaperProperSubset(pTemplate,pWVar9)" identifier (argument_list "(pTemplate,pWVar9)" ( identifier , identifier )))) ;) (if_statement "if (iVar11 != 0) {\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              pTemplate->rRun = pWVar9->rRun;\n              pTemplate->nOut = pWVar9->nOut + 1;\n            }" { (expression_statement "pTemplate->rRun = pWVar9->rRun;" (assignment_expression "pTemplate->rRun = pWVar9->rRun" (field_expression "pTemplate->rRun" identifier -> field_identifier) = (field_expression "pWVar9->rRun" identifier -> field_identifier)) ;) (expression_statement "pTemplate->nOut = pWVar9->nOut + 1;" (assignment_expression "pTemplate->nOut = pWVar9->nOut + 1" (field_expression "pTemplate->nOut" identifier -> field_identifier) = (binary_expression "pWVar9->nOut + 1" (field_expression "pWVar9->nOut" identifier -> field_identifier) + number_literal)) ;) })) }) (else_clause "else {\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }" else (compound_statement "{\n            pTemplate->rRun = pWVar9->rRun;\n            pTemplate->nOut = pWVar9->nOut + -1;\n          }" { (expression_statement "pTemplate->rRun = pWVar9->rRun;" (assignment_expression "pTemplate->rRun = pWVar9->rRun" (field_expression "pTemplate->rRun" identifier -> field_identifier) = (field_expression "pWVar9->rRun" identifier -> field_identifier)) ;) (expression_statement "pTemplate->nOut = pWVar9->nOut + -1;" (assignment_expression "pTemplate->nOut = pWVar9->nOut + -1" (field_expression "pTemplate->nOut" identifier -> field_identifier) = (binary_expression "pWVar9->nOut + -1" (field_expression "pWVar9->nOut" identifier -> field_identifier) + number_literal)) ;) }))) })) (expression_statement "pWVar9 = pWVar9->pNextLoop;" (assignment_expression "pWVar9 = pWVar9->pNextLoop" identifier = (field_expression "pWVar9->pNextLoop" identifier -> field_identifier)) ;) (expression_statement "ppuVar12 = ppuVar10;" (assignment_expression "ppuVar12 = ppuVar10" identifier = identifier) ;) }) while (parenthesized_expression "(pWVar9 != (WhereLoop *)0x0)" ( (binary_expression "pWVar9 != (WhereLoop *)0x0" identifier != (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (if_statement "if (pSet == (WhereOrSet *)0x0) {\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }\n    else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }" if (parenthesized_expression "(pSet == (WhereOrSet *)0x0)" ( (binary_expression "pSet == (WhereOrSet *)0x0" identifier == (cast_expression "(WhereOrSet *)0x0" ( (type_descriptor "WhereOrSet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar11 = 0;\n      ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);\n      if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }\n    }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (expression_statement "ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate);" (assignment_expression "ppWVar8 = whereLoopFindLesser(&pWVar2->pLoops,pTemplate)" identifier = (call_expression "whereLoopFindLesser(&pWVar2->pLoops,pTemplate)" identifier (argument_list "(&pWVar2->pLoops,pTemplate)" ( (pointer_expression "&pWVar2->pLoops" & (field_expression "pWVar2->pLoops" identifier -> field_identifier)) , identifier )))) ;) (if_statement "if (ppWVar8 != (WhereLoop **)0x0) {\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }" if (parenthesized_expression "(ppWVar8 != (WhereLoop **)0x0)" ( (binary_expression "ppWVar8 != (WhereLoop **)0x0" identifier != (cast_expression "(WhereLoop **)0x0" ( (type_descriptor "WhereLoop **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n        pWVar9 = *ppWVar8;\n        if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }\n        whereLoopClearUnion(db,pWVar9);\n        if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }\n        if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n      }" { (expression_statement "pWVar9 = *ppWVar8;" (assignment_expression "pWVar9 = *ppWVar8" identifier = (pointer_expression "*ppWVar8" * identifier)) ;) (if_statement "if (pWVar9 == (WhereLoop *)0x0) {\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }\n        else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }" if (parenthesized_expression "(pWVar9 == (WhereLoop *)0x0)" ( (binary_expression "pWVar9 == (WhereLoop *)0x0" identifier == (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));\n          *ppWVar8 = pWVar9;\n          if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }\n          pWVar9->nLTerm = 0;\n          pWVar9->nLSlot = 3;\n          pWVar9->aLTerm = pWVar9->aLTermSpace;\n          pWVar9->wsFlags = 0;\n          pWVar9->pNextLoop = (WhereLoop *)0x0;\n        }" { (expression_statement "pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4));" (assignment_expression "pWVar9 = (WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4))" identifier = (cast_expression "(WhereLoop *)sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4))" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(ppuVar12,in_stack_ffffffd4))" identifier (argument_list "(db,CONCAT44(ppuVar12,in_stack_ffffffd4))" ( identifier , (call_expression "CONCAT44(ppuVar12,in_stack_ffffffd4)" identifier (argument_list "(ppuVar12,in_stack_ffffffd4)" ( identifier , identifier ))) ))))) ;) (expression_statement "*ppWVar8 = pWVar9;" (assignment_expression "*ppWVar8 = pWVar9" (pointer_expression "*ppWVar8" * identifier) = identifier) ;) (if_statement "if (pWVar9 == (WhereLoop *)0x0) {\n            return 7;\n          }" if (parenthesized_expression "(pWVar9 == (WhereLoop *)0x0)" ( (binary_expression "pWVar9 == (WhereLoop *)0x0" identifier == (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 7;\n          }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "pWVar9->nLTerm = 0;" (assignment_expression "pWVar9->nLTerm = 0" (field_expression "pWVar9->nLTerm" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar9->nLSlot = 3;" (assignment_expression "pWVar9->nLSlot = 3" (field_expression "pWVar9->nLSlot" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar9->aLTerm = pWVar9->aLTermSpace;" (assignment_expression "pWVar9->aLTerm = pWVar9->aLTermSpace" (field_expression "pWVar9->aLTerm" identifier -> field_identifier) = (field_expression "pWVar9->aLTermSpace" identifier -> field_identifier)) ;) (expression_statement "pWVar9->wsFlags = 0;" (assignment_expression "pWVar9->wsFlags = 0" (field_expression "pWVar9->wsFlags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar9->pNextLoop = (WhereLoop *)0x0;" (assignment_expression "pWVar9->pNextLoop = (WhereLoop *)0x0" (field_expression "pWVar9->pNextLoop" identifier -> field_identifier) = (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }" else (compound_statement "{\n          pWVar3 = pWVar9->pNextLoop;\n          ppWVar8 = &pWVar9->pNextLoop;\n          while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }\n        }" { (expression_statement "pWVar3 = pWVar9->pNextLoop;" (assignment_expression "pWVar3 = pWVar9->pNextLoop" identifier = (field_expression "pWVar9->pNextLoop" identifier -> field_identifier)) ;) (expression_statement "ppWVar8 = &pWVar9->pNextLoop;" (assignment_expression "ppWVar8 = &pWVar9->pNextLoop" identifier = (pointer_expression "&pWVar9->pNextLoop" & (field_expression "pWVar9->pNextLoop" identifier -> field_identifier))) ;) (while_statement "while (((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))) {\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }" while (parenthesized_expression "(((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0)))" ( (parenthesized_expression "((pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0))" ( (binary_expression "(pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))\n                 && (pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0)" (parenthesized_expression "(pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0))" ( (binary_expression "pWVar3 != (WhereLoop *)0x0 &&\n                  (ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0)" (binary_expression "pWVar3 != (WhereLoop *)0x0" identifier != (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (parenthesized_expression "(ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0)" ( (comma_expression "ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate), ppWVar8 != (WhereLoop **)0x0" (assignment_expression "ppWVar8 = whereLoopFindLesser(ppWVar8,pTemplate)" identifier = (call_expression "whereLoopFindLesser(ppWVar8,pTemplate)" identifier (argument_list "(ppWVar8,pTemplate)" ( identifier , identifier )))) , (binary_expression "ppWVar8 != (WhereLoop **)0x0" identifier != (cast_expression "(WhereLoop **)0x0" ( (type_descriptor "WhereLoop **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal))) ))) )) && (parenthesized_expression "(pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0)" ( (comma_expression "pWVar3 = *ppWVar8, pWVar3 != (WhereLoop *)0x0" (assignment_expression "pWVar3 = *ppWVar8" identifier = (pointer_expression "*ppWVar8" * identifier)) , (binary_expression "pWVar3 != (WhereLoop *)0x0" identifier != (cast_expression "(WhereLoop *)0x0" ( (type_descriptor "WhereLoop *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) )) (compound_statement "{\n            *ppWVar8 = pWVar3->pNextLoop;\n            whereLoopClear(db,pWVar3);\n            sqlite3DbFreeNN(db,pWVar3);\n            pWVar3 = *ppWVar8;\n          }" { (expression_statement "*ppWVar8 = pWVar3->pNextLoop;" (assignment_expression "*ppWVar8 = pWVar3->pNextLoop" (pointer_expression "*ppWVar8" * identifier) = (field_expression "pWVar3->pNextLoop" identifier -> field_identifier)) ;) (expression_statement "whereLoopClear(db,pWVar3);" (call_expression "whereLoopClear(db,pWVar3)" identifier (argument_list "(db,pWVar3)" ( identifier , identifier ))) ;) (expression_statement "sqlite3DbFreeNN(db,pWVar3);" (call_expression "sqlite3DbFreeNN(db,pWVar3)" identifier (argument_list "(db,pWVar3)" ( identifier , identifier ))) ;) (expression_statement "pWVar3 = *ppWVar8;" (assignment_expression "pWVar3 = *ppWVar8" identifier = (pointer_expression "*ppWVar8" * identifier)) ;) })) }))) (expression_statement "whereLoopClearUnion(db,pWVar9);" (call_expression "whereLoopClearUnion(db,pWVar9)" identifier (argument_list "(db,pWVar9)" ( identifier , identifier ))) ;) (if_statement "if ((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)) {\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }\n        else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }" if (parenthesized_expression "((pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0))" ( (binary_expression "(pWVar9->nLSlot < pTemplate->nLTerm) &&\n           (iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)" (parenthesized_expression "(pWVar9->nLSlot < pTemplate->nLTerm)" ( (binary_expression "pWVar9->nLSlot < pTemplate->nLTerm" (field_expression "pWVar9->nLSlot" identifier -> field_identifier) < (field_expression "pTemplate->nLTerm" identifier -> field_identifier)) )) && (parenthesized_expression "(iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0)" ( (comma_expression "iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm), iVar11 != 0" (assignment_expression "iVar11 = whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm)" identifier = (call_expression "whereLoopResize(db,pWVar9,(uint)pTemplate->nLTerm)" identifier (argument_list "(db,pWVar9,(uint)pTemplate->nLTerm)" ( identifier , identifier , (cast_expression "(uint)pTemplate->nLTerm" ( (type_descriptor "uint" type_identifier) ) (field_expression "pTemplate->nLTerm" identifier -> field_identifier)) )))) , (binary_expression "iVar11 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          (pWVar9->u).vtab.idxNum = 0;\n          *(undefined4 *)((int)&pWVar9->u + 4) = 0;\n          iVar11 = 7;\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }" { (expression_statement "(pWVar9->u).vtab.idxNum = 0;" (assignment_expression "(pWVar9->u).vtab.idxNum = 0" (field_expression "(pWVar9->u).vtab.idxNum" (field_expression "(pWVar9->u).vtab" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pWVar9->u + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pWVar9->u + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pWVar9->u + 4)" * (cast_expression "(undefined4 *)((int)&pWVar9->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pWVar9->u + 4)" ( (binary_expression "(int)&pWVar9->u + 4" (cast_expression "(int)&pWVar9->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pWVar9->u" & (field_expression "pWVar9->u" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "iVar11 = 7;" (assignment_expression "iVar11 = 7" identifier = number_literal) ;) (expression_statement "(pWVar9->u).btree.pIndex = (Index *)0x0;" (assignment_expression "(pWVar9->u).btree.pIndex = (Index *)0x0" (field_expression "(pWVar9->u).btree.pIndex" (field_expression "(pWVar9->u).btree" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }" else (compound_statement "{\n          *(int *)&pWVar9->prereq = (int)pTemplate->prereq;\n          *(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);\n          *(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;\n          *(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);\n          uVar1 = pTemplate->iSortIdx;\n          LVar7 = pTemplate->rSetup;\n          pWVar9->iTab = pTemplate->iTab;\n          pWVar9->iSortIdx = uVar1;\n          pWVar9->rSetup = LVar7;\n          LVar7 = pTemplate->nOut;\n          pWVar9->rRun = pTemplate->rRun;\n          pWVar9->nOut = LVar7;\n          (pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;\n          *(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);\n          (pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;\n          pWVar9->wsFlags = pTemplate->wsFlags;\n          uVar4._0_2_ = pTemplate->nLTerm;\n          uVar4._2_2_ = pTemplate->nSkip;\n          pWVar9->nLTerm = (short)uVar4;\n          pWVar9->nSkip = (short)(uVar4 >> 0x10);\n          memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);\n          if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }\n        }" { (expression_statement "*(int *)&pWVar9->prereq = (int)pTemplate->prereq;" (assignment_expression "*(int *)&pWVar9->prereq = (int)pTemplate->prereq" (pointer_expression "*(int *)&pWVar9->prereq" * (cast_expression "(int *)&pWVar9->prereq" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pWVar9->prereq" & (field_expression "pWVar9->prereq" identifier -> field_identifier)))) = (cast_expression "(int)pTemplate->prereq" ( (type_descriptor "int" primitive_type) ) (field_expression "pTemplate->prereq" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4);" (assignment_expression "*(undefined4 *)((int)&pWVar9->prereq + 4) = *(undefined4 *)((int)&pTemplate->prereq + 4)" (pointer_expression "*(undefined4 *)((int)&pWVar9->prereq + 4)" * (cast_expression "(undefined4 *)((int)&pWVar9->prereq + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pWVar9->prereq + 4)" ( (binary_expression "(int)&pWVar9->prereq + 4" (cast_expression "(int)&pWVar9->prereq" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pWVar9->prereq" & (field_expression "pWVar9->prereq" identifier -> field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&pTemplate->prereq + 4)" * (cast_expression "(undefined4 *)((int)&pTemplate->prereq + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTemplate->prereq + 4)" ( (binary_expression "(int)&pTemplate->prereq + 4" (cast_expression "(int)&pTemplate->prereq" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTemplate->prereq" & (field_expression "pTemplate->prereq" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "*(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf;" (assignment_expression "*(int *)&pWVar9->maskSelf = (int)pTemplate->maskSelf" (pointer_expression "*(int *)&pWVar9->maskSelf" * (cast_expression "(int *)&pWVar9->maskSelf" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pWVar9->maskSelf" & (field_expression "pWVar9->maskSelf" identifier -> field_identifier)))) = (cast_expression "(int)pTemplate->maskSelf" ( (type_descriptor "int" primitive_type) ) (field_expression "pTemplate->maskSelf" identifier -> field_identifier))) ;) (expression_statement "*(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4);" (assignment_expression "*(undefined4 *)((int)&pWVar9->maskSelf + 4) =\n               *(undefined4 *)((int)&pTemplate->maskSelf + 4)" (pointer_expression "*(undefined4 *)((int)&pWVar9->maskSelf + 4)" * (cast_expression "(undefined4 *)((int)&pWVar9->maskSelf + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pWVar9->maskSelf + 4)" ( (binary_expression "(int)&pWVar9->maskSelf + 4" (cast_expression "(int)&pWVar9->maskSelf" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pWVar9->maskSelf" & (field_expression "pWVar9->maskSelf" identifier -> field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&pTemplate->maskSelf + 4)" * (cast_expression "(undefined4 *)((int)&pTemplate->maskSelf + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTemplate->maskSelf + 4)" ( (binary_expression "(int)&pTemplate->maskSelf + 4" (cast_expression "(int)&pTemplate->maskSelf" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTemplate->maskSelf" & (field_expression "pTemplate->maskSelf" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "uVar1 = pTemplate->iSortIdx;" (assignment_expression "uVar1 = pTemplate->iSortIdx" identifier = (field_expression "pTemplate->iSortIdx" identifier -> field_identifier)) ;) (expression_statement "LVar7 = pTemplate->rSetup;" (assignment_expression "LVar7 = pTemplate->rSetup" identifier = (field_expression "pTemplate->rSetup" identifier -> field_identifier)) ;) (expression_statement "pWVar9->iTab = pTemplate->iTab;" (assignment_expression "pWVar9->iTab = pTemplate->iTab" (field_expression "pWVar9->iTab" identifier -> field_identifier) = (field_expression "pTemplate->iTab" identifier -> field_identifier)) ;) (expression_statement "pWVar9->iSortIdx = uVar1;" (assignment_expression "pWVar9->iSortIdx = uVar1" (field_expression "pWVar9->iSortIdx" identifier -> field_identifier) = identifier) ;) (expression_statement "pWVar9->rSetup = LVar7;" (assignment_expression "pWVar9->rSetup = LVar7" (field_expression "pWVar9->rSetup" identifier -> field_identifier) = identifier) ;) (expression_statement "LVar7 = pTemplate->nOut;" (assignment_expression "LVar7 = pTemplate->nOut" identifier = (field_expression "pTemplate->nOut" identifier -> field_identifier)) ;) (expression_statement "pWVar9->rRun = pTemplate->rRun;" (assignment_expression "pWVar9->rRun = pTemplate->rRun" (field_expression "pWVar9->rRun" identifier -> field_identifier) = (field_expression "pTemplate->rRun" identifier -> field_identifier)) ;) (expression_statement "pWVar9->nOut = LVar7;" (assignment_expression "pWVar9->nOut = LVar7" (field_expression "pWVar9->nOut" identifier -> field_identifier) = identifier) ;) (expression_statement "(pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;" (assignment_expression "(pWVar9->u).vtab.idxNum = (pTemplate->u).vtab.idxNum" (field_expression "(pWVar9->u).vtab.idxNum" (field_expression "(pWVar9->u).vtab" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (field_expression "(pTemplate->u).vtab.idxNum" (field_expression "(pTemplate->u).vtab" (parenthesized_expression "(pTemplate->u)" ( (field_expression "pTemplate->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4);" (assignment_expression "*(undefined4 *)((int)&pWVar9->u + 4) = *(undefined4 *)((int)&pTemplate->u + 4)" (pointer_expression "*(undefined4 *)((int)&pWVar9->u + 4)" * (cast_expression "(undefined4 *)((int)&pWVar9->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pWVar9->u + 4)" ( (binary_expression "(int)&pWVar9->u + 4" (cast_expression "(int)&pWVar9->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pWVar9->u" & (field_expression "pWVar9->u" identifier -> field_identifier))) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)&pTemplate->u + 4)" * (cast_expression "(undefined4 *)((int)&pTemplate->u + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTemplate->u + 4)" ( (binary_expression "(int)&pTemplate->u + 4" (cast_expression "(int)&pTemplate->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTemplate->u" & (field_expression "pTemplate->u" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "(pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex;" (assignment_expression "(pWVar9->u).btree.pIndex = (pTemplate->u).btree.pIndex" (field_expression "(pWVar9->u).btree.pIndex" (field_expression "(pWVar9->u).btree" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (field_expression "(pTemplate->u).btree.pIndex" (field_expression "(pTemplate->u).btree" (parenthesized_expression "(pTemplate->u)" ( (field_expression "pTemplate->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "pWVar9->wsFlags = pTemplate->wsFlags;" (assignment_expression "pWVar9->wsFlags = pTemplate->wsFlags" (field_expression "pWVar9->wsFlags" identifier -> field_identifier) = (field_expression "pTemplate->wsFlags" identifier -> field_identifier)) ;) (expression_statement "uVar4._0_2_ = pTemplate->nLTerm;" (assignment_expression "uVar4._0_2_ = pTemplate->nLTerm" (field_expression "uVar4._0_2_" identifier . field_identifier) = (field_expression "pTemplate->nLTerm" identifier -> field_identifier)) ;) (expression_statement "uVar4._2_2_ = pTemplate->nSkip;" (assignment_expression "uVar4._2_2_ = pTemplate->nSkip" (field_expression "uVar4._2_2_" identifier . field_identifier) = (field_expression "pTemplate->nSkip" identifier -> field_identifier)) ;) (expression_statement "pWVar9->nLTerm = (short)uVar4;" (assignment_expression "pWVar9->nLTerm = (short)uVar4" (field_expression "pWVar9->nLTerm" identifier -> field_identifier) = (cast_expression "(short)uVar4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "pWVar9->nSkip = (short)(uVar4 >> 0x10);" (assignment_expression "pWVar9->nSkip = (short)(uVar4 >> 0x10)" (field_expression "pWVar9->nSkip" identifier -> field_identifier) = (cast_expression "(short)(uVar4 >> 0x10)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(uVar4 >> 0x10)" ( (binary_expression "uVar4 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2);" (call_expression "memcpy(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2)" identifier (argument_list "(pWVar9->aLTerm,pTemplate->aLTerm,(uVar4 & 0xffff) << 2)" ( (field_expression "pWVar9->aLTerm" identifier -> field_identifier) , (field_expression "pTemplate->aLTerm" identifier -> field_identifier) , (binary_expression "(uVar4 & 0xffff) << 2" (parenthesized_expression "(uVar4 & 0xffff)" ( (binary_expression "uVar4 & 0xffff" identifier & number_literal) )) << number_literal) ))) ;) (if_statement "if ((pTemplate->wsFlags & 0x400) == 0) {\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }\n          else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }" if (parenthesized_expression "((pTemplate->wsFlags & 0x400) == 0)" ( (binary_expression "(pTemplate->wsFlags & 0x400) == 0" (parenthesized_expression "(pTemplate->wsFlags & 0x400)" ( (binary_expression "pTemplate->wsFlags & 0x400" (field_expression "pTemplate->wsFlags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n            iVar11 = 0;\n            if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }\n          }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if ((pTemplate->wsFlags & 0x4000) != 0) {\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }" if (parenthesized_expression "((pTemplate->wsFlags & 0x4000) != 0)" ( (binary_expression "(pTemplate->wsFlags & 0x4000) != 0" (parenthesized_expression "(pTemplate->wsFlags & 0x4000)" ( (binary_expression "pTemplate->wsFlags & 0x4000" (field_expression "pTemplate->wsFlags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n              (pTemplate->u).btree.pIndex = (Index *)0x0;\n            }" { (expression_statement "(pTemplate->u).btree.pIndex = (Index *)0x0;" (assignment_expression "(pTemplate->u).btree.pIndex = (Index *)0x0" (field_expression "(pTemplate->u).btree.pIndex" (field_expression "(pTemplate->u).btree" (parenthesized_expression "(pTemplate->u)" ( (field_expression "pTemplate->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) }) (else_clause "else {\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }" else (compound_statement "{\n            (pTemplate->u).vtab.needFree = '\0';\n            iVar11 = 0;\n          }" { (expression_statement "(pTemplate->u).vtab.needFree = '\0';" (assignment_expression "(pTemplate->u).vtab.needFree = '\0'" (field_expression "(pTemplate->u).vtab.needFree" (field_expression "(pTemplate->u).vtab" (parenthesized_expression "(pTemplate->u)" ( (field_expression "pTemplate->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) }))) }))) (if_statement "if ((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)) {\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }" if (parenthesized_expression "((((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3))" ( (binary_expression "(((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)) &&\n           ((pIVar5->field_0x37 & 3) == 3)" (parenthesized_expression "(((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0))" ( (binary_expression "((pWVar9->wsFlags & 0x400) == 0) &&\n            (pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)" (parenthesized_expression "((pWVar9->wsFlags & 0x400) == 0)" ( (binary_expression "(pWVar9->wsFlags & 0x400) == 0" (parenthesized_expression "(pWVar9->wsFlags & 0x400)" ( (binary_expression "pWVar9->wsFlags & 0x400" (field_expression "pWVar9->wsFlags" identifier -> field_identifier) & number_literal) )) == number_literal) )) && (parenthesized_expression "(pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0)" ( (comma_expression "pIVar5 = (pWVar9->u).btree.pIndex, pIVar5 != (Index *)0x0" (assignment_expression "pIVar5 = (pWVar9->u).btree.pIndex" identifier = (field_expression "(pWVar9->u).btree.pIndex" (field_expression "(pWVar9->u).btree" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , (binary_expression "pIVar5 != (Index *)0x0" identifier != (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "((pIVar5->field_0x37 & 3) == 3)" ( (binary_expression "(pIVar5->field_0x37 & 3) == 3" (parenthesized_expression "(pIVar5->field_0x37 & 3)" ( (binary_expression "pIVar5->field_0x37 & 3" (field_expression "pIVar5->field_0x37" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          (pWVar9->u).btree.pIndex = (Index *)0x0;\n        }" { (expression_statement "(pWVar9->u).btree.pIndex = (Index *)0x0;" (assignment_expression "(pWVar9->u).btree.pIndex = (Index *)0x0" (field_expression "(pWVar9->u).btree.pIndex" (field_expression "(pWVar9->u).btree" (parenthesized_expression "(pWVar9->u)" ( (field_expression "pWVar9->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })) }) (else_clause "else {\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }" else (compound_statement "{\n      iVar11 = 0;\n      if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }\n    }" { (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (pTemplate->nLTerm != 0) {\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }" if (parenthesized_expression "(pTemplate->nLTerm != 0)" ( (binary_expression "pTemplate->nLTerm != 0" (field_expression "pTemplate->nLTerm" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n        whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));\n      }" { (expression_statement "whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4));" (call_expression "whereOrInsert(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4))" identifier (argument_list "(pSet,CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun),\n                      (LogEst)(int)pTemplate->prereq,\n                      (LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4))" ( identifier , (call_expression "CONCAT44((int)pTemplate->nOut,(int)pTemplate->rRun)" identifier (argument_list "((int)pTemplate->nOut,(int)pTemplate->rRun)" ( (cast_expression "(int)pTemplate->nOut" ( (type_descriptor "int" primitive_type) ) (field_expression "pTemplate->nOut" identifier -> field_identifier)) , (cast_expression "(int)pTemplate->rRun" ( (type_descriptor "int" primitive_type) ) (field_expression "pTemplate->rRun" identifier -> field_identifier)) ))) , (cast_expression "(LogEst)(int)pTemplate->prereq" ( (type_descriptor "LogEst" type_identifier) ) (cast_expression "(int)pTemplate->prereq" ( (type_descriptor "int" primitive_type) ) (field_expression "pTemplate->prereq" identifier -> field_identifier))) , (binary_expression "(LogEst)*(undefined4 *)((int)&pTemplate->prereq + 4)" (parenthesized_expression "(LogEst)" ( identifier )) * (cast_expression "(undefined4 *)((int)&pTemplate->prereq + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pTemplate->prereq + 4)" ( (binary_expression "(int)&pTemplate->prereq + 4" (cast_expression "(int)&pTemplate->prereq" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pTemplate->prereq" & (field_expression "pTemplate->prereq" identifier -> field_identifier))) + number_literal) )))) ))) ;) })) }))) }))) (return_statement "return iVar11;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002fed0(int *param_1,undefined4 *param_2)" identifier (parameter_list "(int *param_1,undefined4 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined2 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (expression_statement "puVar3 = (undefined2 *)param_1[4];" (assignment_expression "puVar3 = (undefined2 *)param_1[4]" identifier = (cast_expression "(undefined2 *)param_1[4]" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[4]" identifier [ number_literal ]))) ;) (if_statement "if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" if (parenthesized_expression "(param_1[6] == 0)" ( (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }" { (expression_statement "uVar9 = 0x65;" (assignment_expression "uVar9 = 0x65" identifier = number_literal) ;) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }" if (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" ( (binary_expression "puVar3 != (undefined2 *)0x0" identifier != (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar3 = 0;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) })) }) (else_clause "else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" else (compound_statement "{\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" { (expression_statement "bVar1 = *(byte *)((int)param_2 + 0x25);" (assignment_expression "bVar1 = *(byte *)((int)param_2 + 0x25)" identifier = (pointer_expression "*(byte *)((int)param_2 + 0x25)" * (cast_expression "(byte *)((int)param_2 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x25)" ( (binary_expression "(int)param_2 + 0x25" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "param_1[6] = param_1[6] + -1;" (assignment_expression "param_1[6] = param_1[6] + -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "param_1[6] + -1" (subscript_expression "param_1[6]" identifier [ number_literal ]) + number_literal)) ;) (if_statement "if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" if (parenthesized_expression "(((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0))" ( (binary_expression "((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" (parenthesized_expression "((bVar1 & 2) != 0)" ( (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" ( (comma_expression "iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0" (assignment_expression "iVar7 = *(int *)(*param_1 + 0x38)" identifier = (pointer_expression "*(int *)(*param_1 + 0x38)" * (cast_expression "(int *)(*param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x38)" ( (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" * identifier) + number_literal) ))))) , (binary_expression "iVar7 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" { (expression_statement "cVar2 = *(char *)(param_2 + 4);" (assignment_expression "cVar2 = *(char *)(param_2 + 4)" identifier = (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);" do (compound_statement "{\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      }" { (if_statement "if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" if (parenthesized_expression "((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0))" ( (binary_expression "(*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)" (parenthesized_expression "(*(char *)(iVar7 + 0x10) == cVar2)" ( (binary_expression "*(char *)(iVar7 + 0x10) == cVar2" (pointer_expression "*(char *)(iVar7 + 0x10)" * (cast_expression "(char *)(iVar7 + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "((*(byte *)(iVar7 + 0x25) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x25) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x25) & 2)" ( (binary_expression "*(byte *)(iVar7 + 0x25) & 2" (pointer_expression "*(byte *)(iVar7 + 0x25)" * (cast_expression "(byte *)(iVar7 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x25)" ( (binary_expression "iVar7 + 0x25" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" { (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" identifier = (call_expression "FUN_00020a80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }" { (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" identifier = (call_expression "FUN_00020a80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" { (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" * (cast_expression "(undefined2 *)(param_2 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" * (cast_expression "(undefined2 *)(iVar7 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)(iVar7 + 0x16)" * (cast_expression "(short *)(iVar7 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x16)" ( (binary_expression "iVar7 + 0x16" identifier + number_literal) )))) + number_literal)) ;) })) }) (else_clause "else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" else (compound_statement "{\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" { (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" * (cast_expression "(undefined2 *)(param_2 + 5)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) )))) = (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" * (cast_expression "(undefined2 *)(iVar7 + 0x14)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)(iVar7 + 0x16)" * (cast_expression "(short *)(iVar7 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x16)" ( (binary_expression "iVar7 + 0x16" identifier + number_literal) )))) + number_literal)) ;) }))) })) (expression_statement "iVar7 = *(int *)(iVar7 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar7 + 0x34)" identifier = (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) ;) })) (if_statement "if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" if (parenthesized_expression "(puVar3 == (undefined2 *)0x0)" ( (binary_expression "puVar3 == (undefined2 *)0x0" identifier == (cast_expression "(undefined2 *)0x0" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "piVar6 = (int *)FUN_00020b80();" (assignment_expression "piVar6 = (int *)FUN_00020b80()" identifier = (cast_expression "(int *)FUN_00020b80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020b80()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" if (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" { (expression_statement "puVar8 = (undefined4 *)*piVar6;" (assignment_expression "puVar8 = (undefined4 *)*piVar6" identifier = (cast_expression "(undefined4 *)*piVar6" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" if (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" ( (binary_expression "puVar8 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }" { (expression_statement "puVar8 = (undefined4 *)FUN_0002e2d0();" (assignment_expression "puVar8 = (undefined4 *)FUN_0002e2d0()" identifier = (cast_expression "(undefined4 *)FUN_0002e2d0()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e2d0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "*piVar6 = (int)puVar8;" (assignment_expression "*piVar6 = (int)puVar8" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }" if (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" ( (binary_expression "puVar8 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 7;\n          }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*(undefined2 *)(puVar8 + 10) = 0;" (assignment_expression "*(undefined2 *)(puVar8 + 10) = 0" (pointer_expression "*(undefined2 *)(puVar8 + 10)" * (cast_expression "(undefined2 *)(puVar8 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 10)" ( (binary_expression "puVar8 + 10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar8 + 0xb) = 3;" (assignment_expression "*(undefined2 *)(puVar8 + 0xb) = 3" (pointer_expression "*(undefined2 *)(puVar8 + 0xb)" * (cast_expression "(undefined2 *)(puVar8 + 0xb)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xb)" ( (binary_expression "puVar8 + 0xb" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar8[0xc] = puVar8 + 0xe;" (assignment_expression "puVar8[0xc] = puVar8 + 0xe" (subscript_expression "puVar8[0xc]" identifier [ number_literal ]) = (binary_expression "puVar8 + 0xe" identifier + number_literal)) ;) (expression_statement "puVar8[9] = 0;" (assignment_expression "puVar8[9] = 0" (subscript_expression "puVar8[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8[0xd] = 0;" (assignment_expression "puVar8[0xd] = 0" (subscript_expression "puVar8[0xd]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" else (compound_statement "{\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" { (expression_statement "iVar7 = puVar8[0xd];" (assignment_expression "iVar7 = puVar8[0xd]" identifier = (subscript_expression "puVar8[0xd]" identifier [ number_literal ])) ;) (while_statement "while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" while (parenthesized_expression "(((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)))" ( (parenthesized_expression "((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))" ( (binary_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)" (parenthesized_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0))" ( (binary_expression "iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" (binary_expression "iVar7 != 0" identifier != number_literal) && (parenthesized_expression "(piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" ( (comma_expression "piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00020b80()" identifier = (cast_expression "(int *)FUN_00020b80()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020b80()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) ))) )) )) (compound_statement "{\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" { (expression_statement "*piVar6 = *(int *)(*piVar6 + 0x34);" (assignment_expression "*piVar6 = *(int *)(*piVar6 + 0x34)" (pointer_expression "*piVar6" * identifier) = (pointer_expression "*(int *)(*piVar6 + 0x34)" * (cast_expression "(int *)(*piVar6 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 0x34)" ( (binary_expression "*piVar6 + 0x34" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) ;) (expression_statement "FUN_0002b6a0();" (call_expression "FUN_0002b6a0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) })) }))) (expression_statement "FUN_0002b620();" (call_expression "FUN_0002b620()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" if (parenthesized_expression "((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0))" ( (binary_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)" (parenthesized_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10))" ( (binary_expression "*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)" (pointer_expression "*(ushort *)(puVar8 + 0xb)" * (cast_expression "(ushort *)(puVar8 + 0xb)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 0xb)" ( (binary_expression "puVar8 + 0xb" identifier + number_literal) )))) < (pointer_expression "*(ushort *)(param_2 + 10)" * (cast_expression "(ushort *)(param_2 + 10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) ))))) )) && (parenthesized_expression "(iVar7 = FUN_0002fe50(), iVar7 != 0)" ( (comma_expression "iVar7 = FUN_0002fe50(), iVar7 != 0" (assignment_expression "iVar7 = FUN_0002fe50()" identifier = (call_expression "FUN_0002fe50()" identifier (argument_list "()" ( )))) , (binary_expression "iVar7 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }" { (expression_statement "puVar8[6] = 0;" (assignment_expression "puVar8[6] = 0" (subscript_expression "puVar8[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8[7] = 0;" (assignment_expression "puVar8[7] = 0" (subscript_expression "puVar8[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar9 = 7;" (assignment_expression "uVar9 = 7" identifier = number_literal) ;) (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" else (compound_statement "{\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" { (expression_statement "*puVar8 = *param_2;" (assignment_expression "*puVar8 = *param_2" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "puVar8[1] = param_2[1];" (assignment_expression "puVar8[1] = param_2[1]" (subscript_expression "puVar8[1]" identifier [ number_literal ]) = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "puVar8[2] = param_2[2];" (assignment_expression "puVar8[2] = param_2[2]" (subscript_expression "puVar8[2]" identifier [ number_literal ]) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "puVar8[3] = param_2[3];" (assignment_expression "puVar8[3] = param_2[3]" (subscript_expression "puVar8[3]" identifier [ number_literal ]) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "puVar8[4] = param_2[4];" (assignment_expression "puVar8[4] = param_2[4]" (subscript_expression "puVar8[4]" identifier [ number_literal ]) = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "puVar8[5] = param_2[5];" (assignment_expression "puVar8[5] = param_2[5]" (subscript_expression "puVar8[5]" identifier [ number_literal ]) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "puVar8[6] = param_2[6];" (assignment_expression "puVar8[6] = param_2[6]" (subscript_expression "puVar8[6]" identifier [ number_literal ]) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "puVar8[7] = param_2[7];" (assignment_expression "puVar8[7] = param_2[7]" (subscript_expression "puVar8[7]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "puVar8[8] = param_2[8];" (assignment_expression "puVar8[8] = param_2[8]" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "puVar8[9] = param_2[9];" (assignment_expression "puVar8[9] = param_2[9]" (subscript_expression "puVar8[9]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = param_2[10];" (assignment_expression "uVar4 = param_2[10]" identifier = (subscript_expression "param_2[10]" identifier [ number_literal ])) ;) (expression_statement "puVar8[10] = uVar4;" (assignment_expression "puVar8[10] = uVar4" (subscript_expression "puVar8[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);" (call_expression "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" identifier (argument_list "((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" ( (cast_expression "(void *)puVar8[0xc]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar8[0xc]" identifier [ number_literal ])) , (cast_expression "(void *)param_2[0xc]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[0xc]" identifier [ number_literal ])) , (binary_expression "(uVar4 & 0xffff) << 2" (parenthesized_expression "(uVar4 & 0xffff)" ( (binary_expression "uVar4 & 0xffff" identifier & number_literal) )) << number_literal) ))) ;) (if_statement "if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" if (parenthesized_expression "((param_2[9] & 0x400) == 0)" ( (binary_expression "(param_2[9] & 0x400) == 0" (parenthesized_expression "(param_2[9] & 0x400)" ( (binary_expression "param_2[9] & 0x400" (subscript_expression "param_2[9]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }" if (parenthesized_expression "((param_2[9] & 0x4000) != 0)" ( (binary_expression "(param_2[9] & 0x4000) != 0" (parenthesized_expression "(param_2[9] & 0x4000)" ( (binary_expression "param_2[9] & 0x4000" (subscript_expression "param_2[9]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n              param_2[8] = 0;\n            }" { (expression_statement "param_2[8] = 0;" (assignment_expression "param_2[8] = 0" (subscript_expression "param_2[8]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" else (compound_statement "{\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" { (expression_statement "*(undefined1 *)(param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 7) = 0" (pointer_expression "*(undefined1 *)(param_2 + 7)" * (cast_expression "(undefined1 *)(param_2 + 7)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 7)" ( (binary_expression "param_2 + 7" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }))) }))) (if_statement "if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }" if (parenthesized_expression "((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3))" ( (binary_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" (parenthesized_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0))" ( (binary_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)" (parenthesized_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0)" ( (binary_expression "(*(byte *)((int)puVar8 + 0x25) & 4) == 0" (parenthesized_expression "(*(byte *)((int)puVar8 + 0x25) & 4)" ( (binary_expression "*(byte *)((int)puVar8 + 0x25) & 4" (pointer_expression "*(byte *)((int)puVar8 + 0x25)" * (cast_expression "(byte *)((int)puVar8 + 0x25)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar8 + 0x25)" ( (binary_expression "(int)puVar8 + 0x25" (cast_expression "(int)puVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) && (parenthesized_expression "(puVar8[8] != 0)" ( (binary_expression "puVar8[8] != 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" ( (binary_expression "(*(byte *)(puVar8[8] + 0x37) & 3) == 3" (parenthesized_expression "(*(byte *)(puVar8[8] + 0x37) & 3)" ( (binary_expression "*(byte *)(puVar8[8] + 0x37) & 3" (pointer_expression "*(byte *)(puVar8[8] + 0x37)" * (cast_expression "(byte *)(puVar8[8] + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8[8] + 0x37)" ( (binary_expression "puVar8[8] + 0x37" (subscript_expression "puVar8[8]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n          puVar8[8] = 0;\n        }" { (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" identifier [ number_literal ]) = number_literal) ;) })) })) }) (else_clause "else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" else (compound_statement "{\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (if_statement "if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" if (parenthesized_expression "(*(short *)(param_2 + 10) != 0)" ( (binary_expression "*(short *)(param_2 + 10) != 0" (pointer_expression "*(short *)(param_2 + 10)" * (cast_expression "(short *)(param_2 + 10)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" { (expression_statement "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));" (call_expression "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" identifier (argument_list "((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" ( (cast_expression "(int)*(short *)(param_2 + 5)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_2 + 5)" * (cast_expression "(short *)(param_2 + 5)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 5)" ( (binary_expression "param_2 + 5" identifier + number_literal) ))))) , (cast_expression "(int)*(short *)((int)param_2 + 0x16)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)((int)param_2 + 0x16)" * (cast_expression "(short *)((int)param_2 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x16)" ( (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ))) ;) })) }))) }))) (return_statement "return uVar9;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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 (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (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) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (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 (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ))) ;) })) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_0002fed0(int *param_1,undefined4 *param_2)\n\n{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002fed0(int *param_1,undefined4 *param_2)" (identifier "FUN_0002fed0") (parameter_list "(int *param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  char cVar2;\n  undefined2 *puVar3;\n  uint uVar4;\n  int iVar5;\n  int *piVar6;\n  int iVar7;\n  undefined4 *puVar8;\n  undefined4 uVar9;\n  \n  puVar3 = (undefined2 *)param_1[4];\n  if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }\n  return uVar9;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined2 *puVar3;" (type_identifier "undefined2") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined4 *puVar8;" (type_identifier "undefined4") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (expression_statement "puVar3 = (undefined2 *)param_1[4];" (assignment_expression "puVar3 = (undefined2 *)param_1[4]" (identifier "puVar3") (= "=") (cast_expression "(undefined2 *)param_1[4]" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")))) (; ";")) (if_statement "if (param_1[6] == 0) {\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }\n  else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1[6] == 0)" (( "(") (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar9 = 0x65;\n    if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }\n  }" ({ "{") (expression_statement "uVar9 = 0x65;" (assignment_expression "uVar9 = 0x65" (identifier "uVar9") (= "=") (number_literal "0x65")) (; ";")) (if_statement "if (puVar3 != (undefined2 *)0x0) {\n      *puVar3 = 0;\n    }" (if "if") (parenthesized_expression "(puVar3 != (undefined2 *)0x0)" (( "(") (binary_expression "puVar3 != (undefined2 *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined2 *)0x0" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *puVar3 = 0;\n    }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" (else "else") (compound_statement "{\n    bVar1 = *(byte *)((int)param_2 + 0x25);\n    param_1[6] = param_1[6] + -1;\n    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }\n    if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }\n  }" ({ "{") (expression_statement "bVar1 = *(byte *)((int)param_2 + 0x25);" (assignment_expression "bVar1 = *(byte *)((int)param_2 + 0x25)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)((int)param_2 + 0x25)" (* "*") (cast_expression "(byte *)((int)param_2 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x25)" (( "(") (binary_expression "(int)param_2 + 0x25" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x25")) () ")"))))) (; ";")) (expression_statement "param_1[6] = param_1[6] + -1;" (assignment_expression "param_1[6] = param_1[6] + -1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "param_1[6] + -1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" (if "if") (parenthesized_expression "(((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0))" (( "(") (binary_expression "((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" (parenthesized_expression "((bVar1 & 2) != 0)" (( "(") (binary_expression "(bVar1 & 2) != 0" (parenthesized_expression "(bVar1 & 2)" (( "(") (binary_expression "bVar1 & 2" (identifier "bVar1") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)" (( "(") (comma_expression "iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0" (assignment_expression "iVar7 = *(int *)(*param_1 + 0x38)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(*param_1 + 0x38)" (* "*") (cast_expression "(int *)(*param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x38)" (( "(") (binary_expression "*param_1 + 0x38" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x38")) () ")"))))) (, ",") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      cVar2 = *(char *)(param_2 + 4);\n      do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);\n    }" ({ "{") (expression_statement "cVar2 = *(char *)(param_2 + 4);" (assignment_expression "cVar2 = *(char *)(param_2 + 4)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_2 + 4)" (* "*") (cast_expression "(char *)(param_2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (do_statement "do {\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      } while (iVar7 != 0);" (do "do") (compound_statement "{\n        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }\n        iVar7 = *(int *)(iVar7 + 0x34);\n      }" ({ "{") (if_statement "if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" (if "if") (parenthesized_expression "((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0))" (( "(") (binary_expression "(*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)" (parenthesized_expression "(*(char *)(iVar7 + 0x10) == cVar2)" (( "(") (binary_expression "*(char *)(iVar7 + 0x10) == cVar2" (pointer_expression "*(char *)(iVar7 + 0x10)" (* "*") (cast_expression "(char *)(iVar7 + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (identifier "cVar2")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar7 + 0x25) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(iVar7 + 0x25) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x25) & 2)" (( "(") (binary_expression "*(byte *)(iVar7 + 0x25) & 2" (pointer_expression "*(byte *)(iVar7 + 0x25)" (* "*") (cast_expression "(byte *)(iVar7 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x25)" (( "(") (binary_expression "iVar7 + 0x25" (identifier "iVar7") (+ "+") (number_literal "0x25")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          iVar5 = FUN_00020a80();\n          if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }\n        }" ({ "{") (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" (identifier "iVar5") (= "=") (call_expression "FUN_00020a80()" (identifier "FUN_00020a80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }\n          else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar5 = FUN_00020a80();\n            if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }\n          }" ({ "{") (expression_statement "iVar5 = FUN_00020a80();" (assignment_expression "iVar5 = FUN_00020a80()" (identifier "iVar5") (= "=") (call_expression "FUN_00020a80()" (identifier "FUN_00020a80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) {\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;\n            }" ({ "{") (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" (* "*") (cast_expression "(undefined2 *)(param_2 + 5)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 5)" (( "(") (binary_expression "param_2 + 5" (identifier "param_2") (+ "+") (number_literal "5")) () ")")))) (= "=") (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" (* "*") (cast_expression "(undefined2 *)(iVar7 + 0x14)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)((int)param_2 + 0x16)" (* "*") (cast_expression "(short *)((int)param_2 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x16)" (( "(") (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (binary_expression "*(short *)(iVar7 + 0x16) + 1" (pointer_expression "*(short *)(iVar7 + 0x16)" (* "*") (cast_expression "(short *)(iVar7 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x16)" (( "(") (binary_expression "iVar7 + 0x16" (identifier "iVar7") (+ "+") (number_literal "0x16")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" (else "else") (compound_statement "{\n            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);\n            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;\n          }" ({ "{") (expression_statement "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);" (assignment_expression "*(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14)" (pointer_expression "*(undefined2 *)(param_2 + 5)" (* "*") (cast_expression "(undefined2 *)(param_2 + 5)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 5)" (( "(") (binary_expression "param_2 + 5" (identifier "param_2") (+ "+") (number_literal "5")) () ")")))) (= "=") (pointer_expression "*(undefined2 *)(iVar7 + 0x14)" (* "*") (cast_expression "(undefined2 *)(iVar7 + 0x14)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;" (assignment_expression "*(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)((int)param_2 + 0x16)" (* "*") (cast_expression "(short *)((int)param_2 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x16)" (( "(") (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x16")) () ")")))) (= "=") (binary_expression "*(short *)(iVar7 + 0x16) + -1" (pointer_expression "*(short *)(iVar7 + 0x16)" (* "*") (cast_expression "(short *)(iVar7 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x16)" (( "(") (binary_expression "iVar7 + 0x16" (identifier "iVar7") (+ "+") (number_literal "0x16")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar7 = *(int *)(iVar7 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar7 + 0x34)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar7 + 0x34)" (* "*") (cast_expression "(int *)(iVar7 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x34)" (( "(") (binary_expression "iVar7 + 0x34" (identifier "iVar7") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (if_statement "if (puVar3 == (undefined2 *)0x0) {\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }\n    else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" (if "if") (parenthesized_expression "(puVar3 == (undefined2 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined2 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined2 *)0x0" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar9 = 0;\n      piVar6 = (int *)FUN_00020b80();\n      if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }\n    }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6 = (int *)FUN_00020b80();" (assignment_expression "piVar6 = (int *)FUN_00020b80()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00020b80()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00020b80()" (identifier "FUN_00020b80") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar6 != (int *)0x0) {\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" (if "if") (parenthesized_expression "(piVar6 != (int *)0x0)" (( "(") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar8 = (undefined4 *)*piVar6;\n        if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }\n        FUN_0002b620();\n        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }\n        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }\n      }" ({ "{") (expression_statement "puVar8 = (undefined4 *)*piVar6;" (assignment_expression "puVar8 = (undefined4 *)*piVar6" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)*piVar6" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")))) (; ";")) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }\n        else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" (if "if") (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar8 == (undefined4 *)0x0" (identifier "puVar8") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          puVar8 = (undefined4 *)FUN_0002e2d0();\n          *piVar6 = (int)puVar8;\n          if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }\n          *(undefined2 *)(puVar8 + 10) = 0;\n          *(undefined2 *)(puVar8 + 0xb) = 3;\n          puVar8[0xc] = puVar8 + 0xe;\n          puVar8[9] = 0;\n          puVar8[0xd] = 0;\n        }" ({ "{") (expression_statement "puVar8 = (undefined4 *)FUN_0002e2d0();" (assignment_expression "puVar8 = (undefined4 *)FUN_0002e2d0()" (identifier "puVar8") (= "=") (cast_expression "(undefined4 *)FUN_0002e2d0()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002e2d0()" (identifier "FUN_0002e2d0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*piVar6 = (int)puVar8;" (assignment_expression "*piVar6 = (int)puVar8" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8"))) (; ";")) (if_statement "if (puVar8 == (undefined4 *)0x0) {\n            return 7;\n          }" (if "if") (parenthesized_expression "(puVar8 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar8 == (undefined4 *)0x0" (identifier "puVar8") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            return 7;\n          }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "*(undefined2 *)(puVar8 + 10) = 0;" (assignment_expression "*(undefined2 *)(puVar8 + 10) = 0" (pointer_expression "*(undefined2 *)(puVar8 + 10)" (* "*") (cast_expression "(undefined2 *)(puVar8 + 10)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 10)" (( "(") (binary_expression "puVar8 + 10" (identifier "puVar8") (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(puVar8 + 0xb) = 3;" (assignment_expression "*(undefined2 *)(puVar8 + 0xb) = 3" (pointer_expression "*(undefined2 *)(puVar8 + 0xb)" (* "*") (cast_expression "(undefined2 *)(puVar8 + 0xb)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xb)" (( "(") (binary_expression "puVar8 + 0xb" (identifier "puVar8") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "puVar8[0xc] = puVar8 + 0xe;" (assignment_expression "puVar8[0xc] = puVar8 + 0xe" (subscript_expression "puVar8[0xc]" (identifier "puVar8") ([ "[") (number_literal "0xc") (] "]")) (= "=") (binary_expression "puVar8 + 0xe" (identifier "puVar8") (+ "+") (number_literal "0xe"))) (; ";")) (expression_statement "puVar8[9] = 0;" (assignment_expression "puVar8[9] = 0" (subscript_expression "puVar8[9]" (identifier "puVar8") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8[0xd] = 0;" (assignment_expression "puVar8[0xd] = 0" (subscript_expression "puVar8[0xd]" (identifier "puVar8") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" (else "else") (compound_statement "{\n          iVar7 = puVar8[0xd];\n          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }\n        }" ({ "{") (expression_statement "iVar7 = puVar8[0xd];" (assignment_expression "iVar7 = puVar8[0xd]" (identifier "iVar7") (= "=") (subscript_expression "puVar8[0xd]" (identifier "puVar8") ([ "[") (number_literal "0xd") (] "]"))) (; ";")) (while_statement "while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))) {\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" (while "while") (parenthesized_expression "(((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)))" (( "(") (parenthesized_expression "((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0))" (( "(") (binary_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&\n                 (*piVar6 != 0)" (parenthesized_expression "(iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0))" (( "(") (binary_expression "iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)" (( "(") (comma_expression "piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00020b80()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00020b80()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00020b80()" (identifier "FUN_00020b80") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*piVar6 != 0)" (( "(") (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n            *piVar6 = *(int *)(*piVar6 + 0x34);\n            FUN_0002b6a0();\n            FUN_00024720();\n            iVar7 = *piVar6;\n          }" ({ "{") (expression_statement "*piVar6 = *(int *)(*piVar6 + 0x34);" (assignment_expression "*piVar6 = *(int *)(*piVar6 + 0x34)" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (pointer_expression "*(int *)(*piVar6 + 0x34)" (* "*") (cast_expression "(int *)(*piVar6 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar6 + 0x34)" (( "(") (binary_expression "*piVar6 + 0x34" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (expression_statement "FUN_0002b6a0();" (call_expression "FUN_0002b6a0()" (identifier "FUN_0002b6a0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00024720();" (call_expression "FUN_00024720()" (identifier "FUN_00024720") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar7 = *piVar6;" (assignment_expression "iVar7 = *piVar6" (identifier "iVar7") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0002b620();" (call_expression "FUN_0002b620()" (identifier "FUN_0002b620") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }\n        else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" (if "if") (parenthesized_expression "((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0))" (( "(") (binary_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&\n           (iVar7 = FUN_0002fe50(), iVar7 != 0)" (parenthesized_expression "(*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10))" (( "(") (binary_expression "*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)" (pointer_expression "*(ushort *)(puVar8 + 0xb)" (* "*") (cast_expression "(ushort *)(puVar8 + 0xb)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 0xb)" (( "(") (binary_expression "puVar8 + 0xb" (identifier "puVar8") (+ "+") (number_literal "0xb")) () ")")))) (< "<") (pointer_expression "*(ushort *)(param_2 + 10)" (* "*") (cast_expression "(ushort *)(param_2 + 10)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 10)" (( "(") (binary_expression "param_2 + 10" (identifier "param_2") (+ "+") (number_literal "10")) () ")"))))) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = FUN_0002fe50(), iVar7 != 0)" (( "(") (comma_expression "iVar7 = FUN_0002fe50(), iVar7 != 0" (assignment_expression "iVar7 = FUN_0002fe50()" (identifier "iVar7") (= "=") (call_expression "FUN_0002fe50()" (identifier "FUN_0002fe50") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          puVar8[6] = 0;\n          puVar8[7] = 0;\n          uVar9 = 7;\n          puVar8[8] = 0;\n        }" ({ "{") (expression_statement "puVar8[6] = 0;" (assignment_expression "puVar8[6] = 0" (subscript_expression "puVar8[6]" (identifier "puVar8") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8[7] = 0;" (assignment_expression "puVar8[7] = 0" (subscript_expression "puVar8[7]" (identifier "puVar8") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 7;" (assignment_expression "uVar9 = 7" (identifier "uVar9") (= "=") (number_literal "7")) (; ";")) (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" (else "else") (compound_statement "{\n          *puVar8 = *param_2;\n          puVar8[1] = param_2[1];\n          puVar8[2] = param_2[2];\n          puVar8[3] = param_2[3];\n          puVar8[4] = param_2[4];\n          puVar8[5] = param_2[5];\n          puVar8[6] = param_2[6];\n          puVar8[7] = param_2[7];\n          puVar8[8] = param_2[8];\n          puVar8[9] = param_2[9];\n          uVar4 = param_2[10];\n          puVar8[10] = uVar4;\n          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);\n          if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }\n        }" ({ "{") (expression_statement "*puVar8 = *param_2;" (assignment_expression "*puVar8 = *param_2" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "puVar8[1] = param_2[1];" (assignment_expression "puVar8[1] = param_2[1]" (subscript_expression "puVar8[1]" (identifier "puVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar8[2] = param_2[2];" (assignment_expression "puVar8[2] = param_2[2]" (subscript_expression "puVar8[2]" (identifier "puVar8") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar8[3] = param_2[3];" (assignment_expression "puVar8[3] = param_2[3]" (subscript_expression "puVar8[3]" (identifier "puVar8") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar8[4] = param_2[4];" (assignment_expression "puVar8[4] = param_2[4]" (subscript_expression "puVar8[4]" (identifier "puVar8") ([ "[") (number_literal "4") (] "]")) (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "puVar8[5] = param_2[5];" (assignment_expression "puVar8[5] = param_2[5]" (subscript_expression "puVar8[5]" (identifier "puVar8") ([ "[") (number_literal "5") (] "]")) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "puVar8[6] = param_2[6];" (assignment_expression "puVar8[6] = param_2[6]" (subscript_expression "puVar8[6]" (identifier "puVar8") ([ "[") (number_literal "6") (] "]")) (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "puVar8[7] = param_2[7];" (assignment_expression "puVar8[7] = param_2[7]" (subscript_expression "puVar8[7]" (identifier "puVar8") ([ "[") (number_literal "7") (] "]")) (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "puVar8[8] = param_2[8];" (assignment_expression "puVar8[8] = param_2[8]" (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "puVar8[9] = param_2[9];" (assignment_expression "puVar8[9] = param_2[9]" (subscript_expression "puVar8[9]" (identifier "puVar8") ([ "[") (number_literal "9") (] "]")) (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "uVar4 = param_2[10];" (assignment_expression "uVar4 = param_2[10]" (identifier "uVar4") (= "=") (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]"))) (; ";")) (expression_statement "puVar8[10] = uVar4;" (assignment_expression "puVar8[10] = uVar4" (subscript_expression "puVar8[10]" (identifier "puVar8") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);" (call_expression "memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" (identifier "memcpy") (argument_list "((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2)" (( "(") (cast_expression "(void *)puVar8[0xc]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar8[0xc]" (identifier "puVar8") ([ "[") (number_literal "0xc") (] "]"))) (, ",") (cast_expression "(void *)param_2[0xc]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]"))) (, ",") (binary_expression "(uVar4 & 0xffff) << 2" (parenthesized_expression "(uVar4 & 0xffff)" (( "(") (binary_expression "uVar4 & 0xffff" (identifier "uVar4") (& "&") (number_literal "0xffff")) () ")")) (<< "<<") (number_literal "2")) () ")"))) (; ";")) (if_statement "if ((param_2[9] & 0x400) == 0) {\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }\n          else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" (if "if") (parenthesized_expression "((param_2[9] & 0x400) == 0)" (( "(") (binary_expression "(param_2[9] & 0x400) == 0" (parenthesized_expression "(param_2[9] & 0x400)" (( "(") (binary_expression "param_2[9] & 0x400" (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (& "&") (number_literal "0x400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar9 = 0;\n            if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }\n          }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_2[9] & 0x4000) != 0) {\n              param_2[8] = 0;\n            }" (if "if") (parenthesized_expression "((param_2[9] & 0x4000) != 0)" (( "(") (binary_expression "(param_2[9] & 0x4000) != 0" (parenthesized_expression "(param_2[9] & 0x4000)" (( "(") (binary_expression "param_2[9] & 0x4000" (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              param_2[8] = 0;\n            }" ({ "{") (expression_statement "param_2[8] = 0;" (assignment_expression "param_2[8] = 0" (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" (else "else") (compound_statement "{\n            *(undefined1 *)(param_2 + 7) = 0;\n            uVar9 = 0;\n          }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 7) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 7) = 0" (pointer_expression "*(undefined1 *)(param_2 + 7)" (* "*") (cast_expression "(undefined1 *)(param_2 + 7)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 7)" (( "(") (binary_expression "param_2 + 7" (identifier "param_2") (+ "+") (number_literal "7")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (if_statement "if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {\n          puVar8[8] = 0;\n        }" (if "if") (parenthesized_expression "((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3))" (( "(") (binary_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&\n           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" (parenthesized_expression "(((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0))" (( "(") (binary_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)" (parenthesized_expression "((*(byte *)((int)puVar8 + 0x25) & 4) == 0)" (( "(") (binary_expression "(*(byte *)((int)puVar8 + 0x25) & 4) == 0" (parenthesized_expression "(*(byte *)((int)puVar8 + 0x25) & 4)" (( "(") (binary_expression "*(byte *)((int)puVar8 + 0x25) & 4" (pointer_expression "*(byte *)((int)puVar8 + 0x25)" (* "*") (cast_expression "(byte *)((int)puVar8 + 0x25)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar8 + 0x25)" (( "(") (binary_expression "(int)puVar8 + 0x25" (cast_expression "(int)puVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar8")) (+ "+") (number_literal "0x25")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar8[8] != 0)" (( "(") (binary_expression "puVar8[8] != 0" (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(puVar8[8] + 0x37) & 3) == 3)" (( "(") (binary_expression "(*(byte *)(puVar8[8] + 0x37) & 3) == 3" (parenthesized_expression "(*(byte *)(puVar8[8] + 0x37) & 3)" (( "(") (binary_expression "*(byte *)(puVar8[8] + 0x37) & 3" (pointer_expression "*(byte *)(puVar8[8] + 0x37)" (* "*") (cast_expression "(byte *)(puVar8[8] + 0x37)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8[8] + 0x37)" (( "(") (binary_expression "puVar8[8] + 0x37" (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")) (+ "+") (number_literal "0x37")) () ")")))) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "3")) () ")"))) () ")")) (compound_statement "{\n          puVar8[8] = 0;\n        }" ({ "{") (expression_statement "puVar8[8] = 0;" (assignment_expression "puVar8[8] = 0" (subscript_expression "puVar8[8]" (identifier "puVar8") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" (else "else") (compound_statement "{\n      uVar9 = 0;\n      if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }\n    }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(short *)(param_2 + 10) != 0) {\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" (if "if") (parenthesized_expression "(*(short *)(param_2 + 10) != 0)" (( "(") (binary_expression "*(short *)(param_2 + 10) != 0" (pointer_expression "*(short *)(param_2 + 10)" (* "*") (cast_expression "(short *)(param_2 + 10)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 10)" (( "(") (binary_expression "param_2 + 10" (identifier "param_2") (+ "+") (number_literal "10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));\n      }" ({ "{") (expression_statement "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));" (call_expression "FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" (identifier "FUN_000208e0") (argument_list "((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16))" (( "(") (cast_expression "(int)*(short *)(param_2 + 5)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(param_2 + 5)" (* "*") (cast_expression "(short *)(param_2 + 5)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 5)" (( "(") (binary_expression "param_2 + 5" (identifier "param_2") (+ "+") (number_literal "5")) () ")"))))) (, ",") (cast_expression "(int)*(short *)((int)param_2 + 0x16)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)((int)param_2 + 0x16)" (* "*") (cast_expression "(short *)((int)param_2 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x16)" (( "(") (binary_expression "(int)param_2 + 0x16" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x16")) () ")"))))) () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}")))) (return_statement "return uVar9;" (return "return") (identifier "uVar9") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int __regparm3 function_1(type_1 *pBuilder,type_2 *pTemplate)

{
  type_3 var_4;
  type_4 *var_1;
  type_5 *pWVar2;
  type_6 *db;
  type_2 *var_11;
  type_7 var_16;
  type_8 *var_18;
  type_9 var_2;
  type_10 LVar7;
  type_5 **pWInfo;
  type_2 **var_8;
  type_2 *var_3;
  type_11 **ppuVar10;
  int var_6;
  type_12 in_stack_ffffffd4;
  type_11 **ppuVar12;
  
  ppuVar10 = &_GLOBAL_OFFSET_TABLE_;
  var_1 = pBuilder->pOrSet;
  if (pBuilder->iPlanLimit == 0) {
    var_6 = 0x65;
    if (var_1 != (type_4 *)0x0) {
      var_1->n = 0;
    }
  }
  else {
    pWVar2 = pBuilder->pWInfo;
    var_2 = pTemplate->wsFlags;
    db = pWVar2->pParse->db;
    pBuilder->iPlanLimit = pBuilder->iPlanLimit - 1;
    ppuVar12 = ppuVar10;
    if (((var_2 & 0x200) != 0) &&
       (var_3 = pWVar2->pLoops, ppuVar12 = &_GLOBAL_OFFSET_TABLE_, var_3 != (type_2 *)0x0)) {
      var_4 = pTemplate->iTab;
      do {
        if ((var_3->iTab == var_4) && ((var_3->wsFlags & 0x200) != 0)) {
          var_6 = var_5(var_3,pTemplate);
          if (var_6 == 0) {
            var_6 = var_5(pTemplate,var_3);
            if (var_6 != 0) {
              pTemplate->rRun = var_3->rRun;
              pTemplate->nOut = var_3->nOut + 1;
            }
          }
          else {
            pTemplate->rRun = var_3->rRun;
            pTemplate->nOut = var_3->nOut + -1;
          }
        }
        var_3 = var_3->pNextLoop;
        ppuVar12 = ppuVar10;
      } while (var_3 != (type_2 *)0x0);
    }
    if (var_1 == (type_4 *)0x0) {
      var_6 = 0;
      var_8 = var_7(&pWVar2->pLoops,pTemplate);
      if (var_8 != (type_2 **)0x0) {
        var_3 = *var_8;
        if (var_3 == (type_2 *)0x0) {
          var_3 = (type_2 *)var_9(db,var_10(ppuVar12,in_stack_ffffffd4));
          *var_8 = var_3;
          if (var_3 == (type_2 *)0x0) {
            return 7;
          }
          var_3->nLTerm = 0;
          var_3->nLSlot = 3;
          var_3->aLTerm = var_3->aLTermSpace;
          var_3->wsFlags = 0;
          var_3->pNextLoop = (type_2 *)0x0;
        }
        else {
          var_11 = var_3->pNextLoop;
          var_8 = &var_3->pNextLoop;
          while (((var_11 != (type_2 *)0x0 &&
                  (var_8 = var_7(var_8,pTemplate), var_8 != (type_2 **)0x0))
                 && (var_11 = *var_8, var_11 != (type_2 *)0x0))) {
            *var_8 = var_11->pNextLoop;
            var_12(db,var_11);
            var_13(db,var_11);
            var_11 = *var_8;
          }
        }
        var_14(db,var_3);
        if ((var_3->nLSlot < pTemplate->nLTerm) &&
           (var_6 = var_15(db,var_3,(type_7)pTemplate->nLTerm), var_6 != 0)) {
          (var_3->u).vtab.idxNum = 0;
          *(type_12 *)((int)&var_3->u + 4) = 0;
          var_6 = 7;
          (var_3->u).btree.pIndex = (type_8 *)0x0;
        }
        else {
          *(int *)&var_3->prereq = (int)pTemplate->prereq;
          *(type_12 *)((int)&var_3->prereq + 4) = *(type_12 *)((int)&pTemplate->prereq + 4);
          *(int *)&var_3->maskSelf = (int)pTemplate->maskSelf;
          *(type_12 *)((int)&var_3->maskSelf + 4) =
               *(type_12 *)((int)&pTemplate->maskSelf + 4);
          var_4 = pTemplate->iSortIdx;
          LVar7 = pTemplate->rSetup;
          var_3->iTab = pTemplate->iTab;
          var_3->iSortIdx = var_4;
          var_3->rSetup = LVar7;
          LVar7 = pTemplate->nOut;
          var_3->rRun = pTemplate->rRun;
          var_3->nOut = LVar7;
          (var_3->u).vtab.idxNum = (pTemplate->u).vtab.idxNum;
          *(type_12 *)((int)&var_3->u + 4) = *(type_12 *)((int)&pTemplate->u + 4);
          (var_3->u).btree.pIndex = (pTemplate->u).btree.pIndex;
          var_3->wsFlags = pTemplate->wsFlags;
          var_16._0_2_ = pTemplate->nLTerm;
          var_16._2_2_ = pTemplate->nSkip;
          var_3->nLTerm = (short)var_16;
          var_3->nSkip = (short)(var_16 >> 0x10);
          var_17(var_3->aLTerm,pTemplate->aLTerm,(var_16 & 0xffff) << 2);
          if ((pTemplate->wsFlags & 0x400) == 0) {
            var_6 = 0;
            if ((pTemplate->wsFlags & 0x4000) != 0) {
              (pTemplate->u).btree.pIndex = (type_8 *)0x0;
            }
          }
          else {
            (pTemplate->u).vtab.needFree = '\0';
            var_6 = 0;
          }
        }
        if ((((var_3->wsFlags & 0x400) == 0) &&
            (var_18 = (var_3->u).btree.pIndex, var_18 != (type_8 *)0x0)) &&
           ((var_18->field_0x37 & 3) == 3)) {
          (var_3->u).btree.pIndex = (type_8 *)0x0;
        }
      }
    }
    else {
      var_6 = 0;
      if (pTemplate->nLTerm != 0) {
        var_19(var_1,var_10((int)pTemplate->nOut,(int)pTemplate->rRun),
                      (type_10)(int)pTemplate->prereq,
                      (type_10)*(type_12 *)((int)&pTemplate->prereq + 4));
      }
    }
  }
  return var_6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 MASKED(int *param_1,undefined4 *param_2)

{
  byte bVar1;
  char cVar2;
  undefined2 *puVar3;
  uint uVar4;
  int iVar5;
  int *piVar6;
  int iVar7;
  undefined4 *puVar8;
  undefined4 uVar9;
  
  puVar3 = (undefined2 *)param_1[4];
  if (param_1[6] == 0) {
    uVar9 = 0x65;
    if (puVar3 != (undefined2 *)0x0) {
      *puVar3 = 0;
    }
  }
  else {
    bVar1 = *(byte *)((int)param_2 + 0x25);
    param_1[6] = param_1[6] + -1;
    if (((bVar1 & 2) != 0) && (iVar7 = *(int *)(*param_1 + 0x38), iVar7 != 0)) {
      cVar2 = *(char *)(param_2 + 4);
      do {
        if ((*(char *)(iVar7 + 0x10) == cVar2) && ((*(byte *)(iVar7 + 0x25) & 2) != 0)) {
          iVar5 = FUN_00020a80();
          if (iVar5 == 0) {
            iVar5 = FUN_00020a80();
            if (iVar5 != 0) {
              *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);
              *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + 1;
            }
          }
          else {
            *(undefined2 *)(param_2 + 5) = *(undefined2 *)(iVar7 + 0x14);
            *(short *)((int)param_2 + 0x16) = *(short *)(iVar7 + 0x16) + -1;
          }
        }
        iVar7 = *(int *)(iVar7 + 0x34);
      } while (iVar7 != 0);
    }
    if (puVar3 == (undefined2 *)0x0) {
      uVar9 = 0;
      piVar6 = (int *)FUN_00020b80();
      if (piVar6 != (int *)0x0) {
        puVar8 = (undefined4 *)*piVar6;
        if (puVar8 == (undefined4 *)0x0) {
          puVar8 = (undefined4 *)FUN_0002e2d0();
          *piVar6 = (int)puVar8;
          if (puVar8 == (undefined4 *)0x0) {
            return 7;
          }
          *(undefined2 *)(puVar8 + 10) = 0;
          *(undefined2 *)(puVar8 + 0xb) = 3;
          puVar8[0xc] = puVar8 + 0xe;
          puVar8[9] = 0;
          puVar8[0xd] = 0;
        }
        else {
          iVar7 = puVar8[0xd];
          while (((iVar7 != 0 && (piVar6 = (int *)FUN_00020b80(), piVar6 != (int *)0x0)) &&
                 (*piVar6 != 0))) {
            *piVar6 = *(int *)(*piVar6 + 0x34);
            FUN_0002b6a0();
            FUN_00024720();
            iVar7 = *piVar6;
          }
        }
        FUN_0002b620();
        if ((*(ushort *)(puVar8 + 0xb) < *(ushort *)(param_2 + 10)) &&
           (iVar7 = FUN_0002fe50(), iVar7 != 0)) {
          puVar8[6] = 0;
          puVar8[7] = 0;
          uVar9 = 7;
          puVar8[8] = 0;
        }
        else {
          *puVar8 = *param_2;
          puVar8[1] = param_2[1];
          puVar8[2] = param_2[2];
          puVar8[3] = param_2[3];
          puVar8[4] = param_2[4];
          puVar8[5] = param_2[5];
          puVar8[6] = param_2[6];
          puVar8[7] = param_2[7];
          puVar8[8] = param_2[8];
          puVar8[9] = param_2[9];
          uVar4 = param_2[10];
          puVar8[10] = uVar4;
          memcpy((void *)puVar8[0xc],(void *)param_2[0xc],(uVar4 & 0xffff) << 2);
          if ((param_2[9] & 0x400) == 0) {
            uVar9 = 0;
            if ((param_2[9] & 0x4000) != 0) {
              param_2[8] = 0;
            }
          }
          else {
            *(undefined1 *)(param_2 + 7) = 0;
            uVar9 = 0;
          }
        }
        if ((((*(byte *)((int)puVar8 + 0x25) & 4) == 0) && (puVar8[8] != 0)) &&
           ((*(byte *)(puVar8[8] + 0x37) & 3) == 3)) {
          puVar8[8] = 0;
        }
      }
    }
    else {
      uVar9 = 0;
      if (*(short *)(param_2 + 10) != 0) {
        FUN_000208e0((int)*(short *)(param_2 + 5),(int)*(short *)((int)param_2 + 0x16));
      }
    }
  }
  return uVar9;
}

