
/* DWARF original prototype: void statClearCells(StatPage * p, StatPage * p) */

void __regparm3 statClearCells(StatPage *p,StatPage *p_1)

{
  void *p_00;
  int iVar1;
  int iVar2;
  
  p_00 = (void *)p_1->iPgno;
  if (p_00 != (void *)0x0) {
    if (0 < (int)p->iPgno) {
      iVar1 = 0;
      do {
        iVar2 = iVar1 + 1;
        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));
        p_00 = (void *)p_1->iPgno;
        iVar1 = iVar2;
      } while (iVar2 < (int)p->iPgno);
    }
    sqlite3_free(p_00);
  }
  p->iPgno = 0;
  p_1->iPgno = 0;
  return;
}



void __regparm3 FUN_0004fc40(int *param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_2;
  if (iVar1 != 0) {
    if (0 < *param_1) {
      iVar2 = 0;
      do {
        iVar3 = iVar2 + 1;
        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));
        iVar1 = *param_2;
        iVar2 = iVar3;
      } while (iVar3 < *param_1);
    }
    FUN_00042800(iVar1);
  }
  *param_1 = 0;
  *param_2 = 0;
  return;
}


PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x0004fc7f
MOV EDX,dword ptr [EDI]
TEST EDX,EDX
JLE 0x0004fc73
XOR EBX,EBX
LEA ESI,[ESI]
LEA EDX,[EBX + EBX*0x2]
SUB ESP,0xc
ADD EBX,0x1
PUSH dword ptr [EAX + EDX*0x8 + 0xc]
CALL 0x00042800
ADD ESP,0x10
CMP EBX,dword ptr [EDI]
MOV EAX,dword ptr [ESI]
JL 0x0004fc58
SUB ESP,0xc
PUSH EAX
CALL 0x00042800
ADD ESP,0x10
MOV dword ptr [EDI],0x0
POP EBX
MOV dword ptr [ESI],0x0
POP ESI
POP EDI
RET
(translation_unit "void __regparm3 FUN_0004fc40(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0004fc40(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004fc40(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" { (if_statement "if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" if (parenthesized_expression "(0 < *param_1)" ( (binary_expression "0 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);" do (compound_statement "{\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      }" { (expression_statement "iVar3 = iVar2 + 1;" (assignment_expression "iVar3 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));" (call_expression "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc + iVar2 * 0x18)" ( (binary_expression "iVar1 + 0xc + iVar2 * 0x18" (binary_expression "iVar1 + 0xc" identifier + number_literal) + (binary_expression "iVar2 * 0x18" identifier * number_literal)) )))) ))) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 < *param_1)" ( (binary_expression "iVar3 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) ;) })) (expression_statement "FUN_00042800(iVar1);" (call_expression "FUN_00042800(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void statClearCells(StatPage * p, StatPage * p) */\n\nvoid __regparm3 statClearCells(StatPage *p,StatPage *p_1)\n\n{\n  void *p_00;\n  int iVar1;\n  int iVar2;\n  \n  p_00 = (void *)p_1->iPgno;\n  if (p_00 != (void *)0x0) {\n    if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }\n    sqlite3_free(p_00);\n  }\n  p->iPgno = 0;\n  p_1->iPgno = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 statClearCells(StatPage *p,StatPage *p_1)\n\n{\n  void *p_00;\n  int iVar1;\n  int iVar2;\n  \n  p_00 = (void *)p_1->iPgno;\n  if (p_00 != (void *)0x0) {\n    if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }\n    sqlite3_free(p_00);\n  }\n  p->iPgno = 0;\n  p_1->iPgno = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "statClearCells(StatPage *p,StatPage *p_1)" identifier (parameter_list "(StatPage *p,StatPage *p_1)" ( (parameter_declaration "StatPage *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "StatPage *p_1" type_identifier (pointer_declarator "*p_1" * identifier)) ))) (compound_statement "{\n  void *p_00;\n  int iVar1;\n  int iVar2;\n  \n  p_00 = (void *)p_1->iPgno;\n  if (p_00 != (void *)0x0) {\n    if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }\n    sqlite3_free(p_00);\n  }\n  p->iPgno = 0;\n  p_1->iPgno = 0;\n  return;\n}" { (declaration "void *p_00;" primitive_type (pointer_declarator "*p_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "p_00 = (void *)p_1->iPgno;" (assignment_expression "p_00 = (void *)p_1->iPgno" identifier = (cast_expression "(void *)p_1->iPgno" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "p_1->iPgno" identifier -> field_identifier))) ;) (if_statement "if (p_00 != (void *)0x0) {\n    if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }\n    sqlite3_free(p_00);\n  }" if (parenthesized_expression "(p_00 != (void *)0x0)" ( (binary_expression "p_00 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }\n    sqlite3_free(p_00);\n  }" { (if_statement "if (0 < (int)p->iPgno) {\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }" if (parenthesized_expression "(0 < (int)p->iPgno)" ( (binary_expression "0 < (int)p->iPgno" number_literal < (cast_expression "(int)p->iPgno" ( (type_descriptor "int" primitive_type) ) (field_expression "p->iPgno" identifier -> field_identifier))) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      } while (iVar2 < (int)p->iPgno);" do (compound_statement "{\n        iVar2 = iVar1 + 1;\n        sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));\n        p_00 = (void *)p_1->iPgno;\n        iVar1 = iVar2;\n      }" { (expression_statement "iVar2 = iVar1 + 1;" (assignment_expression "iVar2 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc));" (call_expression "sqlite3_free(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc))" identifier (argument_list "(*(void **)((int)p_00 + iVar1 * 0x18 + 0xc))" ( (pointer_expression "*(void **)((int)p_00 + iVar1 * 0x18 + 0xc)" * (cast_expression "(void **)((int)p_00 + iVar1 * 0x18 + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)p_00 + iVar1 * 0x18 + 0xc)" ( (binary_expression "(int)p_00 + iVar1 * 0x18 + 0xc" (binary_expression "(int)p_00 + iVar1 * 0x18" (cast_expression "(int)p_00" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 0x18" identifier * number_literal)) + number_literal) )))) ))) ;) (expression_statement "p_00 = (void *)p_1->iPgno;" (assignment_expression "p_00 = (void *)p_1->iPgno" identifier = (cast_expression "(void *)p_1->iPgno" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "p_1->iPgno" identifier -> field_identifier))) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 < (int)p->iPgno)" ( (binary_expression "iVar2 < (int)p->iPgno" identifier < (cast_expression "(int)p->iPgno" ( (type_descriptor "int" primitive_type) ) (field_expression "p->iPgno" identifier -> field_identifier))) )) ;) })) (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) })) (expression_statement "p->iPgno = 0;" (assignment_expression "p->iPgno = 0" (field_expression "p->iPgno" identifier -> field_identifier) = number_literal) ;) (expression_statement "p_1->iPgno = 0;" (assignment_expression "p_1->iPgno = 0" (field_expression "p_1->iPgno" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0004fc40(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0004fc40(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004fc40(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" { (if_statement "if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" if (parenthesized_expression "(0 < *param_1)" ( (binary_expression "0 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);" do (compound_statement "{\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      }" { (expression_statement "iVar3 = iVar2 + 1;" (assignment_expression "iVar3 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));" (call_expression "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" identifier (argument_list "(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" ( (pointer_expression "*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc + iVar2 * 0x18)" ( (binary_expression "iVar1 + 0xc + iVar2 * 0x18" (binary_expression "iVar1 + 0xc" identifier + number_literal) + (binary_expression "iVar2 * 0x18" identifier * number_literal)) )))) ))) ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 < *param_1)" ( (binary_expression "iVar3 < *param_1" identifier < (pointer_expression "*param_1" * identifier)) )) ;) })) (expression_statement "FUN_00042800(iVar1);" (call_expression "FUN_00042800(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * IDENT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0004fc40(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004fc40(int *param_1,int *param_2)" (identifier "FUN_0004fc40") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar1 = *param_2;\n  if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }\n  *param_1 = 0;\n  *param_2 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }\n    FUN_00042800(iVar1);\n  }" ({ "{") (if_statement "if (0 < *param_1) {\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" (if "if") (parenthesized_expression "(0 < *param_1)" (( "(") (binary_expression "0 < *param_1" (number_literal "0") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (compound_statement "{\n      iVar2 = 0;\n      do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      } while (iVar3 < *param_1);" (do "do") (compound_statement "{\n        iVar3 = iVar2 + 1;\n        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));\n        iVar1 = *param_2;\n        iVar2 = iVar3;\n      }" ({ "{") (expression_statement "iVar3 = iVar2 + 1;" (assignment_expression "iVar3 = iVar2 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));" (call_expression "FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" (identifier "FUN_00042800") (argument_list "(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18))" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc + iVar2 * 0x18)" (( "(") (binary_expression "iVar1 + 0xc + iVar2 * 0x18" (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) (+ "+") (binary_expression "iVar2 * 0x18" (identifier "iVar2") (* "*") (number_literal "0x18"))) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < *param_1)" (( "(") (binary_expression "iVar3 < *param_1" (identifier "iVar3") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00042800(iVar1);" (call_expression "FUN_00042800(iVar1)" (identifier "FUN_00042800") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void statClearCells(StatPage * p, StatPage * p) */

void __regparm3 function_1(type_1 *p,type_1 *p_1)

{
  void *var_1;
  int var_2;
  int var_4;
  
  var_1 = (void *)p_1->iPgno;
  if (var_1 != (void *)0x0) {
    if (0 < (int)p->iPgno) {
      var_2 = 0;
      do {
        var_4 = var_2 + 1;
        var_3(*(void **)((int)var_1 + var_2 * 0x18 + 0xc));
        var_1 = (void *)p_1->iPgno;
        var_2 = var_4;
      } while (var_4 < (int)p->iPgno);
    }
    var_3(var_1);
  }
  p->iPgno = 0;
  p_1->iPgno = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))))

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar1 = *param_2;
  if (iVar1 != 0) {
    if (0 < *param_1) {
      iVar2 = 0;
      do {
        iVar3 = iVar2 + 1;
        FUN_00042800(*(undefined4 *)(iVar1 + 0xc + iVar2 * 0x18));
        iVar1 = *param_2;
        iVar2 = iVar3;
      } while (iVar3 < *param_1);
    }
    FUN_00042800(iVar1);
  }
  *param_1 = 0;
  *param_2 = 0;
  return;
}

