
void fts3EvalAllocateReaders(Fts3Cursor *pCsr,Fts3Expr *pExpr,int *pnToken,int *pnOr,int *pRc)

{
  int iVar1;
  int isPrefix;
  int nTerm;
  int iVar2;
  Fts3Phrase *pFVar3;
  char *zTerm;
  Fts3Table *p;
  int *piVar4;
  int iVar5;
  Fts3MultiSegReader *pCsr_00;
  Fts3Index *pFVar6;
  Fts3Index *pFVar7;
  int iVar8;
  int iVar9;
  
  if ((pExpr != (Fts3Expr *)0x0) && (*pRc == 0)) {
    iVar1 = pExpr->eType;
    while (iVar1 != 5) {
      *pnOr = *pnOr + (uint)(iVar1 == 4);
      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);
      pExpr = pExpr->pRight;
      if (pExpr == (Fts3Expr *)0x0) {
        return;
      }
      if (*pRc != 0) {
        return;
      }
      iVar1 = pExpr->eType;
    }
    iVar1 = pExpr->pPhrase->nToken;
    *pnToken = *pnToken + iVar1;
    if (0 < iVar1) {
      iVar9 = 0;
LAB_001d5be0:
      pFVar3 = pExpr->pPhrase;
      isPrefix = pFVar3->aToken[iVar9].isPrefix;
      nTerm = pFVar3->aToken[iVar9].n;
      zTerm = pFVar3->aToken[iVar9].z;
      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);
      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {
        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;
        iVar5 = 7;
        goto LAB_001d5de5;
      }
      p = (Fts3Table *)(pCsr->base).pVtab;
      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {
LAB_001d5d00:
        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);
        pCsr_00->bLookup = (uint)(isPrefix == 0);
      }
      else {
        iVar2 = p->aIndex[1].nPrefix;
        if (nTerm == iVar2) {
          iVar8 = 1;
        }
        else {
          pFVar6 = p->aIndex + 2;
          iVar8 = 1;
          pFVar7 = pFVar6;
          do {
            iVar8 = iVar8 + 1;
            if (iVar8 == iVar5) {
              iVar8 = 1;
              goto joined_r0x001d5d4b;
            }
            piVar4 = &pFVar7->nPrefix;
            pFVar7 = pFVar7 + 1;
          } while (nTerm != *piVar4);
        }
        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);
        pCsr_00->bLookup = 1;
      }
      goto LAB_001d5cb1;
    }
LAB_001d5cdc:
    pExpr->pPhrase->iDoclistToken = -1;
  }
  return;
joined_r0x001d5d4b:
  if (iVar2 == nTerm + 1) goto LAB_001d5d60;
  iVar8 = iVar8 + 1;
  if (iVar5 == iVar8) goto LAB_001d5d00;
  iVar2 = pFVar6->nPrefix;
  pFVar6 = pFVar6 + 1;
  goto joined_r0x001d5d4b;
LAB_001d5d60:
  iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);
  if (iVar5 == 0) {
    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);
LAB_001d5cb1:
    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;
    if (iVar5 == 0) {
      iVar9 = iVar9 + 1;
      if (iVar1 == iVar9) goto LAB_001d5cdc;
      goto LAB_001d5be0;
    }
  }
  else {
    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;
  }
LAB_001d5de5:
  *pRc = iVar5;
  return;
}



void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)

{
  long lVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  undefined8 uVar8;
  int iVar9;
  long lVar10;
  int *piVar11;
  int *piVar12;
  int iVar13;
  long lVar14;
  int iVar15;
  
  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {
    iVar3 = *param_2;
    while (iVar3 != 5) {
      *param_4 = *param_4 + (uint)(iVar3 == 4);
      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);
      param_2 = *(int **)(param_2 + 6);
      if (param_2 == (int *)0x0) {
        return;
      }
      if (*param_5 != 0) {
        return;
      }
      iVar3 = *param_2;
    }
    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);
    *param_3 = *param_3 + iVar3;
    if (0 < iVar3) {
      iVar15 = 0;
LAB_001d5be0:
      lVar14 = (long)iVar15;
      lVar7 = *(long *)(param_2 + 8);
      lVar1 = lVar7 + lVar14 * 0x28;
      iVar4 = *(int *)(lVar1 + 100);
      iVar5 = *(int *)(lVar1 + 0x60);
      uVar8 = *(undefined8 *)(lVar1 + 0x58);
      lVar10 = FUN_00132490(0x58);
      if (lVar10 == 0) {
        *(undefined8 *)(lVar1 + 0x78) = 0;
        iVar9 = 7;
        goto LAB_001d5de5;
      }
      lVar1 = *param_1;
      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {
LAB_001d5d00:
        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);
        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);
      }
      else {
        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);
        if (iVar5 == iVar6) {
          iVar13 = 1;
        }
        else {
          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);
          iVar13 = 1;
          piVar12 = piVar11;
          do {
            iVar13 = iVar13 + 1;
            if (iVar13 == iVar9) {
              iVar13 = 1;
              goto joined_r0x001d5d4b;
            }
            iVar2 = *piVar12;
            piVar12 = piVar12 + 10;
          } while (iVar5 != iVar2);
        }
        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);
        *(undefined4 *)(lVar10 + 0x30) = 1;
      }
      goto LAB_001d5cb1;
    }
LAB_001d5cdc:
    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;
  }
  return;
joined_r0x001d5d4b:
  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;
  iVar13 = iVar13 + 1;
  if (iVar9 == iVar13) goto LAB_001d5d00;
  iVar6 = *piVar11;
  piVar11 = piVar11 + 10;
  goto joined_r0x001d5d4b;
LAB_001d5d60:
  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);
  if (iVar9 == 0) {
    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);
LAB_001d5cb1:
    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;
    if (iVar9 == 0) {
      iVar15 = iVar15 + 1;
      if (iVar3 == iVar15) goto LAB_001d5cdc;
      goto LAB_001d5be0;
    }
  }
  else {
    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;
  }
LAB_001d5de5:
  *param_5 = iVar9;
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],R8
TEST RSI,RSI
JZ 0x001d5ce7
MOV R14D,dword ptr [R8]
TEST R14D,R14D
JNZ 0x001d5ce7
MOV EAX,dword ptr [RSI]
MOV R12,RDI
MOV RBX,RSI
MOV RBP,RDX
MOV R13,RCX
MOV R15,qword ptr [RSP + 0x28]
CMP EAX,0x5
JZ 0x001d5bc1
CMP EAX,0x4
MOV R8,R15
MOV RCX,R13
MOV RDX,RBP
SETZ AL
MOV RDI,R12
MOVZX EAX,AL
ADD dword ptr [R13],EAX
MOV RSI,qword ptr [RBX + 0x10]
CALL 0x001d5b40
MOV RBX,qword ptr [RBX + 0x18]
TEST RBX,RBX
JZ 0x001d5ce7
MOV EDI,dword ptr [R15]
TEST EDI,EDI
JNZ 0x001d5ce7
MOV EAX,dword ptr [RBX]
CMP EAX,0x5
JNZ 0x001d5b80
MOV RAX,qword ptr [RBX + 0x20]
MOV EAX,dword ptr [RAX + 0x50]
ADD dword ptr [RBP],EAX
MOV dword ptr [RSP + 0x24],EAX
TEST EAX,EAX
JLE 0x001d5cdc
MOV qword ptr [RSP + 0x18],RBX
NOP dword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x18]
MOVSXD R13,R14D
MOV RAX,qword ptr [RAX + 0x20]
MOV RDI,RAX
MOV qword ptr [RSP + 0x10],RAX
LEA RAX,[R13 + R13*0x4]
LEA RDX,[RDI + RAX*0x8]
MOV EDI,0x58
MOV EAX,dword ptr [RDX + 0x64]
MOV R15D,dword ptr [RDX + 0x60]
MOV qword ptr [RSP + 0x8],RDX
MOV RBX,qword ptr [RDX + 0x58]
MOV dword ptr [RSP],EAX
CALL 0x00132490
MOV RDX,qword ptr [RSP + 0x8]
TEST RAX,RAX
MOV RBP,RAX
JZ 0x001d5dd8
MOV ESI,dword ptr [RSP]
MOV R11,qword ptr [R12]
TEST ESI,ESI
JZ 0x001d5d00
MOV ESI,dword ptr [R11 + 0x1e0]
CMP ESI,0x1
JLE 0x001d5d00
MOV RAX,qword ptr [R11 + 0x1e8]
MOV EDI,dword ptr [RAX + 0x28]
CMP R15D,EDI
JZ 0x001d5e00
ADD RAX,0x50
MOV EDX,0x1
MOV RCX,RAX
NOP dword ptr [RAX]
ADD EDX,0x1
CMP EDX,ESI
JZ 0x001d5d40
ADD RCX,0x28
CMP R15D,dword ptr [RCX + -0x28]
JNZ 0x001d5c70
SUB RSP,0x8
MOV ESI,dword ptr [R12 + 0x20]
MOV R9D,R15D
MOV R8,RBX
PUSH RBP
MOV ECX,0xfffffffe
MOV RDI,R11
PUSH 0x0
PUSH 0x0
CALL 0x001d5b00
MOV dword ptr [RBP + 0x30],0x1
ADD RSP,0x20
MOV RDI,qword ptr [RSP + 0x10]
LEA RDX,[R13 + R13*0x4]
MOV qword ptr [RDI + RDX*0x8 + 0x78],RBP
TEST EAX,EAX
JNZ 0x001d5de5
ADD R14D,0x1
CMP dword ptr [RSP + 0x24],R14D
JNZ 0x001d5be0
MOV RBX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RBX + 0x20]
MOV dword ptr [RAX + 0x3c],0xffffffff
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
SUB RSP,0x8
MOV ESI,dword ptr [R12 + 0x20]
XOR EDX,EDX
MOV ECX,0xfffffffe
PUSH RBP
MOV R9D,R15D
MOV R8,RBX
MOV RDI,R11
PUSH 0x0
MOV EAX,dword ptr [RSP + 0x18]
PUSH RAX
CALL 0x001d5b00
ADD RSP,0x20
MOV ECX,dword ptr [RSP]
XOR EDX,EDX
TEST ECX,ECX
SETZ DL
MOV dword ptr [RBP + 0x30],EDX
JMP 0x001d5cb1
LEA ECX,[R15 + 0x1]
MOV EDX,0x1
CMP EDI,ECX
JZ 0x001d5d60
NOP dword ptr [RAX]
ADD EDX,0x1
CMP ESI,EDX
JZ 0x001d5d00
ADD RAX,0x28
CMP dword ptr [RAX + -0x28],ECX
JNZ 0x001d5d50
SUB RSP,0x8
MOV ESI,dword ptr [R12 + 0x20]
MOV RDI,R11
MOV R9D,R15D
PUSH RBP
MOV R8,RBX
MOV ECX,0xfffffffe
PUSH 0x0
PUSH 0x1
MOV qword ptr [RSP + 0x20],R11
CALL 0x001d5b00
ADD RSP,0x20
MOV R11,qword ptr [RSP]
TEST EAX,EAX
JZ 0x001d5da8
MOV RCX,qword ptr [RSP + 0x10]
LEA RDX,[R13 + R13*0x4]
MOV qword ptr [RCX + RDX*0x8 + 0x78],RBP
JMP 0x001d5de5
SUB RSP,0x8
MOV ESI,dword ptr [R12 + 0x20]
MOV R9D,R15D
MOV R8,RBX
PUSH RBP
MOV ECX,0xfffffffe
XOR EDX,EDX
MOV RDI,R11
PUSH 0x0
PUSH 0x0
CALL 0x001d5530
ADD RSP,0x20
JMP 0x001d5cb1
MOV qword ptr [RDX + 0x78],0x0
MOV EAX,0x7
MOV RCX,qword ptr [RSP + 0x28]
MOV dword ptr [RCX],EAX
ADD RSP,0x38
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EDX,0x1
JMP 0x001d5c85
(translation_unit "void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}\n\n" (function_definition "void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" primitive_type (function_declarator "FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" identifier (parameter_list "(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long lVar14;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (if_statement "if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (*param_5 == 0))" ( (binary_expression "(param_2 != (int *)0x0) && (*param_5 == 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_5 == 0)" ( (binary_expression "*param_5 == 0" (pointer_expression "*param_5" * identifier) == number_literal) ))) )) (compound_statement "{\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" { (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" while (parenthesized_expression "(iVar3 != 5)" ( (binary_expression "iVar3 != 5" identifier != number_literal) )) (compound_statement "{\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" { (expression_statement "*param_4 = *param_4 + (uint)(iVar3 == 4);" (assignment_expression "*param_4 = *param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" * identifier) + (call_expression "(uint)(iVar3 == 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) ))))) ;) (expression_statement "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);" (call_expression "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 4)" * (cast_expression "(undefined8 *)(param_2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) (expression_statement "param_2 = *(int **)(param_2 + 6);" (assignment_expression "param_2 = *(int **)(param_2 + 6)" identifier = (pointer_expression "*(int **)(param_2 + 6)" * (cast_expression "(int **)(param_2 + 6)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (int *)0x0) {\n        return;\n      }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (*param_5 != 0) {\n        return;\n      }" if (parenthesized_expression "(*param_5 != 0)" ( (binary_expression "*param_5 != 0" (pointer_expression "*param_5" * identifier) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);" (assignment_expression "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50)" identifier = (pointer_expression "*(int *)(*(long *)(param_2 + 8) + 0x50)" * (cast_expression "(int *)(*(long *)(param_2 + 8) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + 0x50)" ( (binary_expression "*(long *)(param_2 + 8) + 0x50" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" * identifier) + identifier)) ;) (if_statement "if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001d5be0:\n      lVar14 = (long)iVar15;" statement_identifier : (expression_statement "lVar14 = (long)iVar15;" (assignment_expression "lVar14 = (long)iVar15" identifier = (cast_expression "(long)iVar15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (expression_statement "lVar7 = *(long *)(param_2 + 8);" (assignment_expression "lVar7 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = lVar7 + lVar14 * 0x28;" (assignment_expression "lVar1 = lVar7 + lVar14 * 0x28" identifier = (binary_expression "lVar7 + lVar14 * 0x28" identifier + (binary_expression "lVar14 * 0x28" identifier * number_literal))) ;) (expression_statement "iVar4 = *(int *)(lVar1 + 100);" (assignment_expression "iVar4 = *(int *)(lVar1 + 100)" identifier = (pointer_expression "*(int *)(lVar1 + 100)" * (cast_expression "(int *)(lVar1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 100)" ( (binary_expression "lVar1 + 100" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(lVar1 + 0x60);" (assignment_expression "iVar5 = *(int *)(lVar1 + 0x60)" identifier = (pointer_expression "*(int *)(lVar1 + 0x60)" * (cast_expression "(int *)(lVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x60)" ( (binary_expression "lVar1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined8 *)(lVar1 + 0x58);" (assignment_expression "uVar8 = *(undefined8 *)(lVar1 + 0x58)" identifier = (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" * (cast_expression "(undefined8 *)(lVar1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x58)" ( (binary_expression "lVar1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "lVar10 = FUN_00132490(0x58);" (assignment_expression "lVar10 = FUN_00132490(0x58)" identifier = (call_expression "FUN_00132490(0x58)" identifier (argument_list "(0x58)" ( number_literal )))) ;) (if_statement "if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" { (expression_statement "*(undefined8 *)(lVar1 + 0x78) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x78) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" * (cast_expression "(undefined8 *)(lVar1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x78)" ( (binary_expression "lVar1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_001d5de5;" goto statement_identifier ;) })) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" if (parenthesized_expression "((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2))" ( (binary_expression "(iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" ( (comma_expression "iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2" (assignment_expression "iVar9 = *(int *)(lVar1 + 0x1e0)" identifier = (pointer_expression "*(int *)(lVar1 + 0x1e0)" * (cast_expression "(int *)(lVar1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e0)" ( (binary_expression "lVar1 + 0x1e0" identifier + number_literal) ))))) , (binary_expression "iVar9 < 2" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }" { (labeled_statement "LAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" statement_identifier : (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , number_literal , number_literal , identifier , identifier , identifier , number_literal , identifier )))) ;)) (expression_statement "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);" (assignment_expression "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0)" (pointer_expression "*(uint *)(lVar10 + 0x30)" * (cast_expression "(uint *)(lVar10 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 0x30)" ( (binary_expression "lVar10 + 0x30" identifier + number_literal) )))) = (call_expression "(uint)(iVar4 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )))) ;) }) (else_clause "else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" else (compound_statement "{\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" { (expression_statement "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);" (assignment_expression "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" identifier = (pointer_expression "*(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" * (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x28)" ( (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x28" (pointer_expression "*(long *)(lVar1 + 0x1e8)" * (cast_expression "(long *)(lVar1 + 0x1e8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e8)" ( (binary_expression "lVar1 + 0x1e8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" if (parenthesized_expression "(iVar5 == iVar6)" ( (binary_expression "iVar5 == iVar6" identifier == identifier) )) (compound_statement "{\n          iVar13 = 1;\n        }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" else (compound_statement "{\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" { (expression_statement "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);" (assignment_expression "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" identifier = (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x50)" ( (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x50" (pointer_expression "*(long *)(lVar1 + 0x1e8)" * (cast_expression "(long *)(lVar1 + 0x1e8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e8)" ( (binary_expression "lVar1 + 0x1e8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);" do (compound_statement "{\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (if_statement "if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" if (parenthesized_expression "(iVar13 == iVar9)" ( (binary_expression "iVar13 == iVar9" identifier == identifier) )) (compound_statement "{\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) })) (expression_statement "iVar2 = *piVar12;" (assignment_expression "iVar2 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (expression_statement "piVar12 = piVar12 + 10;" (assignment_expression "piVar12 = piVar12 + 10" identifier = (binary_expression "piVar12 + 10" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar2)" ( (binary_expression "iVar5 != iVar2" identifier != identifier) )) ;) }))) (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(lVar10 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(lVar10 + 0x30) = 1" (pointer_expression "*(undefined4 *)(lVar10 + 0x30)" * (cast_expression "(undefined4 *)(lVar10 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 0x30)" ( (binary_expression "lVar10 + 0x30" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_001d5cb1;" goto statement_identifier ;) })) (labeled_statement "LAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" statement_identifier : (expression_statement "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + 0x3c)" ( (binary_expression "*(long *)(param_2 + 8) + 0x3c" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;)) })) (return_statement "return;" return ;) (labeled_statement "joined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" statement_identifier : (if_statement "if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" if (parenthesized_expression "(iVar6 == iVar5 + 1)" ( (binary_expression "iVar6 == iVar5 + 1" identifier == (binary_expression "iVar5 + 1" identifier + number_literal)) )) (goto_statement "goto LAB_001d5d60;" goto statement_identifier ;))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (if_statement "if (iVar9 == iVar13) goto LAB_001d5d00;" if (parenthesized_expression "(iVar9 == iVar13)" ( (binary_expression "iVar9 == iVar13" identifier == identifier) )) (goto_statement "goto LAB_001d5d00;" goto statement_identifier ;)) (expression_statement "iVar6 = *piVar11;" (assignment_expression "iVar6 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar11 = piVar11 + 10;" (assignment_expression "piVar11 = piVar11 + 10" identifier = (binary_expression "piVar11 + 10" identifier + number_literal)) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) (labeled_statement "LAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" statement_identifier : (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;)) (if_statement "if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }" { (expression_statement "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier = (call_expression "FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , number_literal , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (labeled_statement "LAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" statement_identifier : (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" * (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" ( (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" identifier + number_literal) + (binary_expression "lVar14 * 0x28" identifier * number_literal)) )))) = identifier) ;)) (if_statement "if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" { (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == iVar15) goto LAB_001d5cdc;" if (parenthesized_expression "(iVar3 == iVar15)" ( (binary_expression "iVar3 == iVar15" identifier == identifier) )) (goto_statement "goto LAB_001d5cdc;" goto statement_identifier ;)) (goto_statement "goto LAB_001d5be0;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" else (compound_statement "{\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" { (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" * (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" ( (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" identifier + number_literal) + (binary_expression "lVar14 * 0x28" identifier * number_literal)) )))) = identifier) ;) }))) (labeled_statement "LAB_001d5de5:\n  *param_5 = iVar9;" statement_identifier : (expression_statement "*param_5 = iVar9;" (assignment_expression "*param_5 = iVar9" (pointer_expression "*param_5" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "void fts3EvalAllocateReaders(Fts3Cursor *pCsr,Fts3Expr *pExpr,int *pnToken,int *pnOr,int *pRc)\n\n{\n  int iVar1;\n  int isPrefix;\n  int nTerm;\n  int iVar2;\n  Fts3Phrase *pFVar3;\n  char *zTerm;\n  Fts3Table *p;\n  int *piVar4;\n  int iVar5;\n  Fts3MultiSegReader *pCsr_00;\n  Fts3Index *pFVar6;\n  Fts3Index *pFVar7;\n  int iVar8;\n  int iVar9;\n  \n  if ((pExpr != (Fts3Expr *)0x0) && (*pRc == 0)) {\n    iVar1 = pExpr->eType;\n    while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }\n    iVar1 = pExpr->pPhrase->nToken;\n    *pnToken = *pnToken + iVar1;\n    if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar2 == nTerm + 1) goto LAB_001d5d60;\n  iVar8 = iVar8 + 1;\n  if (iVar5 == iVar8) goto LAB_001d5d00;\n  iVar2 = pFVar6->nPrefix;\n  pFVar6 = pFVar6 + 1;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);\n  if (iVar5 == 0) {\n    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);\nLAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n    if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }\nLAB_001d5de5:\n  *pRc = iVar5;\n  return;\n}\n\n" (function_definition "void fts3EvalAllocateReaders(Fts3Cursor *pCsr,Fts3Expr *pExpr,int *pnToken,int *pnOr,int *pRc)\n\n{\n  int iVar1;\n  int isPrefix;\n  int nTerm;\n  int iVar2;\n  Fts3Phrase *pFVar3;\n  char *zTerm;\n  Fts3Table *p;\n  int *piVar4;\n  int iVar5;\n  Fts3MultiSegReader *pCsr_00;\n  Fts3Index *pFVar6;\n  Fts3Index *pFVar7;\n  int iVar8;\n  int iVar9;\n  \n  if ((pExpr != (Fts3Expr *)0x0) && (*pRc == 0)) {\n    iVar1 = pExpr->eType;\n    while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }\n    iVar1 = pExpr->pPhrase->nToken;\n    *pnToken = *pnToken + iVar1;\n    if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar2 == nTerm + 1) goto LAB_001d5d60;\n  iVar8 = iVar8 + 1;\n  if (iVar5 == iVar8) goto LAB_001d5d00;\n  iVar2 = pFVar6->nPrefix;\n  pFVar6 = pFVar6 + 1;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);\n  if (iVar5 == 0) {\n    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);\nLAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n    if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }\nLAB_001d5de5:\n  *pRc = iVar5;\n  return;\n}" primitive_type (function_declarator "fts3EvalAllocateReaders(Fts3Cursor *pCsr,Fts3Expr *pExpr,int *pnToken,int *pnOr,int *pRc)" identifier (parameter_list "(Fts3Cursor *pCsr,Fts3Expr *pExpr,int *pnToken,int *pnOr,int *pRc)" ( (parameter_declaration "Fts3Cursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) , (parameter_declaration "Fts3Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) , (parameter_declaration "int *pnToken" primitive_type (pointer_declarator "*pnToken" * identifier)) , (parameter_declaration "int *pnOr" primitive_type (pointer_declarator "*pnOr" * identifier)) , (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int isPrefix;\n  int nTerm;\n  int iVar2;\n  Fts3Phrase *pFVar3;\n  char *zTerm;\n  Fts3Table *p;\n  int *piVar4;\n  int iVar5;\n  Fts3MultiSegReader *pCsr_00;\n  Fts3Index *pFVar6;\n  Fts3Index *pFVar7;\n  int iVar8;\n  int iVar9;\n  \n  if ((pExpr != (Fts3Expr *)0x0) && (*pRc == 0)) {\n    iVar1 = pExpr->eType;\n    while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }\n    iVar1 = pExpr->pPhrase->nToken;\n    *pnToken = *pnToken + iVar1;\n    if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar2 == nTerm + 1) goto LAB_001d5d60;\n  iVar8 = iVar8 + 1;\n  if (iVar5 == iVar8) goto LAB_001d5d00;\n  iVar2 = pFVar6->nPrefix;\n  pFVar6 = pFVar6 + 1;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);\n  if (iVar5 == 0) {\n    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);\nLAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n    if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }\nLAB_001d5de5:\n  *pRc = iVar5;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int isPrefix;" primitive_type identifier ;) (declaration "int nTerm;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Fts3Phrase *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "char *zTerm;" primitive_type (pointer_declarator "*zTerm" * identifier) ;) (declaration "Fts3Table *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Fts3MultiSegReader *pCsr_00;" type_identifier (pointer_declarator "*pCsr_00" * identifier) ;) (declaration "Fts3Index *pFVar6;" type_identifier (pointer_declarator "*pFVar6" * identifier) ;) (declaration "Fts3Index *pFVar7;" type_identifier (pointer_declarator "*pFVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (if_statement "if ((pExpr != (Fts3Expr *)0x0) && (*pRc == 0)) {\n    iVar1 = pExpr->eType;\n    while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }\n    iVar1 = pExpr->pPhrase->nToken;\n    *pnToken = *pnToken + iVar1;\n    if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;\n  }" if (parenthesized_expression "((pExpr != (Fts3Expr *)0x0) && (*pRc == 0))" ( (binary_expression "(pExpr != (Fts3Expr *)0x0) && (*pRc == 0)" (parenthesized_expression "(pExpr != (Fts3Expr *)0x0)" ( (binary_expression "pExpr != (Fts3Expr *)0x0" identifier != (cast_expression "(Fts3Expr *)0x0" ( (type_descriptor "Fts3Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pRc == 0)" ( (binary_expression "*pRc == 0" (pointer_expression "*pRc" * identifier) == number_literal) ))) )) (compound_statement "{\n    iVar1 = pExpr->eType;\n    while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }\n    iVar1 = pExpr->pPhrase->nToken;\n    *pnToken = *pnToken + iVar1;\n    if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;\n  }" { (expression_statement "iVar1 = pExpr->eType;" (assignment_expression "iVar1 = pExpr->eType" identifier = (field_expression "pExpr->eType" identifier -> field_identifier)) ;) (while_statement "while (iVar1 != 5) {\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }" while (parenthesized_expression "(iVar1 != 5)" ( (binary_expression "iVar1 != 5" identifier != number_literal) )) (compound_statement "{\n      *pnOr = *pnOr + (uint)(iVar1 == 4);\n      fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);\n      pExpr = pExpr->pRight;\n      if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }\n      if (*pRc != 0) {\n        return;\n      }\n      iVar1 = pExpr->eType;\n    }" { (expression_statement "*pnOr = *pnOr + (uint)(iVar1 == 4);" (assignment_expression "*pnOr = *pnOr + (uint)(iVar1 == 4)" (pointer_expression "*pnOr" * identifier) = (binary_expression "*pnOr + (uint)(iVar1 == 4)" (pointer_expression "*pnOr" * identifier) + (call_expression "(uint)(iVar1 == 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) ))))) ;) (expression_statement "fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc);" (call_expression "fts3EvalAllocateReaders(pCsr,pExpr->pLeft,pnToken,pnOr,pRc)" identifier (argument_list "(pCsr,pExpr->pLeft,pnToken,pnOr,pRc)" ( identifier , (field_expression "pExpr->pLeft" identifier -> field_identifier) , identifier , identifier , identifier ))) ;) (expression_statement "pExpr = pExpr->pRight;" (assignment_expression "pExpr = pExpr->pRight" identifier = (field_expression "pExpr->pRight" identifier -> field_identifier)) ;) (if_statement "if (pExpr == (Fts3Expr *)0x0) {\n        return;\n      }" if (parenthesized_expression "(pExpr == (Fts3Expr *)0x0)" ( (binary_expression "pExpr == (Fts3Expr *)0x0" identifier == (cast_expression "(Fts3Expr *)0x0" ( (type_descriptor "Fts3Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (*pRc != 0) {\n        return;\n      }" if (parenthesized_expression "(*pRc != 0)" ( (binary_expression "*pRc != 0" (pointer_expression "*pRc" * identifier) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = pExpr->eType;" (assignment_expression "iVar1 = pExpr->eType" identifier = (field_expression "pExpr->eType" identifier -> field_identifier)) ;) })) (expression_statement "iVar1 = pExpr->pPhrase->nToken;" (assignment_expression "iVar1 = pExpr->pPhrase->nToken" identifier = (field_expression "pExpr->pPhrase->nToken" (field_expression "pExpr->pPhrase" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "*pnToken = *pnToken + iVar1;" (assignment_expression "*pnToken = *pnToken + iVar1" (pointer_expression "*pnToken" * identifier) = (binary_expression "*pnToken + iVar1" (pointer_expression "*pnToken" * identifier) + identifier)) ;) (if_statement "if (0 < iVar1) {\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar9 = 0;\nLAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;\n      isPrefix = pFVar3->aToken[iVar9].isPrefix;\n      nTerm = pFVar3->aToken[iVar9].n;\n      zTerm = pFVar3->aToken[iVar9].z;\n      pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);\n      if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }\n      p = (Fts3Table *)(pCsr->base).pVtab;\n      if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }\n      goto LAB_001d5cb1;\n    }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001d5be0:\n      pFVar3 = pExpr->pPhrase;" statement_identifier : (expression_statement "pFVar3 = pExpr->pPhrase;" (assignment_expression "pFVar3 = pExpr->pPhrase" identifier = (field_expression "pExpr->pPhrase" identifier -> field_identifier)) ;)) (expression_statement "isPrefix = pFVar3->aToken[iVar9].isPrefix;" (assignment_expression "isPrefix = pFVar3->aToken[iVar9].isPrefix" identifier = (field_expression "pFVar3->aToken[iVar9].isPrefix" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "nTerm = pFVar3->aToken[iVar9].n;" (assignment_expression "nTerm = pFVar3->aToken[iVar9].n" identifier = (field_expression "pFVar3->aToken[iVar9].n" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "zTerm = pFVar3->aToken[iVar9].z;" (assignment_expression "zTerm = pFVar3->aToken[iVar9].z" identifier = (field_expression "pFVar3->aToken[iVar9].z" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58);" (assignment_expression "pCsr_00 = (Fts3MultiSegReader *)sqlite3_malloc(0x58)" identifier = (cast_expression "(Fts3MultiSegReader *)sqlite3_malloc(0x58)" ( (type_descriptor "Fts3MultiSegReader *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc(0x58)" identifier (argument_list "(0x58)" ( number_literal ))))) ;) (if_statement "if (pCsr_00 == (Fts3MultiSegReader *)0x0) {\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }" if (parenthesized_expression "(pCsr_00 == (Fts3MultiSegReader *)0x0)" ( (binary_expression "pCsr_00 == (Fts3MultiSegReader *)0x0" identifier == (cast_expression "(Fts3MultiSegReader *)0x0" ( (type_descriptor "Fts3MultiSegReader *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;\n        iVar5 = 7;\n        goto LAB_001d5de5;\n      }" { (expression_statement "pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0;" (assignment_expression "pFVar3->aToken[iVar9].pSegcsr = (Fts3MultiSegReader *)0x0" (field_expression "pFVar3->aToken[iVar9].pSegcsr" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier) = (cast_expression "(Fts3MultiSegReader *)0x0" ( (type_descriptor "Fts3MultiSegReader *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar5 = 7;" (assignment_expression "iVar5 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_001d5de5;" goto statement_identifier ;) })) (expression_statement "p = (Fts3Table *)(pCsr->base).pVtab;" (assignment_expression "p = (Fts3Table *)(pCsr->base).pVtab" identifier = (cast_expression "(Fts3Table *)(pCsr->base).pVtab" ( (type_descriptor "Fts3Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pCsr->base).pVtab" (parenthesized_expression "(pCsr->base)" ( (field_expression "pCsr->base" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if ((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)) {\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }\n      else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }" if (parenthesized_expression "((isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2))" ( (binary_expression "(isPrefix == 0) || (iVar5 = p->nIndex, iVar5 < 2)" (parenthesized_expression "(isPrefix == 0)" ( (binary_expression "isPrefix == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar5 = p->nIndex, iVar5 < 2)" ( (comma_expression "iVar5 = p->nIndex, iVar5 < 2" (assignment_expression "iVar5 = p->nIndex" identifier = (field_expression "p->nIndex" identifier -> field_identifier)) , (binary_expression "iVar5 < 2" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);\n        pCsr_00->bLookup = (uint)(isPrefix == 0);\n      }" { (labeled_statement "LAB_001d5d00:\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);" statement_identifier : (expression_statement "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00);" (assignment_expression "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00)" identifier = (call_expression "sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00)" identifier (argument_list "(p,pCsr->iLangid,0,-2,zTerm,nTerm,isPrefix,0,pCsr_00)" ( identifier , (field_expression "pCsr->iLangid" identifier -> field_identifier) , number_literal , number_literal , identifier , identifier , identifier , number_literal , identifier )))) ;)) (expression_statement "pCsr_00->bLookup = (uint)(isPrefix == 0);" (assignment_expression "pCsr_00->bLookup = (uint)(isPrefix == 0)" (field_expression "pCsr_00->bLookup" identifier -> field_identifier) = (call_expression "(uint)(isPrefix == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(isPrefix == 0)" ( (binary_expression "isPrefix == 0" identifier == number_literal) )))) ;) }) (else_clause "else {\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }" else (compound_statement "{\n        iVar2 = p->aIndex[1].nPrefix;\n        if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }\n        iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);\n        pCsr_00->bLookup = 1;\n      }" { (expression_statement "iVar2 = p->aIndex[1].nPrefix;" (assignment_expression "iVar2 = p->aIndex[1].nPrefix" identifier = (field_expression "p->aIndex[1].nPrefix" (subscript_expression "p->aIndex[1]" (field_expression "p->aIndex" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if (nTerm == iVar2) {\n          iVar8 = 1;\n        }\n        else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }" if (parenthesized_expression "(nTerm == iVar2)" ( (binary_expression "nTerm == iVar2" identifier == identifier) )) (compound_statement "{\n          iVar8 = 1;\n        }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }" else (compound_statement "{\n          pFVar6 = p->aIndex + 2;\n          iVar8 = 1;\n          pFVar7 = pFVar6;\n          do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);\n        }" { (expression_statement "pFVar6 = p->aIndex + 2;" (assignment_expression "pFVar6 = p->aIndex + 2" identifier = (binary_expression "p->aIndex + 2" (field_expression "p->aIndex" identifier -> field_identifier) + number_literal)) ;) (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "pFVar7 = pFVar6;" (assignment_expression "pFVar7 = pFVar6" identifier = identifier) ;) (do_statement "do {\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          } while (nTerm != *piVar4);" do (compound_statement "{\n            iVar8 = iVar8 + 1;\n            if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            piVar4 = &pFVar7->nPrefix;\n            pFVar7 = pFVar7 + 1;\n          }" { (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar8 == iVar5) {\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }" if (parenthesized_expression "(iVar8 == iVar5)" ( (binary_expression "iVar8 == iVar5" identifier == identifier) )) (compound_statement "{\n              iVar8 = 1;\n              goto joined_r0x001d5d4b;\n            }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) })) (expression_statement "piVar4 = &pFVar7->nPrefix;" (assignment_expression "piVar4 = &pFVar7->nPrefix" identifier = (pointer_expression "&pFVar7->nPrefix" & (field_expression "pFVar7->nPrefix" identifier -> field_identifier))) ;) (expression_statement "pFVar7 = pFVar7 + 1;" (assignment_expression "pFVar7 = pFVar7 + 1" identifier = (binary_expression "pFVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(nTerm != *piVar4)" ( (binary_expression "nTerm != *piVar4" identifier != (pointer_expression "*piVar4" * identifier)) )) ;) }))) (expression_statement "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00);" (assignment_expression "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00)" identifier = (call_expression "sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00)" identifier (argument_list "(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,0,0,pCsr_00)" ( identifier , (field_expression "pCsr->iLangid" identifier -> field_identifier) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "pCsr_00->bLookup = 1;" (assignment_expression "pCsr_00->bLookup = 1" (field_expression "pCsr_00->bLookup" identifier -> field_identifier) = number_literal) ;) }))) (goto_statement "goto LAB_001d5cb1;" goto statement_identifier ;) })) (labeled_statement "LAB_001d5cdc:\n    pExpr->pPhrase->iDoclistToken = -1;" statement_identifier : (expression_statement "pExpr->pPhrase->iDoclistToken = -1;" (assignment_expression "pExpr->pPhrase->iDoclistToken = -1" (field_expression "pExpr->pPhrase->iDoclistToken" (field_expression "pExpr->pPhrase" identifier -> field_identifier) -> field_identifier) = number_literal) ;)) })) (return_statement "return;" return ;) (labeled_statement "joined_r0x001d5d4b:\n  if (iVar2 == nTerm + 1) goto LAB_001d5d60;" statement_identifier : (if_statement "if (iVar2 == nTerm + 1) goto LAB_001d5d60;" if (parenthesized_expression "(iVar2 == nTerm + 1)" ( (binary_expression "iVar2 == nTerm + 1" identifier == (binary_expression "nTerm + 1" identifier + number_literal)) )) (goto_statement "goto LAB_001d5d60;" goto statement_identifier ;))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (iVar5 == iVar8) goto LAB_001d5d00;" if (parenthesized_expression "(iVar5 == iVar8)" ( (binary_expression "iVar5 == iVar8" identifier == identifier) )) (goto_statement "goto LAB_001d5d00;" goto statement_identifier ;)) (expression_statement "iVar2 = pFVar6->nPrefix;" (assignment_expression "iVar2 = pFVar6->nPrefix" identifier = (field_expression "pFVar6->nPrefix" identifier -> field_identifier)) ;) (expression_statement "pFVar6 = pFVar6 + 1;" (assignment_expression "pFVar6 = pFVar6 + 1" identifier = (binary_expression "pFVar6 + 1" identifier + number_literal)) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) (labeled_statement "LAB_001d5d60:\n  iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);" statement_identifier : (expression_statement "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00);" (assignment_expression "iVar5 = sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00)" identifier = (call_expression "sqlite3Fts3SegReaderCursor(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00)" identifier (argument_list "(p,pCsr->iLangid,iVar8,-2,zTerm,nTerm,1,0,pCsr_00)" ( identifier , (field_expression "pCsr->iLangid" identifier -> field_identifier) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;)) (if_statement "if (iVar5 == 0) {\n    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);\nLAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n    if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);\nLAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n    if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }" { (expression_statement "iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00);" (assignment_expression "iVar5 = fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00)" identifier = (call_expression "fts3SegReaderCursor(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00)" identifier (argument_list "(p,pCsr->iLangid,0,-2,zTerm,nTerm,0,0,pCsr_00)" ( identifier , (field_expression "pCsr->iLangid" identifier -> field_identifier) , number_literal , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (labeled_statement "LAB_001d5cb1:\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;" statement_identifier : (expression_statement "pFVar3->aToken[iVar9].pSegcsr = pCsr_00;" (assignment_expression "pFVar3->aToken[iVar9].pSegcsr = pCsr_00" (field_expression "pFVar3->aToken[iVar9].pSegcsr" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;)) (if_statement "if (iVar5 == 0) {\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar9 = iVar9 + 1;\n      if (iVar1 == iVar9) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" { (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (if_statement "if (iVar1 == iVar9) goto LAB_001d5cdc;" if (parenthesized_expression "(iVar1 == iVar9)" ( (binary_expression "iVar1 == iVar9" identifier == identifier) )) (goto_statement "goto LAB_001d5cdc;" goto statement_identifier ;)) (goto_statement "goto LAB_001d5be0;" goto statement_identifier ;) })) }) (else_clause "else {\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }" else (compound_statement "{\n    pFVar3->aToken[iVar9].pSegcsr = pCsr_00;\n  }" { (expression_statement "pFVar3->aToken[iVar9].pSegcsr = pCsr_00;" (assignment_expression "pFVar3->aToken[iVar9].pSegcsr = pCsr_00" (field_expression "pFVar3->aToken[iVar9].pSegcsr" (subscript_expression "pFVar3->aToken[iVar9]" (field_expression "pFVar3->aToken" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) }))) (labeled_statement "LAB_001d5de5:\n  *pRc = iVar5;" statement_identifier : (expression_statement "*pRc = iVar5;" (assignment_expression "*pRc = iVar5" (pointer_expression "*pRc" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}\n\n" (function_definition "void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" primitive_type (function_declarator "FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" identifier (parameter_list "(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "long lVar14;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar15;" primitive_type identifier ;) (if_statement "if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (*param_5 == 0))" ( (binary_expression "(param_2 != (int *)0x0) && (*param_5 == 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_5 == 0)" ( (binary_expression "*param_5 == 0" (pointer_expression "*param_5" * identifier) == number_literal) ))) )) (compound_statement "{\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" { (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" while (parenthesized_expression "(iVar3 != 5)" ( (binary_expression "iVar3 != 5" identifier != number_literal) )) (compound_statement "{\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" { (expression_statement "*param_4 = *param_4 + (uint)(iVar3 == 4);" (assignment_expression "*param_4 = *param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" * identifier) = (binary_expression "*param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" * identifier) + (call_expression "(uint)(iVar3 == 4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 == 4)" ( (binary_expression "iVar3 == 4" identifier == number_literal) ))))) ;) (expression_statement "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);" (call_expression "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 4)" * (cast_expression "(undefined8 *)(param_2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , identifier , identifier , identifier ))) ;) (expression_statement "param_2 = *(int **)(param_2 + 6);" (assignment_expression "param_2 = *(int **)(param_2 + 6)" identifier = (pointer_expression "*(int **)(param_2 + 6)" * (cast_expression "(int **)(param_2 + 6)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 6)" ( (binary_expression "param_2 + 6" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (int *)0x0) {\n        return;\n      }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (if_statement "if (*param_5 != 0) {\n        return;\n      }" if (parenthesized_expression "(*param_5 != 0)" ( (binary_expression "*param_5 != 0" (pointer_expression "*param_5" * identifier) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);" (assignment_expression "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50)" identifier = (pointer_expression "*(int *)(*(long *)(param_2 + 8) + 0x50)" * (cast_expression "(int *)(*(long *)(param_2 + 8) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + 0x50)" ( (binary_expression "*(long *)(param_2 + 8) + 0x50" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" * identifier) = (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" * identifier) + identifier)) ;) (if_statement "if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" { (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (labeled_statement "LAB_001d5be0:\n      lVar14 = (long)iVar15;" statement_identifier : (expression_statement "lVar14 = (long)iVar15;" (assignment_expression "lVar14 = (long)iVar15" identifier = (cast_expression "(long)iVar15" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (expression_statement "lVar7 = *(long *)(param_2 + 8);" (assignment_expression "lVar7 = *(long *)(param_2 + 8)" identifier = (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "lVar1 = lVar7 + lVar14 * 0x28;" (assignment_expression "lVar1 = lVar7 + lVar14 * 0x28" identifier = (binary_expression "lVar7 + lVar14 * 0x28" identifier + (binary_expression "lVar14 * 0x28" identifier * number_literal))) ;) (expression_statement "iVar4 = *(int *)(lVar1 + 100);" (assignment_expression "iVar4 = *(int *)(lVar1 + 100)" identifier = (pointer_expression "*(int *)(lVar1 + 100)" * (cast_expression "(int *)(lVar1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 100)" ( (binary_expression "lVar1 + 100" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(lVar1 + 0x60);" (assignment_expression "iVar5 = *(int *)(lVar1 + 0x60)" identifier = (pointer_expression "*(int *)(lVar1 + 0x60)" * (cast_expression "(int *)(lVar1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x60)" ( (binary_expression "lVar1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "uVar8 = *(undefined8 *)(lVar1 + 0x58);" (assignment_expression "uVar8 = *(undefined8 *)(lVar1 + 0x58)" identifier = (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" * (cast_expression "(undefined8 *)(lVar1 + 0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x58)" ( (binary_expression "lVar1 + 0x58" identifier + number_literal) ))))) ;) (expression_statement "lVar10 = FUN_00132490(0x58);" (assignment_expression "lVar10 = FUN_00132490(0x58)" identifier = (call_expression "FUN_00132490(0x58)" identifier (argument_list "(0x58)" ( number_literal )))) ;) (if_statement "if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" { (expression_statement "*(undefined8 *)(lVar1 + 0x78) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x78) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" * (cast_expression "(undefined8 *)(lVar1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x78)" ( (binary_expression "lVar1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_001d5de5;" goto statement_identifier ;) })) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" if (parenthesized_expression "((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2))" ( (binary_expression "(iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" ( (comma_expression "iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2" (assignment_expression "iVar9 = *(int *)(lVar1 + 0x1e0)" identifier = (pointer_expression "*(int *)(lVar1 + 0x1e0)" * (cast_expression "(int *)(lVar1 + 0x1e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e0)" ( (binary_expression "lVar1 + 0x1e0" identifier + number_literal) ))))) , (binary_expression "iVar9 < 2" identifier < number_literal)) ))) )) (compound_statement "{\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }" { (labeled_statement "LAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" statement_identifier : (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , number_literal , number_literal , identifier , identifier , identifier , number_literal , identifier )))) ;)) (expression_statement "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);" (assignment_expression "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0)" (pointer_expression "*(uint *)(lVar10 + 0x30)" * (cast_expression "(uint *)(lVar10 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 0x30)" ( (binary_expression "lVar10 + 0x30" identifier + number_literal) )))) = (call_expression "(uint)(iVar4 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )))) ;) }) (else_clause "else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" else (compound_statement "{\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" { (expression_statement "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);" (assignment_expression "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" identifier = (pointer_expression "*(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" * (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x28)" ( (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x28" (pointer_expression "*(long *)(lVar1 + 0x1e8)" * (cast_expression "(long *)(lVar1 + 0x1e8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e8)" ( (binary_expression "lVar1 + 0x1e8" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" if (parenthesized_expression "(iVar5 == iVar6)" ( (binary_expression "iVar5 == iVar6" identifier == identifier) )) (compound_statement "{\n          iVar13 = 1;\n        }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" else (compound_statement "{\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" { (expression_statement "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);" (assignment_expression "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" identifier = (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x50)" ( (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x50" (pointer_expression "*(long *)(lVar1 + 0x1e8)" * (cast_expression "(long *)(lVar1 + 0x1e8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x1e8)" ( (binary_expression "lVar1 + 0x1e8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);" do (compound_statement "{\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          }" { (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (if_statement "if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" if (parenthesized_expression "(iVar13 == iVar9)" ( (binary_expression "iVar13 == iVar9" identifier == identifier) )) (compound_statement "{\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" { (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" identifier = number_literal) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) })) (expression_statement "iVar2 = *piVar12;" (assignment_expression "iVar2 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (expression_statement "piVar12 = piVar12 + 10;" (assignment_expression "piVar12 = piVar12 + 10" identifier = (binary_expression "piVar12 + 10" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar2)" ( (binary_expression "iVar5 != iVar2" identifier != identifier) )) ;) }))) (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(lVar10 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(lVar10 + 0x30) = 1" (pointer_expression "*(undefined4 *)(lVar10 + 0x30)" * (cast_expression "(undefined4 *)(lVar10 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 0x30)" ( (binary_expression "lVar10 + 0x30" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_001d5cb1;" goto statement_identifier ;) })) (labeled_statement "LAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" statement_identifier : (expression_statement "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + 0x3c)" ( (binary_expression "*(long *)(param_2 + 8) + 0x3c" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;)) })) (return_statement "return;" return ;) (labeled_statement "joined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" statement_identifier : (if_statement "if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" if (parenthesized_expression "(iVar6 == iVar5 + 1)" ( (binary_expression "iVar6 == iVar5 + 1" identifier == (binary_expression "iVar5 + 1" identifier + number_literal)) )) (goto_statement "goto LAB_001d5d60;" goto statement_identifier ;))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" identifier = (binary_expression "iVar13 + 1" identifier + number_literal)) ;) (if_statement "if (iVar9 == iVar13) goto LAB_001d5d00;" if (parenthesized_expression "(iVar9 == iVar13)" ( (binary_expression "iVar9 == iVar13" identifier == identifier) )) (goto_statement "goto LAB_001d5d00;" goto statement_identifier ;)) (expression_statement "iVar6 = *piVar11;" (assignment_expression "iVar6 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar11 = piVar11 + 10;" (assignment_expression "piVar11 = piVar11 + 10" identifier = (binary_expression "piVar11 + 10" identifier + number_literal)) ;) (goto_statement "goto joined_r0x001d5d4b;" goto statement_identifier ;) (labeled_statement "LAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" statement_identifier : (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" identifier = (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , identifier , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;)) (if_statement "if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }" { (expression_statement "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier = (call_expression "FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" identifier (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" ( identifier , (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) , number_literal , number_literal , identifier , identifier , number_literal , number_literal , identifier )))) ;) (labeled_statement "LAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" statement_identifier : (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" * (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" ( (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" identifier + number_literal) + (binary_expression "lVar14 * 0x28" identifier * number_literal)) )))) = identifier) ;)) (if_statement "if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" { (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == iVar15) goto LAB_001d5cdc;" if (parenthesized_expression "(iVar3 == iVar15)" ( (binary_expression "iVar3 == iVar15" identifier == identifier) )) (goto_statement "goto LAB_001d5cdc;" goto statement_identifier ;)) (goto_statement "goto LAB_001d5be0;" goto statement_identifier ;) })) }) (else_clause "else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" else (compound_statement "{\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" { (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" * (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" ( (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" identifier + number_literal) + (binary_expression "lVar14 * 0x28" identifier * number_literal)) )))) = identifier) ;) }))) (labeled_statement "LAB_001d5de5:\n  *param_5 = iVar9;" statement_identifier : (expression_statement "*param_5 = iVar9;" (assignment_expression "*param_5 = iVar9" (pointer_expression "*param_5" * identifier) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (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 IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) , LIT , LIT , IDENT , IDENT , IDENT , LIT , IDENT )))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) , IDENT , LIT , IDENT , IDENT , LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;)) })) (return_statement return ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) , IDENT , LIT , IDENT , IDENT , LIT , LIT , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) , LIT , LIT , IDENT , IDENT , LIT , LIT , IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return ;) })))
(function_definition "void FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001d5b40(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" (identifier "FUN_001d5b40") (parameter_list "(long *param_1,int *param_2,int *param_3,int *param_4,int *param_5)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int *param_4" (primitive_type "int") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int *param_5" (primitive_type "int") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  long lVar7;\n  undefined8 uVar8;\n  int iVar9;\n  long lVar10;\n  int *piVar11;\n  int *piVar12;\n  int iVar13;\n  long lVar14;\n  int iVar15;\n  \n  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }\n  return;\njoined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;\n  iVar13 = iVar13 + 1;\n  if (iVar9 == iVar13) goto LAB_001d5d00;\n  iVar6 = *piVar11;\n  piVar11 = piVar11 + 10;\n  goto joined_r0x001d5d4b;\nLAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);\n  if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }\nLAB_001d5de5:\n  *param_5 = iVar9;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (declaration "undefined8 uVar8;" (type_identifier "undefined8") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "int *piVar11;" (primitive_type "int") (pointer_declarator "*piVar11" (* "*") (identifier "piVar11")) (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "long lVar14;" (sized_type_specifier "long" (long "long")) (identifier "lVar14") (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (if_statement "if ((param_2 != (int *)0x0) && (*param_5 == 0)) {\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" (if "if") (parenthesized_expression "((param_2 != (int *)0x0) && (*param_5 == 0))" (( "(") (binary_expression "(param_2 != (int *)0x0) && (*param_5 == 0)" (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_5 == 0)" (( "(") (binary_expression "*param_5 == 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = *param_2;\n    while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }\n    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);\n    *param_3 = *param_3 + iVar3;\n    if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }\nLAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;\n  }" ({ "{") (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (while_statement "while (iVar3 != 5) {\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" (while "while") (parenthesized_expression "(iVar3 != 5)" (( "(") (binary_expression "iVar3 != 5" (identifier "iVar3") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n      *param_4 = *param_4 + (uint)(iVar3 == 4);\n      FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);\n      param_2 = *(int **)(param_2 + 6);\n      if (param_2 == (int *)0x0) {\n        return;\n      }\n      if (*param_5 != 0) {\n        return;\n      }\n      iVar3 = *param_2;\n    }" ({ "{") (expression_statement "*param_4 = *param_4 + (uint)(iVar3 == 4);" (assignment_expression "*param_4 = *param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "*param_4 + (uint)(iVar3 == 4)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (call_expression "(uint)(iVar3 == 4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar3 == 4)" (( "(") (binary_expression "iVar3 == 4" (identifier "iVar3") (== "==") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);" (call_expression "FUN_001d5b40(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" (identifier "FUN_001d5b40") (argument_list "(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 4)" (* "*") (cast_expression "(undefined8 *)(param_2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "param_2 = *(int **)(param_2 + 6);" (assignment_expression "param_2 = *(int **)(param_2 + 6)" (identifier "param_2") (= "=") (pointer_expression "*(int **)(param_2 + 6)" (* "*") (cast_expression "(int **)(param_2 + 6)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 6)" (( "(") (binary_expression "param_2 + 6" (identifier "param_2") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (if_statement "if (param_2 == (int *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*param_5 != 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(*param_5 != 0)" (( "(") (binary_expression "*param_5 != 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = *param_2;" (assignment_expression "iVar3 = *param_2" (identifier "iVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);" (assignment_expression "iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(*(long *)(param_2 + 8) + 0x50)" (* "*") (cast_expression "(int *)(*(long *)(param_2 + 8) + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 8) + 0x50)" (( "(") (binary_expression "*(long *)(param_2 + 8) + 0x50" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (expression_statement "*param_3 = *param_3 + iVar3;" (assignment_expression "*param_3 = *param_3 + iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*param_3 + iVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (identifier "iVar3"))) (; ";")) (if_statement "if (0 < iVar3) {\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      iVar15 = 0;\nLAB_001d5be0:\n      lVar14 = (long)iVar15;\n      lVar7 = *(long *)(param_2 + 8);\n      lVar1 = lVar7 + lVar14 * 0x28;\n      iVar4 = *(int *)(lVar1 + 100);\n      iVar5 = *(int *)(lVar1 + 0x60);\n      uVar8 = *(undefined8 *)(lVar1 + 0x58);\n      lVar10 = FUN_00132490(0x58);\n      if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }\n      lVar1 = *param_1;\n      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }\n      goto LAB_001d5cb1;\n    }" ({ "{") (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" (identifier "iVar15") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_001d5be0:\n      lVar14 = (long)iVar15;" (statement_identifier "LAB_001d5be0") (: ":") (expression_statement "lVar14 = (long)iVar15;" (assignment_expression "lVar14 = (long)iVar15" (identifier "lVar14") (= "=") (cast_expression "(long)iVar15" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar15"))) (; ";"))) (expression_statement "lVar7 = *(long *)(param_2 + 8);" (assignment_expression "lVar7 = *(long *)(param_2 + 8)" (identifier "lVar7") (= "=") (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "lVar1 = lVar7 + lVar14 * 0x28;" (assignment_expression "lVar1 = lVar7 + lVar14 * 0x28" (identifier "lVar1") (= "=") (binary_expression "lVar7 + lVar14 * 0x28" (identifier "lVar7") (+ "+") (binary_expression "lVar14 * 0x28" (identifier "lVar14") (* "*") (number_literal "0x28")))) (; ";")) (expression_statement "iVar4 = *(int *)(lVar1 + 100);" (assignment_expression "iVar4 = *(int *)(lVar1 + 100)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(lVar1 + 100)" (* "*") (cast_expression "(int *)(lVar1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 100)" (( "(") (binary_expression "lVar1 + 100" (identifier "lVar1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(lVar1 + 0x60);" (assignment_expression "iVar5 = *(int *)(lVar1 + 0x60)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(lVar1 + 0x60)" (* "*") (cast_expression "(int *)(lVar1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x60)" (( "(") (binary_expression "lVar1 + 0x60" (identifier "lVar1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "uVar8 = *(undefined8 *)(lVar1 + 0x58);" (assignment_expression "uVar8 = *(undefined8 *)(lVar1 + 0x58)" (identifier "uVar8") (= "=") (pointer_expression "*(undefined8 *)(lVar1 + 0x58)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x58)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x58)" (( "(") (binary_expression "lVar1 + 0x58" (identifier "lVar1") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (expression_statement "lVar10 = FUN_00132490(0x58);" (assignment_expression "lVar10 = FUN_00132490(0x58)" (identifier "lVar10") (= "=") (call_expression "FUN_00132490(0x58)" (identifier "FUN_00132490") (argument_list "(0x58)" (( "(") (number_literal "0x58") () ")")))) (; ";")) (if_statement "if (lVar10 == 0) {\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" (if "if") (parenthesized_expression "(lVar10 == 0)" (( "(") (binary_expression "lVar10 == 0" (identifier "lVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined8 *)(lVar1 + 0x78) = 0;\n        iVar9 = 7;\n        goto LAB_001d5de5;\n      }" ({ "{") (expression_statement "*(undefined8 *)(lVar1 + 0x78) = 0;" (assignment_expression "*(undefined8 *)(lVar1 + 0x78) = 0" (pointer_expression "*(undefined8 *)(lVar1 + 0x78)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x78)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x78)" (( "(") (binary_expression "lVar1 + 0x78" (identifier "lVar1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = 7;" (assignment_expression "iVar9 = 7" (identifier "iVar9") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_001d5de5;" (goto "goto") (statement_identifier "LAB_001d5de5") (; ";")) (} "}"))) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }\n      else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" (if "if") (parenthesized_expression "((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2))" (( "(") (binary_expression "(iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)" (( "(") (comma_expression "iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2" (assignment_expression "iVar9 = *(int *)(lVar1 + 0x1e0)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(lVar1 + 0x1e0)" (* "*") (cast_expression "(int *)(lVar1 + 0x1e0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x1e0)" (( "(") (binary_expression "lVar1 + 0x1e0" (identifier "lVar1") (+ "+") (number_literal "0x1e0")) () ")"))))) (, ",") (binary_expression "iVar9 < 2" (identifier "iVar9") (< "<") (number_literal "2"))) () ")"))) () ")")) (compound_statement "{\nLAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);\n        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);\n      }" ({ "{") (labeled_statement "LAB_001d5d00:\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" (statement_identifier "LAB_001d5d00") (: ":") (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" (identifier "iVar9") (= "=") (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" (identifier "FUN_001d5b00") (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10)" (( "(") (identifier "lVar1") (, ",") (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (number_literal "0") (, ",") (number_literal "0xfffffffe") (, ",") (identifier "uVar8") (, ",") (identifier "iVar5") (, ",") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (identifier "lVar10") () ")")))) (; ";"))) (expression_statement "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);" (assignment_expression "*(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0)" (pointer_expression "*(uint *)(lVar10 + 0x30)" (* "*") (cast_expression "(uint *)(lVar10 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar10 + 0x30)" (( "(") (binary_expression "lVar10 + 0x30" (identifier "lVar10") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (call_expression "(uint)(iVar4 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" (else "else") (compound_statement "{\n        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);\n        if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }\n        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);\n        *(undefined4 *)(lVar10 + 0x30) = 1;\n      }" ({ "{") (expression_statement "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);" (assignment_expression "iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" (* "*") (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x28)" (( "(") (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x28" (pointer_expression "*(long *)(lVar1 + 0x1e8)" (* "*") (cast_expression "(long *)(lVar1 + 0x1e8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x1e8)" (( "(") (binary_expression "lVar1 + 0x1e8" (identifier "lVar1") (+ "+") (number_literal "0x1e8")) () ")")))) (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (iVar5 == iVar6) {\n          iVar13 = 1;\n        }\n        else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" (if "if") (parenthesized_expression "(iVar5 == iVar6)" (( "(") (binary_expression "iVar5 == iVar6" (identifier "iVar5") (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n          iVar13 = 1;\n        }" ({ "{") (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" (identifier "iVar13") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" (else "else") (compound_statement "{\n          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);\n          iVar13 = 1;\n          piVar12 = piVar11;\n          do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);\n        }" ({ "{") (expression_statement "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);" (assignment_expression "piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" (identifier "piVar11") (= "=") (cast_expression "(int *)(*(long *)(lVar1 + 0x1e8) + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar1 + 0x1e8) + 0x50)" (( "(") (binary_expression "*(long *)(lVar1 + 0x1e8) + 0x50" (pointer_expression "*(long *)(lVar1 + 0x1e8)" (* "*") (cast_expression "(long *)(lVar1 + 0x1e8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x1e8)" (( "(") (binary_expression "lVar1 + 0x1e8" (identifier "lVar1") (+ "+") (number_literal "0x1e8")) () ")")))) (+ "+") (number_literal "0x50")) () ")")))) (; ";")) (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" (identifier "iVar13") (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" (identifier "piVar12") (= "=") (identifier "piVar11")) (; ";")) (do_statement "do {\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          } while (iVar5 != iVar2);" (do "do") (compound_statement "{\n            iVar13 = iVar13 + 1;\n            if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }\n            iVar2 = *piVar12;\n            piVar12 = piVar12 + 10;\n          }" ({ "{") (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar13 == iVar9) {\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" (if "if") (parenthesized_expression "(iVar13 == iVar9)" (( "(") (binary_expression "iVar13 == iVar9" (identifier "iVar13") (== "==") (identifier "iVar9")) () ")")) (compound_statement "{\n              iVar13 = 1;\n              goto joined_r0x001d5d4b;\n            }" ({ "{") (expression_statement "iVar13 = 1;" (assignment_expression "iVar13 = 1" (identifier "iVar13") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto joined_r0x001d5d4b;" (goto "goto") (statement_identifier "joined_r0x001d5d4b") (; ";")) (} "}"))) (expression_statement "iVar2 = *piVar12;" (assignment_expression "iVar2 = *piVar12" (identifier "iVar2") (= "=") (pointer_expression "*piVar12" (* "*") (identifier "piVar12"))) (; ";")) (expression_statement "piVar12 = piVar12 + 10;" (assignment_expression "piVar12 = piVar12 + 10" (identifier "piVar12") (= "=") (binary_expression "piVar12 + 10" (identifier "piVar12") (+ "+") (number_literal "10"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar2)" (( "(") (binary_expression "iVar5 != iVar2" (identifier "iVar5") (!= "!=") (identifier "iVar2")) () ")")) (; ";")) (} "}")))) (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (identifier "iVar9") (= "=") (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (identifier "FUN_001d5b00") (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (( "(") (identifier "lVar1") (, ",") (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (identifier "iVar13") (, ",") (number_literal "0xfffffffe") (, ",") (identifier "uVar8") (, ",") (identifier "iVar5") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "lVar10") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(lVar10 + 0x30) = 1;" (assignment_expression "*(undefined4 *)(lVar10 + 0x30) = 1" (pointer_expression "*(undefined4 *)(lVar10 + 0x30)" (* "*") (cast_expression "(undefined4 *)(lVar10 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar10 + 0x30)" (( "(") (binary_expression "lVar10 + 0x30" (identifier "lVar10") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (goto_statement "goto LAB_001d5cb1;" (goto "goto") (statement_identifier "LAB_001d5cb1") (; ";")) (} "}"))) (labeled_statement "LAB_001d5cdc:\n    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" (statement_identifier "LAB_001d5cdc") (: ":") (expression_statement "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_2 + 8) + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 8) + 0x3c)" (( "(") (binary_expression "*(long *)(param_2 + 8) + 0x3c" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (labeled_statement "joined_r0x001d5d4b:\n  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" (statement_identifier "joined_r0x001d5d4b") (: ":") (if_statement "if (iVar6 == iVar5 + 1) goto LAB_001d5d60;" (if "if") (parenthesized_expression "(iVar6 == iVar5 + 1)" (( "(") (binary_expression "iVar6 == iVar5 + 1" (identifier "iVar6") (== "==") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) () ")")) (goto_statement "goto LAB_001d5d60;" (goto "goto") (statement_identifier "LAB_001d5d60") (; ";")))) (expression_statement "iVar13 = iVar13 + 1;" (assignment_expression "iVar13 = iVar13 + 1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + 1" (identifier "iVar13") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar9 == iVar13) goto LAB_001d5d00;" (if "if") (parenthesized_expression "(iVar9 == iVar13)" (( "(") (binary_expression "iVar9 == iVar13" (identifier "iVar9") (== "==") (identifier "iVar13")) () ")")) (goto_statement "goto LAB_001d5d00;" (goto "goto") (statement_identifier "LAB_001d5d00") (; ";"))) (expression_statement "iVar6 = *piVar11;" (assignment_expression "iVar6 = *piVar11" (identifier "iVar6") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (expression_statement "piVar11 = piVar11 + 10;" (assignment_expression "piVar11 = piVar11 + 10" (identifier "piVar11") (= "=") (binary_expression "piVar11 + 10" (identifier "piVar11") (+ "+") (number_literal "10"))) (; ";")) (goto_statement "goto joined_r0x001d5d4b;" (goto "goto") (statement_identifier "joined_r0x001d5d4b") (; ";")) (labeled_statement "LAB_001d5d60:\n  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" (statement_identifier "LAB_001d5d60") (: ":") (expression_statement "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" (identifier "iVar9") (= "=") (call_expression "FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" (identifier "FUN_001d5b00") (argument_list "(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10)" (( "(") (identifier "lVar1") (, ",") (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (identifier "iVar13") (, ",") (number_literal "0xfffffffe") (, ",") (identifier "uVar8") (, ",") (identifier "iVar5") (, ",") (number_literal "1") (, ",") (number_literal "0") (, ",") (identifier "lVar10") () ")")))) (; ";"))) (if_statement "if (iVar9 == 0) {\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }\n  else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);\nLAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n    if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }\n  }" ({ "{") (expression_statement "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);" (assignment_expression "iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (identifier "iVar9") (= "=") (call_expression "FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (identifier "FUN_001d5530") (argument_list "(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10)" (( "(") (identifier "lVar1") (, ",") (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (, ",") (number_literal "0") (, ",") (number_literal "0xfffffffe") (, ",") (identifier "uVar8") (, ",") (identifier "iVar5") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "lVar10") () ")")))) (; ";")) (labeled_statement "LAB_001d5cb1:\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (statement_identifier "LAB_001d5cb1") (: ":") (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" (* "*") (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" (( "(") (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" (identifier "lVar7") (+ "+") (number_literal "0x78")) (+ "+") (binary_expression "lVar14 * 0x28" (identifier "lVar14") (* "*") (number_literal "0x28"))) () ")")))) (= "=") (identifier "lVar10")) (; ";"))) (if_statement "if (iVar9 == 0) {\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar15 = iVar15 + 1;\n      if (iVar3 == iVar15) goto LAB_001d5cdc;\n      goto LAB_001d5be0;\n    }" ({ "{") (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" (identifier "iVar15") (= "=") (binary_expression "iVar15 + 1" (identifier "iVar15") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == iVar15) goto LAB_001d5cdc;" (if "if") (parenthesized_expression "(iVar3 == iVar15)" (( "(") (binary_expression "iVar3 == iVar15" (identifier "iVar3") (== "==") (identifier "iVar15")) () ")")) (goto_statement "goto LAB_001d5cdc;" (goto "goto") (statement_identifier "LAB_001d5cdc") (; ";"))) (goto_statement "goto LAB_001d5be0;" (goto "goto") (statement_identifier "LAB_001d5be0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" (else "else") (compound_statement "{\n    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;\n  }" ({ "{") (expression_statement "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;" (assignment_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10" (pointer_expression "*(long *)(lVar7 + 0x78 + lVar14 * 0x28)" (* "*") (cast_expression "(long *)(lVar7 + 0x78 + lVar14 * 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar7 + 0x78 + lVar14 * 0x28)" (( "(") (binary_expression "lVar7 + 0x78 + lVar14 * 0x28" (binary_expression "lVar7 + 0x78" (identifier "lVar7") (+ "+") (number_literal "0x78")) (+ "+") (binary_expression "lVar14 * 0x28" (identifier "lVar14") (* "*") (number_literal "0x28"))) () ")")))) (= "=") (identifier "lVar10")) (; ";")) (} "}")))) (labeled_statement "LAB_001d5de5:\n  *param_5 = iVar9;" (statement_identifier "LAB_001d5de5") (: ":") (expression_statement "*param_5 = iVar9;" (assignment_expression "*param_5 = iVar9" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "iVar9")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pCsr,type_2 *var_1,int *pnToken,int *pnOr,int *pRc)

{
  int var_2;
  int var_5;
  int var_8;
  int var_9;
  type_3 *pFVar3;
  char *zTerm;
  type_4 *p;
  int *piVar4;
  int var_6;
  type_5 *var_4;
  type_6 *var_12;
  type_6 *var_11;
  int var_10;
  int var_14;
  
  if ((var_1 != (type_2 *)0x0) && (*pRc == 0)) {
    var_2 = var_1->eType;
    while (var_2 != 5) {
      *pnOr = *pnOr + (uint)(var_2 == 4);
      function_1(pCsr,var_1->pLeft,pnToken,pnOr,pRc);
      var_1 = var_1->pRight;
      if (var_1 == (type_2 *)0x0) {
        return;
      }
      if (*pRc != 0) {
        return;
      }
      var_2 = var_1->eType;
    }
    var_2 = var_1->pPhrase->nToken;
    *pnToken = *pnToken + var_2;
    if (0 < var_2) {
      var_14 = 0;
LAB_001d5be0:
      pFVar3 = var_1->pPhrase;
      var_5 = pFVar3->aToken[var_14].var_5;
      var_8 = pFVar3->aToken[var_14].n;
      zTerm = pFVar3->aToken[var_14].z;
      var_4 = (type_5 *)var_3(0x58);
      if (var_4 == (type_5 *)0x0) {
        pFVar3->aToken[var_14].pSegcsr = (type_5 *)0x0;
        var_6 = 7;
        goto LAB_001d5de5;
      }
      p = (type_4 *)(pCsr->base).pVtab;
      if ((var_5 == 0) || (var_6 = p->nIndex, var_6 < 2)) {
LAB_001d5d00:
        var_6 = var_7(p,pCsr->iLangid,0,-2,zTerm,var_8,var_5,0,var_4);
        var_4->bLookup = (uint)(var_5 == 0);
      }
      else {
        var_9 = p->aIndex[1].nPrefix;
        if (var_8 == var_9) {
          var_10 = 1;
        }
        else {
          var_12 = p->aIndex + 2;
          var_10 = 1;
          var_11 = var_12;
          do {
            var_10 = var_10 + 1;
            if (var_10 == var_6) {
              var_10 = 1;
              goto joined_r0x001d5d4b;
            }
            piVar4 = &var_11->nPrefix;
            var_11 = var_11 + 1;
          } while (var_8 != *piVar4);
        }
        var_6 = var_7(p,pCsr->iLangid,var_10,-2,zTerm,var_8,0,0,var_4);
        var_4->bLookup = 1;
      }
      goto LAB_001d5cb1;
    }
LAB_001d5cdc:
    var_1->pPhrase->iDoclistToken = -1;
  }
  return;
joined_r0x001d5d4b:
  if (var_9 == var_8 + 1) goto LAB_001d5d60;
  var_10 = var_10 + 1;
  if (var_6 == var_10) goto LAB_001d5d00;
  var_9 = var_12->nPrefix;
  var_12 = var_12 + 1;
  goto joined_r0x001d5d4b;
LAB_001d5d60:
  var_6 = var_7(p,pCsr->iLangid,var_10,-2,zTerm,var_8,1,0,var_4);
  if (var_6 == 0) {
    var_6 = var_13(p,pCsr->iLangid,0,-2,zTerm,var_8,0,0,var_4);
LAB_001d5cb1:
    pFVar3->aToken[var_14].pSegcsr = var_4;
    if (var_6 == 0) {
      var_14 = var_14 + 1;
      if (var_2 == var_14) goto LAB_001d5cdc;
      goto LAB_001d5be0;
    }
  }
  else {
    pFVar3->aToken[var_14].pSegcsr = var_4;
  }
LAB_001d5de5:
  *pRc = var_6;
  return;
}


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

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

{
  long lVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  long lVar7;
  undefined8 uVar8;
  int iVar9;
  long lVar10;
  int *piVar11;
  int *piVar12;
  int iVar13;
  long lVar14;
  int iVar15;
  
  if ((param_2 != (int *)0x0) && (*param_5 == 0)) {
    iVar3 = *param_2;
    while (iVar3 != 5) {
      *param_4 = *param_4 + (uint)(iVar3 == 4);
      MASKED(param_1,*(undefined8 *)(param_2 + 4),param_3,param_4,param_5);
      param_2 = *(int **)(param_2 + 6);
      if (param_2 == (int *)0x0) {
        return;
      }
      if (*param_5 != 0) {
        return;
      }
      iVar3 = *param_2;
    }
    iVar3 = *(int *)(*(long *)(param_2 + 8) + 0x50);
    *param_3 = *param_3 + iVar3;
    if (0 < iVar3) {
      iVar15 = 0;
LAB_001d5be0:
      lVar14 = (long)iVar15;
      lVar7 = *(long *)(param_2 + 8);
      lVar1 = lVar7 + lVar14 * 0x28;
      iVar4 = *(int *)(lVar1 + 100);
      iVar5 = *(int *)(lVar1 + 0x60);
      uVar8 = *(undefined8 *)(lVar1 + 0x58);
      lVar10 = FUN_00132490(0x58);
      if (lVar10 == 0) {
        *(undefined8 *)(lVar1 + 0x78) = 0;
        iVar9 = 7;
        goto LAB_001d5de5;
      }
      lVar1 = *param_1;
      if ((iVar4 == 0) || (iVar9 = *(int *)(lVar1 + 0x1e0), iVar9 < 2)) {
LAB_001d5d00:
        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,iVar4,0,lVar10);
        *(uint *)(lVar10 + 0x30) = (uint)(iVar4 == 0);
      }
      else {
        iVar6 = *(int *)(*(long *)(lVar1 + 0x1e8) + 0x28);
        if (iVar5 == iVar6) {
          iVar13 = 1;
        }
        else {
          piVar11 = (int *)(*(long *)(lVar1 + 0x1e8) + 0x50);
          iVar13 = 1;
          piVar12 = piVar11;
          do {
            iVar13 = iVar13 + 1;
            if (iVar13 == iVar9) {
              iVar13 = 1;
              goto joined_r0x001d5d4b;
            }
            iVar2 = *piVar12;
            piVar12 = piVar12 + 10;
          } while (iVar5 != iVar2);
        }
        iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,0,0,lVar10);
        *(undefined4 *)(lVar10 + 0x30) = 1;
      }
      goto LAB_001d5cb1;
    }
LAB_001d5cdc:
    *(undefined4 *)(*(long *)(param_2 + 8) + 0x3c) = 0xffffffff;
  }
  return;
joined_r0x001d5d4b:
  if (iVar6 == iVar5 + 1) goto LAB_001d5d60;
  iVar13 = iVar13 + 1;
  if (iVar9 == iVar13) goto LAB_001d5d00;
  iVar6 = *piVar11;
  piVar11 = piVar11 + 10;
  goto joined_r0x001d5d4b;
LAB_001d5d60:
  iVar9 = FUN_001d5b00(lVar1,(int)param_1[4],iVar13,0xfffffffe,uVar8,iVar5,1,0,lVar10);
  if (iVar9 == 0) {
    iVar9 = FUN_001d5530(lVar1,(int)param_1[4],0,0xfffffffe,uVar8,iVar5,0,0,lVar10);
LAB_001d5cb1:
    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;
    if (iVar9 == 0) {
      iVar15 = iVar15 + 1;
      if (iVar3 == iVar15) goto LAB_001d5cdc;
      goto LAB_001d5be0;
    }
  }
  else {
    *(long *)(lVar7 + 0x78 + lVar14 * 0x28) = lVar10;
  }
LAB_001d5de5:
  *param_5 = iVar9;
  return;
}

