
void btreeLeaveAll(sqlite3 *db)

{
  Btree *p;
  int iVar1;
  int iVar2;
  
  iVar1 = db->nDb;
  if (0 < iVar1) {
    iVar2 = 0;
    do {
      p = db->aDb[iVar2].pBt;
      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {
        iVar1 = p->wantToLock + -1;
        p->wantToLock = iVar1;
        if (iVar1 == 0) {
          sqlite3BtreeLeave(p);
          iVar1 = db->nDb;
        }
        else {
          iVar1 = db->nDb;
        }
      }
      iVar2 = iVar2 + 1;
    } while (iVar2 < iVar1);
    return;
  }
  return;
}



void FUN_00033ed4(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(param_1 + 0x14);
  if (0 < iVar2) {
    iVar3 = 0;
    do {
      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);
      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {
        iVar2 = *(int *)(iVar1 + 0xc) + -1;
        *(int *)(iVar1 + 0xc) = iVar2;
        if (iVar2 == 0) {
          FUN_00033eb4();
          iVar2 = *(int *)(param_1 + 0x14);
        }
        else {
          iVar2 = *(int *)(param_1 + 0x14);
        }
      }
      iVar3 = iVar3 + 1;
    } while (iVar3 < iVar2);
    return;
  }
  return;
}


lui gp,0x13
addiu gp,gp,-0x924
addu gp,gp,t9
lw a1,0x14(a0)
blez a1,0x00033f84
_nop
addiu sp,sp,-0x28
sw s2,0x20(sp)
sw s0,0x18(sp)
or s0,zero,zero
sw s1,0x1c(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s2,-0x7ed8(gp)
addiu s2,s2,0x3eb4
lw v0,0x10(s1)
sll v1,s0,0x4
addu v0,v0,v1
lw a0,0x4(v0)
beq a0,zero,0x00033f4c
_nop
lbu v0,0x9(a0)
beq v0,zero,0x00033f4c
_nop
lw v0,0xc(a0)
addiu v0,v0,-0x1
beq v0,zero,0x00033f70
_sw v0,0xc(a0)
lw a1,0x14(s1)
addiu s0,s0,0x1
slt v0,s0,a1
bne v0,zero,0x00033f14
_lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
or t9,s2,zero
bal 0x00033eb4
_nop
b 0x00033f4c
_lw a1,0x14(s1)
jr ra
_nop
(translation_unit "void FUN_00033ed4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00033ed4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00033ed4(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  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);" do (compound_statement "{\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar3 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" if (parenthesized_expression "((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0'))" ( (binary_expression "(iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(char *)(iVar1 + 9) != '\0')" ( (binary_expression "*(char *)(iVar1 + 9) != '\0'" (pointer_expression "*(char *)(iVar1 + 9)" * (cast_expression "(char *)(iVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 9)" ( (binary_expression "iVar1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0xc) + -1;" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc) + -1" identifier = (binary_expression "*(int *)(iVar1 + 0xc) + -1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "FUN_00033eb4();" (call_expression "FUN_00033eb4()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" else (compound_statement "{\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void btreeLeaveAll(sqlite3 *db)\n\n{\n  Btree *p;\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = db->nDb;\n  if (0 < iVar1) {\n    iVar2 = 0;\n    do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void btreeLeaveAll(sqlite3 *db)\n\n{\n  Btree *p;\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = db->nDb;\n  if (0 < iVar1) {\n    iVar2 = 0;\n    do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "btreeLeaveAll(sqlite3 *db)" identifier (parameter_list "(sqlite3 *db)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) ))) (compound_statement "{\n  Btree *p;\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = db->nDb;\n  if (0 < iVar1) {\n    iVar2 = 0;\n    do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);\n    return;\n  }\n  return;\n}" { (declaration "Btree *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = db->nDb;" (assignment_expression "iVar1 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) (if_statement "if (0 < iVar1) {\n    iVar2 = 0;\n    do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);\n    return;\n  }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);\n    return;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    } while (iVar2 < iVar1);" do (compound_statement "{\n      p = db->aDb[iVar2].pBt;\n      if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }\n      iVar2 = iVar2 + 1;\n    }" { (expression_statement "p = db->aDb[iVar2].pBt;" (assignment_expression "p = db->aDb[iVar2].pBt" identifier = (field_expression "db->aDb[iVar2].pBt" (subscript_expression "db->aDb[iVar2]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (if_statement "if ((p != (Btree *)0x0) && (p->sharable != '\0')) {\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }" if (parenthesized_expression "((p != (Btree *)0x0) && (p->sharable != '\0'))" ( (binary_expression "(p != (Btree *)0x0) && (p->sharable != '\0')" (parenthesized_expression "(p != (Btree *)0x0)" ( (binary_expression "p != (Btree *)0x0" identifier != (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar1 = p->wantToLock + -1;\n        p->wantToLock = iVar1;\n        if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }\n      }" { (expression_statement "iVar1 = p->wantToLock + -1;" (assignment_expression "iVar1 = p->wantToLock + -1" identifier = (binary_expression "p->wantToLock + -1" (field_expression "p->wantToLock" identifier -> field_identifier) + number_literal)) ;) (expression_statement "p->wantToLock = iVar1;" (assignment_expression "p->wantToLock = iVar1" (field_expression "p->wantToLock" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar1 == 0) {\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }\n        else {\n          iVar1 = db->nDb;\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          sqlite3BtreeLeave(p);\n          iVar1 = db->nDb;\n        }" { (expression_statement "sqlite3BtreeLeave(p);" (call_expression "sqlite3BtreeLeave(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "iVar1 = db->nDb;" (assignment_expression "iVar1 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) }) (else_clause "else {\n          iVar1 = db->nDb;\n        }" else (compound_statement "{\n          iVar1 = db->nDb;\n        }" { (expression_statement "iVar1 = db->nDb;" (assignment_expression "iVar1 = db->nDb" identifier = (field_expression "db->nDb" identifier -> field_identifier)) ;) }))) })) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00033ed4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00033ed4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00033ed4(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  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);" do (compound_statement "{\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "iVar3 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" if (parenthesized_expression "((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0'))" ( (binary_expression "(iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(char *)(iVar1 + 9) != '\0')" ( (binary_expression "*(char *)(iVar1 + 9) != '\0'" (pointer_expression "*(char *)(iVar1 + 9)" * (cast_expression "(char *)(iVar1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 9)" ( (binary_expression "iVar1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0xc) + -1;" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc) + -1" identifier = (binary_expression "*(int *)(iVar1 + 0xc) + -1" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "FUN_00033eb4();" (call_expression "FUN_00033eb4()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }) (else_clause "else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" else (compound_statement "{\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) }))) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < iVar2)" ( (binary_expression "iVar3 < iVar2" identifier < identifier) )) ;) (return_statement "return;" return ;) })) (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 IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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) ))))) ;) }) (else_clause else (compound_statement { (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 IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00033ed4(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00033ed4(int param_1)" (identifier "FUN_00033ed4") (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  int iVar3;\n  \n  iVar2 = *(int *)(param_1 + 0x14);\n  if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }\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 "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (0 < iVar2) {\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar3 = 0;\n    do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);\n    return;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    } while (iVar3 < iVar2);" (do "do") (compound_statement "{\n      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);\n      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }\n      iVar3 = iVar3 + 1;\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4" (binary_expression "*(int *)(param_1 + 0x10) + iVar3 * 0x10" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "iVar3 * 0x10" (identifier "iVar3") (* "*") (number_literal "0x10"))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" (if "if") (parenthesized_expression "((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0'))" (( "(") (binary_expression "(iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(iVar1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(iVar1 + 9) != '\0'" (pointer_expression "*(char *)(iVar1 + 9)" (* "*") (cast_expression "(char *)(iVar1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 9)" (( "(") (binary_expression "iVar1 + 9" (identifier "iVar1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0xc) + -1;\n        *(int *)(iVar1 + 0xc) = iVar2;\n        if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar1 + 0xc) + -1;" (assignment_expression "iVar2 = *(int *)(iVar1 + 0xc) + -1" (identifier "iVar2") (= "=") (binary_expression "*(int *)(iVar1 + 0xc) + -1" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(iVar1 + 0xc) = iVar2;" (assignment_expression "*(int *)(iVar1 + 0xc) = iVar2" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }\n        else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          FUN_00033eb4();\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" ({ "{") (expression_statement "FUN_00033eb4();" (call_expression "FUN_00033eb4()" (identifier "FUN_00033eb4") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" (else "else") (compound_statement "{\n          iVar2 = *(int *)(param_1 + 0x14);\n        }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 < iVar2)" (( "(") (binary_expression "iVar3 < iVar2" (identifier "iVar3") (< "<") (identifier "iVar2")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))) (expression_statement (assignment_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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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)))))))) alternative: (else_clause (compound_statement (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: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement))) (return_statement))))

void MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = *(int *)(param_1 + 0x14);
  if (0 < iVar2) {
    iVar3 = 0;
    do {
      iVar1 = *(int *)(*(int *)(param_1 + 0x10) + iVar3 * 0x10 + 4);
      if ((iVar1 != 0) && (*(char *)(iVar1 + 9) != '\0')) {
        iVar2 = *(int *)(iVar1 + 0xc) + -1;
        *(int *)(iVar1 + 0xc) = iVar2;
        if (iVar2 == 0) {
          FUN_00033eb4();
          iVar2 = *(int *)(param_1 + 0x14);
        }
        else {
          iVar2 = *(int *)(param_1 + 0x14);
        }
      }
      iVar3 = iVar3 + 1;
    } while (iVar3 < iVar2);
    return;
  }
  return;
}

