
void closeCursorsInFrame(Vdbe *p)

{
  int iVar1;
  code *pcVar2;
  
  if ((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)) {
    iVar1 = 0;
    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);
    do {
      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {
        (*pcVar2)(p);
        p->apCsr[iVar1] = (VdbeCursor *)0x0;
      }
      iVar1 = iVar1 + 1;
    } while (iVar1 < p->nCursor);
  }
  return;
}



void FUN_000daaf4(int param_1)

{
  int iVar1;
  code *pcVar2;
  
  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {
    iVar1 = 0;
    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);
    do {
      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {
        (*pcVar2)(param_1);
        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;
      }
      iVar1 = iVar1 + 1;
    } while (iVar1 < *(int *)(param_1 + 0x1c));
  }
  return;
}


lui gp,0xc
addiu gp,gp,-0x31d4
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw v0,0x60(a0)
beq v0,zero,0x000dab94
_nop
lw v0,0x1c(a0)
blez v0,0x000dab94
_or s1,a0,zero
or s0,zero,zero
lw s3,-0x7d48(gp)
b 0x000dab74
_addiu s3,s3,-0x564c
or t9,s3,zero
jalr t9
_nop
lw gp,0x10(sp)
lw v0,0x60(s1)
addu s2,v0,s2
sw zero,0x0(s2)
addiu s0,s0,0x1
lw v0,0x1c(s1)
slt v0,s0,v0
beq v0,zero,0x000dab98
_lw ra,0x2c(sp)
sll s2,s0,0x2
lw v0,0x60(s1)
addu v0,v0,s2
lw a1,0x0(v0)
bne a1,zero,0x000dab44
_or a0,s1,zero
b 0x000dab64
_addiu s0,s0,0x1
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_000daaf4(int param_1)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}\n\n" (function_definition "void FUN_000daaf4(int param_1)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000daaf4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c)))" ( (binary_expression "(*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" ( (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) != number_literal) )) && (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    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c)" identifier = (cast_expression "(code *)(PTR_LAB_0018fbd8 + -0x564c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd8 + -0x564c)" ( (binary_expression "PTR_LAB_0018fbd8 + -0x564c" identifier + number_literal) )))) ;) (do_statement "do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));" do (compound_statement "{\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    }" { (if_statement "if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" { (expression_statement "(*pcVar2)(param_1);" (call_expression "(*pcVar2)(param_1)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar1 < *(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 ;) })))
(translation_unit "void closeCursorsInFrame(Vdbe *p)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);\n  }\n  return;\n}\n\n" (function_definition "void closeCursorsInFrame(Vdbe *p)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);\n  }\n  return;\n}" primitive_type (function_declarator "closeCursorsInFrame(Vdbe *p)" identifier (parameter_list "(Vdbe *p)" ( (parameter_declaration "Vdbe *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);\n  }" if (parenthesized_expression "((p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor))" ( (binary_expression "(p->apCsr != (VdbeCursor **)0x0) && (0 < p->nCursor)" (parenthesized_expression "(p->apCsr != (VdbeCursor **)0x0)" ( (binary_expression "p->apCsr != (VdbeCursor **)0x0" (field_expression "p->apCsr" identifier -> field_identifier) != (cast_expression "(VdbeCursor **)0x0" ( (type_descriptor "VdbeCursor **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(0 < p->nCursor)" ( (binary_expression "0 < p->nCursor" number_literal < (field_expression "p->nCursor" identifier -> field_identifier)) ))) )) (compound_statement "{\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c)" identifier = (cast_expression "(code *)(PTR_LAB_0018fbd8 + -0x564c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd8 + -0x564c)" ( (binary_expression "PTR_LAB_0018fbd8 + -0x564c" identifier + number_literal) )))) ;) (do_statement "do {\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < p->nCursor);" do (compound_statement "{\n      if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }\n      iVar1 = iVar1 + 1;\n    }" { (if_statement "if (p->apCsr[iVar1] != (VdbeCursor *)0x0) {\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }" if (parenthesized_expression "(p->apCsr[iVar1] != (VdbeCursor *)0x0)" ( (binary_expression "p->apCsr[iVar1] != (VdbeCursor *)0x0" (subscript_expression "p->apCsr[iVar1]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ]) != (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*pcVar2)(p);\n        p->apCsr[iVar1] = (VdbeCursor *)0x0;\n      }" { (expression_statement "(*pcVar2)(p);" (call_expression "(*pcVar2)(p)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(p)" ( identifier ))) ;) (expression_statement "p->apCsr[iVar1] = (VdbeCursor *)0x0;" (assignment_expression "p->apCsr[iVar1] = (VdbeCursor *)0x0" (subscript_expression "p->apCsr[iVar1]" (field_expression "p->apCsr" identifier -> field_identifier) [ identifier ]) = (cast_expression "(VdbeCursor *)0x0" ( (type_descriptor "VdbeCursor *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < p->nCursor)" ( (binary_expression "iVar1 < p->nCursor" identifier < (field_expression "p->nCursor" identifier -> field_identifier)) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000daaf4(int param_1)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}\n\n" (function_definition "void FUN_000daaf4(int param_1)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000daaf4(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c)))" ( (binary_expression "(*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" ( (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) != number_literal) )) && (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    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c)" identifier = (cast_expression "(code *)(PTR_LAB_0018fbd8 + -0x564c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0018fbd8 + -0x564c)" ( (binary_expression "PTR_LAB_0018fbd8 + -0x564c" identifier + number_literal) )))) ;) (do_statement "do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));" do (compound_statement "{\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    }" { (if_statement "if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) != number_literal) )) (compound_statement "{\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" { (expression_statement "(*pcVar2)(param_1);" (call_expression "(*pcVar2)(param_1)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) })) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x1c))" ( (binary_expression "iVar1 < *(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 ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (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 = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (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 ;) })))
(function_definition "void FUN_000daaf4(int param_1)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000daaf4(int param_1)" (identifier "FUN_000daaf4") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {\n    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c)))" (( "(") (binary_expression "(*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))" (parenthesized_expression "(*(int *)(param_1 + 0x60) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) != 0" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (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    iVar1 = 0;\n    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);\n    do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c)" (identifier "pcVar2") (= "=") (cast_expression "(code *)(PTR_LAB_0018fbd8 + -0x564c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0018fbd8 + -0x564c)" (( "(") (binary_expression "PTR_LAB_0018fbd8 + -0x564c" (identifier "PTR_LAB_0018fbd8") (+ "+") (number_literal "-0x564c")) () ")")))) (; ";")) (do_statement "do {\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    } while (iVar1 < *(int *)(param_1 + 0x1c));" (do "do") (compound_statement "{\n      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }\n      iVar1 = iVar1 + 1;\n    }" ({ "{") (if_statement "if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0" (pointer_expression "*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*pcVar2)(param_1);\n        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;\n      }" ({ "{") (expression_statement "(*pcVar2)(param_1);" (call_expression "(*pcVar2)(param_1)" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x60) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x60) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < *(int *)(param_1 + 0x1c))" (( "(") (binary_expression "iVar1 < *(int *)(param_1 + 0x1c)" (identifier "iVar1") (< "<") (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") (; ";")) (} "}")))

void function_1(type_1 *p)

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


(translation_unit (function_definition type: (primitive_type) 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) 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))))

void MASKED(int param_1)

{
  int iVar1;
  code *pcVar2;
  
  if ((*(int *)(param_1 + 0x60) != 0) && (0 < *(int *)(param_1 + 0x1c))) {
    iVar1 = 0;
    pcVar2 = (code *)(PTR_LAB_0018fbd8 + -0x564c);
    do {
      if (*(int *)(*(int *)(param_1 + 0x60) + iVar1 * 4) != 0) {
        (*pcVar2)(param_1);
        *(undefined4 *)(*(int *)(param_1 + 0x60) + iVar1 * 4) = 0;
      }
      iVar1 = iVar1 + 1;
    } while (iVar1 < *(int *)(param_1 + 0x1c));
  }
  return;
}

