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

void statPush(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)sqlite3_value_blob(*argv);
  iVar3 = sqlite3_value_int(argv[1]);
  if (*piVar2 == 0) {
    iVar3 = 0;
    if (0 < piVar2[2]) {
      iVar3 = 0;
      do {
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
      iVar3 = *piVar2;
    }
  }
  else {
    iVar4 = 0;
    if (0 < iVar3) {
      do {
        piVar1 = (int *)(piVar2[5] + iVar4 * 4);
        *piVar1 = *piVar1 + 1;
        iVar4 = iVar4 + 1;
      } while (iVar3 != iVar4);
    }
    if (iVar3 < piVar2[2]) {
      do {
        piVar1 = (int *)(piVar2[6] + iVar3 * 4);
        *piVar1 = *piVar1 + 1;
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
    }
    iVar3 = *piVar2;
  }
  *piVar2 = iVar3 + 1;
  return;
}



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

void FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)FUN_0004ceb0(*param_3);
  iVar3 = FUN_0002bb30(param_3[1]);
  if (*piVar2 == 0) {
    iVar3 = 0;
    if (0 < piVar2[2]) {
      iVar3 = 0;
      do {
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
      iVar3 = *piVar2;
    }
  }
  else {
    iVar4 = 0;
    if (0 < iVar3) {
      do {
        piVar1 = (int *)(piVar2[5] + iVar4 * 4);
        *piVar1 = *piVar1 + 1;
        iVar4 = iVar4 + 1;
      } while (iVar3 != iVar4);
    }
    if (iVar3 < piVar2[2]) {
      do {
        piVar1 = (int *)(piVar2[6] + iVar3 * 4);
        *piVar1 = *piVar1 + 1;
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
    }
    iVar3 = *piVar2;
  }
  *piVar2 = iVar3 + 1;
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x18]
CALL 0x00014cf0
ADD EBX,0xfbf88
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x0004ceb0
POP EDX
PUSH dword ptr [EDI + 0x4]
MOV ESI,EAX
CALL 0x0002bb30
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x0004cfc0
XOR EDX,EDX
TEST EAX,EAX
JLE 0x0004cf8e
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV ECX,dword ptr [ESI + 0x14]
ADD dword ptr [ECX + EDX*0x4],0x1
ADD EDX,0x1
CMP EAX,EDX
JNZ 0x0004cf80
CMP EAX,dword ptr [ESI + 0x8]
JGE 0x0004cfb1
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [ESI + 0x18]
ADD dword ptr [EDX + EAX*0x4],0x1
MOV EDX,dword ptr [ESI + 0x14]
MOV dword ptr [EDX + EAX*0x4],0x1
ADD EAX,0x1
CMP dword ptr [ESI + 0x8],EAX
JG 0x0004cf98
MOV EDX,dword ptr [ESI]
ADD EDX,0x1
MOV dword ptr [ESI],EDX
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JLE 0x0004cfb3
XOR EAX,EAX
LEA ESI,[ESI]
MOV EDX,dword ptr [ESI + 0x14]
MOV dword ptr [EDX + EAX*0x4],0x1
ADD EAX,0x1
CMP dword ptr [ESI + 0x8],EAX
JG 0x0004cfd0
MOV EDX,dword ptr [ESI]
JMP 0x0004cfb3
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}\n\n" comment (function_definition "void FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar2 = (int *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(int *)FUN_0004ceb0(*param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "iVar3 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[1])" identifier = (call_expression "FUN_0002bb30(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" if (parenthesized_expression "(0 < piVar2[2])" ( (binary_expression "0 < piVar2[2]" number_literal < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) }) (else_clause "else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" else (compound_statement "{\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[5] + iVar4 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[5] + iVar4 * 4)" identifier = (cast_expression "(int *)(piVar2[5] + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar4 * 4)" ( (binary_expression "piVar2[5] + iVar4 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar4)" ( (binary_expression "iVar3 != iVar4" identifier != identifier) )) ;) })) (if_statement "if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" if (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[6] + iVar3 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[6] + iVar3 * 4)" identifier = (cast_expression "(int *)(piVar2[6] + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[6] + iVar3 * 4)" ( (binary_expression "piVar2[6] + iVar3 * 4" (subscript_expression "piVar2[6]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) })) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (expression_statement "*piVar2 = iVar3 + 1;" (assignment_expression "*piVar2 = iVar3 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid statPush(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)sqlite3_value_blob(*argv);\n  iVar3 = sqlite3_value_int(argv[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}\n\n" comment comment (function_definition "void statPush(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)sqlite3_value_blob(*argv);\n  iVar3 = sqlite3_value_int(argv[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" primitive_type (function_declarator "statPush(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)sqlite3_value_blob(*argv);\n  iVar3 = sqlite3_value_int(argv[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)sqlite3_value_blob(*argv);" (assignment_expression "piVar2 = (int *)sqlite3_value_blob(*argv)" identifier = (cast_expression "(int *)sqlite3_value_blob(*argv)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(*argv)" identifier (argument_list "(*argv)" ( (pointer_expression "*argv" * identifier) ))))) ;) (expression_statement "iVar3 = sqlite3_value_int(argv[1]);" (assignment_expression "iVar3 = sqlite3_value_int(argv[1])" identifier = (call_expression "sqlite3_value_int(argv[1])" identifier (argument_list "(argv[1])" ( (subscript_expression "argv[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" if (parenthesized_expression "(0 < piVar2[2])" ( (binary_expression "0 < piVar2[2]" number_literal < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) }) (else_clause "else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" else (compound_statement "{\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[5] + iVar4 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[5] + iVar4 * 4)" identifier = (cast_expression "(int *)(piVar2[5] + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar4 * 4)" ( (binary_expression "piVar2[5] + iVar4 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar4)" ( (binary_expression "iVar3 != iVar4" identifier != identifier) )) ;) })) (if_statement "if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" if (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[6] + iVar3 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[6] + iVar3 * 4)" identifier = (cast_expression "(int *)(piVar2[6] + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[6] + iVar3 * 4)" ( (binary_expression "piVar2[6] + iVar3 * 4" (subscript_expression "piVar2[6]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) })) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (expression_statement "*piVar2 = iVar3 + 1;" (assignment_expression "*piVar2 = iVar3 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}\n\n" (function_definition "void FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" primitive_type (function_declarator "FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar2 = (int *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(int *)FUN_0004ceb0(*param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "iVar3 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[1])" identifier = (call_expression "FUN_0002bb30(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" if (parenthesized_expression "(0 < piVar2[2])" ( (binary_expression "0 < piVar2[2]" number_literal < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) }) (else_clause "else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" else (compound_statement "{\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[5] + iVar4 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[5] + iVar4 * 4)" identifier = (cast_expression "(int *)(piVar2[5] + iVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar4 * 4)" ( (binary_expression "piVar2[5] + iVar4 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar4 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar4)" ( (binary_expression "iVar3 != iVar4" identifier != identifier) )) ;) })) (if_statement "if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" if (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" { (do_statement "do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" do (compound_statement "{\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" { (expression_statement "piVar1 = (int *)(piVar2[6] + iVar3 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[6] + iVar3 * 4)" identifier = (cast_expression "(int *)(piVar2[6] + iVar3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[6] + iVar3 * 4)" ( (binary_expression "piVar2[6] + iVar3 * 4" (subscript_expression "piVar2[6]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) ;) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" * (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2[5] + iVar3 * 4)" ( (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" identifier [ number_literal ]) + (binary_expression "iVar3 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < piVar2[2])" ( (binary_expression "iVar3 < piVar2[2]" identifier < (subscript_expression "piVar2[2]" identifier [ number_literal ])) )) ;) })) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (expression_statement "*piVar2 = iVar3 + 1;" (assignment_expression "*piVar2 = iVar3 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (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 = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004cf40(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0004cf40") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)FUN_0004ceb0(*param_3);\n  iVar3 = FUN_0002bb30(param_3[1]);\n  if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }\n  *piVar2 = iVar3 + 1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar2 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar2 = (int *)FUN_0004ceb0(*param_3)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0004ceb0(*param_3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(*param_3)" (identifier "FUN_0004ceb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_0002bb30(param_3[1]);" (assignment_expression "iVar3 = FUN_0002bb30(param_3[1])" (identifier "iVar3") (= "=") (call_expression "FUN_0002bb30(param_3[1])" (identifier "FUN_0002bb30") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (*piVar2 == 0) {\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }\n  else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" (if "if") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < piVar2[2]) {\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" (if "if") (parenthesized_expression "(0 < piVar2[2])" (( "(") (binary_expression "0 < piVar2[2]" (number_literal "0") (< "<") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n      iVar3 = 0;\n      do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n      iVar3 = *piVar2;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" (do "do") (compound_statement "{\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" ({ "{") (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2[5] + iVar3 * 4)" (( "(") (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < piVar2[2])" (( "(") (binary_expression "iVar3 < piVar2[2]" (identifier "iVar3") (< "<") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) () ")")) (; ";")) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" (else "else") (compound_statement "{\n    iVar4 = 0;\n    if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }\n    if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }\n    iVar3 = *piVar2;\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar3) {\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" (if "if") (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);\n    }" ({ "{") (do_statement "do {\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      } while (iVar3 != iVar4);" (do "do") (compound_statement "{\n        piVar1 = (int *)(piVar2[5] + iVar4 * 4);\n        *piVar1 = *piVar1 + 1;\n        iVar4 = iVar4 + 1;\n      }" ({ "{") (expression_statement "piVar1 = (int *)(piVar2[5] + iVar4 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[5] + iVar4 * 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(piVar2[5] + iVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2[5] + iVar4 * 4)" (( "(") (binary_expression "piVar2[5] + iVar4 * 4" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (+ "+") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != iVar4)" (( "(") (binary_expression "iVar3 != iVar4" (identifier "iVar3") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (} "}"))) (if_statement "if (iVar3 < piVar2[2]) {\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" (if "if") (parenthesized_expression "(iVar3 < piVar2[2])" (( "(") (binary_expression "iVar3 < piVar2[2]" (identifier "iVar3") (< "<") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n      do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);\n    }" ({ "{") (do_statement "do {\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      } while (iVar3 < piVar2[2]);" (do "do") (compound_statement "{\n        piVar1 = (int *)(piVar2[6] + iVar3 * 4);\n        *piVar1 = *piVar1 + 1;\n        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;\n        iVar3 = iVar3 + 1;\n      }" ({ "{") (expression_statement "piVar1 = (int *)(piVar2[6] + iVar3 * 4);" (assignment_expression "piVar1 = (int *)(piVar2[6] + iVar3 * 4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(piVar2[6] + iVar3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2[6] + iVar3 * 4)" (( "(") (binary_expression "piVar2[6] + iVar3 * 4" (subscript_expression "piVar2[6]" (identifier "piVar2") ([ "[") (number_literal "6") (] "]")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + 1;" (assignment_expression "*piVar1 = *piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;" (assignment_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4) = 1" (pointer_expression "*(undefined4 *)(piVar2[5] + iVar3 * 4)" (* "*") (cast_expression "(undefined4 *)(piVar2[5] + iVar3 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2[5] + iVar3 * 4)" (( "(") (binary_expression "piVar2[5] + iVar3 * 4" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (+ "+") (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < piVar2[2])" (( "(") (binary_expression "iVar3 < piVar2[2]" (identifier "iVar3") (< "<") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = *piVar2;" (assignment_expression "iVar3 = *piVar2" (identifier "iVar3") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}")))) (expression_statement "*piVar2 = iVar3 + 1;" (assignment_expression "*piVar2 = iVar3 + 1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *context,int argc,type_2 **argv)

{
  int *piVar1;
  int *piVar2;
  int var_3;
  int var_4;
  
  piVar2 = (int *)var_1(*argv);
  var_3 = var_2(argv[1]);
  if (*piVar2 == 0) {
    var_3 = 0;
    if (0 < piVar2[2]) {
      var_3 = 0;
      do {
        *(type_3 *)(piVar2[5] + var_3 * 4) = 1;
        var_3 = var_3 + 1;
      } while (var_3 < piVar2[2]);
      var_3 = *piVar2;
    }
  }
  else {
    var_4 = 0;
    if (0 < var_3) {
      do {
        piVar1 = (int *)(piVar2[5] + var_4 * 4);
        *piVar1 = *piVar1 + 1;
        var_4 = var_4 + 1;
      } while (var_3 != var_4);
    }
    if (var_3 < piVar2[2]) {
      do {
        piVar1 = (int *)(piVar2[6] + var_3 * 4);
        *piVar1 = *piVar1 + 1;
        *(type_3 *)(piVar2[5] + var_3 * 4) = 1;
        var_3 = var_3 + 1;
      } while (var_3 < piVar2[2]);
    }
    var_3 = *piVar2;
  }
  *piVar2 = var_3 + 1;
  return;
}


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

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

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3)

{
  int *piVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)FUN_0004ceb0(*param_3);
  iVar3 = FUN_0002bb30(param_3[1]);
  if (*piVar2 == 0) {
    iVar3 = 0;
    if (0 < piVar2[2]) {
      iVar3 = 0;
      do {
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
      iVar3 = *piVar2;
    }
  }
  else {
    iVar4 = 0;
    if (0 < iVar3) {
      do {
        piVar1 = (int *)(piVar2[5] + iVar4 * 4);
        *piVar1 = *piVar1 + 1;
        iVar4 = iVar4 + 1;
      } while (iVar3 != iVar4);
    }
    if (iVar3 < piVar2[2]) {
      do {
        piVar1 = (int *)(piVar2[6] + iVar3 * 4);
        *piVar1 = *piVar1 + 1;
        *(undefined4 *)(piVar2[5] + iVar3 * 4) = 1;
        iVar3 = iVar3 + 1;
      } while (iVar3 < piVar2[2]);
    }
    iVar3 = *piVar2;
  }
  *piVar2 = iVar3 + 1;
  return;
}

