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

int __regparm3 fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)

{
  Fts5DlidxLvl *pLvl;
  int iVar1;
  uint uVar2;
  Fts5Data *pFVar3;
  uint uVar4;
  undefined4 in_stack_ffffffb8;
  
  pLvl = pIter->aLvl + iLvl;
  iVar1 = fts5DlidxLvlNext(pLvl);
  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {
    fts5DlidxIterNextR(p,pIter,iLvl + 1);
    if (pLvl[1].bEof == 0) {
      pFVar3 = pIter->aLvl[iLvl].pData;
      sqlite3_free(pFVar3);
      pLvl->pData = (Fts5Data *)0x0;
      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;
      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;
      uVar2 = 0;
      do {
        *(undefined4 *)(uVar4 + uVar2) = 0;
        uVar2 = uVar2 + 4;
      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));
      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));
      pIter->aLvl[iLvl].pData = pFVar3;
      if (pFVar3 != (Fts5Data *)0x0) {
        fts5DlidxLvlNext(pLvl);
      }
    }
  }
  return pIter->aLvl[0].bEof;
}



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

int __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  uint uVar3;
  
  piVar1 = param_2 + param_3 * 7 + 2;
  iVar2 = FUN_00034d20();
  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {
    FUN_000d6630();
    if (piVar1[9] == 0) {
      FUN_00024cc0(param_2[param_3 * 7 + 2]);
      *piVar1 = 0;
      piVar1[6] = 0;
      uVar3 = 0;
      do {
        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;
        uVar3 = uVar3 + 4;
      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
      iVar2 = FUN_000d64a0();
      param_2[param_3 * 7 + 2] = iVar2;
      if (iVar2 != 0) {
        FUN_00034d20();
      }
    }
  }
  return param_2[4];
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x72895
SUB ESP,0x2c
MOV dword ptr [EBP + -0x20],EAX
IMUL EAX,ECX,0x1c
MOV dword ptr [EBP + -0x24],EAX
LEA EAX,[EDX + EAX*0x1 + 0x8]
MOV dword ptr [EBP + -0x1c],EAX
CALL 0x00034d20
TEST EAX,EAX
JZ 0x000d6668
LEA ECX,[EDI + 0x1]
CMP ECX,dword ptr [ESI]
JL 0x000d6678
MOV EAX,dword ptr [ESI + 0x10]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBP + -0x20]
MOV EDX,ESI
CALL 0x000d6630
MOV EAX,dword ptr [EBP + -0x1c]
MOV EAX,dword ptr [EAX + 0x24]
TEST EAX,EAX
JNZ 0x000d6668
MOV EAX,dword ptr [EBP + -0x24]
SUB ESP,0xc
ADD EAX,ESI
PUSH dword ptr [EAX + 0x8]
MOV dword ptr [EBP + -0x24],EAX
CALL 0x00024cc0
MOV EAX,dword ptr [EBP + -0x1c]
XOR EBX,EBX
LEA ECX,[EAX + 0x4]
MOV dword ptr [EAX],0x0
AND ECX,0xfffffffc
MOV dword ptr [EAX + 0x18],0x0
SUB EAX,ECX
MOV EDX,EAX
XOR EAX,EAX
ADD EDX,0x1c
AND EDX,0xfffffffc
MOV dword ptr [ECX + EAX*0x1],EBX
ADD EAX,0x4
CMP EAX,EDX
JC 0x000d66c3
MOV EDX,dword ptr [ESI + 0x4]
MOV EAX,0x0
SHL EDX,0x5
MOV ECX,EDX
ADD ECX,0x10
MOV EBX,ECX
MOV ECX,EAX
MOV EAX,EDI
CDQ
SHL EAX,0x1f
SHLD EDX,EDI,0x1f
ADD ECX,EAX
MOV EAX,dword ptr [EBP + -0x20]
ADC EBX,EDX
MOV dword ptr [EBP + -0x30],ECX
MOV dword ptr [EBP + -0x2c],EBX
MOV EBX,dword ptr [EBP + -0x1c]
MOV EDX,dword ptr [EBX + 0x2c]
MOV ECX,EDX
SAR ECX,0x1f
ADD EDX,dword ptr [EBP + -0x30]
ADC ECX,dword ptr [EBP + -0x2c]
CALL 0x000d64a0
MOV EDX,dword ptr [EBP + -0x24]
ADD ESP,0x10
MOV dword ptr [EDX + 0x8],EAX
TEST EAX,EAX
JZ 0x000d6668
MOV EAX,EBX
CALL 0x00034d20
JMP 0x000d6668
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}\n\n" comment (function_definition "int __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000d6630(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = param_2 + param_3 * 7 + 2;" (assignment_expression "piVar1 = param_2 + param_3 * 7 + 2" identifier = (binary_expression "param_2 + param_3 * 7 + 2" (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal)) + number_literal)) ;) (expression_statement "iVar2 = FUN_00034d20();" (assignment_expression "iVar2 = FUN_00034d20()" identifier = (call_expression "FUN_00034d20()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" { (expression_statement "FUN_000d6630();" (call_expression "FUN_000d6630()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" if (parenthesized_expression "(piVar1[9] == 0)" ( (binary_expression "piVar1[9] == 0" (subscript_expression "piVar1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" { (expression_statement "FUN_00024cc0(param_2[param_3 * 7 + 2]);" (call_expression "FUN_00024cc0(param_2[param_3 * 7 + 2])" identifier (argument_list "(param_2[param_3 * 7 + 2])" ( (subscript_expression "param_2[param_3 * 7 + 2]" identifier [ (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(piVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar2 = FUN_000d64a0();" (assignment_expression "iVar2 = FUN_000d64a0()" identifier = (call_expression "FUN_000d64a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2[param_3 * 7 + 2] = iVar2;" (assignment_expression "param_2[param_3 * 7 + 2] = iVar2" (subscript_expression "param_2[param_3 * 7 + 2]" identifier [ (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar2 != 0) {\n        FUN_00034d20();\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00034d20();\n      }" { (expression_statement "FUN_00034d20();" (call_expression "FUN_00034d20()" identifier (argument_list "()" ( ))) ;) })) })) })) (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" identifier [ number_literal ]) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  uint uVar2;\n  Fts5Data *pFVar3;\n  uint uVar4;\n  undefined4 in_stack_ffffffb8;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}\n\n" comment (function_definition "int __regparm3 fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)\n\n{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  uint uVar2;\n  Fts5Data *pFVar3;\n  uint uVar4;\n  undefined4 in_stack_ffffffb8;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "fts5DlidxIterNextR(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" identifier (parameter_list "(Fts5Index *p,Fts5DlidxIter *pIter,int iLvl)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5DlidxIter *pIter" type_identifier (pointer_declarator "*pIter" * identifier)) , (parameter_declaration "int iLvl" primitive_type identifier) ))) (compound_statement "{\n  Fts5DlidxLvl *pLvl;\n  int iVar1;\n  uint uVar2;\n  Fts5Data *pFVar3;\n  uint uVar4;\n  undefined4 in_stack_ffffffb8;\n  \n  pLvl = pIter->aLvl + iLvl;\n  iVar1 = fts5DlidxLvlNext(pLvl);\n  if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }\n  return pIter->aLvl[0].bEof;\n}" { (declaration "Fts5DlidxLvl *pLvl;" type_identifier (pointer_declarator "*pLvl" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Fts5Data *pFVar3;" type_identifier (pointer_declarator "*pFVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 in_stack_ffffffb8;" type_identifier identifier ;) (expression_statement "pLvl = pIter->aLvl + iLvl;" (assignment_expression "pLvl = pIter->aLvl + iLvl" identifier = (binary_expression "pIter->aLvl + iLvl" (field_expression "pIter->aLvl" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar1 = fts5DlidxLvlNext(pLvl);" (assignment_expression "iVar1 = fts5DlidxLvlNext(pLvl)" identifier = (call_expression "fts5DlidxLvlNext(pLvl)" identifier (argument_list "(pLvl)" ( identifier )))) ;) (if_statement "if ((iVar1 != 0) && (iLvl + 1 < pIter->nLvl)) {\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }" if (parenthesized_expression "((iVar1 != 0) && (iLvl + 1 < pIter->nLvl))" ( (binary_expression "(iVar1 != 0) && (iLvl + 1 < pIter->nLvl)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iLvl + 1 < pIter->nLvl)" ( (binary_expression "iLvl + 1 < pIter->nLvl" (binary_expression "iLvl + 1" identifier + number_literal) < (field_expression "pIter->nLvl" identifier -> field_identifier)) ))) )) (compound_statement "{\n    fts5DlidxIterNextR(p,pIter,iLvl + 1);\n    if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }\n  }" { (expression_statement "fts5DlidxIterNextR(p,pIter,iLvl + 1);" (call_expression "fts5DlidxIterNextR(p,pIter,iLvl + 1)" identifier (argument_list "(p,pIter,iLvl + 1)" ( identifier , identifier , (binary_expression "iLvl + 1" identifier + number_literal) ))) ;) (if_statement "if (pLvl[1].bEof == 0) {\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }" if (parenthesized_expression "(pLvl[1].bEof == 0)" ( (binary_expression "pLvl[1].bEof == 0" (field_expression "pLvl[1].bEof" (subscript_expression "pLvl[1]" identifier [ number_literal ]) . field_identifier) == number_literal) )) (compound_statement "{\n      pFVar3 = pIter->aLvl[iLvl].pData;\n      sqlite3_free(pFVar3);\n      pLvl->pData = (Fts5Data *)0x0;\n      uVar4 = (uint)&pLvl->iOff & 0xfffffffc;\n      *(undefined4 *)((int)&pLvl->iRowid + 4) = 0;\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));\n      pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));\n      pIter->aLvl[iLvl].pData = pFVar3;\n      if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }\n    }" { (expression_statement "pFVar3 = pIter->aLvl[iLvl].pData;" (assignment_expression "pFVar3 = pIter->aLvl[iLvl].pData" identifier = (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "sqlite3_free(pFVar3);" (call_expression "sqlite3_free(pFVar3)" identifier (argument_list "(pFVar3)" ( identifier ))) ;) (expression_statement "pLvl->pData = (Fts5Data *)0x0;" (assignment_expression "pLvl->pData = (Fts5Data *)0x0" (field_expression "pLvl->pData" identifier -> field_identifier) = (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar4 = (uint)&pLvl->iOff & 0xfffffffc;" (assignment_expression "uVar4 = (uint)&pLvl->iOff & 0xfffffffc" identifier = (binary_expression "(uint)&pLvl->iOff & 0xfffffffc" (binary_expression "(uint)&pLvl->iOff" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pLvl->iOff" identifier -> field_identifier)) & number_literal)) ;) (expression_statement "*(undefined4 *)((int)&pLvl->iRowid + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&pLvl->iRowid + 4) = 0" (pointer_expression "*(undefined4 *)((int)&pLvl->iRowid + 4)" * (cast_expression "(undefined4 *)((int)&pLvl->iRowid + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pLvl->iRowid + 4)" ( (binary_expression "(int)&pLvl->iRowid + 4" (cast_expression "(int)&pLvl->iRowid" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pLvl->iRowid" & (field_expression "pLvl->iRowid" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(uVar4 + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      }" { (expression_statement "*(undefined4 *)(uVar4 + uVar2) = 0;" (assignment_expression "*(undefined4 *)(uVar4 + uVar2) = 0" (pointer_expression "*(undefined4 *)(uVar4 + uVar2)" * (cast_expression "(undefined4 *)(uVar4 + uVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2)" ( (binary_expression "uVar4 + uVar2" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = uVar2 + 4;" (assignment_expression "uVar2 = uVar2 + 4" identifier = (binary_expression "uVar2 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc))" ( (binary_expression "uVar2 < ((int)pLvl + (0x1c - uVar4) & 0xfffffffc)" identifier < (parenthesized_expression "((int)pLvl + (0x1c - uVar4) & 0xfffffffc)" ( (binary_expression "(int)pLvl + (0x1c - uVar4) & 0xfffffffc" (binary_expression "(int)pLvl + (0x1c - uVar4)" (cast_expression "(int)pLvl" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - uVar4)" ( (binary_expression "0x1c - uVar4" number_literal - identifier) ))) & number_literal) ))) )) ;) (expression_statement "pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3));" (assignment_expression "pFVar3 = fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3))" identifier = (call_expression "fts5DataRead(p,CONCAT44(in_stack_ffffffb8,pFVar3))" identifier (argument_list "(p,CONCAT44(in_stack_ffffffb8,pFVar3))" ( identifier , (call_expression "CONCAT44(in_stack_ffffffb8,pFVar3)" identifier (argument_list "(in_stack_ffffffb8,pFVar3)" ( identifier , identifier ))) )))) ;) (expression_statement "pIter->aLvl[iLvl].pData = pFVar3;" (assignment_expression "pIter->aLvl[iLvl].pData = pFVar3" (field_expression "pIter->aLvl[iLvl].pData" (subscript_expression "pIter->aLvl[iLvl]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (if_statement "if (pFVar3 != (Fts5Data *)0x0) {\n        fts5DlidxLvlNext(pLvl);\n      }" if (parenthesized_expression "(pFVar3 != (Fts5Data *)0x0)" ( (binary_expression "pFVar3 != (Fts5Data *)0x0" identifier != (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        fts5DlidxLvlNext(pLvl);\n      }" { (expression_statement "fts5DlidxLvlNext(pLvl);" (call_expression "fts5DlidxLvlNext(pLvl)" identifier (argument_list "(pLvl)" ( identifier ))) ;) })) })) })) (return_statement "return pIter->aLvl[0].bEof;" return (field_expression "pIter->aLvl[0].bEof" (subscript_expression "pIter->aLvl[0]" (field_expression "pIter->aLvl" identifier -> field_identifier) [ number_literal ]) . field_identifier) ;) })))
(translation_unit "int __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}\n\n" (function_definition "int __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000d6630(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "piVar1 = param_2 + param_3 * 7 + 2;" (assignment_expression "piVar1 = param_2 + param_3 * 7 + 2" identifier = (binary_expression "param_2 + param_3 * 7 + 2" (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal)) + number_literal)) ;) (expression_statement "iVar2 = FUN_00034d20();" (assignment_expression "iVar2 = FUN_00034d20()" identifier = (call_expression "FUN_00034d20()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" if (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" ( (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 + 1 < *param_2)" ( (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" identifier + number_literal) < (pointer_expression "*param_2" * identifier)) ))) )) (compound_statement "{\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" { (expression_statement "FUN_000d6630();" (call_expression "FUN_000d6630()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" if (parenthesized_expression "(piVar1[9] == 0)" ( (binary_expression "piVar1[9] == 0" (subscript_expression "piVar1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" { (expression_statement "FUN_00024cc0(param_2[param_3 * 7 + 2]);" (call_expression "FUN_00024cc0(param_2[param_3 * 7 + 2])" identifier (argument_list "(param_2[param_3 * 7 + 2])" ( (subscript_expression "param_2[param_3 * 7 + 2]" identifier [ (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" identifier * number_literal) + number_literal) ]) ))) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" * (cast_expression "(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" ( (binary_expression "((uint)(piVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" ( (binary_expression "0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "iVar2 = FUN_000d64a0();" (assignment_expression "iVar2 = FUN_000d64a0()" identifier = (call_expression "FUN_000d64a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "param_2[param_3 * 7 + 2] = iVar2;" (assignment_expression "param_2[param_3 * 7 + 2] = iVar2" (subscript_expression "param_2[param_3 * 7 + 2]" identifier [ (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" identifier * number_literal) + number_literal) ]) = identifier) ;) (if_statement "if (iVar2 != 0) {\n        FUN_00034d20();\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00034d20();\n      }" { (expression_statement "FUN_00034d20();" (call_expression "FUN_00034d20()" identifier (argument_list "()" ( ))) ;) })) })) })) (return_statement "return param_2[4];" return (subscript_expression "param_2[4]" identifier [ number_literal ]) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) })) (return_statement return (subscript_expression IDENT [ LIT ]) ;) })))
(function_definition "int __regparm3 FUN_000d6630(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000d6630(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_000d6630") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  \n  piVar1 = param_2 + param_3 * 7 + 2;\n  iVar2 = FUN_00034d20();\n  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }\n  return param_2[4];\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "piVar1 = param_2 + param_3 * 7 + 2;" (assignment_expression "piVar1 = param_2 + param_3 * 7 + 2" (identifier "piVar1") (= "=") (binary_expression "param_2 + param_3 * 7 + 2" (binary_expression "param_2 + param_3 * 7" (identifier "param_2") (+ "+") (binary_expression "param_3 * 7" (identifier "param_3") (* "*") (number_literal "7"))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = FUN_00034d20();" (assignment_expression "iVar2 = FUN_00034d20()" (identifier "iVar2") (= "=") (call_expression "FUN_00034d20()" (identifier "FUN_00034d20") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (param_3 + 1 < *param_2))" (( "(") (binary_expression "(iVar2 != 0) && (param_3 + 1 < *param_2)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 + 1 < *param_2)" (( "(") (binary_expression "param_3 + 1 < *param_2" (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) () ")")) (compound_statement "{\n    FUN_000d6630();\n    if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }\n  }" ({ "{") (expression_statement "FUN_000d6630();" (call_expression "FUN_000d6630()" (identifier "FUN_000d6630") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar1[9] == 0) {\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" (if "if") (parenthesized_expression "(piVar1[9] == 0)" (( "(") (binary_expression "piVar1[9] == 0" (subscript_expression "piVar1[9]" (identifier "piVar1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00024cc0(param_2[param_3 * 7 + 2]);\n      *piVar1 = 0;\n      piVar1[6] = 0;\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));\n      iVar2 = FUN_000d64a0();\n      param_2[param_3 * 7 + 2] = iVar2;\n      if (iVar2 != 0) {\n        FUN_00034d20();\n      }\n    }" ({ "{") (expression_statement "FUN_00024cc0(param_2[param_3 * 7 + 2]);" (call_expression "FUN_00024cc0(param_2[param_3 * 7 + 2])" (identifier "FUN_00024cc0") (argument_list "(param_2[param_3 * 7 + 2])" (( "(") (subscript_expression "param_2[param_3 * 7 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" (identifier "param_3") (* "*") (number_literal "7")) (+ "+") (number_literal "2")) (] "]")) () ")"))) (; ";")) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[6] = 0;" (assignment_expression "piVar1[6] = 0" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;" (assignment_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0" (pointer_expression "*(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" (* "*") (cast_expression "(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3)" (( "(") (binary_expression "((uint)(piVar1 + 1) & 0xfffffffc) + uVar3" (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 4" (identifier "uVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar3") (< "<") (parenthesized_expression "((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (parenthesized_expression "(0x1c - ((uint)(piVar1 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)" (number_literal "0x1c") (- "-") (parenthesized_expression "((uint)(piVar1 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar1 + 1) & 0xfffffffc" (call_expression "(uint)(piVar1 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "iVar2 = FUN_000d64a0();" (assignment_expression "iVar2 = FUN_000d64a0()" (identifier "iVar2") (= "=") (call_expression "FUN_000d64a0()" (identifier "FUN_000d64a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "param_2[param_3 * 7 + 2] = iVar2;" (assignment_expression "param_2[param_3 * 7 + 2] = iVar2" (subscript_expression "param_2[param_3 * 7 + 2]" (identifier "param_2") ([ "[") (binary_expression "param_3 * 7 + 2" (binary_expression "param_3 * 7" (identifier "param_3") (* "*") (number_literal "7")) (+ "+") (number_literal "2")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 != 0) {\n        FUN_00034d20();\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00034d20();\n      }" ({ "{") (expression_statement "FUN_00034d20();" (call_expression "FUN_00034d20()" (identifier "FUN_00034d20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return param_2[4];" (return "return") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *p,type_2 *pIter,int var_1)

{
  type_3 *pLvl;
  int var_3;
  type_4 var_6;
  type_5 *var_9;
  type_4 var_5;
  type_6 in_stack_ffffffb8;
  
  pLvl = pIter->aLvl + var_1;
  var_3 = var_2(pLvl);
  if ((var_3 != 0) && (var_1 + 1 < pIter->nLvl)) {
    function_1(p,pIter,var_1 + 1);
    if (pLvl[1].bEof == 0) {
      var_9 = pIter->aLvl[var_1].pData;
      var_4(var_9);
      pLvl->pData = (type_5 *)0x0;
      var_5 = (type_4)&pLvl->iOff & 0xfffffffc;
      *(type_6 *)((int)&pLvl->iRowid + 4) = 0;
      var_6 = 0;
      do {
        *(type_6 *)(var_5 + var_6) = 0;
        var_6 = var_6 + 4;
      } while (var_6 < ((int)pLvl + (0x1c - var_5) & 0xfffffffc));
      var_9 = var_7(p,var_8(in_stack_ffffffb8,var_9));
      pIter->aLvl[var_1].pData = var_9;
      if (var_9 != (type_5 *)0x0) {
        var_2(pLvl);
      }
    }
  }
  return pIter->aLvl[0].bEof;
}


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

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

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

{
  int *piVar1;
  int iVar2;
  uint uVar3;
  
  piVar1 = param_2 + param_3 * 7 + 2;
  iVar2 = FUN_00034d20();
  if ((iVar2 != 0) && (param_3 + 1 < *param_2)) {
    MASKED();
    if (piVar1[9] == 0) {
      FUN_00024cc0(param_2[param_3 * 7 + 2]);
      *piVar1 = 0;
      piVar1[6] = 0;
      uVar3 = 0;
      do {
        *(undefined4 *)(((uint)(piVar1 + 1) & 0xfffffffc) + uVar3) = 0;
        uVar3 = uVar3 + 4;
      } while (uVar3 < ((int)piVar1 + (0x1c - ((uint)(piVar1 + 1) & 0xfffffffc)) & 0xfffffffc));
      iVar2 = FUN_000d64a0();
      param_2[param_3 * 7 + 2] = iVar2;
      if (iVar2 != 0) {
        FUN_00034d20();
      }
    }
  }
  return param_2[4];
}

