
void windowCodeDefaultStep(Parse *pParse,Select *p,WhereInfo *pWInfo,int regGosub,int addrGosub)

{
  int reg;
  short sVar1;
  Window *pMWin;
  ExprList *pList;
  int p2;
  int iVar2;
  int iVar3;
  Vdbe *p_00;
  ExprList *pList_00;
  KeyInfo *pKVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int local_3c;
  
  pMWin = p->pWin;
  p_00 = sqlite3GetVdbe(pParse);
  iVar7 = p->pSrc->a[0].iCursor;
  sVar1 = (p->pSrc->a[0].pTab)->nCol;
  iVar6 = (int)sVar1;
  iVar3 = pParse->nMem;
  reg = iVar3 + 1;
  p2 = reg + iVar6;
  pList = pMWin->pPartition;
  pList_00 = (ExprList *)0x0;
  if (pMWin->eEnd != 'W') {
    pList_00 = pMWin->pOrderBy;
  }
  pParse->nMem = iVar3 + 2 + iVar6;
  if (0 < sVar1) {
    iVar5 = 0;
    do {
      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);
      iVar5 = iVar5 + 1;
    } while (iVar6 != iVar5);
  }
  if (pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0) goto LAB_0016add6;
  if (pList == (ExprList *)0x0) {
    iVar3 = pList_00->nExpr;
    local_3c = pMWin->nBufferCol;
    iVar6 = pMWin->regPart;
    iVar7 = 0;
    iVar5 = 0;
LAB_0016ad1e:
    iVar2 = 0;
    if (pMWin->eType == 'V') {
      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);
      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);
      sqlite3VdbeAppendP4(p_00,pKVar4,-9);
      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);
    }
    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));
    if (iVar5 != 0) {
      sqlite3VdbeJumpHere(p_00,iVar5);
    }
  }
  else {
    iVar7 = pList->nExpr;
    if (pList_00 != (ExprList *)0x0) {
      iVar3 = pList_00->nExpr;
      iVar6 = pMWin->nBufferCol;
      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);
      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);
      sqlite3VdbeAppendP4(p_00,pKVar4,-9);
      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);
      windowAggFinal(pParse,pMWin,1);
      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);
      local_3c = pMWin->nBufferCol;
      iVar6 = pMWin->regPart;
      if (iVar2 != 0) {
        sqlite3VdbeJumpHere(p_00,iVar2);
      }
      goto LAB_0016ad1e;
    }
    iVar3 = pMWin->nBufferCol;
    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);
    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);
    sqlite3VdbeAppendP4(p_00,pKVar4,-9);
    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);
    windowAggFinal(pParse,pMWin,1);
    iVar3 = 0;
  }
  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);
  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);
  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);
  sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr);
  sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3);
  if (iVar2 != 0) {
    sqlite3VdbeJumpHere(p_00,iVar2);
  }
LAB_0016add6:
  windowAggStep(pParse,pMWin,-1,0,reg,0);
  if (pMWin->nBufferCol < 1) {
    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);
    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);
  }
  else {
    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);
  }
  sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1);
  sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1);
  sqlite3WhereEnd(pWInfo);
  windowAggFinal(pParse,pMWin,1);
  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);
  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);
  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);
  return;
}



void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5
                 )

{
  int iVar1;
  short sVar2;
  undefined4 uVar3;
  long lVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  long lVar9;
  int *piVar10;
  undefined8 uVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  int local_3c;
  
  lVar4 = *(long *)(param_2 + 0x70);
  lVar9 = FUN_00152f06();
  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);
  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);
  iVar13 = (int)sVar2;
  iVar14 = *(int *)(param_1 + 0x38);
  iVar1 = iVar14 + 1;
  iVar6 = iVar1 + iVar13;
  piVar5 = *(int **)(lVar4 + 8);
  piVar10 = (int *)0x0;
  if (*(char *)(lVar4 + 0x1a) != 'W') {
    piVar10 = *(int **)(lVar4 + 0x10);
  }
  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;
  if (0 < sVar2) {
    iVar12 = 0;
    do {
      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);
      iVar12 = iVar12 + 1;
    } while (iVar13 != iVar12);
  }
  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;
  if (piVar5 == (int *)0x0) {
    iVar13 = *piVar10;
    local_3c = *(int *)(lVar4 + 0x68);
    iVar12 = *(int *)(lVar4 + 0x5c);
    iVar14 = 0;
    iVar8 = 0;
LAB_0016ad1e:
    iVar7 = 0;
    if (*(char *)(lVar4 + 0x18) == 'V') {
      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);
      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);
      FUN_0014401d(lVar9,uVar11,0xfffffff7);
      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);
    }
    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');
    if (iVar8 != 0) {
      FUN_0012d3b0(lVar9,iVar8);
    }
  }
  else {
    iVar14 = *piVar5;
    if (piVar10 != (int *)0x0) {
      iVar13 = *piVar10;
      iVar12 = *(int *)(lVar4 + 0x68);
      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);
      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);
      FUN_0014401d(lVar9,uVar11,0xfffffff7);
      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);
      FUN_00153833(param_1,lVar4,1);
      iVar8 = FUN_00152fa7(lVar9,0xb);
      local_3c = *(int *)(lVar4 + 0x68);
      iVar12 = *(int *)(lVar4 + 0x5c);
      if (iVar7 != 0) {
        FUN_0012d3b0(lVar9,iVar7);
      }
      goto LAB_0016ad1e;
    }
    iVar13 = *(int *)(lVar4 + 0x68);
    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);
    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);
    FUN_0014401d(lVar9,uVar11,0xfffffff7);
    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);
    FUN_00153833(param_1,lVar4,1);
    iVar13 = 0;
  }
  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);
  FUN_00152e46(lVar9,0xc,param_4,param_5);
  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);
  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));
  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),
               iVar14 + -1 + iVar13);
  if (iVar7 != 0) {
    FUN_0012d3b0(lVar9,iVar7);
  }
LAB_0016add6:
  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);
  if (*(int *)(lVar4 + 0x68) < 1) {
    FUN_00152e46(lVar9,0x4b,0,iVar6);
    FUN_0014401d(lVar9,&DAT_001eb77f,0);
  }
  else {
    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);
  }
  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);
  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);
  FUN_0016a40e(param_3);
  FUN_00153833(param_1,lVar4,1);
  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);
  FUN_00152e46(lVar9,0xc,param_4,param_5);
  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x48
MOV R13,RDI
MOV qword ptr [RSP + 0x8],RDI
MOV RBX,RSI
MOV qword ptr [RSP + 0x30],RDX
MOV dword ptr [RSP + 0x18],ECX
MOV dword ptr [RSP + 0x1c],R8D
MOV R12,qword ptr [RSI + 0x70]
CALL 0x00152f06
MOV RBP,RAX
MOV RAX,qword ptr [RBX + 0x28]
MOV R15D,dword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x28]
MOVSX R14D,word ptr [RAX + 0x46]
MOV RSI,R13
MOV R13D,dword ptr [R13 + 0x38]
LEA EAX,[R13 + 0x1]
MOV dword ptr [RSP + 0x14],EAX
ADD EAX,R14D
MOV dword ptr [RSP + 0x10],EAX
ADD EAX,0x1
MOV dword ptr [RSP + 0x38],EAX
MOV RAX,qword ptr [R12 + 0x8]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [R12 + 0x10]
CMP byte ptr [R12 + 0x1a],0x57
MOV EAX,0x0
CMOVNZ RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
LEA EAX,[R13 + R14*0x1 + 0x2]
MOV dword ptr [RSI + 0x38],EAX
TEST R14D,R14D
JLE 0x0016aace
MOV EBX,0x0
ADD R13D,0x1
LEA R8D,[R13 + RBX*0x1]
MOV ECX,EBX
MOV EDX,R15D
MOV ESI,0x5a
MOV RDI,RBP
CALL 0x00152de5
ADD EBX,0x1
CMP R14D,EBX
JNZ 0x0016aaaf
MOV RDI,qword ptr [RSP + 0x20]
MOV RCX,RDI
MOV RAX,qword ptr [RSP + 0x28]
OR RCX,RAX
JZ 0x0016add6
TEST RAX,RAX
JZ 0x0016acf8
MOV R15D,dword ptr [RAX]
TEST RDI,RDI
JZ 0x0016ac75
MOV RAX,qword ptr [RSP + 0x20]
MOV R14D,dword ptr [RAX]
MOV EBX,dword ptr [RSP + 0x14]
ADD EBX,dword ptr [R12 + 0x68]
MOV ECX,0x0
MOV EDX,0x0
MOV RSI,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00162cb9
MOV R13,RAX
MOV ECX,dword ptr [R12 + 0x5c]
MOV R8D,R15D
MOV EDX,EBX
MOV ESI,0x57
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
MOV EDX,0xfffffff7
MOV RSI,R13
MOV RDI,RBP
CALL 0x0014401d
LEA EDX,[RBX + 0x2]
MOV R8D,EDX
MOV ECX,0x0
MOV ESI,0x10
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
MOV EDX,0x1
MOV RSI,R12
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00153833
MOV ESI,0xb
MOV RDI,RBP
CALL 0x00152fa7
MOV R13D,EAX
MOV EAX,dword ptr [R12 + 0x68]
MOV dword ptr [RSP + 0x3c],EAX
MOV EAX,dword ptr [R12 + 0x5c]
MOV dword ptr [RSP + 0x28],EAX
TEST EBX,EBX
JZ 0x0016ad1e
MOV ESI,EBX
MOV RDI,RBP
CALL 0x0012d3b0
JMP 0x0016ad1e
MOV ECX,0x0
MOV EDX,0x0
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00162cb9
MOV qword ptr [RSP + 0x20],RAX
MOV ECX,dword ptr [RSP + 0x28]
ADD ECX,R15D
MOV EDX,dword ptr [RSP + 0x3c]
ADD EDX,dword ptr [RSP + 0x14]
ADD EDX,R15D
MOV R8D,R14D
MOV ESI,0x57
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
MOV EDX,0xfffffff7
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,RBP
CALL 0x0014401d
LEA EDX,[RBX + 0x2]
MOV R8D,EDX
MOV ECX,0x0
MOV ESI,0x10
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
JMP 0x0016ad2f
MOV ESI,R13D
MOV RDI,RBP
CALL 0x0012d3b0
JMP 0x0016ad51
MOV ESI,EBX
MOV RDI,RBP
CALL 0x0012d3b0
JMP 0x0016add6
MOV ECX,dword ptr [RSP + 0x10]
MOV EDX,0x0
MOV ESI,0x4b
MOV RDI,RBP
CALL 0x00152e46
MOV EDX,0x0
LEA RSI,[0x1eb77f]
MOV RDI,RBP
CALL 0x0014401d
JMP 0x0016ae1b
MOV EBX,dword ptr [RSP + 0x14]
ADD EBX,dword ptr [R12 + 0x68]
MOV ECX,0x0
MOV EDX,0x0
MOV RSI,qword ptr [RSP + 0x28]
MOV R14,qword ptr [RSP + 0x8]
MOV RDI,R14
CALL 0x00162cb9
MOV R13,RAX
MOV ECX,dword ptr [R12 + 0x5c]
MOV R8D,R15D
MOV EDX,EBX
MOV ESI,0x57
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
MOV EDX,0xfffffff7
MOV RSI,R13
MOV RDI,RBP
CALL 0x0014401d
LEA EDX,[RBX + 0x2]
MOV R8D,EDX
MOV ECX,0x0
MOV ESI,0x10
MOV RDI,RBP
CALL 0x00152de5
MOV EBX,EAX
MOV EDX,0x1
MOV RSI,R12
MOV RDI,R14
CALL 0x00153833
MOV R14D,0x0
JMP 0x0016ad51
MOV RAX,qword ptr [RSP + 0x20]
MOV R14D,dword ptr [RAX]
MOV EAX,dword ptr [R12 + 0x68]
MOV dword ptr [RSP + 0x3c],EAX
MOV EAX,dword ptr [R12 + 0x5c]
MOV dword ptr [RSP + 0x28],EAX
MOV R15D,0x0
MOV R13D,0x0
MOV EBX,0x0
CMP byte ptr [R12 + 0x18],0x56
JZ 0x0016abb4
CMP byte ptr [R12 + 0x19],0x52
SETZ DL
MOVZX EDX,DL
MOV RSI,R12
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00153833
TEST R13D,R13D
JNZ 0x0016ac27
MOV EAX,dword ptr [RBP + 0x90]
LEA ECX,[RAX + 0x3]
MOV EDX,dword ptr [R12 + 0x48]
MOV ESI,0x24
MOV RDI,RBP
CALL 0x00152e46
MOV ECX,dword ptr [RSP + 0x1c]
MOV EDX,dword ptr [RSP + 0x18]
MOV ESI,0xc
MOV RDI,RBP
CALL 0x00152e46
MOV EAX,dword ptr [RBP + 0x90]
LEA ECX,[RAX + -0x1]
MOV EDX,dword ptr [R12 + 0x48]
MOV ESI,0x5
MOV RDI,RBP
CALL 0x00152e46
MOV EDX,dword ptr [R12 + 0x48]
MOV ESI,0x8a
MOV RDI,RBP
CALL 0x0015357b
MOV ECX,dword ptr [R12 + 0x5c]
MOV EDX,dword ptr [RSP + 0x14]
ADD EDX,dword ptr [R12 + 0x68]
LEA R8D,[R15 + R14*0x1 + -0x1]
MOV ESI,0x4e
MOV RDI,RBP
CALL 0x00152de5
TEST EBX,EBX
JNZ 0x0016ac37
MOV R9D,0x0
MOV EBX,dword ptr [RSP + 0x14]
MOV R8D,EBX
MOV ECX,0x0
MOV EDX,0xffffffff
MOV RSI,R12
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00162d71
MOV ECX,dword ptr [R12 + 0x68]
TEST ECX,ECX
JLE 0x0016ac46
MOV R8D,dword ptr [RSP + 0x10]
MOV EDX,EBX
MOV ESI,0x66
MOV RDI,RBP
CALL 0x00152de5
MOV EDX,dword ptr [R12 + 0x48]
MOV EBX,dword ptr [RSP + 0x38]
MOV ECX,EBX
MOV ESI,0x79
MOV RDI,RBP
CALL 0x00152e46
MOV EDX,dword ptr [R12 + 0x48]
MOV R8D,EBX
MOV ECX,dword ptr [RSP + 0x10]
MOV ESI,0x7a
MOV RDI,RBP
CALL 0x00152de5
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0016a40e
MOV EDX,0x1
MOV RSI,R12
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00153833
MOV EAX,dword ptr [RBP + 0x90]
LEA ECX,[RAX + 0x3]
MOV EDX,dword ptr [R12 + 0x48]
MOV ESI,0x24
MOV RDI,RBP
CALL 0x00152e46
MOV ECX,dword ptr [RSP + 0x1c]
MOV EDX,dword ptr [RSP + 0x18]
MOV ESI,0xc
MOV RDI,RBP
CALL 0x00152e46
MOV EAX,dword ptr [RBP + 0x90]
LEA ECX,[RAX + -0x1]
MOV EDX,dword ptr [R12 + 0x48]
MOV ESI,0x5
MOV RDI,RBP
CALL 0x00152e46
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )\n\n{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}\n\n" (function_definition "void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )\n\n{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" primitive_type (function_declarator "FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" identifier (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "lVar4 = *(long *)(param_2 + 0x70);" (assignment_expression "lVar4 = *(long *)(param_2 + 0x70)" identifier = (pointer_expression "*(long *)(param_2 + 0x70)" * (cast_expression "(long *)(param_2 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "lVar9 = FUN_00152f06();" (assignment_expression "lVar9 = FUN_00152f06()" identifier = (call_expression "FUN_00152f06()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);" (assignment_expression "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x48)" ( (binary_expression "*(long *)(param_2 + 0x28) + 0x48" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);" (assignment_expression "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" identifier = (pointer_expression "*(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" * (cast_expression "(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" ( (binary_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46" (pointer_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28)" * (cast_expression "(long *)(*(long *)(param_2 + 0x28) + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x28)" ( (binary_expression "*(long *)(param_2 + 0x28) + 0x28" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar13 = (int)sVar2;" (assignment_expression "iVar13 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar14 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = iVar14 + 1;" (assignment_expression "iVar1 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar1 + iVar13;" (assignment_expression "iVar6 = iVar1 + iVar13" identifier = (binary_expression "iVar1 + iVar13" identifier + identifier)) ;) (expression_statement "piVar5 = *(int **)(lVar4 + 8);" (assignment_expression "piVar5 = *(int **)(lVar4 + 8)" identifier = (pointer_expression "*(int **)(lVar4 + 8)" * (cast_expression "(int **)(lVar4 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar10 = (int *)0x0;" (assignment_expression "piVar10 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" if (parenthesized_expression "(*(char *)(lVar4 + 0x1a) != 'W')" ( (binary_expression "*(char *)(lVar4 + 0x1a) != 'W'" (pointer_expression "*(char *)(lVar4 + 0x1a)" * (cast_expression "(char *)(lVar4 + 0x1a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1a)" ( (binary_expression "lVar4 + 0x1a" identifier + number_literal) )))) != (char_literal "'W'" ' character ')) )) (compound_statement "{\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" { (expression_statement "piVar10 = *(int **)(lVar4 + 0x10);" (assignment_expression "piVar10 = *(int **)(lVar4 + 0x10)" identifier = (pointer_expression "*(int **)(lVar4 + 0x10)" * (cast_expression "(int **)(lVar4 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = (binary_expression "iVar14 + 2 + iVar13" (binary_expression "iVar14 + 2" identifier + number_literal) + identifier)) ;) (if_statement "if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" if (parenthesized_expression "(0 < sVar2)" ( (binary_expression "0 < sVar2" number_literal < identifier) )) (compound_statement "{\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);" do (compound_statement "{\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    }" { (expression_statement "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);" (call_expression "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" identifier (argument_list "(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" ( identifier , number_literal , identifier , identifier , (binary_expression "iVar14 + 1 + iVar12" (binary_expression "iVar14 + 1" identifier + number_literal) + identifier) ))) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 != iVar12)" ( (binary_expression "iVar13 != iVar12" identifier != identifier) )) ;) })) (if_statement "if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;" if (parenthesized_expression "(piVar10 == (int *)0x0 && piVar5 == (int *)0x0)" ( (binary_expression "piVar10 == (int *)0x0 && piVar5 == (int *)0x0" (binary_expression "piVar10 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (goto_statement "goto LAB_0016add6;" goto statement_identifier ;)) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }" { (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x5c)" * (cast_expression "(int *)(lVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0016ad1e:\n    iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (if_statement "if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" if (parenthesized_expression "(*(char *)(lVar4 + 0x18) == 'V')" ( (binary_expression "*(char *)(lVar4 + 0x18) == 'V'" (pointer_expression "*(char *)(lVar4 + 0x18)" * (cast_expression "(char *)(lVar4 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == (char_literal "'V'" ' character ')) )) (compound_statement "{\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" { (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar10,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar10,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar10,0,0)" identifier (argument_list "(param_1,piVar10,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" identifier (argument_list "(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" ( identifier , number_literal , (binary_expression "local_3c + iVar1 + iVar14" (binary_expression "local_3c + iVar1" identifier + identifier) + identifier) , (binary_expression "iVar12 + iVar14" identifier + identifier) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" ( identifier , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');" (call_expression "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" identifier (argument_list "(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" ( identifier , identifier , (binary_expression "*(char *)(lVar4 + 0x19) == 'R'" (pointer_expression "*(char *)(lVar4 + 0x19)" * (cast_expression "(char *)(lVar4 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x19)" ( (binary_expression "lVar4 + 0x19" identifier + number_literal) )))) == (char_literal "'R'" ' character ')) ))) ;) (if_statement "if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0012d3b0(lVar9,iVar8);\n    }" { (expression_statement "FUN_0012d3b0(lVar9,iVar8);" (call_expression "FUN_0012d3b0(lVar9,iVar8)" identifier (argument_list "(lVar9,iVar8)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" else (compound_statement "{\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" { (expression_statement "iVar14 = *piVar5;" (assignment_expression "iVar14 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" if (parenthesized_expression "(piVar10 != (int *)0x0)" ( (binary_expression "piVar10 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" { (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" identifier (argument_list "(param_1,piVar5,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier (argument_list "(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" ( identifier , number_literal , (binary_expression "iVar1 + iVar12" identifier + identifier) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" ( identifier , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar8 = FUN_00152fa7(lVar9,0xb);" (assignment_expression "iVar8 = FUN_00152fa7(lVar9,0xb)" identifier = (call_expression "FUN_00152fa7(lVar9,0xb)" identifier (argument_list "(lVar9,0xb)" ( identifier , number_literal )))) ;) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x5c)" * (cast_expression "(int *)(lVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_0012d3b0(lVar9,iVar7);\n      }" { (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" identifier (argument_list "(lVar9,iVar7)" ( identifier , identifier ))) ;) })) (goto_statement "goto LAB_0016ad1e;" goto statement_identifier ;) })) (expression_statement "iVar13 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar13 = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" identifier (argument_list "(param_1,piVar5,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier (argument_list "(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" ( identifier , number_literal , (binary_expression "iVar1 + iVar13" identifier + identifier) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" identifier (argument_list "(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" ( identifier , number_literal , (binary_expression "iVar13 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar13 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) }))) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" identifier (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" identifier (argument_list "(lVar9,0xc,param_4,param_5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" identifier (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));" (call_expression "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" identifier (argument_list "(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);" (call_expression "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" identifier (argument_list "(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" ( identifier , number_literal , (binary_expression "iVar1 + *(int *)(lVar4 + 0x68)" identifier + (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , (binary_expression "iVar14 + -1 + iVar13" (binary_expression "iVar14 + -1" identifier + number_literal) + identifier) ))) ;) (if_statement "if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0012d3b0(lVar9,iVar7);\n  }" { (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" identifier (argument_list "(lVar9,iVar7)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" statement_identifier : (expression_statement "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" (call_expression "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0)" identifier (argument_list "(param_1,lVar4,0xffffffff,0,iVar1,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal ))) ;)) (if_statement "if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" if (parenthesized_expression "(*(int *)(lVar4 + 0x68) < 1)" ( (binary_expression "*(int *)(lVar4 + 0x68) < 1" (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }" { (expression_statement "FUN_00152e46(lVar9,0x4b,0,iVar6);" (call_expression "FUN_00152e46(lVar9,0x4b,0,iVar6)" identifier (argument_list "(lVar9,0x4b,0,iVar6)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "FUN_0014401d(lVar9,&DAT_001eb77f,0);" (call_expression "FUN_0014401d(lVar9,&DAT_001eb77f,0)" identifier (argument_list "(lVar9,&DAT_001eb77f,0)" ( identifier , (pointer_expression "&DAT_001eb77f" & identifier) , number_literal ))) ;) }) (else_clause "else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" else (compound_statement "{\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" { (expression_statement "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);" (call_expression "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" identifier (argument_list "(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" ( identifier , number_literal , identifier , (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) )))) , identifier ))) ;) }))) (expression_statement "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);" (call_expression "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" identifier (argument_list "(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);" (call_expression "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" identifier (argument_list "(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , identifier , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_0016a40e(param_3);" (call_expression "FUN_0016a40e(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" identifier (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" identifier (argument_list "(lVar9,0xc,param_4,param_5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" identifier (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void windowCodeDefaultStep(Parse *pParse,Select *p,WhereInfo *pWInfo,int regGosub,int addrGosub)\n\n{\n  int reg;\n  short sVar1;\n  Window *pMWin;\n  ExprList *pList;\n  int p2;\n  int iVar2;\n  int iVar3;\n  Vdbe *p_00;\n  ExprList *pList_00;\n  KeyInfo *pKVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int local_3c;\n  \n  pMWin = p->pWin;\n  p_00 = sqlite3GetVdbe(pParse);\n  iVar7 = p->pSrc->a[0].iCursor;\n  sVar1 = (p->pSrc->a[0].pTab)->nCol;\n  iVar6 = (int)sVar1;\n  iVar3 = pParse->nMem;\n  reg = iVar3 + 1;\n  p2 = reg + iVar6;\n  pList = pMWin->pPartition;\n  pList_00 = (ExprList *)0x0;\n  if (pMWin->eEnd != 'W') {\n    pList_00 = pMWin->pOrderBy;\n  }\n  pParse->nMem = iVar3 + 2 + iVar6;\n  if (0 < sVar1) {\n    iVar5 = 0;\n    do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);\n  }\n  if (pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0) goto LAB_0016add6;\n  if (pList == (ExprList *)0x0) {\n    iVar3 = pList_00->nExpr;\n    local_3c = pMWin->nBufferCol;\n    iVar6 = pMWin->regPart;\n    iVar7 = 0;\n    iVar5 = 0;\nLAB_0016ad1e:\n    iVar2 = 0;\n    if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }\n    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));\n    if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }\n  }\n  else {\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr);\n  sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3);\n  if (iVar2 != 0) {\n    sqlite3VdbeJumpHere(p_00,iVar2);\n  }\nLAB_0016add6:\n  windowAggStep(pParse,pMWin,-1,0,reg,0);\n  if (pMWin->nBufferCol < 1) {\n    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);\n    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);\n  }\n  else {\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }\n  sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1);\n  sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1);\n  sqlite3WhereEnd(pWInfo);\n  windowAggFinal(pParse,pMWin,1);\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  return;\n}\n\n" (function_definition "void windowCodeDefaultStep(Parse *pParse,Select *p,WhereInfo *pWInfo,int regGosub,int addrGosub)\n\n{\n  int reg;\n  short sVar1;\n  Window *pMWin;\n  ExprList *pList;\n  int p2;\n  int iVar2;\n  int iVar3;\n  Vdbe *p_00;\n  ExprList *pList_00;\n  KeyInfo *pKVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int local_3c;\n  \n  pMWin = p->pWin;\n  p_00 = sqlite3GetVdbe(pParse);\n  iVar7 = p->pSrc->a[0].iCursor;\n  sVar1 = (p->pSrc->a[0].pTab)->nCol;\n  iVar6 = (int)sVar1;\n  iVar3 = pParse->nMem;\n  reg = iVar3 + 1;\n  p2 = reg + iVar6;\n  pList = pMWin->pPartition;\n  pList_00 = (ExprList *)0x0;\n  if (pMWin->eEnd != 'W') {\n    pList_00 = pMWin->pOrderBy;\n  }\n  pParse->nMem = iVar3 + 2 + iVar6;\n  if (0 < sVar1) {\n    iVar5 = 0;\n    do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);\n  }\n  if (pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0) goto LAB_0016add6;\n  if (pList == (ExprList *)0x0) {\n    iVar3 = pList_00->nExpr;\n    local_3c = pMWin->nBufferCol;\n    iVar6 = pMWin->regPart;\n    iVar7 = 0;\n    iVar5 = 0;\nLAB_0016ad1e:\n    iVar2 = 0;\n    if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }\n    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));\n    if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }\n  }\n  else {\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr);\n  sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3);\n  if (iVar2 != 0) {\n    sqlite3VdbeJumpHere(p_00,iVar2);\n  }\nLAB_0016add6:\n  windowAggStep(pParse,pMWin,-1,0,reg,0);\n  if (pMWin->nBufferCol < 1) {\n    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);\n    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);\n  }\n  else {\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }\n  sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1);\n  sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1);\n  sqlite3WhereEnd(pWInfo);\n  windowAggFinal(pParse,pMWin,1);\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  return;\n}" primitive_type (function_declarator "windowCodeDefaultStep(Parse *pParse,Select *p,WhereInfo *pWInfo,int regGosub,int addrGosub)" identifier (parameter_list "(Parse *pParse,Select *p,WhereInfo *pWInfo,int regGosub,int addrGosub)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Select *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "WhereInfo *pWInfo" type_identifier (pointer_declarator "*pWInfo" * identifier)) , (parameter_declaration "int regGosub" primitive_type identifier) , (parameter_declaration "int addrGosub" primitive_type identifier) ))) (compound_statement "{\n  int reg;\n  short sVar1;\n  Window *pMWin;\n  ExprList *pList;\n  int p2;\n  int iVar2;\n  int iVar3;\n  Vdbe *p_00;\n  ExprList *pList_00;\n  KeyInfo *pKVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int local_3c;\n  \n  pMWin = p->pWin;\n  p_00 = sqlite3GetVdbe(pParse);\n  iVar7 = p->pSrc->a[0].iCursor;\n  sVar1 = (p->pSrc->a[0].pTab)->nCol;\n  iVar6 = (int)sVar1;\n  iVar3 = pParse->nMem;\n  reg = iVar3 + 1;\n  p2 = reg + iVar6;\n  pList = pMWin->pPartition;\n  pList_00 = (ExprList *)0x0;\n  if (pMWin->eEnd != 'W') {\n    pList_00 = pMWin->pOrderBy;\n  }\n  pParse->nMem = iVar3 + 2 + iVar6;\n  if (0 < sVar1) {\n    iVar5 = 0;\n    do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);\n  }\n  if (pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0) goto LAB_0016add6;\n  if (pList == (ExprList *)0x0) {\n    iVar3 = pList_00->nExpr;\n    local_3c = pMWin->nBufferCol;\n    iVar6 = pMWin->regPart;\n    iVar7 = 0;\n    iVar5 = 0;\nLAB_0016ad1e:\n    iVar2 = 0;\n    if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }\n    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));\n    if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }\n  }\n  else {\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr);\n  sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3);\n  if (iVar2 != 0) {\n    sqlite3VdbeJumpHere(p_00,iVar2);\n  }\nLAB_0016add6:\n  windowAggStep(pParse,pMWin,-1,0,reg,0);\n  if (pMWin->nBufferCol < 1) {\n    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);\n    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);\n  }\n  else {\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }\n  sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1);\n  sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1);\n  sqlite3WhereEnd(pWInfo);\n  windowAggFinal(pParse,pMWin,1);\n  sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);\n  sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);\n  sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);\n  return;\n}" { (declaration "int reg;" primitive_type identifier ;) (declaration "short sVar1;" (sized_type_specifier "short" short) identifier ;) (declaration "Window *pMWin;" type_identifier (pointer_declarator "*pMWin" * identifier) ;) (declaration "ExprList *pList;" type_identifier (pointer_declarator "*pList" * identifier) ;) (declaration "int p2;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Vdbe *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "ExprList *pList_00;" type_identifier (pointer_declarator "*pList_00" * identifier) ;) (declaration "KeyInfo *pKVar4;" type_identifier (pointer_declarator "*pKVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "pMWin = p->pWin;" (assignment_expression "pMWin = p->pWin" identifier = (field_expression "p->pWin" identifier -> field_identifier)) ;) (expression_statement "p_00 = sqlite3GetVdbe(pParse);" (assignment_expression "p_00 = sqlite3GetVdbe(pParse)" identifier = (call_expression "sqlite3GetVdbe(pParse)" identifier (argument_list "(pParse)" ( identifier )))) ;) (expression_statement "iVar7 = p->pSrc->a[0].iCursor;" (assignment_expression "iVar7 = p->pSrc->a[0].iCursor" identifier = (field_expression "p->pSrc->a[0].iCursor" (subscript_expression "p->pSrc->a[0]" (field_expression "p->pSrc->a" (field_expression "p->pSrc" identifier -> field_identifier) -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "sVar1 = (p->pSrc->a[0].pTab)->nCol;" (assignment_expression "sVar1 = (p->pSrc->a[0].pTab)->nCol" identifier = (field_expression "(p->pSrc->a[0].pTab)->nCol" (parenthesized_expression "(p->pSrc->a[0].pTab)" ( (field_expression "p->pSrc->a[0].pTab" (subscript_expression "p->pSrc->a[0]" (field_expression "p->pSrc->a" (field_expression "p->pSrc" identifier -> field_identifier) -> field_identifier) [ number_literal ]) . field_identifier) )) -> field_identifier)) ;) (expression_statement "iVar6 = (int)sVar1;" (assignment_expression "iVar6 = (int)sVar1" identifier = (cast_expression "(int)sVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar3 = pParse->nMem;" (assignment_expression "iVar3 = pParse->nMem" identifier = (field_expression "pParse->nMem" identifier -> field_identifier)) ;) (expression_statement "reg = iVar3 + 1;" (assignment_expression "reg = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "p2 = reg + iVar6;" (assignment_expression "p2 = reg + iVar6" identifier = (binary_expression "reg + iVar6" identifier + identifier)) ;) (expression_statement "pList = pMWin->pPartition;" (assignment_expression "pList = pMWin->pPartition" identifier = (field_expression "pMWin->pPartition" identifier -> field_identifier)) ;) (expression_statement "pList_00 = (ExprList *)0x0;" (assignment_expression "pList_00 = (ExprList *)0x0" identifier = (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pMWin->eEnd != 'W') {\n    pList_00 = pMWin->pOrderBy;\n  }" if (parenthesized_expression "(pMWin->eEnd != 'W')" ( (binary_expression "pMWin->eEnd != 'W'" (field_expression "pMWin->eEnd" identifier -> field_identifier) != (char_literal "'W'" ' character ')) )) (compound_statement "{\n    pList_00 = pMWin->pOrderBy;\n  }" { (expression_statement "pList_00 = pMWin->pOrderBy;" (assignment_expression "pList_00 = pMWin->pOrderBy" identifier = (field_expression "pMWin->pOrderBy" identifier -> field_identifier)) ;) })) (expression_statement "pParse->nMem = iVar3 + 2 + iVar6;" (assignment_expression "pParse->nMem = iVar3 + 2 + iVar6" (field_expression "pParse->nMem" identifier -> field_identifier) = (binary_expression "iVar3 + 2 + iVar6" (binary_expression "iVar3 + 2" identifier + number_literal) + identifier)) ;) (if_statement "if (0 < sVar1) {\n    iVar5 = 0;\n    do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);\n  }" if (parenthesized_expression "(0 < sVar1)" ( (binary_expression "0 < sVar1" number_literal < identifier) )) (compound_statement "{\n    iVar5 = 0;\n    do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    } while (iVar6 != iVar5);" do (compound_statement "{\n      sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5);" (call_expression "sqlite3VdbeAddOp3(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5)" identifier (argument_list "(p_00,0x5a,iVar7,iVar5,iVar3 + 1 + iVar5)" ( identifier , number_literal , identifier , identifier , (binary_expression "iVar3 + 1 + iVar5" (binary_expression "iVar3 + 1" identifier + number_literal) + identifier) ))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar5)" ( (binary_expression "iVar6 != iVar5" identifier != identifier) )) ;) })) (if_statement "if (pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0) goto LAB_0016add6;" if (parenthesized_expression "(pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0)" ( (binary_expression "pList_00 == (ExprList *)0x0 && pList == (ExprList *)0x0" (binary_expression "pList_00 == (ExprList *)0x0" identifier == (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "pList == (ExprList *)0x0" identifier == (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) (goto_statement "goto LAB_0016add6;" goto statement_identifier ;)) (if_statement "if (pList == (ExprList *)0x0) {\n    iVar3 = pList_00->nExpr;\n    local_3c = pMWin->nBufferCol;\n    iVar6 = pMWin->regPart;\n    iVar7 = 0;\n    iVar5 = 0;\nLAB_0016ad1e:\n    iVar2 = 0;\n    if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }\n    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));\n    if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }\n  }\n  else {\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }" if (parenthesized_expression "(pList == (ExprList *)0x0)" ( (binary_expression "pList == (ExprList *)0x0" identifier == (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = pList_00->nExpr;\n    local_3c = pMWin->nBufferCol;\n    iVar6 = pMWin->regPart;\n    iVar7 = 0;\n    iVar5 = 0;\nLAB_0016ad1e:\n    iVar2 = 0;\n    if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }\n    windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));\n    if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }\n  }" { (expression_statement "iVar3 = pList_00->nExpr;" (assignment_expression "iVar3 = pList_00->nExpr" identifier = (field_expression "pList_00->nExpr" identifier -> field_identifier)) ;) (expression_statement "local_3c = pMWin->nBufferCol;" (assignment_expression "local_3c = pMWin->nBufferCol" identifier = (field_expression "pMWin->nBufferCol" identifier -> field_identifier)) ;) (expression_statement "iVar6 = pMWin->regPart;" (assignment_expression "iVar6 = pMWin->regPart" identifier = (field_expression "pMWin->regPart" identifier -> field_identifier)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0016ad1e:\n    iVar2 = 0;" statement_identifier : (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;)) (if_statement "if (pMWin->eType == 'V') {\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }" if (parenthesized_expression "(pMWin->eType == 'V')" ( (binary_expression "pMWin->eType == 'V'" (field_expression "pMWin->eType" identifier -> field_identifier) == (char_literal "'V'" ' character ')) )) (compound_statement "{\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n    }" { (expression_statement "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0);" (assignment_expression "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList_00,0,0)" identifier = (call_expression "sqlite3KeyInfoFromExprList(pParse,pList_00,0,0)" identifier (argument_list "(pParse,pList_00,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3);" (assignment_expression "iVar6 = sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3)" identifier (argument_list "(p_00,0x57,local_3c + reg + iVar7,iVar6 + iVar7,iVar3)" ( identifier , number_literal , (binary_expression "local_3c + reg + iVar7" (binary_expression "local_3c + reg" identifier + identifier) + identifier) , (binary_expression "iVar6 + iVar7" identifier + identifier) , identifier )))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,pKVar4,-9);" (call_expression "sqlite3VdbeAppendP4(p_00,pKVar4,-9)" identifier (argument_list "(p_00,pKVar4,-9)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);" (assignment_expression "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" identifier (argument_list "(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" ( identifier , number_literal , (binary_expression "iVar6 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) })) (expression_statement "windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'));" (call_expression "windowAggFinal(pParse,pMWin,(uint)(pMWin->eStart == 'R'))" identifier (argument_list "(pParse,pMWin,(uint)(pMWin->eStart == 'R'))" ( identifier , identifier , (call_expression "(uint)(pMWin->eStart == 'R')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pMWin->eStart == 'R')" ( (binary_expression "pMWin->eStart == 'R'" (field_expression "pMWin->eStart" identifier -> field_identifier) == (char_literal "'R'" ' character ')) ))) ))) ;) (if_statement "if (iVar5 != 0) {\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      sqlite3VdbeJumpHere(p_00,iVar5);\n    }" { (expression_statement "sqlite3VdbeJumpHere(p_00,iVar5);" (call_expression "sqlite3VdbeJumpHere(p_00,iVar5)" identifier (argument_list "(p_00,iVar5)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }" else (compound_statement "{\n    iVar7 = pList->nExpr;\n    if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar3 = pMWin->nBufferCol;\n    pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n    iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);\n    sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n    iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);\n    windowAggFinal(pParse,pMWin,1);\n    iVar3 = 0;\n  }" { (expression_statement "iVar7 = pList->nExpr;" (assignment_expression "iVar7 = pList->nExpr" identifier = (field_expression "pList->nExpr" identifier -> field_identifier)) ;) (if_statement "if (pList_00 != (ExprList *)0x0) {\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }" if (parenthesized_expression "(pList_00 != (ExprList *)0x0)" ( (binary_expression "pList_00 != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = pList_00->nExpr;\n      iVar6 = pMWin->nBufferCol;\n      pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);\n      iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);\n      sqlite3VdbeAppendP4(p_00,pKVar4,-9);\n      iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);\n      windowAggFinal(pParse,pMWin,1);\n      iVar5 = sqlite3VdbeAddOp0(p_00,0xb);\n      local_3c = pMWin->nBufferCol;\n      iVar6 = pMWin->regPart;\n      if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }\n      goto LAB_0016ad1e;\n    }" { (expression_statement "iVar3 = pList_00->nExpr;" (assignment_expression "iVar3 = pList_00->nExpr" identifier = (field_expression "pList_00->nExpr" identifier -> field_identifier)) ;) (expression_statement "iVar6 = pMWin->nBufferCol;" (assignment_expression "iVar6 = pMWin->nBufferCol" identifier = (field_expression "pMWin->nBufferCol" identifier -> field_identifier)) ;) (expression_statement "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);" (assignment_expression "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0)" identifier = (call_expression "sqlite3KeyInfoFromExprList(pParse,pList,0,0)" identifier (argument_list "(pParse,pList,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7);" (assignment_expression "iVar6 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7)" identifier (argument_list "(p_00,0x57,reg + iVar6,pMWin->regPart,iVar7)" ( identifier , number_literal , (binary_expression "reg + iVar6" identifier + identifier) , (field_expression "pMWin->regPart" identifier -> field_identifier) , identifier )))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,pKVar4,-9);" (call_expression "sqlite3VdbeAppendP4(p_00,pKVar4,-9)" identifier (argument_list "(p_00,pKVar4,-9)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2);" (assignment_expression "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" identifier (argument_list "(p_00,0x10,iVar6 + 2,0,iVar6 + 2)" ( identifier , number_literal , (binary_expression "iVar6 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) (expression_statement "windowAggFinal(pParse,pMWin,1);" (call_expression "windowAggFinal(pParse,pMWin,1)" identifier (argument_list "(pParse,pMWin,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar5 = sqlite3VdbeAddOp0(p_00,0xb);" (assignment_expression "iVar5 = sqlite3VdbeAddOp0(p_00,0xb)" identifier = (call_expression "sqlite3VdbeAddOp0(p_00,0xb)" identifier (argument_list "(p_00,0xb)" ( identifier , number_literal )))) ;) (expression_statement "local_3c = pMWin->nBufferCol;" (assignment_expression "local_3c = pMWin->nBufferCol" identifier = (field_expression "pMWin->nBufferCol" identifier -> field_identifier)) ;) (expression_statement "iVar6 = pMWin->regPart;" (assignment_expression "iVar6 = pMWin->regPart" identifier = (field_expression "pMWin->regPart" identifier -> field_identifier)) ;) (if_statement "if (iVar2 != 0) {\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        sqlite3VdbeJumpHere(p_00,iVar2);\n      }" { (expression_statement "sqlite3VdbeJumpHere(p_00,iVar2);" (call_expression "sqlite3VdbeJumpHere(p_00,iVar2)" identifier (argument_list "(p_00,iVar2)" ( identifier , identifier ))) ;) })) (goto_statement "goto LAB_0016ad1e;" goto statement_identifier ;) })) (expression_statement "iVar3 = pMWin->nBufferCol;" (assignment_expression "iVar3 = pMWin->nBufferCol" identifier = (field_expression "pMWin->nBufferCol" identifier -> field_identifier)) ;) (expression_statement "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0);" (assignment_expression "pKVar4 = sqlite3KeyInfoFromExprList(pParse,pList,0,0)" identifier = (call_expression "sqlite3KeyInfoFromExprList(pParse,pList,0,0)" identifier (argument_list "(pParse,pList,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7);" (assignment_expression "iVar3 = sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7)" identifier (argument_list "(p_00,0x57,reg + iVar3,pMWin->regPart,iVar7)" ( identifier , number_literal , (binary_expression "reg + iVar3" identifier + identifier) , (field_expression "pMWin->regPart" identifier -> field_identifier) , identifier )))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,pKVar4,-9);" (call_expression "sqlite3VdbeAppendP4(p_00,pKVar4,-9)" identifier (argument_list "(p_00,pKVar4,-9)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2);" (assignment_expression "iVar2 = sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2)" identifier = (call_expression "sqlite3VdbeAddOp3(p_00,0x10,iVar3 + 2,0,iVar3 + 2)" identifier (argument_list "(p_00,0x10,iVar3 + 2,0,iVar3 + 2)" ( identifier , number_literal , (binary_expression "iVar3 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar3 + 2" identifier + number_literal) )))) ;) (expression_statement "windowAggFinal(pParse,pMWin,1);" (call_expression "windowAggFinal(pParse,pMWin,1)" identifier (argument_list "(pParse,pMWin,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);" (call_expression "sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3)" identifier (argument_list "(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "p_00->nOp + 3" (field_expression "p_00->nOp" identifier -> field_identifier) + number_literal) ))) ;) (expression_statement "sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);" (call_expression "sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub)" identifier (argument_list "(p_00,0xc,regGosub,addrGosub)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);" (call_expression "sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1)" identifier (argument_list "(p_00,5,pMWin->iEphCsr,p_00->nOp + -1)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "p_00->nOp + -1" (field_expression "p_00->nOp" identifier -> field_identifier) + number_literal) ))) ;) (expression_statement "sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr);" (call_expression "sqlite3VdbeAddOp1(p_00,0x8a,pMWin->iEphCsr)" identifier (argument_list "(p_00,0x8a,pMWin->iEphCsr)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3);" (call_expression "sqlite3VdbeAddOp3(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3)" identifier (argument_list "(p_00,0x4e,reg + pMWin->nBufferCol,pMWin->regPart,iVar7 + -1 + iVar3)" ( identifier , number_literal , (binary_expression "reg + pMWin->nBufferCol" identifier + (field_expression "pMWin->nBufferCol" identifier -> field_identifier)) , (field_expression "pMWin->regPart" identifier -> field_identifier) , (binary_expression "iVar7 + -1 + iVar3" (binary_expression "iVar7 + -1" identifier + number_literal) + identifier) ))) ;) (if_statement "if (iVar2 != 0) {\n    sqlite3VdbeJumpHere(p_00,iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    sqlite3VdbeJumpHere(p_00,iVar2);\n  }" { (expression_statement "sqlite3VdbeJumpHere(p_00,iVar2);" (call_expression "sqlite3VdbeJumpHere(p_00,iVar2)" identifier (argument_list "(p_00,iVar2)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0016add6:\n  windowAggStep(pParse,pMWin,-1,0,reg,0);" statement_identifier : (expression_statement "windowAggStep(pParse,pMWin,-1,0,reg,0);" (call_expression "windowAggStep(pParse,pMWin,-1,0,reg,0)" identifier (argument_list "(pParse,pMWin,-1,0,reg,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal ))) ;)) (if_statement "if (pMWin->nBufferCol < 1) {\n    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);\n    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);\n  }\n  else {\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }" if (parenthesized_expression "(pMWin->nBufferCol < 1)" ( (binary_expression "pMWin->nBufferCol < 1" (field_expression "pMWin->nBufferCol" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    sqlite3VdbeAddOp2(p_00,0x4b,0,p2);\n    sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);\n  }" { (expression_statement "sqlite3VdbeAddOp2(p_00,0x4b,0,p2);" (call_expression "sqlite3VdbeAddOp2(p_00,0x4b,0,p2)" identifier (argument_list "(p_00,0x4b,0,p2)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0);" (call_expression "sqlite3VdbeAppendP4(p_00,&DAT_001eb77f,0)" identifier (argument_list "(p_00,&DAT_001eb77f,0)" ( identifier , (pointer_expression "&DAT_001eb77f" & identifier) , number_literal ))) ;) }) (else_clause "else {\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }" else (compound_statement "{\n    sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);\n  }" { (expression_statement "sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2);" (call_expression "sqlite3VdbeAddOp3(p_00,0x66,reg,pMWin->nBufferCol,p2)" identifier (argument_list "(p_00,0x66,reg,pMWin->nBufferCol,p2)" ( identifier , number_literal , identifier , (field_expression "pMWin->nBufferCol" identifier -> field_identifier) , identifier ))) ;) }))) (expression_statement "sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1);" (call_expression "sqlite3VdbeAddOp2(p_00,0x79,pMWin->iEphCsr,p2 + 1)" identifier (argument_list "(p_00,0x79,pMWin->iEphCsr,p2 + 1)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "p2 + 1" identifier + number_literal) ))) ;) (expression_statement "sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1);" (call_expression "sqlite3VdbeAddOp3(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1)" identifier (argument_list "(p_00,0x7a,pMWin->iEphCsr,p2,p2 + 1)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , identifier , (binary_expression "p2 + 1" identifier + number_literal) ))) ;) (expression_statement "sqlite3WhereEnd(pWInfo);" (call_expression "sqlite3WhereEnd(pWInfo)" identifier (argument_list "(pWInfo)" ( identifier ))) ;) (expression_statement "windowAggFinal(pParse,pMWin,1);" (call_expression "windowAggFinal(pParse,pMWin,1)" identifier (argument_list "(pParse,pMWin,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);" (call_expression "sqlite3VdbeAddOp2(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3)" identifier (argument_list "(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "p_00->nOp + 3" (field_expression "p_00->nOp" identifier -> field_identifier) + number_literal) ))) ;) (expression_statement "sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub);" (call_expression "sqlite3VdbeAddOp2(p_00,0xc,regGosub,addrGosub)" identifier (argument_list "(p_00,0xc,regGosub,addrGosub)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);" (call_expression "sqlite3VdbeAddOp2(p_00,5,pMWin->iEphCsr,p_00->nOp + -1)" identifier (argument_list "(p_00,5,pMWin->iEphCsr,p_00->nOp + -1)" ( identifier , number_literal , (field_expression "pMWin->iEphCsr" identifier -> field_identifier) , (binary_expression "p_00->nOp + -1" (field_expression "p_00->nOp" identifier -> field_identifier) + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )\n\n{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}\n\n" (function_definition "void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )\n\n{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" primitive_type (function_declarator "FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" identifier (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "undefined8 uVar11;" type_identifier identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "lVar4 = *(long *)(param_2 + 0x70);" (assignment_expression "lVar4 = *(long *)(param_2 + 0x70)" identifier = (pointer_expression "*(long *)(param_2 + 0x70)" * (cast_expression "(long *)(param_2 + 0x70)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "lVar9 = FUN_00152f06();" (assignment_expression "lVar9 = FUN_00152f06()" identifier = (call_expression "FUN_00152f06()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);" (assignment_expression "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" identifier = (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x48)" ( (binary_expression "*(long *)(param_2 + 0x28) + 0x48" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);" (assignment_expression "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" identifier = (pointer_expression "*(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" * (cast_expression "(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" ( (binary_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46" (pointer_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28)" * (cast_expression "(long *)(*(long *)(param_2 + 0x28) + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x28)" ( (binary_expression "*(long *)(param_2 + 0x28) + 0x28" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "iVar13 = (int)sVar2;" (assignment_expression "iVar13 = (int)sVar2" identifier = (cast_expression "(int)sVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iVar14 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = iVar14 + 1;" (assignment_expression "iVar1 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar1 + iVar13;" (assignment_expression "iVar6 = iVar1 + iVar13" identifier = (binary_expression "iVar1 + iVar13" identifier + identifier)) ;) (expression_statement "piVar5 = *(int **)(lVar4 + 8);" (assignment_expression "piVar5 = *(int **)(lVar4 + 8)" identifier = (pointer_expression "*(int **)(lVar4 + 8)" * (cast_expression "(int **)(lVar4 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 8)" ( (binary_expression "lVar4 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar10 = (int *)0x0;" (assignment_expression "piVar10 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" if (parenthesized_expression "(*(char *)(lVar4 + 0x1a) != 'W')" ( (binary_expression "*(char *)(lVar4 + 0x1a) != 'W'" (pointer_expression "*(char *)(lVar4 + 0x1a)" * (cast_expression "(char *)(lVar4 + 0x1a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1a)" ( (binary_expression "lVar4 + 0x1a" identifier + number_literal) )))) != (char_literal "'W'" ' character ')) )) (compound_statement "{\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" { (expression_statement "piVar10 = *(int **)(lVar4 + 0x10);" (assignment_expression "piVar10 = *(int **)(lVar4 + 0x10)" identifier = (pointer_expression "*(int **)(lVar4 + 0x10)" * (cast_expression "(int **)(lVar4 + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) = (binary_expression "iVar14 + 2 + iVar13" (binary_expression "iVar14 + 2" identifier + number_literal) + identifier)) ;) (if_statement "if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" if (parenthesized_expression "(0 < sVar2)" ( (binary_expression "0 < sVar2" number_literal < identifier) )) (compound_statement "{\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" { (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (do_statement "do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);" do (compound_statement "{\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    }" { (expression_statement "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);" (call_expression "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" identifier (argument_list "(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" ( identifier , number_literal , identifier , identifier , (binary_expression "iVar14 + 1 + iVar12" (binary_expression "iVar14 + 1" identifier + number_literal) + identifier) ))) ;) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar13 != iVar12)" ( (binary_expression "iVar13 != iVar12" identifier != identifier) )) ;) })) (if_statement "if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;" if (parenthesized_expression "(piVar10 == (int *)0x0 && piVar5 == (int *)0x0)" ( (binary_expression "piVar10 == (int *)0x0 && piVar5 == (int *)0x0" (binary_expression "piVar10 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (goto_statement "goto LAB_0016add6;" goto statement_identifier ;)) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }" { (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x5c)" * (cast_expression "(int *)(lVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0016ad1e:\n    iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (if_statement "if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" if (parenthesized_expression "(*(char *)(lVar4 + 0x18) == 'V')" ( (binary_expression "*(char *)(lVar4 + 0x18) == 'V'" (pointer_expression "*(char *)(lVar4 + 0x18)" * (cast_expression "(char *)(lVar4 + 0x18)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == (char_literal "'V'" ' character ')) )) (compound_statement "{\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" { (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar10,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar10,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar10,0,0)" identifier (argument_list "(param_1,piVar10,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" identifier (argument_list "(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" ( identifier , number_literal , (binary_expression "local_3c + iVar1 + iVar14" (binary_expression "local_3c + iVar1" identifier + identifier) + identifier) , (binary_expression "iVar12 + iVar14" identifier + identifier) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" ( identifier , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');" (call_expression "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" identifier (argument_list "(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" ( identifier , identifier , (binary_expression "*(char *)(lVar4 + 0x19) == 'R'" (pointer_expression "*(char *)(lVar4 + 0x19)" * (cast_expression "(char *)(lVar4 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x19)" ( (binary_expression "lVar4 + 0x19" identifier + number_literal) )))) == (char_literal "'R'" ' character ')) ))) ;) (if_statement "if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_0012d3b0(lVar9,iVar8);\n    }" { (expression_statement "FUN_0012d3b0(lVar9,iVar8);" (call_expression "FUN_0012d3b0(lVar9,iVar8)" identifier (argument_list "(lVar9,iVar8)" ( identifier , identifier ))) ;) })) }) (else_clause "else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" else (compound_statement "{\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" { (expression_statement "iVar14 = *piVar5;" (assignment_expression "iVar14 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) (if_statement "if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" if (parenthesized_expression "(piVar10 != (int *)0x0)" ( (binary_expression "piVar10 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" { (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" identifier = (pointer_expression "*piVar10" * identifier)) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" identifier (argument_list "(param_1,piVar5,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier (argument_list "(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" ( identifier , number_literal , (binary_expression "iVar1 + iVar12" identifier + identifier) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" identifier (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" ( identifier , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar12 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar8 = FUN_00152fa7(lVar9,0xb);" (assignment_expression "iVar8 = FUN_00152fa7(lVar9,0xb)" identifier = (call_expression "FUN_00152fa7(lVar9,0xb)" identifier (argument_list "(lVar9,0xb)" ( identifier , number_literal )))) ;) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x5c)" * (cast_expression "(int *)(lVar4 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) ))))) ;) (if_statement "if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_0012d3b0(lVar9,iVar7);\n      }" { (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" identifier (argument_list "(lVar9,iVar7)" ( identifier , identifier ))) ;) })) (goto_statement "goto LAB_0016ad1e;" goto statement_identifier ;) })) (expression_statement "iVar13 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar13 = *(int *)(lVar4 + 0x68)" identifier = (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) ;) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" identifier = (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" identifier (argument_list "(param_1,piVar5,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (expression_statement "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier = (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" identifier (argument_list "(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" ( identifier , number_literal , (binary_expression "iVar1 + iVar13" identifier + identifier) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" identifier (argument_list "(lVar9,uVar11,0xfffffff7)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" identifier = (call_expression "FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" identifier (argument_list "(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" ( identifier , number_literal , (binary_expression "iVar13 + 2" identifier + number_literal) , number_literal , (binary_expression "iVar13 + 2" identifier + number_literal) )))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) }))) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" identifier (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" identifier (argument_list "(lVar9,0xc,param_4,param_5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" identifier (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));" (call_expression "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" identifier (argument_list "(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);" (call_expression "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" identifier (argument_list "(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" ( identifier , number_literal , (binary_expression "iVar1 + *(int *)(lVar4 + 0x68)" identifier + (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) ))))) , (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" * (cast_expression "(undefined4 *)(lVar4 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x5c)" ( (binary_expression "lVar4 + 0x5c" identifier + number_literal) )))) , (binary_expression "iVar14 + -1 + iVar13" (binary_expression "iVar14 + -1" identifier + number_literal) + identifier) ))) ;) (if_statement "if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0012d3b0(lVar9,iVar7);\n  }" { (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" identifier (argument_list "(lVar9,iVar7)" ( identifier , identifier ))) ;) })) (labeled_statement "LAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" statement_identifier : (expression_statement "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" (call_expression "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0)" identifier (argument_list "(param_1,lVar4,0xffffffff,0,iVar1,0)" ( identifier , identifier , number_literal , number_literal , identifier , number_literal ))) ;)) (if_statement "if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" if (parenthesized_expression "(*(int *)(lVar4 + 0x68) < 1)" ( (binary_expression "*(int *)(lVar4 + 0x68) < 1" (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }" { (expression_statement "FUN_00152e46(lVar9,0x4b,0,iVar6);" (call_expression "FUN_00152e46(lVar9,0x4b,0,iVar6)" identifier (argument_list "(lVar9,0x4b,0,iVar6)" ( identifier , number_literal , number_literal , identifier ))) ;) (expression_statement "FUN_0014401d(lVar9,&DAT_001eb77f,0);" (call_expression "FUN_0014401d(lVar9,&DAT_001eb77f,0)" identifier (argument_list "(lVar9,&DAT_001eb77f,0)" ( identifier , (pointer_expression "&DAT_001eb77f" & identifier) , number_literal ))) ;) }) (else_clause "else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" else (compound_statement "{\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" { (expression_statement "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);" (call_expression "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" identifier (argument_list "(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" ( identifier , number_literal , identifier , (pointer_expression "*(int *)(lVar4 + 0x68)" * (cast_expression "(int *)(lVar4 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x68)" ( (binary_expression "lVar4 + 0x68" identifier + number_literal) )))) , identifier ))) ;) }))) (expression_statement "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);" (call_expression "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" identifier (argument_list "(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);" (call_expression "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" identifier (argument_list "(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , identifier , (binary_expression "iVar6 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_0016a40e(param_3);" (call_expression "FUN_0016a40e(param_3)" identifier (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" identifier (argument_list "(param_1,lVar4,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" identifier (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" identifier (argument_list "(lVar9,0xc,param_4,param_5)" ( identifier , number_literal , identifier , identifier ))) ;) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" identifier (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" * (cast_expression "(undefined4 *)(lVar4 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x48)" ( (binary_expression "lVar4 + 0x48" identifier + number_literal) )))) , (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" * (cast_expression "(int *)(lVar9 + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x90)" ( (binary_expression "lVar9 + 0x90" identifier + number_literal) )))) + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 = (call_expression IDENT (argument_list ( )))) ;) (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 IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression 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) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) && (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression (binary_expression IDENT + IDENT) + IDENT) , (binary_expression IDENT + IDENT) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' character ')) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) (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 ( IDENT , IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (binary_expression IDENT + LIT) + IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT , IDENT , LIT ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )\n\n{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0016aa15(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" (identifier "FUN_0016aa15") (parameter_list "(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5\n                 )" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  short sVar2;\n  undefined4 uVar3;\n  long lVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  long lVar9;\n  int *piVar10;\n  undefined8 uVar11;\n  int iVar12;\n  int iVar13;\n  int iVar14;\n  int local_3c;\n  \n  lVar4 = *(long *)(param_2 + 0x70);\n  lVar9 = FUN_00152f06();\n  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);\n  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);\n  iVar13 = (int)sVar2;\n  iVar14 = *(int *)(param_1 + 0x38);\n  iVar1 = iVar14 + 1;\n  iVar6 = iVar1 + iVar13;\n  piVar5 = *(int **)(lVar4 + 8);\n  piVar10 = (int *)0x0;\n  if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }\n  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;\n  if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }\n  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;\n  if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));\n  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);\n  if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }\nLAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);\n  if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }\n  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);\n  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);\n  FUN_0016a40e(param_3);\n  FUN_00153833(param_1,lVar4,1);\n  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);\n  FUN_00152e46(lVar9,0xc,param_4,param_5);\n  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "short sVar2;" (sized_type_specifier "short" (short "short")) (identifier "sVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "int *piVar10;" (primitive_type "int") (pointer_declarator "*piVar10" (* "*") (identifier "piVar10")) (; ";")) (declaration "undefined8 uVar11;" (type_identifier "undefined8") (identifier "uVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (expression_statement "lVar4 = *(long *)(param_2 + 0x70);" (assignment_expression "lVar4 = *(long *)(param_2 + 0x70)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(param_2 + 0x70)" (* "*") (cast_expression "(long *)(param_2 + 0x70)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x70)" (( "(") (binary_expression "param_2 + 0x70" (identifier "param_2") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "lVar9 = FUN_00152f06();" (assignment_expression "lVar9 = FUN_00152f06()" (identifier "lVar9") (= "=") (call_expression "FUN_00152f06()" (identifier "FUN_00152f06") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);" (assignment_expression "uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x48)" (( "(") (binary_expression "*(long *)(param_2 + 0x28) + 0x48" (pointer_expression "*(long *)(param_2 + 0x28)" (* "*") (cast_expression "(long *)(param_2 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);" (assignment_expression "sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" (identifier "sVar2") (= "=") (pointer_expression "*(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" (* "*") (cast_expression "(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46)" (( "(") (binary_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46" (pointer_expression "*(long *)(*(long *)(param_2 + 0x28) + 0x28)" (* "*") (cast_expression "(long *)(*(long *)(param_2 + 0x28) + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0x28) + 0x28)" (( "(") (binary_expression "*(long *)(param_2 + 0x28) + 0x28" (pointer_expression "*(long *)(param_2 + 0x28)" (* "*") (cast_expression "(long *)(param_2 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (number_literal "0x28")) () ")")))) (+ "+") (number_literal "0x46")) () ")"))))) (; ";")) (expression_statement "iVar13 = (int)sVar2;" (assignment_expression "iVar13 = (int)sVar2" (identifier "iVar13") (= "=") (cast_expression "(int)sVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar2"))) (; ";")) (expression_statement "iVar14 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar14 = *(int *)(param_1 + 0x38)" (identifier "iVar14") (= "=") (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "iVar1 = iVar14 + 1;" (assignment_expression "iVar1 = iVar14 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar6 = iVar1 + iVar13;" (assignment_expression "iVar6 = iVar1 + iVar13" (identifier "iVar6") (= "=") (binary_expression "iVar1 + iVar13" (identifier "iVar1") (+ "+") (identifier "iVar13"))) (; ";")) (expression_statement "piVar5 = *(int **)(lVar4 + 8);" (assignment_expression "piVar5 = *(int **)(lVar4 + 8)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(lVar4 + 8)" (* "*") (cast_expression "(int **)(lVar4 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 8)" (( "(") (binary_expression "lVar4 + 8" (identifier "lVar4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "piVar10 = (int *)0x0;" (assignment_expression "piVar10 = (int *)0x0" (identifier "piVar10") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (*(char *)(lVar4 + 0x1a) != 'W') {\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" (if "if") (parenthesized_expression "(*(char *)(lVar4 + 0x1a) != 'W')" (( "(") (binary_expression "*(char *)(lVar4 + 0x1a) != 'W'" (pointer_expression "*(char *)(lVar4 + 0x1a)" (* "*") (cast_expression "(char *)(lVar4 + 0x1a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1a)" (( "(") (binary_expression "lVar4 + 0x1a" (identifier "lVar4") (+ "+") (number_literal "0x1a")) () ")")))) (!= "!=") (char_literal "'W'" (' "'") (character "W") (' "'"))) () ")")) (compound_statement "{\n    piVar10 = *(int **)(lVar4 + 0x10);\n  }" ({ "{") (expression_statement "piVar10 = *(int **)(lVar4 + 0x10);" (assignment_expression "piVar10 = *(int **)(lVar4 + 0x10)" (identifier "piVar10") (= "=") (pointer_expression "*(int **)(lVar4 + 0x10)" (* "*") (cast_expression "(int **)(lVar4 + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 0x10)" (( "(") (binary_expression "lVar4 + 0x10" (identifier "lVar4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;" (assignment_expression "*(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (binary_expression "iVar14 + 2 + iVar13" (binary_expression "iVar14 + 2" (identifier "iVar14") (+ "+") (number_literal "2")) (+ "+") (identifier "iVar13"))) (; ";")) (if_statement "if (0 < sVar2) {\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" (if "if") (parenthesized_expression "(0 < sVar2)" (( "(") (binary_expression "0 < sVar2" (number_literal "0") (< "<") (identifier "sVar2")) () ")")) (compound_statement "{\n    iVar12 = 0;\n    do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);\n  }" ({ "{") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    } while (iVar13 != iVar12);" (do "do") (compound_statement "{\n      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);\n      iVar12 = iVar12 + 1;\n    }" ({ "{") (expression_statement "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);" (call_expression "FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x5a") (, ",") (identifier "uVar3") (, ",") (identifier "iVar12") (, ",") (binary_expression "iVar14 + 1 + iVar12" (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar12")) () ")"))) (; ";")) (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar13 != iVar12)" (( "(") (binary_expression "iVar13 != iVar12" (identifier "iVar13") (!= "!=") (identifier "iVar12")) () ")")) (; ";")) (} "}"))) (if_statement "if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;" (if "if") (parenthesized_expression "(piVar10 == (int *)0x0 && piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar10 == (int *)0x0 && piVar5 == (int *)0x0" (binary_expression "piVar10 == (int *)0x0" (identifier "piVar10") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (&& "&&") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (goto_statement "goto LAB_0016add6;" (goto "goto") (statement_identifier "LAB_0016add6") (; ";"))) (if_statement "if (piVar5 == (int *)0x0) {\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }\n  else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar13 = *piVar10;\n    local_3c = *(int *)(lVar4 + 0x68);\n    iVar12 = *(int *)(lVar4 + 0x5c);\n    iVar14 = 0;\n    iVar8 = 0;\nLAB_0016ad1e:\n    iVar7 = 0;\n    if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }\n    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');\n    if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }\n  }" ({ "{") (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" (identifier "iVar13") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (; ";")) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(lVar4 + 0x5c)" (* "*") (cast_expression "(int *)(lVar4 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x5c)" (( "(") (binary_expression "lVar4 + 0x5c" (identifier "lVar4") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0016ad1e:\n    iVar7 = 0;" (statement_identifier "LAB_0016ad1e") (: ":") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (*(char *)(lVar4 + 0x18) == 'V') {\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" (if "if") (parenthesized_expression "(*(char *)(lVar4 + 0x18) == 'V')" (( "(") (binary_expression "*(char *)(lVar4 + 0x18) == 'V'" (pointer_expression "*(char *)(lVar4 + 0x18)" (* "*") (cast_expression "(char *)(lVar4 + 0x18)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (char_literal "'V'" (' "'") (character "V") (' "'"))) () ")")) (compound_statement "{\n      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n    }" ({ "{") (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar10,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar10,0,0)" (identifier "uVar11") (= "=") (call_expression "FUN_00162cb9(param_1,piVar10,0,0)" (identifier "FUN_00162cb9") (argument_list "(param_1,piVar10,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "piVar10") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" (identifier "iVar12") (= "=") (call_expression "FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x57") (, ",") (binary_expression "local_3c + iVar1 + iVar14" (binary_expression "local_3c + iVar1" (identifier "local_3c") (+ "+") (identifier "iVar1")) (+ "+") (identifier "iVar14")) (, ",") (binary_expression "iVar12 + iVar14" (identifier "iVar12") (+ "+") (identifier "iVar14")) (, ",") (identifier "iVar13") () ")")))) (; ";")) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" (identifier "FUN_0014401d") (argument_list "(lVar9,uVar11,0xfffffff7)" (( "(") (identifier "lVar9") (, ",") (identifier "uVar11") (, ",") (number_literal "0xfffffff7") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (identifier "iVar7") (= "=") (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x10") (, ",") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');" (call_expression "FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" (identifier "FUN_00153833") (argument_list "(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R')" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (binary_expression "*(char *)(lVar4 + 0x19) == 'R'" (pointer_expression "*(char *)(lVar4 + 0x19)" (* "*") (cast_expression "(char *)(lVar4 + 0x19)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x19)" (( "(") (binary_expression "lVar4 + 0x19" (identifier "lVar4") (+ "+") (number_literal "0x19")) () ")")))) (== "==") (char_literal "'R'" (' "'") (character "R") (' "'"))) () ")"))) (; ";")) (if_statement "if (iVar8 != 0) {\n      FUN_0012d3b0(lVar9,iVar8);\n    }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0012d3b0(lVar9,iVar8);\n    }" ({ "{") (expression_statement "FUN_0012d3b0(lVar9,iVar8);" (call_expression "FUN_0012d3b0(lVar9,iVar8)" (identifier "FUN_0012d3b0") (argument_list "(lVar9,iVar8)" (( "(") (identifier "lVar9") (, ",") (identifier "iVar8") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" (else "else") (compound_statement "{\n    iVar14 = *piVar5;\n    if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }\n    iVar13 = *(int *)(lVar4 + 0x68);\n    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n    FUN_0014401d(lVar9,uVar11,0xfffffff7);\n    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);\n    FUN_00153833(param_1,lVar4,1);\n    iVar13 = 0;\n  }" ({ "{") (expression_statement "iVar14 = *piVar5;" (assignment_expression "iVar14 = *piVar5" (identifier "iVar14") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (if_statement "if (piVar10 != (int *)0x0) {\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" (if "if") (parenthesized_expression "(piVar10 != (int *)0x0)" (( "(") (binary_expression "piVar10 != (int *)0x0" (identifier "piVar10") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar13 = *piVar10;\n      iVar12 = *(int *)(lVar4 + 0x68);\n      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);\n      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);\n      FUN_0014401d(lVar9,uVar11,0xfffffff7);\n      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);\n      FUN_00153833(param_1,lVar4,1);\n      iVar8 = FUN_00152fa7(lVar9,0xb);\n      local_3c = *(int *)(lVar4 + 0x68);\n      iVar12 = *(int *)(lVar4 + 0x5c);\n      if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }\n      goto LAB_0016ad1e;\n    }" ({ "{") (expression_statement "iVar13 = *piVar10;" (assignment_expression "iVar13 = *piVar10" (identifier "iVar13") (= "=") (pointer_expression "*piVar10" (* "*") (identifier "piVar10"))) (; ";")) (expression_statement "iVar12 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x68)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" (identifier "uVar11") (= "=") (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" (identifier "FUN_00162cb9") (argument_list "(param_1,piVar5,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "piVar5") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (identifier "iVar12") (= "=") (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x57") (, ",") (binary_expression "iVar1 + iVar12" (identifier "iVar1") (+ "+") (identifier "iVar12")) (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x5c)" (( "(") (binary_expression "lVar4 + 0x5c" (identifier "lVar4") (+ "+") (number_literal "0x5c")) () ")")))) (, ",") (identifier "iVar14") () ")")))) (; ";")) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" (identifier "FUN_0014401d") (argument_list "(lVar9,uVar11,0xfffffff7)" (( "(") (identifier "lVar9") (, ",") (identifier "uVar11") (, ",") (number_literal "0xfffffff7") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (identifier "iVar7") (= "=") (call_expression "FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x10,iVar12 + 2,0,iVar12 + 2)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x10") (, ",") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" (identifier "FUN_00153833") (argument_list "(param_1,lVar4,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "iVar8 = FUN_00152fa7(lVar9,0xb);" (assignment_expression "iVar8 = FUN_00152fa7(lVar9,0xb)" (identifier "iVar8") (= "=") (call_expression "FUN_00152fa7(lVar9,0xb)" (identifier "FUN_00152fa7") (argument_list "(lVar9,0xb)" (( "(") (identifier "lVar9") (, ",") (number_literal "0xb") () ")")))) (; ";")) (expression_statement "local_3c = *(int *)(lVar4 + 0x68);" (assignment_expression "local_3c = *(int *)(lVar4 + 0x68)" (identifier "local_3c") (= "=") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "iVar12 = *(int *)(lVar4 + 0x5c);" (assignment_expression "iVar12 = *(int *)(lVar4 + 0x5c)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(lVar4 + 0x5c)" (* "*") (cast_expression "(int *)(lVar4 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x5c)" (( "(") (binary_expression "lVar4 + 0x5c" (identifier "lVar4") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (if_statement "if (iVar7 != 0) {\n        FUN_0012d3b0(lVar9,iVar7);\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0012d3b0(lVar9,iVar7);\n      }" ({ "{") (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" (identifier "FUN_0012d3b0") (argument_list "(lVar9,iVar7)" (( "(") (identifier "lVar9") (, ",") (identifier "iVar7") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_0016ad1e;" (goto "goto") (statement_identifier "LAB_0016ad1e") (; ";")) (} "}"))) (expression_statement "iVar13 = *(int *)(lVar4 + 0x68);" (assignment_expression "iVar13 = *(int *)(lVar4 + 0x68)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (expression_statement "uVar11 = FUN_00162cb9(param_1,piVar5,0,0);" (assignment_expression "uVar11 = FUN_00162cb9(param_1,piVar5,0,0)" (identifier "uVar11") (= "=") (call_expression "FUN_00162cb9(param_1,piVar5,0,0)" (identifier "FUN_00162cb9") (argument_list "(param_1,piVar5,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "piVar5") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);" (assignment_expression "iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (identifier "iVar13") (= "=") (call_expression "FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x57") (, ",") (binary_expression "iVar1 + iVar13" (identifier "iVar1") (+ "+") (identifier "iVar13")) (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x5c)" (( "(") (binary_expression "lVar4 + 0x5c" (identifier "lVar4") (+ "+") (number_literal "0x5c")) () ")")))) (, ",") (identifier "iVar14") () ")")))) (; ";")) (expression_statement "FUN_0014401d(lVar9,uVar11,0xfffffff7);" (call_expression "FUN_0014401d(lVar9,uVar11,0xfffffff7)" (identifier "FUN_0014401d") (argument_list "(lVar9,uVar11,0xfffffff7)" (( "(") (identifier "lVar9") (, ",") (identifier "uVar11") (, ",") (number_literal "0xfffffff7") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);" (assignment_expression "iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" (identifier "iVar7") (= "=") (call_expression "FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x10,iVar13 + 2,0,iVar13 + 2)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x10") (, ",") (binary_expression "iVar13 + 2" (identifier "iVar13") (+ "+") (number_literal "2")) (, ",") (number_literal "0") (, ",") (binary_expression "iVar13 + 2" (identifier "iVar13") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" (identifier "FUN_00153833") (argument_list "(param_1,lVar4,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" (identifier "FUN_00152e46") (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x24") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" (* "*") (cast_expression "(int *)(lVar9 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x90)" (( "(") (binary_expression "lVar9 + 0x90" (identifier "lVar9") (+ "+") (number_literal "0x90")) () ")")))) (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" (identifier "FUN_00152e46") (argument_list "(lVar9,0xc,param_4,param_5)" (( "(") (identifier "lVar9") (, ",") (number_literal "0xc") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" (identifier "FUN_00152e46") (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" (( "(") (identifier "lVar9") (, ",") (number_literal "5") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" (* "*") (cast_expression "(int *)(lVar9 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x90)" (( "(") (binary_expression "lVar9 + 0x90" (identifier "lVar9") (+ "+") (number_literal "0x90")) () ")")))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));" (call_expression "FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" (identifier "FUN_0015357b") (argument_list "(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48))" (( "(") (identifier "lVar9") (, ",") (number_literal "0x8a") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13);" (call_expression "FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),\n               iVar14 + -1 + iVar13)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x4e") (, ",") (binary_expression "iVar1 + *(int *)(lVar4 + 0x68)" (identifier "iVar1") (+ "+") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")"))))) (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x5c)" (( "(") (binary_expression "lVar4 + 0x5c" (identifier "lVar4") (+ "+") (number_literal "0x5c")) () ")")))) (, ",") (binary_expression "iVar14 + -1 + iVar13" (binary_expression "iVar14 + -1" (identifier "iVar14") (+ "+") (number_literal "-1")) (+ "+") (identifier "iVar13")) () ")"))) (; ";")) (if_statement "if (iVar7 != 0) {\n    FUN_0012d3b0(lVar9,iVar7);\n  }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0012d3b0(lVar9,iVar7);\n  }" ({ "{") (expression_statement "FUN_0012d3b0(lVar9,iVar7);" (call_expression "FUN_0012d3b0(lVar9,iVar7)" (identifier "FUN_0012d3b0") (argument_list "(lVar9,iVar7)" (( "(") (identifier "lVar9") (, ",") (identifier "iVar7") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0016add6:\n  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" (statement_identifier "LAB_0016add6") (: ":") (expression_statement "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);" (call_expression "FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0)" (identifier "FUN_00162d71") (argument_list "(param_1,lVar4,0xffffffff,0,iVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") (, ",") (identifier "iVar1") (, ",") (number_literal "0") () ")"))) (; ";"))) (if_statement "if (*(int *)(lVar4 + 0x68) < 1) {\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }\n  else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x68) < 1)" (( "(") (binary_expression "*(int *)(lVar4 + 0x68) < 1" (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    FUN_00152e46(lVar9,0x4b,0,iVar6);\n    FUN_0014401d(lVar9,&DAT_001eb77f,0);\n  }" ({ "{") (expression_statement "FUN_00152e46(lVar9,0x4b,0,iVar6);" (call_expression "FUN_00152e46(lVar9,0x4b,0,iVar6)" (identifier "FUN_00152e46") (argument_list "(lVar9,0x4b,0,iVar6)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x4b") (, ",") (number_literal "0") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "FUN_0014401d(lVar9,&DAT_001eb77f,0);" (call_expression "FUN_0014401d(lVar9,&DAT_001eb77f,0)" (identifier "FUN_0014401d") (argument_list "(lVar9,&DAT_001eb77f,0)" (( "(") (identifier "lVar9") (, ",") (pointer_expression "&DAT_001eb77f" (& "&") (identifier "DAT_001eb77f")) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" (else "else") (compound_statement "{\n    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);\n  }" ({ "{") (expression_statement "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);" (call_expression "FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x66") (, ",") (identifier "iVar1") (, ",") (pointer_expression "*(int *)(lVar4 + 0x68)" (* "*") (cast_expression "(int *)(lVar4 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x68)" (( "(") (binary_expression "lVar4 + 0x68" (identifier "lVar4") (+ "+") (number_literal "0x68")) () ")")))) (, ",") (identifier "iVar6") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);" (call_expression "FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" (identifier "FUN_00152e46") (argument_list "(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x79") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);" (call_expression "FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" (identifier "FUN_00152de5") (argument_list "(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x7a") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (identifier "iVar6") (, ",") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_0016a40e(param_3);" (call_expression "FUN_0016a40e(param_3)" (identifier "FUN_0016a40e") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_00153833(param_1,lVar4,1);" (call_expression "FUN_00153833(param_1,lVar4,1)" (identifier "FUN_00153833") (argument_list "(param_1,lVar4,1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar4") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);" (call_expression "FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" (identifier "FUN_00152e46") (argument_list "(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3)" (( "(") (identifier "lVar9") (, ",") (number_literal "0x24") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (binary_expression "*(int *)(lVar9 + 0x90) + 3" (pointer_expression "*(int *)(lVar9 + 0x90)" (* "*") (cast_expression "(int *)(lVar9 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x90)" (( "(") (binary_expression "lVar9 + 0x90" (identifier "lVar9") (+ "+") (number_literal "0x90")) () ")")))) (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "FUN_00152e46(lVar9,0xc,param_4,param_5);" (call_expression "FUN_00152e46(lVar9,0xc,param_4,param_5)" (identifier "FUN_00152e46") (argument_list "(lVar9,0xc,param_4,param_5)" (( "(") (identifier "lVar9") (, ",") (number_literal "0xc") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);" (call_expression "FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" (identifier "FUN_00152e46") (argument_list "(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1)" (( "(") (identifier "lVar9") (, ",") (number_literal "5") (, ",") (pointer_expression "*(undefined4 *)(lVar4 + 0x48)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x48)" (( "(") (binary_expression "lVar4 + 0x48" (identifier "lVar4") (+ "+") (number_literal "0x48")) () ")")))) (, ",") (binary_expression "*(int *)(lVar9 + 0x90) + -1" (pointer_expression "*(int *)(lVar9 + 0x90)" (* "*") (cast_expression "(int *)(lVar9 + 0x90)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x90)" (( "(") (binary_expression "lVar9 + 0x90" (identifier "lVar9") (+ "+") (number_literal "0x90")) () ")")))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pParse,type_2 *p,type_3 *pWInfo,int regGosub,int addrGosub)

{
  int var_3;
  short var_5;
  type_4 *pMWin;
  type_5 *var_9;
  int var_21;
  int var_17;
  int var_2;
  type_6 *p_00;
  type_5 *var_8;
  type_7 *pKVar4;
  int var_7;
  int var_4;
  int var_12;
  int var_11;
  
  pMWin = p->pWin;
  p_00 = var_1(pParse);
  var_12 = p->pSrc->a[0].iCursor;
  var_5 = (p->pSrc->a[0].pTab)->nCol;
  var_4 = (int)var_5;
  var_2 = pParse->nMem;
  var_3 = var_2 + 1;
  var_21 = var_3 + var_4;
  var_9 = pMWin->pPartition;
  var_8 = (type_5 *)0x0;
  if (pMWin->eEnd != 'W') {
    var_8 = pMWin->pOrderBy;
  }
  pParse->nMem = var_2 + 2 + var_4;
  if (0 < var_5) {
    var_7 = 0;
    do {
      var_6(p_00,0x5a,var_12,var_7,var_2 + 1 + var_7);
      var_7 = var_7 + 1;
    } while (var_4 != var_7);
  }
  if (var_8 == (type_5 *)0x0 && var_9 == (type_5 *)0x0) goto LAB_0016add6;
  if (var_9 == (type_5 *)0x0) {
    var_2 = var_8->nExpr;
    var_11 = pMWin->nBufferCol;
    var_4 = pMWin->regPart;
    var_12 = 0;
    var_7 = 0;
LAB_0016ad1e:
    var_17 = 0;
    if (pMWin->eType == 'V') {
      pKVar4 = var_10(pParse,var_8,0,0);
      var_4 = var_6(p_00,0x57,var_11 + var_3 + var_12,var_4 + var_12,var_2);
      var_13(p_00,pKVar4,-9);
      var_17 = var_6(p_00,0x10,var_4 + 2,0,var_4 + 2);
    }
    var_14(pParse,pMWin,(uint)(pMWin->eStart == 'R'));
    if (var_7 != 0) {
      var_15(p_00,var_7);
    }
  }
  else {
    var_12 = var_9->nExpr;
    if (var_8 != (type_5 *)0x0) {
      var_2 = var_8->nExpr;
      var_4 = pMWin->nBufferCol;
      pKVar4 = var_10(pParse,var_9,0,0);
      var_4 = var_6(p_00,0x57,var_3 + var_4,pMWin->regPart,var_12);
      var_13(p_00,pKVar4,-9);
      var_17 = var_6(p_00,0x10,var_4 + 2,0,var_4 + 2);
      var_14(pParse,pMWin,1);
      var_7 = var_16(p_00,0xb);
      var_11 = pMWin->nBufferCol;
      var_4 = pMWin->regPart;
      if (var_17 != 0) {
        var_15(p_00,var_17);
      }
      goto LAB_0016ad1e;
    }
    var_2 = pMWin->nBufferCol;
    pKVar4 = var_10(pParse,var_9,0,0);
    var_2 = var_6(p_00,0x57,var_3 + var_2,pMWin->regPart,var_12);
    var_13(p_00,pKVar4,-9);
    var_17 = var_6(p_00,0x10,var_2 + 2,0,var_2 + 2);
    var_14(pParse,pMWin,1);
    var_2 = 0;
  }
  var_18(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);
  var_18(p_00,0xc,regGosub,addrGosub);
  var_18(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);
  var_19(p_00,0x8a,pMWin->iEphCsr);
  var_6(p_00,0x4e,var_3 + pMWin->nBufferCol,pMWin->regPart,var_12 + -1 + var_2);
  if (var_17 != 0) {
    var_15(p_00,var_17);
  }
LAB_0016add6:
  var_20(pParse,pMWin,-1,0,var_3,0);
  if (pMWin->nBufferCol < 1) {
    var_18(p_00,0x4b,0,var_21);
    var_13(p_00,&DAT_001eb77f,0);
  }
  else {
    var_6(p_00,0x66,var_3,pMWin->nBufferCol,var_21);
  }
  var_18(p_00,0x79,pMWin->iEphCsr,var_21 + 1);
  var_6(p_00,0x7a,pMWin->iEphCsr,var_21,var_21 + 1);
  var_22(pWInfo);
  var_14(pParse,pMWin,1);
  var_18(p_00,0x24,pMWin->iEphCsr,p_00->nOp + 3);
  var_18(p_00,0xc,regGosub,addrGosub);
  var_18(p_00,5,pMWin->iEphCsr,p_00->nOp + -1);
  return;
}


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

void MASKED(long param_1,long param_2,undefined8 param_3,undefined4 param_4,undefined4 param_5
                 )

{
  int iVar1;
  short sVar2;
  undefined4 uVar3;
  long lVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  long lVar9;
  int *piVar10;
  undefined8 uVar11;
  int iVar12;
  int iVar13;
  int iVar14;
  int local_3c;
  
  lVar4 = *(long *)(param_2 + 0x70);
  lVar9 = FUN_00152f06();
  uVar3 = *(undefined4 *)(*(long *)(param_2 + 0x28) + 0x48);
  sVar2 = *(short *)(*(long *)(*(long *)(param_2 + 0x28) + 0x28) + 0x46);
  iVar13 = (int)sVar2;
  iVar14 = *(int *)(param_1 + 0x38);
  iVar1 = iVar14 + 1;
  iVar6 = iVar1 + iVar13;
  piVar5 = *(int **)(lVar4 + 8);
  piVar10 = (int *)0x0;
  if (*(char *)(lVar4 + 0x1a) != 'W') {
    piVar10 = *(int **)(lVar4 + 0x10);
  }
  *(int *)(param_1 + 0x38) = iVar14 + 2 + iVar13;
  if (0 < sVar2) {
    iVar12 = 0;
    do {
      FUN_00152de5(lVar9,0x5a,uVar3,iVar12,iVar14 + 1 + iVar12);
      iVar12 = iVar12 + 1;
    } while (iVar13 != iVar12);
  }
  if (piVar10 == (int *)0x0 && piVar5 == (int *)0x0) goto LAB_0016add6;
  if (piVar5 == (int *)0x0) {
    iVar13 = *piVar10;
    local_3c = *(int *)(lVar4 + 0x68);
    iVar12 = *(int *)(lVar4 + 0x5c);
    iVar14 = 0;
    iVar8 = 0;
LAB_0016ad1e:
    iVar7 = 0;
    if (*(char *)(lVar4 + 0x18) == 'V') {
      uVar11 = FUN_00162cb9(param_1,piVar10,0,0);
      iVar12 = FUN_00152de5(lVar9,0x57,local_3c + iVar1 + iVar14,iVar12 + iVar14,iVar13);
      FUN_0014401d(lVar9,uVar11,0xfffffff7);
      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);
    }
    FUN_00153833(param_1,lVar4,*(char *)(lVar4 + 0x19) == 'R');
    if (iVar8 != 0) {
      FUN_0012d3b0(lVar9,iVar8);
    }
  }
  else {
    iVar14 = *piVar5;
    if (piVar10 != (int *)0x0) {
      iVar13 = *piVar10;
      iVar12 = *(int *)(lVar4 + 0x68);
      uVar11 = FUN_00162cb9(param_1,piVar5,0,0);
      iVar12 = FUN_00152de5(lVar9,0x57,iVar1 + iVar12,*(undefined4 *)(lVar4 + 0x5c),iVar14);
      FUN_0014401d(lVar9,uVar11,0xfffffff7);
      iVar7 = FUN_00152de5(lVar9,0x10,iVar12 + 2,0,iVar12 + 2);
      FUN_00153833(param_1,lVar4,1);
      iVar8 = FUN_00152fa7(lVar9,0xb);
      local_3c = *(int *)(lVar4 + 0x68);
      iVar12 = *(int *)(lVar4 + 0x5c);
      if (iVar7 != 0) {
        FUN_0012d3b0(lVar9,iVar7);
      }
      goto LAB_0016ad1e;
    }
    iVar13 = *(int *)(lVar4 + 0x68);
    uVar11 = FUN_00162cb9(param_1,piVar5,0,0);
    iVar13 = FUN_00152de5(lVar9,0x57,iVar1 + iVar13,*(undefined4 *)(lVar4 + 0x5c),iVar14);
    FUN_0014401d(lVar9,uVar11,0xfffffff7);
    iVar7 = FUN_00152de5(lVar9,0x10,iVar13 + 2,0,iVar13 + 2);
    FUN_00153833(param_1,lVar4,1);
    iVar13 = 0;
  }
  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);
  FUN_00152e46(lVar9,0xc,param_4,param_5);
  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);
  FUN_0015357b(lVar9,0x8a,*(undefined4 *)(lVar4 + 0x48));
  FUN_00152de5(lVar9,0x4e,iVar1 + *(int *)(lVar4 + 0x68),*(undefined4 *)(lVar4 + 0x5c),
               iVar14 + -1 + iVar13);
  if (iVar7 != 0) {
    FUN_0012d3b0(lVar9,iVar7);
  }
LAB_0016add6:
  FUN_00162d71(param_1,lVar4,0xffffffff,0,iVar1,0);
  if (*(int *)(lVar4 + 0x68) < 1) {
    FUN_00152e46(lVar9,0x4b,0,iVar6);
    FUN_0014401d(lVar9,&DAT_001eb77f,0);
  }
  else {
    FUN_00152de5(lVar9,0x66,iVar1,*(int *)(lVar4 + 0x68),iVar6);
  }
  FUN_00152e46(lVar9,0x79,*(undefined4 *)(lVar4 + 0x48),iVar6 + 1);
  FUN_00152de5(lVar9,0x7a,*(undefined4 *)(lVar4 + 0x48),iVar6,iVar6 + 1);
  FUN_0016a40e(param_3);
  FUN_00153833(param_1,lVar4,1);
  FUN_00152e46(lVar9,0x24,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + 3);
  FUN_00152e46(lVar9,0xc,param_4,param_5);
  FUN_00152e46(lVar9,5,*(undefined4 *)(lVar4 + 0x48),*(int *)(lVar9 + 0x90) + -1);
  return;
}

