
int fts3ExprCheckDepth(Fts3Expr *p,int nMaxDepth)

{
  bool bVar1;
  int iVar2;
  int nMaxDepth_00;
  
  if (p == (Fts3Expr *)0x0) {
    return 0;
  }
  if (nMaxDepth != -1) {
    nMaxDepth_00 = nMaxDepth + -1;
    do {
      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);
      if (iVar2 != 0) {
        return iVar2;
      }
      p = p->pRight;
      if (p == (Fts3Expr *)0x0) {
        return 0;
      }
      bVar1 = nMaxDepth_00 != -1;
      nMaxDepth_00 = nMaxDepth_00 + -1;
    } while (bVar1);
  }
  return 0x12;
}



int FUN_000224b4(int param_1,int param_2)

{
  bool bVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if (param_2 != -1) {
    param_2 = param_2 + -1;
    do {
      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);
      if (iVar2 != 0) {
        return iVar2;
      }
      param_1 = *(int *)(param_1 + 0x10);
      if (param_1 == 0) {
        return 0;
      }
      bVar1 = param_2 != -1;
      param_2 = param_2 + -1;
    } while (bVar1);
  }
  return 0x12;
}


lui gp,0x14
addiu gp,gp,0x10fc
addu gp,gp,t9
beq a0,zero,0x00022550
_nop
addiu sp,sp,-0x30
li v0,-0x1
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a1,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
beq a1,v0,0x00022530
_sw s1,0x20(sp)
lw s2,-0x7f54(gp)
li s3,-0x1
or s1,a0,zero
addiu s2,s2,0x24b4
addiu s0,s0,-0x1
lw a0,0xc(s1)
or t9,s2,zero
bal 0x000224b4
_or a1,s0,zero
bne v0,zero,0x00022538
_lw ra,0x2c(sp)
lw s1,0x10(s1)
beq s1,zero,0x00022538
_nop
bne s0,s3,0x00022504
_addiu s0,s0,-0x1
li v0,0x12
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
jr ra
_or v0,zero,zero
(translation_unit "int FUN_000224b4(int param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}\n\n" (function_definition "int FUN_000224b4(int param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" primitive_type (function_declarator "FUN_000224b4(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" { (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (do_statement "do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);" do (compound_statement "{\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    }" { (expression_statement "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);" (assignment_expression "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" identifier = (call_expression "FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "param_1 = *(int *)(param_1 + 0x10);" (assignment_expression "param_1 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) ;) (if_statement "if (param_1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = param_2 != -1;" (assignment_expression "bVar1 = param_2 != -1" identifier = (binary_expression "param_2 != -1" identifier != number_literal)) ;) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) })) (return_statement "return 0x12;" return number_literal ;) })))
(translation_unit "int fts3ExprCheckDepth(Fts3Expr *p,int nMaxDepth)\n\n{\n  bool bVar1;\n  int iVar2;\n  int nMaxDepth_00;\n  \n  if (p == (Fts3Expr *)0x0) {\n    return 0;\n  }\n  if (nMaxDepth != -1) {\n    nMaxDepth_00 = nMaxDepth + -1;\n    do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}\n\n" (function_definition "int fts3ExprCheckDepth(Fts3Expr *p,int nMaxDepth)\n\n{\n  bool bVar1;\n  int iVar2;\n  int nMaxDepth_00;\n  \n  if (p == (Fts3Expr *)0x0) {\n    return 0;\n  }\n  if (nMaxDepth != -1) {\n    nMaxDepth_00 = nMaxDepth + -1;\n    do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" primitive_type (function_declarator "fts3ExprCheckDepth(Fts3Expr *p,int nMaxDepth)" identifier (parameter_list "(Fts3Expr *p,int nMaxDepth)" ( (parameter_declaration "Fts3Expr *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int nMaxDepth" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int nMaxDepth_00;\n  \n  if (p == (Fts3Expr *)0x0) {\n    return 0;\n  }\n  if (nMaxDepth != -1) {\n    nMaxDepth_00 = nMaxDepth + -1;\n    do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int nMaxDepth_00;" primitive_type identifier ;) (if_statement "if (p == (Fts3Expr *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(p == (Fts3Expr *)0x0)" ( (binary_expression "p == (Fts3Expr *)0x0" identifier == (cast_expression "(Fts3Expr *)0x0" ( (type_descriptor "Fts3Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (nMaxDepth != -1) {\n    nMaxDepth_00 = nMaxDepth + -1;\n    do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);\n  }" if (parenthesized_expression "(nMaxDepth != -1)" ( (binary_expression "nMaxDepth != -1" identifier != number_literal) )) (compound_statement "{\n    nMaxDepth_00 = nMaxDepth + -1;\n    do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);\n  }" { (expression_statement "nMaxDepth_00 = nMaxDepth + -1;" (assignment_expression "nMaxDepth_00 = nMaxDepth + -1" identifier = (binary_expression "nMaxDepth + -1" identifier + number_literal)) ;) (do_statement "do {\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    } while (bVar1);" do (compound_statement "{\n      iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      p = p->pRight;\n      if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }\n      bVar1 = nMaxDepth_00 != -1;\n      nMaxDepth_00 = nMaxDepth_00 + -1;\n    }" { (expression_statement "iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00);" (assignment_expression "iVar2 = fts3ExprCheckDepth(p->pLeft,nMaxDepth_00)" identifier = (call_expression "fts3ExprCheckDepth(p->pLeft,nMaxDepth_00)" identifier (argument_list "(p->pLeft,nMaxDepth_00)" ( (field_expression "p->pLeft" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "p = p->pRight;" (assignment_expression "p = p->pRight" identifier = (field_expression "p->pRight" identifier -> field_identifier)) ;) (if_statement "if (p == (Fts3Expr *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(p == (Fts3Expr *)0x0)" ( (binary_expression "p == (Fts3Expr *)0x0" identifier == (cast_expression "(Fts3Expr *)0x0" ( (type_descriptor "Fts3Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = nMaxDepth_00 != -1;" (assignment_expression "bVar1 = nMaxDepth_00 != -1" identifier = (binary_expression "nMaxDepth_00 != -1" identifier != number_literal)) ;) (expression_statement "nMaxDepth_00 = nMaxDepth_00 + -1;" (assignment_expression "nMaxDepth_00 = nMaxDepth_00 + -1" identifier = (binary_expression "nMaxDepth_00 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) })) (return_statement "return 0x12;" return number_literal ;) })))
(translation_unit "int FUN_000224b4(int param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}\n\n" (function_definition "int FUN_000224b4(int param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" primitive_type (function_declarator "FUN_000224b4(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" { (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (do_statement "do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);" do (compound_statement "{\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    }" { (expression_statement "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);" (assignment_expression "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" identifier = (call_expression "FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n        return iVar2;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        return iVar2;\n      }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "param_1 = *(int *)(param_1 + 0x10);" (assignment_expression "param_1 = *(int *)(param_1 + 0x10)" identifier = (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) ))))) ;) (if_statement "if (param_1 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "bVar1 = param_2 != -1;" (assignment_expression "bVar1 = param_2 != -1" identifier = (binary_expression "param_2 != -1" identifier != number_literal)) ;) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) })) (return_statement "return 0x12;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 { (return_statement return 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 IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_000224b4(int param_1,int param_2)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" (primitive_type "int") (function_declarator "FUN_000224b4(int param_1,int param_2)" (identifier "FUN_000224b4") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }\n  return 0x12;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_2 != -1) {\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    param_2 = param_2 + -1;\n    do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);\n  }" ({ "{") (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" (identifier "param_2") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    } while (bVar1);" (do "do") (compound_statement "{\n      iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);\n      if (iVar2 != 0) {\n        return iVar2;\n      }\n      param_1 = *(int *)(param_1 + 0x10);\n      if (param_1 == 0) {\n        return 0;\n      }\n      bVar1 = param_2 != -1;\n      param_2 = param_2 + -1;\n    }" ({ "{") (expression_statement "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2);" (assignment_expression "iVar2 = FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" (identifier "iVar2") (= "=") (call_expression "FUN_000224b4(*(undefined4 *)(param_1 + 0xc),param_2)" (identifier "FUN_000224b4") (argument_list "(*(undefined4 *)(param_1 + 0xc),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        return iVar2;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return iVar2;\n      }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "param_1 = *(int *)(param_1 + 0x10);" (assignment_expression "param_1 = *(int *)(param_1 + 0x10)" (identifier "param_1") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "bVar1 = param_2 != -1;" (assignment_expression "bVar1 = param_2 != -1" (identifier "bVar1") (= "=") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1"))) (; ";")) (expression_statement "param_2 = param_2 + -1;" (assignment_expression "param_2 = param_2 + -1" (identifier "param_2") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (; ";")) (} "}"))) (return_statement "return 0x12;" (return "return") (number_literal "0x12") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (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: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (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: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (identifier))))) (return_statement (number_literal)))))

int MASKED(int param_1,int param_2)

{
  bool bVar1;
  int iVar2;
  
  if (param_1 == 0) {
    return 0;
  }
  if (param_2 != -1) {
    param_2 = param_2 + -1;
    do {
      iVar2 = MASKED(*(undefined4 *)(param_1 + 0xc),param_2);
      if (iVar2 != 0) {
        return iVar2;
      }
      param_1 = *(int *)(param_1 + 0x10);
      if (param_1 == 0) {
        return 0;
      }
      bVar1 = param_2 != -1;
      param_2 = param_2 + -1;
    } while (bVar1);
  }
  return 0x12;
}

