
void __regparm3 closeCursorsInFrame(Vdbe *p)

{
  VdbeCursor **ppVVar1;
  int iVar2;
  
  if (0 < p->nCursor) {
    iVar2 = 0;
    ppVVar1 = p->apCsr;
    do {
      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {
        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);
        ppVVar1 = p->apCsr;
        ppVVar1[iVar2] = (VdbeCursor *)0x0;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < p->nCursor);
    return;
  }
  return;
}



void __regparm3 FUN_0006e780(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (0 < *(int *)(param_1 + 0x1c)) {
    iVar2 = 0;
    iVar1 = *(int *)(param_1 + 0x5c);
    do {
      if (*(int *)(iVar1 + iVar2 * 4) != 0) {
        FUN_0006e6d0();
        iVar1 = *(int *)(param_1 + 0x5c);
        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < *(int *)(param_1 + 0x1c));
    return;
  }
  return;
}


MOV EDX,dword ptr [EAX + 0x1c]
TEST EDX,EDX
JLE 0x0006e7c0
PUSH ESI
PUSH EBX
MOV ESI,EAX
XOR EBX,EBX
SUB ESP,0x4
MOV EAX,dword ptr [EAX + 0x5c]
NOP
LEA ESI,[ESI]
MOV EDX,dword ptr [EAX + EBX*0x4]
TEST EDX,EDX
JZ 0x0006e7b0
MOV EAX,ESI
CALL 0x0006e6d0
MOV EAX,dword ptr [ESI + 0x5c]
MOV dword ptr [EAX + EBX*0x4],0x0
ADD EBX,0x1
CMP EBX,dword ptr [ESI + 0x1c]
JL 0x0006e798
ADD ESP,0x4
POP EBX
POP ESI
RET
RET
(translation_unit "void __regparm3 FUN_0006e780(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0006e780(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006e780(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x1c))" ( (binary_expression "0 < *(int *)(param_1 + 0x1c)" number_literal < (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));" do (compound_statement "{\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (if_statement "if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + iVar2 * 4) != 0)" ( (binary_expression "*(int *)(iVar1 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" * (cast_expression "(int *)(iVar1 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" { (expression_statement "FUN_0006e6d0();" (call_expression "FUN_0006e6d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x1c)" identifier < (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 closeCursorsInFrame(Vdbe *p)\n\n{\n  VdbeCursor **ppVVar1;\n  int iVar2;\n  \n  if (0 < p->nCursor) {\n    iVar2 = 0;\n    ppVVar1 = p->apCsr;\n    do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 closeCursorsInFrame(Vdbe *p)\n\n{\n  VdbeCursor **ppVVar1;\n  int iVar2;\n  \n  if (0 < p->nCursor) {\n    iVar2 = 0;\n    ppVVar1 = p->apCsr;\n    do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "closeCursorsInFrame(Vdbe *p)" identifier (parameter_list "(Vdbe *p)" ( (parameter_declaration "Vdbe *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  VdbeCursor **ppVVar1;\n  int iVar2;\n  \n  if (0 < p->nCursor) {\n    iVar2 = 0;\n    ppVVar1 = p->apCsr;\n    do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);\n    return;\n  }\n  return;\n}" { (declaration "VdbeCursor **ppVVar1;" type_identifier (pointer_declarator "**ppVVar1" * (pointer_declarator "*ppVVar1" * identifier)) ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (0 < p->nCursor) {\n    iVar2 = 0;\n    ppVVar1 = p->apCsr;\n    do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);\n    return;\n  }" if (parenthesized_expression "(0 < p->nCursor)" ( (binary_expression "0 < p->nCursor" number_literal < (field_expression "p->nCursor" identifier -> field_identifier)) )) (compound_statement "{\n    iVar2 = 0;\n    ppVVar1 = p->apCsr;\n    do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "ppVVar1 = p->apCsr;" (assignment_expression "ppVVar1 = p->apCsr" identifier = (field_expression "p->apCsr" identifier -> field_identifier)) ;) (do_statement "do {\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < p->nCursor);" do (compound_statement "{\n      if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (if_statement "if (ppVVar1[iVar2] != (VdbeCursor *)0x0) {\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }" if (parenthesized_expression "(ppVVar1[iVar2] != (VdbeCursor *)0x0)" ( (binary_expression "ppVVar1[iVar2] != (VdbeCursor *)0x0" (subscript_expression "ppVVar1[iVar2]" identifier [ identifier ]) != (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);\n        ppVVar1 = p->apCsr;\n        ppVVar1[iVar2] = (VdbeCursor *)0x0;\n      }" { (expression_statement "sqlite3VdbeFreeCursor(p,ppVVar1[iVar2]);" (call_expression "sqlite3VdbeFreeCursor(p,ppVVar1[iVar2])" identifier (argument_list "(p,ppVVar1[iVar2])" ( identifier , (subscript_expression "ppVVar1[iVar2]" identifier [ identifier ]) ))) ;) (expression_statement "ppVVar1 = p->apCsr;" (assignment_expression "ppVVar1 = p->apCsr" identifier = (field_expression "p->apCsr" identifier -> field_identifier)) ;) (expression_statement "ppVVar1[iVar2] = (VdbeCursor *)0x0;" (assignment_expression "ppVVar1[iVar2] = (VdbeCursor *)0x0" (subscript_expression "ppVVar1[iVar2]" identifier [ identifier ]) = (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < p->nCursor)" ( (binary_expression "iVar2 < p->nCursor" identifier < (field_expression "p->nCursor" identifier -> field_identifier)) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_0006e780(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0006e780(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0006e780(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x1c))" ( (binary_expression "0 < *(int *)(param_1 + 0x1c)" number_literal < (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));" do (compound_statement "{\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    }" { (if_statement "if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" if (parenthesized_expression "(*(int *)(iVar1 + iVar2 * 4) != 0)" ( (binary_expression "*(int *)(iVar1 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" * (cast_expression "(int *)(iVar1 + iVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" { (expression_statement "FUN_0006e6d0();" (call_expression "FUN_0006e6d0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" identifier = (pointer_expression "*(int *)(param_1 + 0x5c)" * (cast_expression "(int *)(param_1 + 0x5c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" * (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2 * 4)" ( (binary_expression "iVar1 + iVar2 * 4" identifier + (binary_expression "iVar2 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar2 < *(int *)(param_1 + 0x1c)" identifier < (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0006e780(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0006e780(int param_1)" (identifier "FUN_0006e780") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x1c)) {\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x1c))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x1c)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (compound_statement "{\n    iVar2 = 0;\n    iVar1 = *(int *)(param_1 + 0x5c);\n    do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));\n    return;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (do_statement "do {\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < *(int *)(param_1 + 0x1c));" (do "do") (compound_statement "{\n      if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }\n      iVar2 = iVar2 + 1;\n    }" ({ "{") (if_statement "if (*(int *)(iVar1 + iVar2 * 4) != 0) {\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + iVar2 * 4) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + iVar2 * 4) != 0" (pointer_expression "*(int *)(iVar1 + iVar2 * 4)" (* "*") (cast_expression "(int *)(iVar1 + iVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2 * 4)" (( "(") (binary_expression "iVar1 + iVar2 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0006e6d0();\n        iVar1 = *(int *)(param_1 + 0x5c);\n        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;\n      }" ({ "{") (expression_statement "FUN_0006e6d0();" (call_expression "FUN_0006e6d0()" (identifier "FUN_0006e6d0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5c)" (* "*") (cast_expression "(int *)(param_1 + 0x5c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + iVar2 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + iVar2 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar1 + iVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2 * 4)" (( "(") (binary_expression "iVar1 + iVar2 * 4" (identifier "iVar1") (+ "+") (binary_expression "iVar2 * 4" (identifier "iVar2") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 < *(int *)(param_1 + 0x1c))" (( "(") (binary_expression "iVar2 < *(int *)(param_1 + 0x1c)" (identifier "iVar2") (< "<") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *p)

{
  type_2 **ppVVar1;
  int var_2;
  
  if (0 < p->nCursor) {
    var_2 = 0;
    ppVVar1 = p->apCsr;
    do {
      if (ppVVar1[var_2] != (type_2 *)0x0) {
        var_1(p,ppVVar1[var_2]);
        ppVVar1 = p->apCsr;
        ppVVar1[var_2] = (type_2 *)0x0;
      }
      var_2 = var_2 + 1;
    } while (var_2 < p->nCursor);
    return;
  }
  return;
}


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

void __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  if (0 < *(int *)(param_1 + 0x1c)) {
    iVar2 = 0;
    iVar1 = *(int *)(param_1 + 0x5c);
    do {
      if (*(int *)(iVar1 + iVar2 * 4) != 0) {
        FUN_0006e6d0();
        iVar1 = *(int *)(param_1 + 0x5c);
        *(undefined4 *)(iVar1 + iVar2 * 4) = 0;
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < *(int *)(param_1 + 0x1c));
    return;
  }
  return;
}

