
Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)

{
  int iVar1;
  Db *pDVar2;
  uint iDb;
  uint uVar3;
  
  if (db->nDb < 1) {
    return (Index *)0x0;
  }
  uVar3 = 0;
  while( true ) {
    if ((int)uVar3 < 2) {
      pDVar2 = db->aDb;
      iDb = uVar3 ^ 1;
    }
    else {
      pDVar2 = db->aDb;
      iDb = uVar3;
    }
    uVar3 = uVar3 + 1;
    pDVar2 = pDVar2 + iDb;
    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;
    if (db->nDb <= (int)uVar3) {
      return (Index *)0x0;
    }
  }
                    /* WARNING: Subroutine does not return */
  findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0);
}



int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  
  if (*(int *)(param_1 + 0x14) < 1) {
    return 0;
  }
  uVar4 = 0;
  do {
    if ((int)uVar4 < 2) {
      iVar2 = *(int *)(param_1 + 0x10);
      uVar3 = uVar4 ^ 1;
    }
    else {
      iVar2 = *(int *)(param_1 + 0x10);
      uVar3 = uVar4;
    }
    uVar4 = uVar4 + 1;
    iVar2 = iVar2 + uVar3 * 0x10;
    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {
      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);
      if (*(int *)(iVar2 + 8) != 0) {
        return *(int *)(iVar2 + 8);
      }
    }
  } while ((int)uVar4 < *(int *)(param_1 + 0x14));
  return 0;
}


lui gp,0xd
addiu gp,gp,-0x398c
addu gp,gp,t9
lw v0,0x14(a0)
blez v0,0x00030d08
_or t7,a2,zero
addiu sp,sp,-0x28
or t8,a1,zero
sw s1,0x20(sp)
or t6,a0,zero
sw s0,0x1c(sp)
or t5,zero,zero
sw gp,0x10(sp)
sw ra,0x24(sp)
lw s0,-0x7fd8(gp)
lw s1,-0x7fb4(gp)
addiu s0,s0,0x99c
b 0x00030ce0
_addiu s1,s1,0xb78
or a1,t5,zero
lw v0,0x10(t6)
sll t3,a1,0x4
addiu t5,t5,0x1
or a2,t7,zero
or a0,t6,zero
beq t7,zero,0x00030cac
_addu t3,v0,t3
or t9,s1,zero
bal 0x00030b78
_nop
beq v0,zero,0x00030cd0
_nop
lw a0,0xc(t3)
or a2,zero,zero
or a1,t8,zero
or t9,s0,zero
bal 0x0002099c
_addiu a0,a0,0x18
lw v0,0x8(v0)
bne v0,zero,0x00030cf8
_lw ra,0x24(sp)
lw v0,0x14(t6)
slt v0,t5,v0
beq v0,zero,0x00030cf4
_or v0,zero,zero
slti v0,t5,0x2
beq v0,zero,0x00030c78
_xori a1,t5,0x1
b 0x00030c80
_lw v0,0x10(t6)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,zero,zero
(translation_unit "int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}\n\n" (function_definition "int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" primitive_type (function_declarator "FUN_00030c2c(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" ( (binary_expression "*(int *)(param_1 + 0x14) < 1" (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) )))) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));" do (compound_statement "{\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  }" { (if_statement "if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" if (parenthesized_expression "((int)uVar4 < 2)" ( (binary_expression "(int)uVar4 < 2" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "uVar3 = uVar4 ^ 1;" (assignment_expression "uVar3 = uVar4 ^ 1" identifier = (binary_expression "uVar4 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" identifier = identifier) ;) }))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + uVar3 * 0x10;" (assignment_expression "iVar2 = iVar2 + uVar3 * 0x10" identifier = (binary_expression "iVar2 + uVar3 * 0x10" identifier + (binary_expression "uVar3 * 0x10" identifier * number_literal))) ;) (if_statement "if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" if (parenthesized_expression "((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0))" ( (binary_expression "(param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3)" identifier = (call_expression "FUN_00030b78(param_1,uVar3,param_3)" identifier (argument_list "(param_1,uVar3,param_3)" ( identifier , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" { (expression_statement "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);" (assignment_expression "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" identifier = (call_expression "FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" identifier (argument_list "(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" ( (binary_expression "*(int *)(iVar2 + 0xc) + 0x18" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) + number_literal) , identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        return *(int *)(iVar2 + 8);\n      }" { (return_statement "return *(int *)(iVar2 + 8);" return (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ;) })) })) }) while (parenthesized_expression "((int)uVar4 < *(int *)(param_1 + 0x14))" ( (binary_expression "(int)uVar4 < *(int *)(param_1 + 0x14)" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) 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) ))))) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)\n\n{\n  int iVar1;\n  Db *pDVar2;\n  uint iDb;\n  uint uVar3;\n  \n  if (db->nDb < 1) {\n    return (Index *)0x0;\n  }\n  uVar3 = 0;\n  while( true ) {\n    if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }\n    uVar3 = uVar3 + 1;\n    pDVar2 = pDVar2 + iDb;\n    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;\n    if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0);\n}\n\n" (function_definition "Index * sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)\n\n{\n  int iVar1;\n  Db *pDVar2;\n  uint iDb;\n  uint uVar3;\n  \n  if (db->nDb < 1) {\n    return (Index *)0x0;\n  }\n  uVar3 = 0;\n  while( true ) {\n    if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }\n    uVar3 = uVar3 + 1;\n    pDVar2 = pDVar2 + iDb;\n    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;\n    if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0);\n}" type_identifier (pointer_declarator "* sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)" * (function_declarator "sqlite3FindIndex(sqlite3 *db,char *zName,char *zDb)" identifier (parameter_list "(sqlite3 *db,char *zName,char *zDb)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "char *zDb" primitive_type (pointer_declarator "*zDb" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  Db *pDVar2;\n  uint iDb;\n  uint uVar3;\n  \n  if (db->nDb < 1) {\n    return (Index *)0x0;\n  }\n  uVar3 = 0;\n  while( true ) {\n    if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }\n    uVar3 = uVar3 + 1;\n    pDVar2 = pDVar2 + iDb;\n    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;\n    if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }\n  }\n                    /* WARNING: Subroutine does not return */\n  findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Db *pDVar2;" type_identifier (pointer_declarator "*pDVar2" * identifier) ;) (declaration "uint iDb;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (db->nDb < 1) {\n    return (Index *)0x0;\n  }" if (parenthesized_expression "(db->nDb < 1)" ( (binary_expression "db->nDb < 1" (field_expression "db->nDb" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n    return (Index *)0x0;\n  }" { (return_statement "return (Index *)0x0;" return (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n    if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }\n    uVar3 = uVar3 + 1;\n    pDVar2 = pDVar2 + iDb;\n    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;\n    if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }\n    uVar3 = uVar3 + 1;\n    pDVar2 = pDVar2 + iDb;\n    if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;\n    if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }\n  }" { (if_statement "if ((int)uVar3 < 2) {\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }\n    else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }" if (parenthesized_expression "((int)uVar3 < 2)" ( (binary_expression "(int)uVar3 < 2" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      pDVar2 = db->aDb;\n      iDb = uVar3 ^ 1;\n    }" { (expression_statement "pDVar2 = db->aDb;" (assignment_expression "pDVar2 = db->aDb" identifier = (field_expression "db->aDb" identifier -> field_identifier)) ;) (expression_statement "iDb = uVar3 ^ 1;" (assignment_expression "iDb = uVar3 ^ 1" identifier = (binary_expression "uVar3 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }" else (compound_statement "{\n      pDVar2 = db->aDb;\n      iDb = uVar3;\n    }" { (expression_statement "pDVar2 = db->aDb;" (assignment_expression "pDVar2 = db->aDb" identifier = (field_expression "db->aDb" identifier -> field_identifier)) ;) (expression_statement "iDb = uVar3;" (assignment_expression "iDb = uVar3" identifier = identifier) ;) }))) (expression_statement "uVar3 = uVar3 + 1;" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) ;) (expression_statement "pDVar2 = pDVar2 + iDb;" (assignment_expression "pDVar2 = pDVar2 + iDb" identifier = (binary_expression "pDVar2 + iDb" identifier + identifier)) ;) (if_statement "if ((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)) break;" if (parenthesized_expression "((zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0))" ( (binary_expression "(zDb == (char *)0x0) || (iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)" (parenthesized_expression "(zDb == (char *)0x0)" ( (binary_expression "zDb == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0)" ( (comma_expression "iVar1 = sqlite3DbIsNamed(db,iDb,zDb), iVar1 != 0" (assignment_expression "iVar1 = sqlite3DbIsNamed(db,iDb,zDb)" identifier = (call_expression "sqlite3DbIsNamed(db,iDb,zDb)" identifier (argument_list "(db,iDb,zDb)" ( identifier , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (break_statement "break;" break ;)) (if_statement "if (db->nDb <= (int)uVar3) {\n      return (Index *)0x0;\n    }" if (parenthesized_expression "(db->nDb <= (int)uVar3)" ( (binary_expression "db->nDb <= (int)uVar3" (field_expression "db->nDb" identifier -> field_identifier) <= (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      return (Index *)0x0;\n    }" { (return_statement "return (Index *)0x0;" return (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) })) comment (expression_statement "findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0);" (call_expression "findElementWithHash(&pDVar2->pSchema->idxHash,zName,(uint *)0x0)" identifier (argument_list "(&pDVar2->pSchema->idxHash,zName,(uint *)0x0)" ( (pointer_expression "&pDVar2->pSchema->idxHash" & (field_expression "pDVar2->pSchema->idxHash" (field_expression "pDVar2->pSchema" identifier -> field_identifier) -> field_identifier)) , identifier , (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) })))
(translation_unit "int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}\n\n" (function_definition "int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" primitive_type (function_declarator "FUN_00030c2c(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" ( (binary_expression "*(int *)(param_1 + 0x14) < 1" (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) )))) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));" do (compound_statement "{\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  }" { (if_statement "if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" if (parenthesized_expression "((int)uVar4 < 2)" ( (binary_expression "(int)uVar4 < 2" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "uVar3 = uVar4 ^ 1;" (assignment_expression "uVar3 = uVar4 ^ 1" identifier = (binary_expression "uVar4 ^ 1" identifier ^ number_literal)) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" identifier = identifier) ;) }))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + uVar3 * 0x10;" (assignment_expression "iVar2 = iVar2 + uVar3 * 0x10" identifier = (binary_expression "iVar2 + uVar3 * 0x10" identifier + (binary_expression "uVar3 * 0x10" identifier * number_literal))) ;) (if_statement "if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" if (parenthesized_expression "((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0))" ( (binary_expression "(param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3)" identifier = (call_expression "FUN_00030b78(param_1,uVar3,param_3)" identifier (argument_list "(param_1,uVar3,param_3)" ( identifier , identifier , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" { (expression_statement "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);" (assignment_expression "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" identifier = (call_expression "FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" identifier (argument_list "(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" ( (binary_expression "*(int *)(iVar2 + 0xc) + 0x18" (pointer_expression "*(int *)(iVar2 + 0xc)" * (cast_expression "(int *)(iVar2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) )))) + number_literal) , identifier , number_literal )))) ;) (if_statement "if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }" if (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" ( (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        return *(int *)(iVar2 + 8);\n      }" { (return_statement "return *(int *)(iVar2 + 8);" return (pointer_expression "*(int *)(iVar2 + 8)" * (cast_expression "(int *)(iVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) ;) })) })) }) while (parenthesized_expression "((int)uVar4 < *(int *)(param_1 + 0x14))" ( (binary_expression "(int)uVar4 < *(int *)(param_1 + 0x14)" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) 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) ))))) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (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)) ;) }) (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 = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) })) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00030c2c(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00030c2c(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_00030c2c") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }\n  uVar4 = 0;\n  do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (*(int *)(param_1 + 0x14) < 1) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x14) < 1)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) < 1" (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")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  } while ((int)uVar4 < *(int *)(param_1 + 0x14));" (do "do") (compound_statement "{\n    if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }\n    uVar4 = uVar4 + 1;\n    iVar2 = iVar2 + uVar3 * 0x10;\n    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }\n  }" ({ "{") (if_statement "if ((int)uVar4 < 2) {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" (if "if") (parenthesized_expression "((int)uVar4 < 2)" (( "(") (binary_expression "(int)uVar4 < 2" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4 ^ 1;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar3 = uVar4 ^ 1;" (assignment_expression "uVar3 = uVar4 ^ 1" (identifier "uVar3") (= "=") (binary_expression "uVar4 ^ 1" (identifier "uVar4") (^ "^") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" (else "else") (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x10);\n      uVar3 = uVar4;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" (identifier "uVar3") (= "=") (identifier "uVar4")) (; ";")) (} "}")))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + uVar3 * 0x10;" (assignment_expression "iVar2 = iVar2 + uVar3 * 0x10" (identifier "iVar2") (= "=") (binary_expression "iVar2 + uVar3 * 0x10" (identifier "iVar2") (+ "+") (binary_expression "uVar3 * 0x10" (identifier "uVar3") (* "*") (number_literal "0x10")))) (; ";")) (if_statement "if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" (if "if") (parenthesized_expression "((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0))" (( "(") (binary_expression "(param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0" (assignment_expression "iVar1 = FUN_00030b78(param_1,uVar3,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_00030b78(param_1,uVar3,param_3)" (identifier "FUN_00030b78") (argument_list "(param_1,uVar3,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "uVar3") (, ",") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);\n      if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);" (assignment_expression "iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" (identifier "FUN_0002099c") (argument_list "(*(int *)(iVar2 + 0xc) + 0x18,param_2,0)" (( "(") (binary_expression "*(int *)(iVar2 + 0xc) + 0x18" (pointer_expression "*(int *)(iVar2 + 0xc)" (* "*") (cast_expression "(int *)(iVar2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x18")) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar2 + 8) != 0) {\n        return *(int *)(iVar2 + 8);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar2 + 8) != 0" (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return *(int *)(iVar2 + 8);\n      }" ({ "{") (return_statement "return *(int *)(iVar2 + 8);" (return "return") (pointer_expression "*(int *)(iVar2 + 8)" (* "*") (cast_expression "(int *)(iVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((int)uVar4 < *(int *)(param_1 + 0x14))" (( "(") (binary_expression "(int)uVar4 < *(int *)(param_1 + 0x14)" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (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")) () ")"))))) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (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))))) 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: (identifier)))))) (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: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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)) (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement (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))))))))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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 (number_literal)))))

int MASKED(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  
  if (*(int *)(param_1 + 0x14) < 1) {
    return 0;
  }
  uVar4 = 0;
  do {
    if ((int)uVar4 < 2) {
      iVar2 = *(int *)(param_1 + 0x10);
      uVar3 = uVar4 ^ 1;
    }
    else {
      iVar2 = *(int *)(param_1 + 0x10);
      uVar3 = uVar4;
    }
    uVar4 = uVar4 + 1;
    iVar2 = iVar2 + uVar3 * 0x10;
    if ((param_3 == 0) || (iVar1 = FUN_00030b78(param_1,uVar3,param_3), iVar1 != 0)) {
      iVar2 = FUN_0002099c(*(int *)(iVar2 + 0xc) + 0x18,param_2,0);
      if (*(int *)(iVar2 + 8) != 0) {
        return *(int *)(iVar2 + 8);
      }
    }
  } while ((int)uVar4 < *(int *)(param_1 + 0x14));
  return 0;
}

