
int fts5ApiInstCount(Fts5Context *pCtx,int *pnInst)

{
  int iVar1;
  
  if ((*(uint *)(pCtx + 0x3c) & 8) != 0) {
    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  *pnInst = *(int *)(pCtx + 0x70);
  return 0;
}



int FUN_00103908(int param_1,undefined4 *param_2)

{
  int iVar1;
  
  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {
    iVar1 = FUN_001034e8();
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  *param_2 = *(undefined4 *)(param_1 + 0x70);
  return 0;
}


lui gp,0x6
addiu gp,gp,-0x358
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,0x3c(a0)
andi v0,v0,0x8
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
bne v0,zero,0x00103950
_sw ra,0x1c(sp)
lw v1,0x70(s0)
or v0,zero,zero
sw v1,0x0(a1)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7ee0(gp)
addiu t9,t9,0x34e8
bal 0x001034e8
_sw a1,0x24(sp)
beq v0,zero,0x00103934
_lw a1,0x24(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_00103908(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}\n\n" (function_definition "int FUN_00103908(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" primitive_type (function_declarator "FUN_00103908(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x3c) & 8) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x3c) & 8) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x3c) & 8)" ( (binary_expression "*(uint *)(param_1 + 0x3c) & 8" (pointer_expression "*(uint *)(param_1 + 0x3c)" * (cast_expression "(uint *)(param_1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = FUN_001034e8();" (assignment_expression "iVar1 = FUN_001034e8()" identifier = (call_expression "FUN_001034e8()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int fts5ApiInstCount(Fts5Context *pCtx,int *pnInst)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(pCtx + 0x3c) & 8) != 0) {\n    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *pnInst = *(int *)(pCtx + 0x70);\n  return 0;\n}\n\n" (function_definition "int fts5ApiInstCount(Fts5Context *pCtx,int *pnInst)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(pCtx + 0x3c) & 8) != 0) {\n    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *pnInst = *(int *)(pCtx + 0x70);\n  return 0;\n}" primitive_type (function_declarator "fts5ApiInstCount(Fts5Context *pCtx,int *pnInst)" identifier (parameter_list "(Fts5Context *pCtx,int *pnInst)" ( (parameter_declaration "Fts5Context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int *pnInst" primitive_type (pointer_declarator "*pnInst" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(uint *)(pCtx + 0x3c) & 8) != 0) {\n    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *pnInst = *(int *)(pCtx + 0x70);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(uint *)(pCtx + 0x3c) & 8) != 0) {\n    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((*(uint *)(pCtx + 0x3c) & 8) != 0)" ( (binary_expression "(*(uint *)(pCtx + 0x3c) & 8) != 0" (parenthesized_expression "(*(uint *)(pCtx + 0x3c) & 8)" ( (binary_expression "*(uint *)(pCtx + 0x3c) & 8" (pointer_expression "*(uint *)(pCtx + 0x3c)" * (cast_expression "(uint *)(pCtx + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pCtx + 0x3c)" ( (binary_expression "pCtx + 0x3c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx);" (assignment_expression "iVar1 = fts5CacheInstArray((Fts5Cursor *)pCtx)" identifier = (call_expression "fts5CacheInstArray((Fts5Cursor *)pCtx)" identifier (argument_list "((Fts5Cursor *)pCtx)" ( (cast_expression "(Fts5Cursor *)pCtx" ( (type_descriptor "Fts5Cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*pnInst = *(int *)(pCtx + 0x70);" (assignment_expression "*pnInst = *(int *)(pCtx + 0x70)" (pointer_expression "*pnInst" * identifier) = (pointer_expression "*(int *)(pCtx + 0x70)" * (cast_expression "(int *)(pCtx + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pCtx + 0x70)" ( (binary_expression "pCtx + 0x70" identifier + number_literal) ))))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00103908(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}\n\n" (function_definition "int FUN_00103908(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" primitive_type (function_declarator "FUN_00103908(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x3c) & 8) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x3c) & 8) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x3c) & 8)" ( (binary_expression "*(uint *)(param_1 + 0x3c) & 8" (pointer_expression "*(uint *)(param_1 + 0x3c)" * (cast_expression "(uint *)(param_1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" { (expression_statement "iVar1 = FUN_001034e8();" (assignment_expression "iVar1 = FUN_001034e8()" identifier = (call_expression "FUN_001034e8()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) })) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" 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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression (pointer_expression * 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_00103908(int param_1,undefined4 *param_2)\n\n{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00103908(int param_1,undefined4 *param_2)" (identifier "FUN_00103908") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }\n  *param_2 = *(undefined4 *)(param_1 + 0x70);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x3c) & 8) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x3c) & 8) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x3c) & 8)" (( "(") (binary_expression "*(uint *)(param_1 + 0x3c) & 8" (pointer_expression "*(uint *)(param_1 + 0x3c)" (* "*") (cast_expression "(uint *)(param_1 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_001034e8();\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_001034e8();" (assignment_expression "iVar1 = FUN_001034e8()" (identifier "iVar1") (= "=") (call_expression "FUN_001034e8()" (identifier "FUN_001034e8") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (} "}"))) (expression_statement "*param_2 = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*param_2 = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1,int *pnInst)

{
  int var_3;
  
  if ((*(type_2 *)(var_1 + 0x3c) & 8) != 0) {
    var_3 = var_2((type_3 *)var_1);
    if (var_3 != 0) {
      return var_3;
    }
  }
  *pnInst = *(int *)(var_1 + 0x70);
  return 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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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))))))) (return_statement (number_literal)))))

int MASKED(int param_1,undefined4 *param_2)

{
  int iVar1;
  
  if ((*(uint *)(param_1 + 0x3c) & 8) != 0) {
    iVar1 = FUN_001034e8();
    if (iVar1 != 0) {
      return iVar1;
    }
  }
  *param_2 = *(undefined4 *)(param_1 + 0x70);
  return 0;
}

