
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 updateAccumulator(Parse *pParse,int regAcc,AggInfo *pAggInfo)

{
  int *piVar1;
  Vdbe *p;
  ExprList *pList;
  Expr **ppEVar2;
  int nReg;
  ExprList_item *pEVar3;
  AggInfo_col *pAVar4;
  int iVar5;
  AggInfo_func *pAVar6;
  int iVar7;
  int local_48;
  int local_44;
  int local_40;
  u16 local_32;
  int local_30;
  CollSeq *local_2c;
  
  p = pParse->pVdbe;
  pAVar6 = pAggInfo->aFunc;
  pAggInfo->directMode = '\x01';
  local_30 = 0;
  local_48 = 0;
  if (pAggInfo->nFunc < 1) {
LAB_000b7780:
    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;
    iVar7 = 0;
    pAVar4 = pAggInfo->aCol;
    if (pAggInfo->nAccumulator < 1) {
      pAggInfo->directMode = '\0';
      return;
    }
  }
  else {
    do {
      pList = (pAVar6->pExpr->x).pList;
      if (pList == (ExprList *)0x0) {
        local_44 = 0;
        iVar7 = 0;
        local_32 = 0;
      }
      else {
        iVar7 = pList->nExpr;
        local_44 = sqlite3GetTempRange(pParse,iVar7);
        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');
        local_32 = (ushort)iVar7 & 0xff;
      }
      local_40 = 0;
      if (-1 < pAVar6->iDistinct) {
        local_40 = pParse->nLabel + -1;
        pParse->nLabel = local_40;
        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);
      }
      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {
        pEVar3 = pList->a;
        if (iVar7 < 1) {
LAB_000b7760:
          local_2c = pParse->db->pDfltColl;
        }
        else {
          iVar5 = 0;
          do {
            ppEVar2 = &pEVar3->pExpr;
            iVar5 = iVar5 + 1;
            pEVar3 = pEVar3 + 1;
            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);
            if (local_2c != (CollSeq *)0x0) break;
          } while (iVar5 < iVar7);
          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;
        }
        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {
          local_30 = pParse->nMem + 1;
          pParse->nMem = local_30;
        }
        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);
        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);
      }
      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);
      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);
      if (0 < p->nOp) {
        p->aOp[p->nOp + -1].p5 = local_32;
      }
      if (iVar7 == 1) {
        sqlite3ReleaseTempRange(pParse,local_44,nReg);
      }
      else if (pParse->nRangeReg < iVar7) {
        pParse->nRangeReg = iVar7;
        pParse->iRangeReg = local_44;
      }
      if (local_40 != 0) {
        sqlite3VdbeResolveLabel(p,local_40);
      }
      local_48 = local_48 + 1;
      pAVar6 = pAVar6 + 1;
    } while (local_48 < pAggInfo->nFunc);
    if (local_30 == 0) goto LAB_000b7780;
LAB_000b76cc:
    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);
    pAVar4 = pAggInfo->aCol;
    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;
  }
  iVar5 = 0;
  do {
    piVar1 = &pAVar4->iMem;
    ppEVar2 = &pAVar4->pExpr;
    iVar5 = iVar5 + 1;
    pAVar4 = pAVar4 + 1;
    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);
  } while (iVar5 < pAggInfo->nAccumulator);
LAB_000b7724:
  pAggInfo->directMode = '\0';
  iVar5 = DAT_0017d9c4;
  if (iVar7 != 0) {
    iVar5 = p->nOp;
    if (iVar7 < 0) {
      iVar7 = iVar5 + -1;
    }
    if (p->db->mallocFailed == '\0') {
      p->aOp[iVar7].p2 = iVar5;
      iVar5 = DAT_0017d9c4;
    }
  }
  DAT_0017d9c4 = iVar5;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  int local_48;
  undefined4 local_44;
  int local_40;
  ushort local_32;
  int local_30;
  
  piVar1 = *(int **)(param_1 + 8);
  piVar4 = *(int **)(param_3 + 0x28);
  *param_3 = 1;
  local_30 = 0;
  local_48 = 0;
  if (*(int *)(param_3 + 0x2c) < 1) {
LAB_000b7780:
    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;
    iVar5 = 0;
    if (*(int *)(param_3 + 0x24) < 1) {
      *param_3 = 0;
      return;
    }
  }
  else {
    do {
      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {
        local_44 = 0;
        iVar5 = 0;
        local_32 = 0;
      }
      else {
        iVar5 = **(int **)(*piVar4 + 0x14);
        local_44 = FUN_0004b710();
        FUN_000b7270(0,1);
        local_32 = (ushort)iVar5 & 0xff;
      }
      local_40 = 0;
      if (-1 < piVar4[3]) {
        local_40 = *(int *)(param_1 + 0x38) + -1;
        *(int *)(param_1 + 0x38) = local_40;
        FUN_00066d30(1,local_44);
      }
      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {
        if (0 < iVar5) {
          iVar3 = 0;
          do {
            iVar3 = iVar3 + 1;
            iVar2 = FUN_00078610();
            if (iVar2 != 0) break;
          } while (iVar3 < iVar5);
        }
        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {
          local_30 = *(int *)(param_1 + 0x2c) + 1;
          *(int *)(param_1 + 0x2c) = local_30;
        }
        FUN_00065e80(0,0);
        FUN_000533f0(0xfffffffe);
      }
      FUN_00065e80(local_44,piVar4[2]);
      FUN_0004ce40();
      if (0 < piVar1[0x1a]) {
        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;
      }
      if (iVar5 == 1) {
        FUN_0004b780();
      }
      else if (*(int *)(param_1 + 0x1c) < iVar5) {
        *(int *)(param_1 + 0x1c) = iVar5;
        *(undefined4 *)(param_1 + 0x20) = local_44;
      }
      if (local_40 != 0) {
        FUN_00065c50();
      }
      local_48 = local_48 + 1;
      piVar4 = piVar4 + 4;
    } while (local_48 < *(int *)(param_3 + 0x2c));
    if (local_30 == 0) goto LAB_000b7780;
LAB_000b76cc:
    iVar5 = FUN_00065e80(0,0);
    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;
  }
  iVar3 = 0;
  do {
    iVar3 = iVar3 + 1;
    FUN_000b54e0();
  } while (iVar3 < *(int *)(param_3 + 0x24));
LAB_000b7724:
  *param_3 = 0;
  iVar3 = DAT_0017d9c4;
  if (iVar5 != 0) {
    iVar3 = piVar1[0x1a];
    if (iVar5 < 0) {
      iVar5 = iVar3 + -1;
    }
    if (*(char *)(*piVar1 + 0x4d) == '\0') {
      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;
      iVar3 = DAT_0017d9c4;
    }
  }
  DAT_0017d9c4 = iVar3;
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
CALL 0x00115708
ADD ESI,0xc497e
PUSH EBX
SUB ESP,0x3c
MOV EAX,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [ECX + 0x28]
MOV byte ptr [ECX],0x1
MOV dword ptr [ESP + 0x14],ECX
MOV ECX,dword ptr [ECX + 0x2c]
MOV dword ptr [ESP + 0x28],EDX
MOV dword ptr [ESP + 0x2c],ESI
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x4],0x0
TEST ECX,ECX
JG 0x000b75dd
JMP 0x000b7780
MOV ESI,dword ptr [EBX]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x0004b710
SUB ESP,0x8
MOV EDX,EBX
MOV dword ptr [ESP + 0x10],EAX
MOV ECX,EAX
MOV EAX,EBP
PUSH 0x1
PUSH 0x0
CALL 0x000b7270
MOV EAX,ESI
MOVZX EAX,AL
MOV word ptr [ESP + 0x2a],AX
ADD ESP,0x10
MOV EAX,dword ptr [EDI + 0xc]
MOV dword ptr [ESP + 0xc],0x0
TEST EAX,EAX
JS 0x000b7550
MOV EAX,dword ptr [EBP + 0x38]
SUB ESP,0x8
LEA ECX,[EAX + -0x1]
MOV EAX,EBP
MOV dword ptr [ESP + 0x14],ECX
MOV dword ptr [EBP + 0x38],ECX
MOV EDX,dword ptr [EDI + 0xc]
PUSH dword ptr [ESP + 0x10]
PUSH 0x1
CALL 0x00066d30
ADD ESP,0x10
MOV EAX,dword ptr [EDI + 0x4]
TEST byte ptr [EAX + 0x4],0x20
JNZ 0x000b7610
SUB ESP,0x8
PUSH dword ptr [EDI + 0x8]
XOR ECX,ECX
MOV EDX,0x9a
PUSH dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x20]
MOV EAX,EBX
CALL 0x00065e80
MOV EDX,dword ptr [EDI + 0x4]
MOV EAX,EBX
MOV ECX,0xfffffff8
CALL 0x0004ce40
MOV EAX,dword ptr [EBX + 0x68]
ADD ESP,0x10
TEST EAX,EAX
JLE 0x000b75a4
MOV EBX,dword ptr [EBX + 0x64]
LEA EAX,[EAX + EAX*0x2]
MOVZX EDX,word ptr [ESP + 0x1a]
LEA EAX,[EBX + EAX*0x8]
MOV word ptr [EAX + -0x16],DX
CMP ESI,0x1
JZ 0x000b76b0
CMP ESI,dword ptr [EBP + 0x1c]
JLE 0x000b75bc
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EBP + 0x1c],ESI
MOV dword ptr [EBP + 0x20],EAX
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JNZ 0x000b7600
MOV ESI,dword ptr [ESP + 0x14]
ADD dword ptr [ESP + 0x4],0x1
ADD EDI,0x10
MOV EAX,dword ptr [ESP + 0x4]
CMP dword ptr [ESI + 0x2c],EAX
JLE 0x000b76c0
MOV EAX,dword ptr [EDI]
MOV EBX,dword ptr [EAX + 0x14]
TEST EBX,EBX
JNZ 0x000b74f0
XOR EAX,EAX
MOV dword ptr [ESP + 0x8],0x0
XOR ESI,ESI
MOV word ptr [ESP + 0x1a],AX
JMP 0x000b751e
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [ESP + 0x10]
CALL 0x00065c50
JMP 0x000b75c4
ADD EBX,0x4
XOR ECX,ECX
TEST ESI,ESI
JLE 0x000b7760
MOV dword ptr [ESP + 0x24],EDI
MOV EDI,ECX
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [EBX]
MOV EAX,EBP
ADD EDI,0x1
ADD EBX,0x14
CALL 0x00078610
TEST EAX,EAX
JNZ 0x000b763f
CMP ESI,EDI
JG 0x000b7628
MOV dword ptr [ESP + 0x20],EAX
MOV EDI,dword ptr [ESP + 0x24]
TEST EAX,EAX
JZ 0x000b7760
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JNZ 0x000b7673
MOV EAX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + 0x24]
MOV dword ptr [ESP + 0x1c],EAX
TEST EAX,EAX
JZ 0x000b7673
MOV EAX,dword ptr [EBP + 0x2c]
ADD EAX,0x1
MOV dword ptr [ESP + 0x1c],EAX
MOV dword ptr [EBP + 0x2c],EAX
SUB ESP,0x8
MOV EDX,0x52
PUSH 0x0
PUSH 0x0
MOV EBX,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x2c]
MOV EAX,EBX
CALL 0x00065e80
MOV ECX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP],0xfffffffe
MOV EDX,EAX
MOV EAX,EBX
CALL 0x000533f0
ADD ESP,0x10
JMP 0x000b755d
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,EBP
CALL 0x0004b780
JMP 0x000b75bc
MOV EDX,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x000b7780
SUB ESP,0x8
MOV EDX,0x12
PUSH 0x0
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x2c]
MOV EAX,dword ptr [ESP + 0x20]
CALL 0x00065e80
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
MOV EBX,dword ptr [EAX + 0x1c]
MOV EAX,dword ptr [EAX + 0x24]
TEST EAX,EAX
JLE 0x000b7724
MOV dword ptr [ESP + 0x4],EDI
MOV EDI,dword ptr [ESP + 0x14]
XOR ESI,ESI
LEA ESI,[ESI]
MOV ECX,dword ptr [EBX + 0x10]
MOV EDX,dword ptr [EBX + 0x14]
MOV EAX,EBP
ADD ESI,0x1
ADD EBX,0x18
CALL 0x000b54e0
CMP dword ptr [EDI + 0x24],ESI
JG 0x000b7708
MOV EDI,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x14]
MOV byte ptr [EAX],0x0
TEST EDI,EDI
JZ 0x000b7751
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI + 0x68]
MOV ECX,dword ptr [ESI]
LEA EDX,[EAX + -0x1]
CMOVS EDI,EDX
MOV EDX,dword ptr [ESP + 0x2c]
CMP byte ptr [ECX + 0x4d],0x0
LEA EDX,[EDX + 0x1b94]
JZ 0x000b7770
MOV dword ptr [EDX + 0x8],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP]
MOV EAX,dword ptr [EAX + 0x8]
MOV dword ptr [ESP + 0x20],EAX
JMP 0x000b764f
MOV EDX,dword ptr [ESI + 0x64]
LEA ECX,[EDI + EDI*0x2]
LEA EDX,[EDX + ECX*0x8]
MOV dword ptr [EDX + 0x8],EAX
JMP 0x000b7751
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x28]
MOV EAX,dword ptr [EAX + 0x24]
TEST EDX,EDX
JZ 0x000b7793
TEST EAX,EAX
JNZ 0x000b77a9
MOV ESI,dword ptr [ESP + 0x14]
XOR EDI,EDI
MOV EBX,dword ptr [ESI + 0x1c]
TEST EAX,EAX
JG 0x000b76f8
MOV byte ptr [ESI],0x0
JMP 0x000b7751
MOV EAX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x1c],EAX
JMP 0x000b76cc
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "ushort local_32;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(param_3 + 0x28);" (assignment_expression "piVar4 = *(int **)(param_3 + 0x28)" identifier = (pointer_expression "*(int **)(param_3 + 0x28)" * (cast_expression "(int **)(param_3 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x2c) < 1)" ( (binary_expression "*(int *)(param_3 + 0x2c) < 1" (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }" { (labeled_statement "LAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" statement_identifier : (if_statement "if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" if (parenthesized_expression "((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0))" ( (binary_expression "(param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_3 + 0x24) != 0)" ( (binary_expression "*(int *)(param_3 + 0x24) != 0" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_000b76cc;" goto statement_identifier ;))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" ( (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      *param_3 = 0;\n      return;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" else (compound_statement "{\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" { (do_statement "do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));" do (compound_statement "{\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    }" { (if_statement "if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" if (parenthesized_expression "(*(int **)(*piVar4 + 0x14) == (int *)0x0)" ( (binary_expression "*(int **)(*piVar4 + 0x14) == (int *)0x0" (pointer_expression "*(int **)(*piVar4 + 0x14)" * (cast_expression "(int **)(*piVar4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_32 = 0;" (assignment_expression "local_32 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" else (compound_statement "{\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" { (expression_statement "iVar5 = **(int **)(*piVar4 + 0x14);" (assignment_expression "iVar5 = **(int **)(*piVar4 + 0x14)" identifier = (pointer_expression "**(int **)(*piVar4 + 0x14)" * (pointer_expression "*(int **)(*piVar4 + 0x14)" * (cast_expression "(int **)(*piVar4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))))) ;) (expression_statement "local_44 = FUN_0004b710();" (assignment_expression "local_44 = FUN_0004b710()" identifier = (call_expression "FUN_0004b710()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000b7270(0,1);" (call_expression "FUN_000b7270(0,1)" identifier (argument_list "(0,1)" ( number_literal , number_literal ))) ;) (expression_statement "local_32 = (ushort)iVar5 & 0xff;" (assignment_expression "local_32 = (ushort)iVar5 & 0xff" identifier = (binary_expression "(ushort)iVar5 & 0xff" (cast_expression "(ushort)iVar5" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal)) ;) }))) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (if_statement "if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" if (parenthesized_expression "(-1 < piVar4[3])" ( (binary_expression "-1 < piVar4[3]" number_literal < (subscript_expression "piVar4[3]" identifier [ number_literal ])) )) (compound_statement "{\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" { (expression_statement "local_40 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "local_40 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (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) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = local_40;" (assignment_expression "*(int *)(param_1 + 0x38) = local_40" (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) )))) = identifier) ;) (expression_statement "FUN_00066d30(1,local_44);" (call_expression "FUN_00066d30(1,local_44)" identifier (argument_list "(1,local_44)" ( number_literal , identifier ))) ;) })) (if_statement "if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" if (parenthesized_expression "((*(byte *)(piVar4[1] + 4) & 0x20) != 0)" ( (binary_expression "(*(byte *)(piVar4[1] + 4) & 0x20) != 0" (parenthesized_expression "(*(byte *)(piVar4[1] + 4) & 0x20)" ( (binary_expression "*(byte *)(piVar4[1] + 4) & 0x20" (pointer_expression "*(byte *)(piVar4[1] + 4)" * (cast_expression "(byte *)(piVar4[1] + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4[1] + 4)" ( (binary_expression "piVar4[1] + 4" (subscript_expression "piVar4[1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" { (if_statement "if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);" do (compound_statement "{\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00078610();" (assignment_expression "iVar2 = FUN_00078610()" identifier = (call_expression "FUN_00078610()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar3 < iVar5)" ( (binary_expression "iVar3 < iVar5" identifier < identifier) )) ;) })) (if_statement "if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" if (parenthesized_expression "((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0))" ( (binary_expression "(local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" ( (comma_expression "local_30 = *(int *)(param_3 + 0x24), local_30 != 0" (assignment_expression "local_30 = *(int *)(param_3 + 0x24)" identifier = (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" { (expression_statement "local_30 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_30 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_30;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_30" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "FUN_00065e80(0,0);" (call_expression "FUN_00065e80(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "FUN_000533f0(0xfffffffe);" (call_expression "FUN_000533f0(0xfffffffe)" identifier (argument_list "(0xfffffffe)" ( number_literal ))) ;) })) (expression_statement "FUN_00065e80(local_44,piVar4[2]);" (call_expression "FUN_00065e80(local_44,piVar4[2])" identifier (argument_list "(local_44,piVar4[2])" ( identifier , (subscript_expression "piVar4[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0004ce40();" (call_expression "FUN_0004ce40()" identifier (argument_list "()" ( ))) ;) (if_statement "if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" if (parenthesized_expression "(0 < piVar1[0x1a])" ( (binary_expression "0 < piVar1[0x1a]" number_literal < (subscript_expression "piVar1[0x1a]" identifier [ number_literal ])) )) (compound_statement "{\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" { (expression_statement "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;" (assignment_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32" (pointer_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" * (cast_expression "(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" ( (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16" (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x19]" identifier [ number_literal ]) + (binary_expression "piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x1a]" identifier [ number_literal ]) * number_literal)) + number_literal) )))) = identifier) ;) })) (if_statement "if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        FUN_0004b780();\n      }" { (expression_statement "FUN_0004b780();" (call_expression "FUN_0004b780()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" else (if_statement "if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) < iVar5)" ( (binary_expression "*(int *)(param_1 + 0x1c) < iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" { (expression_statement "*(int *)(param_1 + 0x1c) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = local_44;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = local_44" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) })))) (if_statement "if (local_40 != 0) {\n        FUN_00065c50();\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00065c50();\n      }" { (expression_statement "FUN_00065c50();" (call_expression "FUN_00065c50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 4;" (assignment_expression "piVar4 = piVar4 + 4" identifier = (binary_expression "piVar4 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_48 < *(int *)(param_3 + 0x2c))" ( (binary_expression "local_48 < *(int *)(param_3 + 0x2c)" identifier < (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) ))))) )) ;) (if_statement "if (local_30 == 0) goto LAB_000b7780;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000b7780;" goto statement_identifier ;)) (labeled_statement "LAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);" statement_identifier : (expression_statement "iVar5 = FUN_00065e80(0,0);" (assignment_expression "iVar5 = FUN_00065e80(0,0)" identifier = (call_expression "FUN_00065e80(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;)) (if_statement "if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;" if (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" ( (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) < number_literal) )) (goto_statement "goto LAB_000b7724;" goto statement_identifier ;)) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));" do (compound_statement "{\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000b54e0();" (call_expression "FUN_000b54e0()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)(param_3 + 0x24))" ( (binary_expression "iVar3 < *(int *)(param_3 + 0x24)" identifier < (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) )) ;) (labeled_statement "LAB_000b7724:\n  *param_3 = 0;" statement_identifier : (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;)) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" { (expression_statement "iVar3 = piVar1[0x1a];" (assignment_expression "iVar3 = piVar1[0x1a]" identifier = (subscript_expression "piVar1[0x1a]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar5 = iVar3 + -1;\n    }" { (expression_statement "iVar5 = iVar3 + -1;" (assignment_expression "iVar5 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" if (parenthesized_expression "(*(char *)(*piVar1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(*piVar1 + 0x4d) == '\0'" (pointer_expression "*(char *)(*piVar1 + 0x4d)" * (cast_expression "(char *)(*piVar1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x4d)" ( (binary_expression "*piVar1 + 0x4d" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" { (expression_statement "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;" (assignment_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3" (pointer_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" * (cast_expression "(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x19] + iVar5 * 0x18 + 8)" ( (binary_expression "piVar1[0x19] + iVar5 * 0x18 + 8" (binary_expression "piVar1[0x19] + iVar5 * 0x18" (subscript_expression "piVar1[0x19]" identifier [ number_literal ]) + (binary_expression "iVar5 * 0x18" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" identifier = identifier) ;) })) })) (expression_statement "DAT_0017d9c4 = iVar3;" (assignment_expression "DAT_0017d9c4 = iVar3" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm3 updateAccumulator(Parse *pParse,int regAcc,AggInfo *pAggInfo)\n\n{\n  int *piVar1;\n  Vdbe *p;\n  ExprList *pList;\n  Expr **ppEVar2;\n  int nReg;\n  ExprList_item *pEVar3;\n  AggInfo_col *pAVar4;\n  int iVar5;\n  AggInfo_func *pAVar6;\n  int iVar7;\n  int local_48;\n  int local_44;\n  int local_40;\n  u16 local_32;\n  int local_30;\n  CollSeq *local_2c;\n  \n  p = pParse->pVdbe;\n  pAVar6 = pAggInfo->aFunc;\n  pAggInfo->directMode = '\x01';\n  local_30 = 0;\n  local_48 = 0;\n  if (pAggInfo->nFunc < 1) {\nLAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;\n    iVar7 = 0;\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }\n  }\n  else {\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }\n  iVar5 = 0;\n  do {\n    piVar1 = &pAVar4->iMem;\n    ppEVar2 = &pAVar4->pExpr;\n    iVar5 = iVar5 + 1;\n    pAVar4 = pAVar4 + 1;\n    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);\n  } while (iVar5 < pAggInfo->nAccumulator);\nLAB_000b7724:\n  pAggInfo->directMode = '\0';\n  iVar5 = DAT_0017d9c4;\n  if (iVar7 != 0) {\n    iVar5 = p->nOp;\n    if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }\n    if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar5;\n  return;\n}\n\n" comment (function_definition "void __regparm3 updateAccumulator(Parse *pParse,int regAcc,AggInfo *pAggInfo)\n\n{\n  int *piVar1;\n  Vdbe *p;\n  ExprList *pList;\n  Expr **ppEVar2;\n  int nReg;\n  ExprList_item *pEVar3;\n  AggInfo_col *pAVar4;\n  int iVar5;\n  AggInfo_func *pAVar6;\n  int iVar7;\n  int local_48;\n  int local_44;\n  int local_40;\n  u16 local_32;\n  int local_30;\n  CollSeq *local_2c;\n  \n  p = pParse->pVdbe;\n  pAVar6 = pAggInfo->aFunc;\n  pAggInfo->directMode = '\x01';\n  local_30 = 0;\n  local_48 = 0;\n  if (pAggInfo->nFunc < 1) {\nLAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;\n    iVar7 = 0;\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }\n  }\n  else {\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }\n  iVar5 = 0;\n  do {\n    piVar1 = &pAVar4->iMem;\n    ppEVar2 = &pAVar4->pExpr;\n    iVar5 = iVar5 + 1;\n    pAVar4 = pAVar4 + 1;\n    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);\n  } while (iVar5 < pAggInfo->nAccumulator);\nLAB_000b7724:\n  pAggInfo->directMode = '\0';\n  iVar5 = DAT_0017d9c4;\n  if (iVar7 != 0) {\n    iVar5 = p->nOp;\n    if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }\n    if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar5;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "updateAccumulator(Parse *pParse,int regAcc,AggInfo *pAggInfo)" identifier (parameter_list "(Parse *pParse,int regAcc,AggInfo *pAggInfo)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "int regAcc" primitive_type identifier) , (parameter_declaration "AggInfo *pAggInfo" type_identifier (pointer_declarator "*pAggInfo" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  Vdbe *p;\n  ExprList *pList;\n  Expr **ppEVar2;\n  int nReg;\n  ExprList_item *pEVar3;\n  AggInfo_col *pAVar4;\n  int iVar5;\n  AggInfo_func *pAVar6;\n  int iVar7;\n  int local_48;\n  int local_44;\n  int local_40;\n  u16 local_32;\n  int local_30;\n  CollSeq *local_2c;\n  \n  p = pParse->pVdbe;\n  pAVar6 = pAggInfo->aFunc;\n  pAggInfo->directMode = '\x01';\n  local_30 = 0;\n  local_48 = 0;\n  if (pAggInfo->nFunc < 1) {\nLAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;\n    iVar7 = 0;\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }\n  }\n  else {\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }\n  iVar5 = 0;\n  do {\n    piVar1 = &pAVar4->iMem;\n    ppEVar2 = &pAVar4->pExpr;\n    iVar5 = iVar5 + 1;\n    pAVar4 = pAVar4 + 1;\n    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);\n  } while (iVar5 < pAggInfo->nAccumulator);\nLAB_000b7724:\n  pAggInfo->directMode = '\0';\n  iVar5 = DAT_0017d9c4;\n  if (iVar7 != 0) {\n    iVar5 = p->nOp;\n    if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }\n    if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar5;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "Vdbe *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "ExprList *pList;" type_identifier (pointer_declarator "*pList" * identifier) ;) (declaration "Expr **ppEVar2;" type_identifier (pointer_declarator "**ppEVar2" * (pointer_declarator "*ppEVar2" * identifier)) ;) (declaration "int nReg;" primitive_type identifier ;) (declaration "ExprList_item *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "AggInfo_col *pAVar4;" type_identifier (pointer_declarator "*pAVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "AggInfo_func *pAVar6;" type_identifier (pointer_declarator "*pAVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "u16 local_32;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "CollSeq *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "p = pParse->pVdbe;" (assignment_expression "p = pParse->pVdbe" identifier = (field_expression "pParse->pVdbe" identifier -> field_identifier)) ;) (expression_statement "pAVar6 = pAggInfo->aFunc;" (assignment_expression "pAVar6 = pAggInfo->aFunc" identifier = (field_expression "pAggInfo->aFunc" identifier -> field_identifier)) ;) (expression_statement "pAggInfo->directMode = '\x01';" (assignment_expression "pAggInfo->directMode = '\x01'" (field_expression "pAggInfo->directMode" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (if_statement "if (pAggInfo->nFunc < 1) {\nLAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;\n    iVar7 = 0;\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }\n  }\n  else {\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }" if (parenthesized_expression "(pAggInfo->nFunc < 1)" ( (binary_expression "pAggInfo->nFunc < 1" (field_expression "pAggInfo->nFunc" identifier -> field_identifier) < number_literal) )) (compound_statement "{\nLAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;\n    iVar7 = 0;\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }\n  }" { (labeled_statement "LAB_000b7780:\n    if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;" statement_identifier : (if_statement "if ((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;" if (parenthesized_expression "((regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0))" ( (binary_expression "(regAcc != 0) && (local_30 = regAcc, pAggInfo->nAccumulator != 0)" (parenthesized_expression "(regAcc != 0)" ( (binary_expression "regAcc != 0" identifier != number_literal) )) && (parenthesized_expression "(local_30 = regAcc, pAggInfo->nAccumulator != 0)" ( (comma_expression "local_30 = regAcc, pAggInfo->nAccumulator != 0" (assignment_expression "local_30 = regAcc" identifier = identifier) , (binary_expression "pAggInfo->nAccumulator != 0" (field_expression "pAggInfo->nAccumulator" identifier -> field_identifier) != number_literal)) ))) )) (goto_statement "goto LAB_000b76cc;" goto statement_identifier ;))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pAVar4 = pAggInfo->aCol;" (assignment_expression "pAVar4 = pAggInfo->aCol" identifier = (field_expression "pAggInfo->aCol" identifier -> field_identifier)) ;) (if_statement "if (pAggInfo->nAccumulator < 1) {\n      pAggInfo->directMode = '\0';\n      return;\n    }" if (parenthesized_expression "(pAggInfo->nAccumulator < 1)" ( (binary_expression "pAggInfo->nAccumulator < 1" (field_expression "pAggInfo->nAccumulator" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n      pAggInfo->directMode = '\0';\n      return;\n    }" { (expression_statement "pAggInfo->directMode = '\0';" (assignment_expression "pAggInfo->directMode = '\0'" (field_expression "pAggInfo->directMode" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }" else (compound_statement "{\n    do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);\n    pAVar4 = pAggInfo->aCol;\n    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;\n  }" { (do_statement "do {\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    } while (local_48 < pAggInfo->nFunc);" do (compound_statement "{\n      pList = (pAVar6->pExpr->x).pList;\n      if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }\n      if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }\n      sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);\n      sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);\n      if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }\n      if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }\n      if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }\n      local_48 = local_48 + 1;\n      pAVar6 = pAVar6 + 1;\n    }" { (expression_statement "pList = (pAVar6->pExpr->x).pList;" (assignment_expression "pList = (pAVar6->pExpr->x).pList" identifier = (field_expression "(pAVar6->pExpr->x).pList" (parenthesized_expression "(pAVar6->pExpr->x)" ( (field_expression "pAVar6->pExpr->x" (field_expression "pAVar6->pExpr" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) ;) (if_statement "if (pList == (ExprList *)0x0) {\n        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\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        local_44 = 0;\n        iVar7 = 0;\n        local_32 = 0;\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "local_32 = 0;" (assignment_expression "local_32 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }" else (compound_statement "{\n        iVar7 = pList->nExpr;\n        local_44 = sqlite3GetTempRange(pParse,iVar7);\n        sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');\n        local_32 = (ushort)iVar7 & 0xff;\n      }" { (expression_statement "iVar7 = pList->nExpr;" (assignment_expression "iVar7 = pList->nExpr" identifier = (field_expression "pList->nExpr" identifier -> field_identifier)) ;) (expression_statement "local_44 = sqlite3GetTempRange(pParse,iVar7);" (assignment_expression "local_44 = sqlite3GetTempRange(pParse,iVar7)" identifier = (call_expression "sqlite3GetTempRange(pParse,iVar7)" identifier (argument_list "(pParse,iVar7)" ( identifier , identifier )))) ;) (expression_statement "sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01');" (call_expression "sqlite3ExprCodeExprList(pParse,pList,local_44,0,'\x01')" identifier (argument_list "(pParse,pList,local_44,0,'\x01')" ( identifier , identifier , identifier , number_literal , (char_literal "'\x01'" ' escape_sequence ') ))) ;) (expression_statement "local_32 = (ushort)iVar7 & 0xff;" (assignment_expression "local_32 = (ushort)iVar7 & 0xff" identifier = (binary_expression "(ushort)iVar7 & 0xff" (cast_expression "(ushort)iVar7" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal)) ;) }))) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (if_statement "if (-1 < pAVar6->iDistinct) {\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }" if (parenthesized_expression "(-1 < pAVar6->iDistinct)" ( (binary_expression "-1 < pAVar6->iDistinct" number_literal < (field_expression "pAVar6->iDistinct" identifier -> field_identifier)) )) (compound_statement "{\n        local_40 = pParse->nLabel + -1;\n        pParse->nLabel = local_40;\n        codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);\n      }" { (expression_statement "local_40 = pParse->nLabel + -1;" (assignment_expression "local_40 = pParse->nLabel + -1" identifier = (binary_expression "pParse->nLabel + -1" (field_expression "pParse->nLabel" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nLabel = local_40;" (assignment_expression "pParse->nLabel = local_40" (field_expression "pParse->nLabel" identifier -> field_identifier) = identifier) ;) (expression_statement "codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44);" (call_expression "codeDistinct(pParse,pAVar6->iDistinct,local_40,1,local_44)" identifier (argument_list "(pParse,pAVar6->iDistinct,local_40,1,local_44)" ( identifier , (field_expression "pAVar6->iDistinct" identifier -> field_identifier) , identifier , number_literal , identifier ))) ;) })) (if_statement "if ((pAVar6->pFunc->funcFlags & 0x20) != 0) {\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }" if (parenthesized_expression "((pAVar6->pFunc->funcFlags & 0x20) != 0)" ( (binary_expression "(pAVar6->pFunc->funcFlags & 0x20) != 0" (parenthesized_expression "(pAVar6->pFunc->funcFlags & 0x20)" ( (binary_expression "pAVar6->pFunc->funcFlags & 0x20" (field_expression "pAVar6->pFunc->funcFlags" (field_expression "pAVar6->pFunc" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        pEVar3 = pList->a;\n        if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }\n        if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }\n        iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);\n        sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);\n      }" { (expression_statement "pEVar3 = pList->a;" (assignment_expression "pEVar3 = pList->a" identifier = (field_expression "pList->a" identifier -> field_identifier)) ;) (if_statement "if (iVar7 < 1) {\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }\n        else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }" if (parenthesized_expression "(iVar7 < 1)" ( (binary_expression "iVar7 < 1" identifier < number_literal) )) (compound_statement "{\nLAB_000b7760:\n          local_2c = pParse->db->pDfltColl;\n        }" { (labeled_statement "LAB_000b7760:\n          local_2c = pParse->db->pDfltColl;" statement_identifier : (expression_statement "local_2c = pParse->db->pDfltColl;" (assignment_expression "local_2c = pParse->db->pDfltColl" identifier = (field_expression "pParse->db->pDfltColl" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier)) ;)) }) (else_clause "else {\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }" else (compound_statement "{\n          iVar5 = 0;\n          do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);\n          if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          } while (iVar5 < iVar7);" do (compound_statement "{\n            ppEVar2 = &pEVar3->pExpr;\n            iVar5 = iVar5 + 1;\n            pEVar3 = pEVar3 + 1;\n            local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);\n            if (local_2c != (CollSeq *)0x0) break;\n          }" { (expression_statement "ppEVar2 = &pEVar3->pExpr;" (assignment_expression "ppEVar2 = &pEVar3->pExpr" identifier = (pointer_expression "&pEVar3->pExpr" & (field_expression "pEVar3->pExpr" identifier -> field_identifier))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "pEVar3 = pEVar3 + 1;" (assignment_expression "pEVar3 = pEVar3 + 1" identifier = (binary_expression "pEVar3 + 1" identifier + number_literal)) ;) (expression_statement "local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2);" (assignment_expression "local_2c = sqlite3ExprCollSeq(pParse,*ppEVar2)" identifier = (call_expression "sqlite3ExprCollSeq(pParse,*ppEVar2)" identifier (argument_list "(pParse,*ppEVar2)" ( identifier , (pointer_expression "*ppEVar2" * identifier) )))) ;) (if_statement "if (local_2c != (CollSeq *)0x0) break;" if (parenthesized_expression "(local_2c != (CollSeq *)0x0)" ( (binary_expression "local_2c != (CollSeq *)0x0" identifier != (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar5 < iVar7)" ( (binary_expression "iVar5 < iVar7" identifier < identifier) )) ;) (if_statement "if (local_2c == (CollSeq *)0x0) goto LAB_000b7760;" if (parenthesized_expression "(local_2c == (CollSeq *)0x0)" ( (binary_expression "local_2c == (CollSeq *)0x0" identifier == (cast_expression "(CollSeq *)0x0" ( (type_descriptor "CollSeq *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000b7760;" goto statement_identifier ;)) }))) (if_statement "if ((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)) {\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }" if (parenthesized_expression "((local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0))" ( (binary_expression "(local_30 == 0) && (local_30 = pAggInfo->nAccumulator, local_30 != 0)" (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_30 = pAggInfo->nAccumulator, local_30 != 0)" ( (comma_expression "local_30 = pAggInfo->nAccumulator, local_30 != 0" (assignment_expression "local_30 = pAggInfo->nAccumulator" identifier = (field_expression "pAggInfo->nAccumulator" identifier -> field_identifier)) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          local_30 = pParse->nMem + 1;\n          pParse->nMem = local_30;\n        }" { (expression_statement "local_30 = pParse->nMem + 1;" (assignment_expression "local_30 = pParse->nMem + 1" identifier = (binary_expression "pParse->nMem + 1" (field_expression "pParse->nMem" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nMem = local_30;" (assignment_expression "pParse->nMem = local_30" (field_expression "pParse->nMem" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0);" (assignment_expression "iVar5 = sqlite3VdbeAddOp3(p,0x52,local_30,0,0)" identifier = (call_expression "sqlite3VdbeAddOp3(p,0x52,local_30,0,0)" identifier (argument_list "(p,0x52,local_30,0,0)" ( identifier , number_literal , identifier , number_literal , number_literal )))) ;) (expression_statement "sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2);" (call_expression "sqlite3VdbeChangeP4(p,iVar5,(char *)local_2c,-2)" identifier (argument_list "(p,iVar5,(char *)local_2c,-2)" ( identifier , identifier , (cast_expression "(char *)local_2c" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;) })) (expression_statement "sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem);" (call_expression "sqlite3VdbeAddOp3(p,0x9a,0,local_44,pAVar6->iMem)" identifier (argument_list "(p,0x9a,0,local_44,pAVar6->iMem)" ( identifier , number_literal , number_literal , identifier , (field_expression "pAVar6->iMem" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8);" (call_expression "sqlite3VdbeAppendP4(p,pAVar6->pFunc,-8)" identifier (argument_list "(p,pAVar6->pFunc,-8)" ( identifier , (field_expression "pAVar6->pFunc" identifier -> field_identifier) , number_literal ))) ;) (if_statement "if (0 < p->nOp) {\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }" if (parenthesized_expression "(0 < p->nOp)" ( (binary_expression "0 < p->nOp" number_literal < (field_expression "p->nOp" identifier -> field_identifier)) )) (compound_statement "{\n        p->aOp[p->nOp + -1].p5 = local_32;\n      }" { (expression_statement "p->aOp[p->nOp + -1].p5 = local_32;" (assignment_expression "p->aOp[p->nOp + -1].p5 = local_32" (field_expression "p->aOp[p->nOp + -1].p5" (subscript_expression "p->aOp[p->nOp + -1]" (field_expression "p->aOp" identifier -> field_identifier) [ (binary_expression "p->nOp + -1" (field_expression "p->nOp" identifier -> field_identifier) + number_literal) ]) . field_identifier) = identifier) ;) })) (if_statement "if (iVar7 == 1) {\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }\n      else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }" if (parenthesized_expression "(iVar7 == 1)" ( (binary_expression "iVar7 == 1" identifier == number_literal) )) (compound_statement "{\n        sqlite3ReleaseTempRange(pParse,local_44,nReg);\n      }" { (expression_statement "sqlite3ReleaseTempRange(pParse,local_44,nReg);" (call_expression "sqlite3ReleaseTempRange(pParse,local_44,nReg)" identifier (argument_list "(pParse,local_44,nReg)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }" else (if_statement "if (pParse->nRangeReg < iVar7) {\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }" if (parenthesized_expression "(pParse->nRangeReg < iVar7)" ( (binary_expression "pParse->nRangeReg < iVar7" (field_expression "pParse->nRangeReg" identifier -> field_identifier) < identifier) )) (compound_statement "{\n        pParse->nRangeReg = iVar7;\n        pParse->iRangeReg = local_44;\n      }" { (expression_statement "pParse->nRangeReg = iVar7;" (assignment_expression "pParse->nRangeReg = iVar7" (field_expression "pParse->nRangeReg" identifier -> field_identifier) = identifier) ;) (expression_statement "pParse->iRangeReg = local_44;" (assignment_expression "pParse->iRangeReg = local_44" (field_expression "pParse->iRangeReg" identifier -> field_identifier) = identifier) ;) })))) (if_statement "if (local_40 != 0) {\n        sqlite3VdbeResolveLabel(p,local_40);\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        sqlite3VdbeResolveLabel(p,local_40);\n      }" { (expression_statement "sqlite3VdbeResolveLabel(p,local_40);" (call_expression "sqlite3VdbeResolveLabel(p,local_40)" identifier (argument_list "(p,local_40)" ( identifier , identifier ))) ;) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) (expression_statement "pAVar6 = pAVar6 + 1;" (assignment_expression "pAVar6 = pAVar6 + 1" identifier = (binary_expression "pAVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_48 < pAggInfo->nFunc)" ( (binary_expression "local_48 < pAggInfo->nFunc" identifier < (field_expression "pAggInfo->nFunc" identifier -> field_identifier)) )) ;) (if_statement "if (local_30 == 0) goto LAB_000b7780;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000b7780;" goto statement_identifier ;)) (labeled_statement "LAB_000b76cc:\n    iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);" statement_identifier : (expression_statement "iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0);" (assignment_expression "iVar7 = sqlite3VdbeAddOp3(p,0x12,local_30,0,0)" identifier = (call_expression "sqlite3VdbeAddOp3(p,0x12,local_30,0,0)" identifier (argument_list "(p,0x12,local_30,0,0)" ( identifier , number_literal , identifier , number_literal , number_literal )))) ;)) (expression_statement "pAVar4 = pAggInfo->aCol;" (assignment_expression "pAVar4 = pAggInfo->aCol" identifier = (field_expression "pAggInfo->aCol" identifier -> field_identifier)) ;) (if_statement "if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;" if (parenthesized_expression "(pAggInfo->nAccumulator < 1)" ( (binary_expression "pAggInfo->nAccumulator < 1" (field_expression "pAggInfo->nAccumulator" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_000b7724;" goto statement_identifier ;)) }))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    piVar1 = &pAVar4->iMem;\n    ppEVar2 = &pAVar4->pExpr;\n    iVar5 = iVar5 + 1;\n    pAVar4 = pAVar4 + 1;\n    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);\n  } while (iVar5 < pAggInfo->nAccumulator);" do (compound_statement "{\n    piVar1 = &pAVar4->iMem;\n    ppEVar2 = &pAVar4->pExpr;\n    iVar5 = iVar5 + 1;\n    pAVar4 = pAVar4 + 1;\n    sqlite3ExprCode(pParse,*ppEVar2,*piVar1);\n  }" { (expression_statement "piVar1 = &pAVar4->iMem;" (assignment_expression "piVar1 = &pAVar4->iMem" identifier = (pointer_expression "&pAVar4->iMem" & (field_expression "pAVar4->iMem" identifier -> field_identifier))) ;) (expression_statement "ppEVar2 = &pAVar4->pExpr;" (assignment_expression "ppEVar2 = &pAVar4->pExpr" identifier = (pointer_expression "&pAVar4->pExpr" & (field_expression "pAVar4->pExpr" identifier -> field_identifier))) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "pAVar4 = pAVar4 + 1;" (assignment_expression "pAVar4 = pAVar4 + 1" identifier = (binary_expression "pAVar4 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3ExprCode(pParse,*ppEVar2,*piVar1);" (call_expression "sqlite3ExprCode(pParse,*ppEVar2,*piVar1)" identifier (argument_list "(pParse,*ppEVar2,*piVar1)" ( identifier , (pointer_expression "*ppEVar2" * identifier) , (pointer_expression "*piVar1" * identifier) ))) ;) }) while (parenthesized_expression "(iVar5 < pAggInfo->nAccumulator)" ( (binary_expression "iVar5 < pAggInfo->nAccumulator" identifier < (field_expression "pAggInfo->nAccumulator" identifier -> field_identifier)) )) ;) (labeled_statement "LAB_000b7724:\n  pAggInfo->directMode = '\0';" statement_identifier : (expression_statement "pAggInfo->directMode = '\0';" (assignment_expression "pAggInfo->directMode = '\0'" (field_expression "pAggInfo->directMode" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "iVar5 = DAT_0017d9c4;" (assignment_expression "iVar5 = DAT_0017d9c4" identifier = identifier) ;) (if_statement "if (iVar7 != 0) {\n    iVar5 = p->nOp;\n    if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }\n    if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }\n  }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar5 = p->nOp;\n    if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }\n    if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }\n  }" { (expression_statement "iVar5 = p->nOp;" (assignment_expression "iVar5 = p->nOp" identifier = (field_expression "p->nOp" identifier -> field_identifier)) ;) (if_statement "if (iVar7 < 0) {\n      iVar7 = iVar5 + -1;\n    }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar7 = iVar5 + -1;\n    }" { (expression_statement "iVar7 = iVar5 + -1;" (assignment_expression "iVar7 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) })) (if_statement "if (p->db->mallocFailed == '\0') {\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }" if (parenthesized_expression "(p->db->mallocFailed == '\0')" ( (binary_expression "p->db->mallocFailed == '\0'" (field_expression "p->db->mallocFailed" (field_expression "p->db" identifier -> field_identifier) -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      p->aOp[iVar7].p2 = iVar5;\n      iVar5 = DAT_0017d9c4;\n    }" { (expression_statement "p->aOp[iVar7].p2 = iVar5;" (assignment_expression "p->aOp[iVar7].p2 = iVar5" (field_expression "p->aOp[iVar7].p2" (subscript_expression "p->aOp[iVar7]" (field_expression "p->aOp" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "iVar5 = DAT_0017d9c4;" (assignment_expression "iVar5 = DAT_0017d9c4" identifier = identifier) ;) })) })) (expression_statement "DAT_0017d9c4 = iVar5;" (assignment_expression "DAT_0017d9c4 = iVar5" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)" identifier (parameter_list "(int param_1,int param_2,undefined1 *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_48;" primitive_type identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "ushort local_32;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "piVar4 = *(int **)(param_3 + 0x28);" (assignment_expression "piVar4 = *(int **)(param_3 + 0x28)" identifier = (pointer_expression "*(int **)(param_3 + 0x28)" * (cast_expression "(int **)(param_3 + 0x28)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" * identifier) = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" if (parenthesized_expression "(*(int *)(param_3 + 0x2c) < 1)" ( (binary_expression "*(int *)(param_3 + 0x2c) < 1" (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }" { (labeled_statement "LAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" statement_identifier : (if_statement "if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" if (parenthesized_expression "((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0))" ( (binary_expression "(param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_3 + 0x24) != 0)" ( (binary_expression "*(int *)(param_3 + 0x24) != 0" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) != number_literal) ))) )) (goto_statement "goto LAB_000b76cc;" goto statement_identifier ;))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (if_statement "if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" ( (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      *param_3 = 0;\n      return;\n    }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" else (compound_statement "{\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" { (do_statement "do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));" do (compound_statement "{\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    }" { (if_statement "if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" if (parenthesized_expression "(*(int **)(*piVar4 + 0x14) == (int *)0x0)" ( (binary_expression "*(int **)(*piVar4 + 0x14) == (int *)0x0" (pointer_expression "*(int **)(*piVar4 + 0x14)" * (cast_expression "(int **)(*piVar4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }" { (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_32 = 0;" (assignment_expression "local_32 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" else (compound_statement "{\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" { (expression_statement "iVar5 = **(int **)(*piVar4 + 0x14);" (assignment_expression "iVar5 = **(int **)(*piVar4 + 0x14)" identifier = (pointer_expression "**(int **)(*piVar4 + 0x14)" * (pointer_expression "*(int **)(*piVar4 + 0x14)" * (cast_expression "(int **)(*piVar4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar4 + 0x14)" ( (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" * identifier) + number_literal) )))))) ;) (expression_statement "local_44 = FUN_0004b710();" (assignment_expression "local_44 = FUN_0004b710()" identifier = (call_expression "FUN_0004b710()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_000b7270(0,1);" (call_expression "FUN_000b7270(0,1)" identifier (argument_list "(0,1)" ( number_literal , number_literal ))) ;) (expression_statement "local_32 = (ushort)iVar5 & 0xff;" (assignment_expression "local_32 = (ushort)iVar5 & 0xff" identifier = (binary_expression "(ushort)iVar5 & 0xff" (cast_expression "(ushort)iVar5" ( (type_descriptor "ushort" type_identifier) ) identifier) & number_literal)) ;) }))) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (if_statement "if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" if (parenthesized_expression "(-1 < piVar4[3])" ( (binary_expression "-1 < piVar4[3]" number_literal < (subscript_expression "piVar4[3]" identifier [ number_literal ])) )) (compound_statement "{\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" { (expression_statement "local_40 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "local_40 = *(int *)(param_1 + 0x38) + -1" identifier = (binary_expression "*(int *)(param_1 + 0x38) + -1" (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) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x38) = local_40;" (assignment_expression "*(int *)(param_1 + 0x38) = local_40" (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) )))) = identifier) ;) (expression_statement "FUN_00066d30(1,local_44);" (call_expression "FUN_00066d30(1,local_44)" identifier (argument_list "(1,local_44)" ( number_literal , identifier ))) ;) })) (if_statement "if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" if (parenthesized_expression "((*(byte *)(piVar4[1] + 4) & 0x20) != 0)" ( (binary_expression "(*(byte *)(piVar4[1] + 4) & 0x20) != 0" (parenthesized_expression "(*(byte *)(piVar4[1] + 4) & 0x20)" ( (binary_expression "*(byte *)(piVar4[1] + 4) & 0x20" (pointer_expression "*(byte *)(piVar4[1] + 4)" * (cast_expression "(byte *)(piVar4[1] + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4[1] + 4)" ( (binary_expression "piVar4[1] + 4" (subscript_expression "piVar4[1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" { (if_statement "if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);" do (compound_statement "{\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00078610();" (assignment_expression "iVar2 = FUN_00078610()" identifier = (call_expression "FUN_00078610()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar3 < iVar5)" ( (binary_expression "iVar3 < iVar5" identifier < identifier) )) ;) })) (if_statement "if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" if (parenthesized_expression "((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0))" ( (binary_expression "(local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) && (parenthesized_expression "(local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" ( (comma_expression "local_30 = *(int *)(param_3 + 0x24), local_30 != 0" (assignment_expression "local_30 = *(int *)(param_3 + 0x24)" identifier = (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) , (binary_expression "local_30 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" { (expression_statement "local_30 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_30 = *(int *)(param_1 + 0x2c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x2c) = local_30;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_30" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "FUN_00065e80(0,0);" (call_expression "FUN_00065e80(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (expression_statement "FUN_000533f0(0xfffffffe);" (call_expression "FUN_000533f0(0xfffffffe)" identifier (argument_list "(0xfffffffe)" ( number_literal ))) ;) })) (expression_statement "FUN_00065e80(local_44,piVar4[2]);" (call_expression "FUN_00065e80(local_44,piVar4[2])" identifier (argument_list "(local_44,piVar4[2])" ( identifier , (subscript_expression "piVar4[2]" identifier [ number_literal ]) ))) ;) (expression_statement "FUN_0004ce40();" (call_expression "FUN_0004ce40()" identifier (argument_list "()" ( ))) ;) (if_statement "if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" if (parenthesized_expression "(0 < piVar1[0x1a])" ( (binary_expression "0 < piVar1[0x1a]" number_literal < (subscript_expression "piVar1[0x1a]" identifier [ number_literal ])) )) (compound_statement "{\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" { (expression_statement "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;" (assignment_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32" (pointer_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" * (cast_expression "(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" ( (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16" (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x19]" identifier [ number_literal ]) + (binary_expression "piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x1a]" identifier [ number_literal ]) * number_literal)) + number_literal) )))) = identifier) ;) })) (if_statement "if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" if (parenthesized_expression "(iVar5 == 1)" ( (binary_expression "iVar5 == 1" identifier == number_literal) )) (compound_statement "{\n        FUN_0004b780();\n      }" { (expression_statement "FUN_0004b780();" (call_expression "FUN_0004b780()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" else (if_statement "if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) < iVar5)" ( (binary_expression "*(int *)(param_1 + 0x1c) < iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" { (expression_statement "*(int *)(param_1 + 0x1c) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x20) = local_44;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = local_44" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) })))) (if_statement "if (local_40 != 0) {\n        FUN_00065c50();\n      }" if (parenthesized_expression "(local_40 != 0)" ( (binary_expression "local_40 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00065c50();\n      }" { (expression_statement "FUN_00065c50();" (call_expression "FUN_00065c50()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" identifier = (binary_expression "local_48 + 1" identifier + number_literal)) ;) (expression_statement "piVar4 = piVar4 + 4;" (assignment_expression "piVar4 = piVar4 + 4" identifier = (binary_expression "piVar4 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_48 < *(int *)(param_3 + 0x2c))" ( (binary_expression "local_48 < *(int *)(param_3 + 0x2c)" identifier < (pointer_expression "*(int *)(param_3 + 0x2c)" * (cast_expression "(int *)(param_3 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2c)" ( (binary_expression "param_3 + 0x2c" identifier + number_literal) ))))) )) ;) (if_statement "if (local_30 == 0) goto LAB_000b7780;" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000b7780;" goto statement_identifier ;)) (labeled_statement "LAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);" statement_identifier : (expression_statement "iVar5 = FUN_00065e80(0,0);" (assignment_expression "iVar5 = FUN_00065e80(0,0)" identifier = (call_expression "FUN_00065e80(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;)) (if_statement "if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;" if (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" ( (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) < number_literal) )) (goto_statement "goto LAB_000b7724;" goto statement_identifier ;)) }))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));" do (compound_statement "{\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "FUN_000b54e0();" (call_expression "FUN_000b54e0()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar3 < *(int *)(param_3 + 0x24))" ( (binary_expression "iVar3 < *(int *)(param_3 + 0x24)" identifier < (pointer_expression "*(int *)(param_3 + 0x24)" * (cast_expression "(int *)(param_3 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) ))))) )) ;) (labeled_statement "LAB_000b7724:\n  *param_3 = 0;" statement_identifier : (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;)) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" identifier = identifier) ;) (if_statement "if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" { (expression_statement "iVar3 = piVar1[0x1a];" (assignment_expression "iVar3 = piVar1[0x1a]" identifier = (subscript_expression "piVar1[0x1a]" identifier [ number_literal ])) ;) (if_statement "if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar5 = iVar3 + -1;\n    }" { (expression_statement "iVar5 = iVar3 + -1;" (assignment_expression "iVar5 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) })) (if_statement "if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" if (parenthesized_expression "(*(char *)(*piVar1 + 0x4d) == '\0')" ( (binary_expression "*(char *)(*piVar1 + 0x4d) == '\0'" (pointer_expression "*(char *)(*piVar1 + 0x4d)" * (cast_expression "(char *)(*piVar1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x4d)" ( (binary_expression "*piVar1 + 0x4d" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" { (expression_statement "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;" (assignment_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3" (pointer_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" * (cast_expression "(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[0x19] + iVar5 * 0x18 + 8)" ( (binary_expression "piVar1[0x19] + iVar5 * 0x18 + 8" (binary_expression "piVar1[0x19] + iVar5 * 0x18" (subscript_expression "piVar1[0x19]" identifier [ number_literal ]) + (binary_expression "iVar5 * 0x18" identifier * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" identifier = identifier) ;) })) })) (expression_statement "DAT_0017d9c4 = iVar3;" (assignment_expression "DAT_0017d9c4 = iVar3" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (goto_statement goto 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) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) + LIT) )))) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_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) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , 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) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000b74a0(int param_1,int param_2,undefined1 *param_3)" (identifier "FUN_000b74a0") (parameter_list "(int param_1,int param_2,undefined1 *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int iVar5;\n  int local_48;\n  undefined4 local_44;\n  int local_40;\n  ushort local_32;\n  int local_30;\n  \n  piVar1 = *(int **)(param_1 + 8);\n  piVar4 = *(int **)(param_3 + 0x28);\n  *param_3 = 1;\n  local_30 = 0;\n  local_48 = 0;\n  if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }\n  iVar3 = 0;\n  do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));\nLAB_000b7724:\n  *param_3 = 0;\n  iVar3 = DAT_0017d9c4;\n  if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }\n  DAT_0017d9c4 = iVar3;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int local_48;" (primitive_type "int") (identifier "local_48") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "ushort local_32;" (type_identifier "ushort") (identifier "local_32") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 8);" (assignment_expression "piVar1 = *(int **)(param_1 + 8)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "piVar4 = *(int **)(param_3 + 0x28);" (assignment_expression "piVar4 = *(int **)(param_3 + 0x28)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(param_3 + 0x28)" (* "*") (cast_expression "(int **)(param_3 + 0x28)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*param_3 = 1;" (assignment_expression "*param_3 = 1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x2c) < 1) {\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }\n  else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x2c) < 1)" (( "(") (binary_expression "*(int *)(param_3 + 0x2c) < 1" (pointer_expression "*(int *)(param_3 + 0x2c)" (* "*") (cast_expression "(int *)(param_3 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2c)" (( "(") (binary_expression "param_3 + 0x2c" (identifier "param_3") (+ "+") (number_literal "0x2c")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\nLAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;\n    iVar5 = 0;\n    if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }\n  }" ({ "{") (labeled_statement "LAB_000b7780:\n    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" (statement_identifier "LAB_000b7780") (: ":") (if_statement "if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;" (if "if") (parenthesized_expression "((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0))" (( "(") (binary_expression "(param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_3 + 0x24) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 0x24) != 0" (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000b76cc;" (goto "goto") (statement_identifier "LAB_000b76cc") (; ";")))) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(int *)(param_3 + 0x24) < 1) {\n      *param_3 = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" (( "(") (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      *param_3 = 0;\n      return;\n    }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" (else "else") (compound_statement "{\n    do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));\n    if (local_30 == 0) goto LAB_000b7780;\nLAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);\n    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;\n  }" ({ "{") (do_statement "do {\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    } while (local_48 < *(int *)(param_3 + 0x2c));" (do "do") (compound_statement "{\n      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }\n      local_40 = 0;\n      if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }\n      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }\n      FUN_00065e80(local_44,piVar4[2]);\n      FUN_0004ce40();\n      if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }\n      if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }\n      if (local_40 != 0) {\n        FUN_00065c50();\n      }\n      local_48 = local_48 + 1;\n      piVar4 = piVar4 + 4;\n    }" ({ "{") (if_statement "if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }\n      else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" (if "if") (parenthesized_expression "(*(int **)(*piVar4 + 0x14) == (int *)0x0)" (( "(") (binary_expression "*(int **)(*piVar4 + 0x14) == (int *)0x0" (pointer_expression "*(int **)(*piVar4 + 0x14)" (* "*") (cast_expression "(int **)(*piVar4 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x14)" (( "(") (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x14")) () ")")))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        local_44 = 0;\n        iVar5 = 0;\n        local_32 = 0;\n      }" ({ "{") (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_32 = 0;" (assignment_expression "local_32 = 0" (identifier "local_32") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" (else "else") (compound_statement "{\n        iVar5 = **(int **)(*piVar4 + 0x14);\n        local_44 = FUN_0004b710();\n        FUN_000b7270(0,1);\n        local_32 = (ushort)iVar5 & 0xff;\n      }" ({ "{") (expression_statement "iVar5 = **(int **)(*piVar4 + 0x14);" (assignment_expression "iVar5 = **(int **)(*piVar4 + 0x14)" (identifier "iVar5") (= "=") (pointer_expression "**(int **)(*piVar4 + 0x14)" (* "*") (pointer_expression "*(int **)(*piVar4 + 0x14)" (* "*") (cast_expression "(int **)(*piVar4 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar4 + 0x14)" (( "(") (binary_expression "*piVar4 + 0x14" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (expression_statement "local_44 = FUN_0004b710();" (assignment_expression "local_44 = FUN_0004b710()" (identifier "local_44") (= "=") (call_expression "FUN_0004b710()" (identifier "FUN_0004b710") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_000b7270(0,1);" (call_expression "FUN_000b7270(0,1)" (identifier "FUN_000b7270") (argument_list "(0,1)" (( "(") (number_literal "0") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "local_32 = (ushort)iVar5 & 0xff;" (assignment_expression "local_32 = (ushort)iVar5 & 0xff" (identifier "local_32") (= "=") (binary_expression "(ushort)iVar5 & 0xff" (cast_expression "(ushort)iVar5" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "iVar5")) (& "&") (number_literal "0xff"))) (; ";")) (} "}")))) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < piVar4[3]) {\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" (if "if") (parenthesized_expression "(-1 < piVar4[3])" (( "(") (binary_expression "-1 < piVar4[3]" (number_literal "-1") (< "<") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) () ")")) (compound_statement "{\n        local_40 = *(int *)(param_1 + 0x38) + -1;\n        *(int *)(param_1 + 0x38) = local_40;\n        FUN_00066d30(1,local_44);\n      }" ({ "{") (expression_statement "local_40 = *(int *)(param_1 + 0x38) + -1;" (assignment_expression "local_40 = *(int *)(param_1 + 0x38) + -1" (identifier "local_40") (= "=") (binary_expression "*(int *)(param_1 + 0x38) + -1" (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")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x38) = local_40;" (assignment_expression "*(int *)(param_1 + 0x38) = local_40" (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")) () ")")))) (= "=") (identifier "local_40")) (; ";")) (expression_statement "FUN_00066d30(1,local_44);" (call_expression "FUN_00066d30(1,local_44)" (identifier "FUN_00066d30") (argument_list "(1,local_44)" (( "(") (number_literal "1") (, ",") (identifier "local_44") () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" (if "if") (parenthesized_expression "((*(byte *)(piVar4[1] + 4) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(piVar4[1] + 4) & 0x20) != 0" (parenthesized_expression "(*(byte *)(piVar4[1] + 4) & 0x20)" (( "(") (binary_expression "*(byte *)(piVar4[1] + 4) & 0x20" (pointer_expression "*(byte *)(piVar4[1] + 4)" (* "*") (cast_expression "(byte *)(piVar4[1] + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4[1] + 4)" (( "(") (binary_expression "piVar4[1] + 4" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }\n        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }\n        FUN_00065e80(0,0);\n        FUN_000533f0(0xfffffffe);\n      }" ({ "{") (if_statement "if (0 < iVar5) {\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n          iVar3 = 0;\n          do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);\n        }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          } while (iVar3 < iVar5);" (do "do") (compound_statement "{\n            iVar3 = iVar3 + 1;\n            iVar2 = FUN_00078610();\n            if (iVar2 != 0) break;\n          }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = FUN_00078610();" (assignment_expression "iVar2 = FUN_00078610()" (identifier "iVar2") (= "=") (call_expression "FUN_00078610()" (identifier "FUN_00078610") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) break;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar3 < iVar5)" (( "(") (binary_expression "iVar3 < iVar5" (identifier "iVar3") (< "<") (identifier "iVar5")) () ")")) (; ";")) (} "}"))) (if_statement "if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" (if "if") (parenthesized_expression "((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0))" (( "(") (binary_expression "(local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_30 = *(int *)(param_3 + 0x24), local_30 != 0)" (( "(") (comma_expression "local_30 = *(int *)(param_3 + 0x24), local_30 != 0" (assignment_expression "local_30 = *(int *)(param_3 + 0x24)" (identifier "local_30") (= "=") (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")"))))) (, ",") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          local_30 = *(int *)(param_1 + 0x2c) + 1;\n          *(int *)(param_1 + 0x2c) = local_30;\n        }" ({ "{") (expression_statement "local_30 = *(int *)(param_1 + 0x2c) + 1;" (assignment_expression "local_30 = *(int *)(param_1 + 0x2c) + 1" (identifier "local_30") (= "=") (binary_expression "*(int *)(param_1 + 0x2c) + 1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x2c) = local_30;" (assignment_expression "*(int *)(param_1 + 0x2c) = local_30" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "local_30")) (; ";")) (} "}"))) (expression_statement "FUN_00065e80(0,0);" (call_expression "FUN_00065e80(0,0)" (identifier "FUN_00065e80") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000533f0(0xfffffffe);" (call_expression "FUN_000533f0(0xfffffffe)" (identifier "FUN_000533f0") (argument_list "(0xfffffffe)" (( "(") (number_literal "0xfffffffe") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00065e80(local_44,piVar4[2]);" (call_expression "FUN_00065e80(local_44,piVar4[2])" (identifier "FUN_00065e80") (argument_list "(local_44,piVar4[2])" (( "(") (identifier "local_44") (, ",") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "FUN_0004ce40();" (call_expression "FUN_0004ce40()" (identifier "FUN_0004ce40") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (0 < piVar1[0x1a]) {\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" (if "if") (parenthesized_expression "(0 < piVar1[0x1a])" (( "(") (binary_expression "0 < piVar1[0x1a]" (number_literal "0") (< "<") (subscript_expression "piVar1[0x1a]" (identifier "piVar1") ([ "[") (number_literal "0x1a") (] "]"))) () ")")) (compound_statement "{\n        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;\n      }" ({ "{") (expression_statement "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;" (assignment_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32" (pointer_expression "*(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" (* "*") (cast_expression "(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16)" (( "(") (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16" (binary_expression "piVar1[0x19] + piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x19]" (identifier "piVar1") ([ "[") (number_literal "0x19") (] "]")) (+ "+") (binary_expression "piVar1[0x1a] * 0x18" (subscript_expression "piVar1[0x1a]" (identifier "piVar1") ([ "[") (number_literal "0x1a") (] "]")) (* "*") (number_literal "0x18"))) (+ "+") (number_literal "-0x16")) () ")")))) (= "=") (identifier "local_32")) (; ";")) (} "}"))) (if_statement "if (iVar5 == 1) {\n        FUN_0004b780();\n      }\n      else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" (if "if") (parenthesized_expression "(iVar5 == 1)" (( "(") (binary_expression "iVar5 == 1" (identifier "iVar5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        FUN_0004b780();\n      }" ({ "{") (expression_statement "FUN_0004b780();" (call_expression "FUN_0004b780()" (identifier "FUN_0004b780") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" (else "else") (if_statement "if (*(int *)(param_1 + 0x1c) < iVar5) {\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) < iVar5)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) < iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        *(int *)(param_1 + 0x1c) = iVar5;\n        *(undefined4 *)(param_1 + 0x20) = local_44;\n      }" ({ "{") (expression_statement "*(int *)(param_1 + 0x1c) = iVar5;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar5" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x20) = local_44;" (assignment_expression "*(undefined4 *)(param_1 + 0x20) = local_44" (pointer_expression "*(undefined4 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "local_44")) (; ";")) (} "}"))))) (if_statement "if (local_40 != 0) {\n        FUN_00065c50();\n      }" (if "if") (parenthesized_expression "(local_40 != 0)" (( "(") (binary_expression "local_40 != 0" (identifier "local_40") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00065c50();\n      }" ({ "{") (expression_statement "FUN_00065c50();" (call_expression "FUN_00065c50()" (identifier "FUN_00065c50") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "local_48 = local_48 + 1;" (assignment_expression "local_48 = local_48 + 1" (identifier "local_48") (= "=") (binary_expression "local_48 + 1" (identifier "local_48") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar4 = piVar4 + 4;" (assignment_expression "piVar4 = piVar4 + 4" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 4" (identifier "piVar4") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_48 < *(int *)(param_3 + 0x2c))" (( "(") (binary_expression "local_48 < *(int *)(param_3 + 0x2c)" (identifier "local_48") (< "<") (pointer_expression "*(int *)(param_3 + 0x2c)" (* "*") (cast_expression "(int *)(param_3 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2c)" (( "(") (binary_expression "param_3 + 0x2c" (identifier "param_3") (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (; ";")) (if_statement "if (local_30 == 0) goto LAB_000b7780;" (if "if") (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000b7780;" (goto "goto") (statement_identifier "LAB_000b7780") (; ";"))) (labeled_statement "LAB_000b76cc:\n    iVar5 = FUN_00065e80(0,0);" (statement_identifier "LAB_000b76cc") (: ":") (expression_statement "iVar5 = FUN_00065e80(0,0);" (assignment_expression "iVar5 = FUN_00065e80(0,0)" (identifier "iVar5") (= "=") (call_expression "FUN_00065e80(0,0)" (identifier "FUN_00065e80") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";"))) (if_statement "if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x24) < 1)" (( "(") (binary_expression "*(int *)(param_3 + 0x24) < 1" (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")")))) (< "<") (number_literal "1")) () ")")) (goto_statement "goto LAB_000b7724;" (goto "goto") (statement_identifier "LAB_000b7724") (; ";"))) (} "}")))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  } while (iVar3 < *(int *)(param_3 + 0x24));" (do "do") (compound_statement "{\n    iVar3 = iVar3 + 1;\n    FUN_000b54e0();\n  }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_000b54e0();" (call_expression "FUN_000b54e0()" (identifier "FUN_000b54e0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < *(int *)(param_3 + 0x24))" (( "(") (binary_expression "iVar3 < *(int *)(param_3 + 0x24)" (identifier "iVar3") (< "<") (pointer_expression "*(int *)(param_3 + 0x24)" (* "*") (cast_expression "(int *)(param_3 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (; ";")) (labeled_statement "LAB_000b7724:\n  *param_3 = 0;" (statement_identifier "LAB_000b7724") (: ":") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" (identifier "iVar3") (= "=") (identifier "DAT_0017d9c4")) (; ";")) (if_statement "if (iVar5 != 0) {\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = piVar1[0x1a];\n    if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }\n    if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }\n  }" ({ "{") (expression_statement "iVar3 = piVar1[0x1a];" (assignment_expression "iVar3 = piVar1[0x1a]" (identifier "iVar3") (= "=") (subscript_expression "piVar1[0x1a]" (identifier "piVar1") ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (if_statement "if (iVar5 < 0) {\n      iVar5 = iVar3 + -1;\n    }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = iVar3 + -1;\n    }" ({ "{") (expression_statement "iVar5 = iVar3 + -1;" (assignment_expression "iVar5 = iVar3 + -1" (identifier "iVar5") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*piVar1 + 0x4d) == '\0') {\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" (if "if") (parenthesized_expression "(*(char *)(*piVar1 + 0x4d) == '\0')" (( "(") (binary_expression "*(char *)(*piVar1 + 0x4d) == '\0'" (pointer_expression "*(char *)(*piVar1 + 0x4d)" (* "*") (cast_expression "(char *)(*piVar1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x4d)" (( "(") (binary_expression "*piVar1 + 0x4d" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x4d")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;\n      iVar3 = DAT_0017d9c4;\n    }" ({ "{") (expression_statement "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;" (assignment_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3" (pointer_expression "*(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" (* "*") (cast_expression "(int *)(piVar1[0x19] + iVar5 * 0x18 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[0x19] + iVar5 * 0x18 + 8)" (( "(") (binary_expression "piVar1[0x19] + iVar5 * 0x18 + 8" (binary_expression "piVar1[0x19] + iVar5 * 0x18" (subscript_expression "piVar1[0x19]" (identifier "piVar1") ([ "[") (number_literal "0x19") (] "]")) (+ "+") (binary_expression "iVar5 * 0x18" (identifier "iVar5") (* "*") (number_literal "0x18"))) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = DAT_0017d9c4;" (assignment_expression "iVar3 = DAT_0017d9c4" (identifier "iVar3") (= "=") (identifier "DAT_0017d9c4")) (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_0017d9c4 = iVar3;" (assignment_expression "DAT_0017d9c4 = iVar3" (identifier "DAT_0017d9c4") (= "=") (identifier "iVar3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 function_1(type_1 *pParse,int var_1,type_2 *pAggInfo)

{
  int *piVar1;
  type_3 *p;
  type_4 *var_2;
  type_5 **ppEVar2;
  int nReg;
  type_6 *var_8;
  type_7 *var_20;
  int var_7;
  type_8 *var_19;
  int var_6;
  int var_18;
  int local_44;
  int var_16;
  type_9 local_32;
  int var_11;
  type_10 *var_10;
  
  p = pParse->pVdbe;
  var_19 = pAggInfo->aFunc;
  pAggInfo->directMode = '\x01';
  var_11 = 0;
  var_18 = 0;
  if (pAggInfo->nFunc < 1) {
LAB_000b7780:
    if ((var_1 != 0) && (var_11 = var_1, pAggInfo->nAccumulator != 0)) goto LAB_000b76cc;
    var_6 = 0;
    var_20 = pAggInfo->aCol;
    if (pAggInfo->nAccumulator < 1) {
      pAggInfo->directMode = '\0';
      return;
    }
  }
  else {
    do {
      var_2 = (var_19->pExpr->x).var_2;
      if (var_2 == (type_4 *)0x0) {
        local_44 = 0;
        var_6 = 0;
        local_32 = 0;
      }
      else {
        var_6 = var_2->nExpr;
        local_44 = var_3(pParse,var_6);
        var_4(pParse,var_2,local_44,0,'\x01');
        local_32 = (type_11)var_6 & 0xff;
      }
      var_16 = 0;
      if (-1 < var_19->iDistinct) {
        var_16 = pParse->nLabel + -1;
        pParse->nLabel = var_16;
        var_5(pParse,var_19->iDistinct,var_16,1,local_44);
      }
      if ((var_19->pFunc->funcFlags & 0x20) != 0) {
        var_8 = var_2->a;
        if (var_6 < 1) {
LAB_000b7760:
          var_10 = pParse->db->pDfltColl;
        }
        else {
          var_7 = 0;
          do {
            ppEVar2 = &var_8->pExpr;
            var_7 = var_7 + 1;
            var_8 = var_8 + 1;
            var_10 = var_9(pParse,*ppEVar2);
            if (var_10 != (type_10 *)0x0) break;
          } while (var_7 < var_6);
          if (var_10 == (type_10 *)0x0) goto LAB_000b7760;
        }
        if ((var_11 == 0) && (var_11 = pAggInfo->nAccumulator, var_11 != 0)) {
          var_11 = pParse->nMem + 1;
          pParse->nMem = var_11;
        }
        var_7 = var_12(p,0x52,var_11,0,0);
        var_13(p,var_7,(char *)var_10,-2);
      }
      var_12(p,0x9a,0,local_44,var_19->iMem);
      var_14(p,var_19->pFunc,-8);
      if (0 < p->nOp) {
        p->aOp[p->nOp + -1].p5 = local_32;
      }
      if (var_6 == 1) {
        var_15(pParse,local_44,nReg);
      }
      else if (pParse->nRangeReg < var_6) {
        pParse->nRangeReg = var_6;
        pParse->iRangeReg = local_44;
      }
      if (var_16 != 0) {
        var_17(p,var_16);
      }
      var_18 = var_18 + 1;
      var_19 = var_19 + 1;
    } while (var_18 < pAggInfo->nFunc);
    if (var_11 == 0) goto LAB_000b7780;
LAB_000b76cc:
    var_6 = var_12(p,0x12,var_11,0,0);
    var_20 = pAggInfo->aCol;
    if (pAggInfo->nAccumulator < 1) goto LAB_000b7724;
  }
  var_7 = 0;
  do {
    piVar1 = &var_20->iMem;
    ppEVar2 = &var_20->pExpr;
    var_7 = var_7 + 1;
    var_20 = var_20 + 1;
    var_21(pParse,*ppEVar2,*piVar1);
  } while (var_7 < pAggInfo->nAccumulator);
LAB_000b7724:
  pAggInfo->directMode = '\0';
  var_7 = DAT_0017d9c4;
  if (var_6 != 0) {
    var_7 = p->nOp;
    if (var_6 < 0) {
      var_6 = var_7 + -1;
    }
    if (p->db->mallocFailed == '\0') {
      p->aOp[var_6].p2 = var_7;
      var_7 = DAT_0017d9c4;
    }
  }
  DAT_0017d9c4 = var_7;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm3 MASKED(int param_1,int param_2,undefined1 *param_3)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int iVar5;
  int local_48;
  undefined4 local_44;
  int local_40;
  ushort local_32;
  int local_30;
  
  piVar1 = *(int **)(param_1 + 8);
  piVar4 = *(int **)(param_3 + 0x28);
  *param_3 = 1;
  local_30 = 0;
  local_48 = 0;
  if (*(int *)(param_3 + 0x2c) < 1) {
LAB_000b7780:
    if ((param_2 != 0) && (*(int *)(param_3 + 0x24) != 0)) goto LAB_000b76cc;
    iVar5 = 0;
    if (*(int *)(param_3 + 0x24) < 1) {
      *param_3 = 0;
      return;
    }
  }
  else {
    do {
      if (*(int **)(*piVar4 + 0x14) == (int *)0x0) {
        local_44 = 0;
        iVar5 = 0;
        local_32 = 0;
      }
      else {
        iVar5 = **(int **)(*piVar4 + 0x14);
        local_44 = FUN_0004b710();
        FUN_000b7270(0,1);
        local_32 = (ushort)iVar5 & 0xff;
      }
      local_40 = 0;
      if (-1 < piVar4[3]) {
        local_40 = *(int *)(param_1 + 0x38) + -1;
        *(int *)(param_1 + 0x38) = local_40;
        FUN_00066d30(1,local_44);
      }
      if ((*(byte *)(piVar4[1] + 4) & 0x20) != 0) {
        if (0 < iVar5) {
          iVar3 = 0;
          do {
            iVar3 = iVar3 + 1;
            iVar2 = FUN_00078610();
            if (iVar2 != 0) break;
          } while (iVar3 < iVar5);
        }
        if ((local_30 == 0) && (local_30 = *(int *)(param_3 + 0x24), local_30 != 0)) {
          local_30 = *(int *)(param_1 + 0x2c) + 1;
          *(int *)(param_1 + 0x2c) = local_30;
        }
        FUN_00065e80(0,0);
        FUN_000533f0(0xfffffffe);
      }
      FUN_00065e80(local_44,piVar4[2]);
      FUN_0004ce40();
      if (0 < piVar1[0x1a]) {
        *(ushort *)(piVar1[0x19] + piVar1[0x1a] * 0x18 + -0x16) = local_32;
      }
      if (iVar5 == 1) {
        FUN_0004b780();
      }
      else if (*(int *)(param_1 + 0x1c) < iVar5) {
        *(int *)(param_1 + 0x1c) = iVar5;
        *(undefined4 *)(param_1 + 0x20) = local_44;
      }
      if (local_40 != 0) {
        FUN_00065c50();
      }
      local_48 = local_48 + 1;
      piVar4 = piVar4 + 4;
    } while (local_48 < *(int *)(param_3 + 0x2c));
    if (local_30 == 0) goto LAB_000b7780;
LAB_000b76cc:
    iVar5 = FUN_00065e80(0,0);
    if (*(int *)(param_3 + 0x24) < 1) goto LAB_000b7724;
  }
  iVar3 = 0;
  do {
    iVar3 = iVar3 + 1;
    FUN_000b54e0();
  } while (iVar3 < *(int *)(param_3 + 0x24));
LAB_000b7724:
  *param_3 = 0;
  iVar3 = DAT_0017d9c4;
  if (iVar5 != 0) {
    iVar3 = piVar1[0x1a];
    if (iVar5 < 0) {
      iVar5 = iVar3 + -1;
    }
    if (*(char *)(*piVar1 + 0x4d) == '\0') {
      *(int *)(piVar1[0x19] + iVar5 * 0x18 + 8) = iVar3;
      iVar3 = DAT_0017d9c4;
    }
  }
  DAT_0017d9c4 = iVar3;
  return;
}

