
void measureAllocationSize(sqlite3 *db,void *p)

{
  uint uVar1;
  
  if ((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)) {
    uVar1 = 0x80;
    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;
    if ((db->lookaside).pStart <= p) {
      uVar1 = (uint)(db->lookaside).szTrue;
      goto LAB_000200b0;
    }
  }
  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p);
LAB_000200b0:
  *db->pnBytesFreed = *db->pnBytesFreed + uVar1;
  return;
}



void FUN_0002007c(int param_1,uint param_2)

{
  uint uVar1;
  
  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {
    uVar1 = 0x80;
    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;
    if (*(uint *)(param_1 + 0x148) <= param_2) {
      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);
      goto LAB_000200b0;
    }
  }
  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);
LAB_000200b0:
  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;
  return;
}


lui gp,0xe
addiu gp,gp,-0x2ddc
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
bne a0,zero,0x000200d0
_sw ra,0x1c(sp)
lw v0,-0x7fe4(gp)
lw t9,0x40cc(v0)
jalr t9
_or a0,a1,zero
lw a0,0x1f8(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw v1,0x0(a0)
addu v0,v1,v0
sw v0,0x0(a0)
jr ra
_addiu sp,sp,0x20
lw v0,0x14c(a0)
sltu v0,a1,v0
beq v0,zero,0x000200a4
_lw v0,-0x7fe4(gp)
lw v0,0x144(a0)
sltu v0,a1,v0
beq v0,zero,0x000200b0
_li v0,0x80
lw v0,0x148(a0)
sltu v0,a1,v0
bne v0,zero,0x000200a0
_nop
b 0x000200b0
_lhu v0,0x11e(a0)
(translation_unit "void FUN_0002007c(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0002007c(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0002007c(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c)))" ( (binary_expression "(param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x14c))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x14c)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14c)" * (cast_expression "(uint *)(param_1 + 0x14c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14c)" ( (binary_expression "param_1 + 0x14c" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" { (expression_statement "uVar1 = 0x80;" (assignment_expression "uVar1 = 0x80" identifier = number_literal) ;) (if_statement "if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;" if (parenthesized_expression "(*(uint *)(param_1 + 0x144) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x144) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x144)" * (cast_expression "(uint *)(param_1 + 0x144)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x144)" ( (binary_expression "param_1 + 0x144" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;)) (if_statement "if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0x148) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x148) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x148)" * (cast_expression "(uint *)(param_1 + 0x148)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x148)" ( (binary_expression "param_1 + 0x148" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" { (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x11e);" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x11e)" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x11e)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x11e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11e)" ( (binary_expression "param_1 + 0x11e" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;) })) })) (expression_statement "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (labeled_statement "LAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" statement_identifier : (expression_statement "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" (assignment_expression "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" * (pointer_expression "*(int **)(param_1 + 0x1f8)" * (cast_expression "(int **)(param_1 + 0x1f8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1f8)" ( (binary_expression "param_1 + 0x1f8" identifier + number_literal) ))))) = (binary_expression "**(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" * (pointer_expression "*(int **)(param_1 + 0x1f8)" * (cast_expression "(int **)(param_1 + 0x1f8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1f8)" ( (binary_expression "param_1 + 0x1f8" identifier + number_literal) ))))) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void measureAllocationSize(sqlite3 *db,void *p)\n\n{\n  uint uVar1;\n  \n  if ((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)) {\n    uVar1 = 0x80;\n    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;\n    if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p);\nLAB_000200b0:\n  *db->pnBytesFreed = *db->pnBytesFreed + uVar1;\n  return;\n}\n\n" (function_definition "void measureAllocationSize(sqlite3 *db,void *p)\n\n{\n  uint uVar1;\n  \n  if ((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)) {\n    uVar1 = 0x80;\n    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;\n    if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p);\nLAB_000200b0:\n  *db->pnBytesFreed = *db->pnBytesFreed + uVar1;\n  return;\n}" primitive_type (function_declarator "measureAllocationSize(sqlite3 *db,void *p)" identifier (parameter_list "(sqlite3 *db,void *p)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  if ((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)) {\n    uVar1 = 0x80;\n    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;\n    if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p);\nLAB_000200b0:\n  *db->pnBytesFreed = *db->pnBytesFreed + uVar1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)) {\n    uVar1 = 0x80;\n    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;\n    if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }\n  }" if (parenthesized_expression "((db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd))" ( (binary_expression "(db != (sqlite3 *)0x0) && (p < (db->lookaside).pEnd)" (parenthesized_expression "(db != (sqlite3 *)0x0)" ( (binary_expression "db != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(p < (db->lookaside).pEnd)" ( (binary_expression "p < (db->lookaside).pEnd" identifier < (field_expression "(db->lookaside).pEnd" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier)) ))) )) (compound_statement "{\n    uVar1 = 0x80;\n    if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;\n    if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }\n  }" { (expression_statement "uVar1 = 0x80;" (assignment_expression "uVar1 = 0x80" identifier = number_literal) ;) (if_statement "if ((db->lookaside).pMiddle <= p) goto LAB_000200b0;" if (parenthesized_expression "((db->lookaside).pMiddle <= p)" ( (binary_expression "(db->lookaside).pMiddle <= p" (field_expression "(db->lookaside).pMiddle" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;)) (if_statement "if ((db->lookaside).pStart <= p) {\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }" if (parenthesized_expression "((db->lookaside).pStart <= p)" ( (binary_expression "(db->lookaside).pStart <= p" (field_expression "(db->lookaside).pStart" (parenthesized_expression "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) )) . field_identifier) <= identifier) )) (compound_statement "{\n      uVar1 = (uint)(db->lookaside).szTrue;\n      goto LAB_000200b0;\n    }" { (expression_statement "uVar1 = (uint)(db->lookaside).szTrue;" (assignment_expression "uVar1 = (uint)(db->lookaside).szTrue" identifier = (field_expression "(uint)(db->lookaside).szTrue" (call_expression "(uint)(db->lookaside)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(db->lookaside)" ( (field_expression "db->lookaside" identifier -> field_identifier) ))) . field_identifier)) ;) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;) })) })) (expression_statement "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(p)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(p)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(p)" ( identifier )))) ;) (labeled_statement "LAB_000200b0:\n  *db->pnBytesFreed = *db->pnBytesFreed + uVar1;" statement_identifier : (expression_statement "*db->pnBytesFreed = *db->pnBytesFreed + uVar1;" (assignment_expression "*db->pnBytesFreed = *db->pnBytesFreed + uVar1" (pointer_expression "*db->pnBytesFreed" * (field_expression "db->pnBytesFreed" identifier -> field_identifier)) = (binary_expression "*db->pnBytesFreed + uVar1" (pointer_expression "*db->pnBytesFreed" * (field_expression "db->pnBytesFreed" identifier -> field_identifier)) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002007c(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}\n\n" (function_definition "void FUN_0002007c(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" primitive_type (function_declarator "FUN_0002007c(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c)))" ( (binary_expression "(param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x14c))" ( (binary_expression "param_2 < *(uint *)(param_1 + 0x14c)" identifier < (pointer_expression "*(uint *)(param_1 + 0x14c)" * (cast_expression "(uint *)(param_1 + 0x14c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14c)" ( (binary_expression "param_1 + 0x14c" identifier + number_literal) ))))) ))) )) (compound_statement "{\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" { (expression_statement "uVar1 = 0x80;" (assignment_expression "uVar1 = 0x80" identifier = number_literal) ;) (if_statement "if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;" if (parenthesized_expression "(*(uint *)(param_1 + 0x144) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x144) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x144)" * (cast_expression "(uint *)(param_1 + 0x144)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x144)" ( (binary_expression "param_1 + 0x144" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;)) (if_statement "if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" if (parenthesized_expression "(*(uint *)(param_1 + 0x148) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x148) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x148)" * (cast_expression "(uint *)(param_1 + 0x148)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x148)" ( (binary_expression "param_1 + 0x148" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" { (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x11e);" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x11e)" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x11e)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x11e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11e)" ( (binary_expression "param_1 + 0x11e" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_000200b0;" goto statement_identifier ;) })) })) (expression_statement "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" identifier = (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" ( (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" * (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" * (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" ( (binary_expression "PTR_DAT_000f52bc + 0x40cc" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (labeled_statement "LAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" statement_identifier : (expression_statement "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" (assignment_expression "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" * (pointer_expression "*(int **)(param_1 + 0x1f8)" * (cast_expression "(int **)(param_1 + 0x1f8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1f8)" ( (binary_expression "param_1 + 0x1f8" identifier + number_literal) ))))) = (binary_expression "**(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" * (pointer_expression "*(int **)(param_1 + 0x1f8)" * (cast_expression "(int **)(param_1 + 0x1f8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1f8)" ( (binary_expression "param_1 + 0x1f8" identifier + number_literal) ))))) + identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression 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) )))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_0002007c(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002007c(int param_1,uint param_2)" (identifier "FUN_0002007c") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }\n  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);\nLAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c)))" (( "(") (binary_expression "(param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < *(uint *)(param_1 + 0x14c))" (( "(") (binary_expression "param_2 < *(uint *)(param_1 + 0x14c)" (identifier "param_2") (< "<") (pointer_expression "*(uint *)(param_1 + 0x14c)" (* "*") (cast_expression "(uint *)(param_1 + 0x14c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14c)" (( "(") (binary_expression "param_1 + 0x14c" (identifier "param_1") (+ "+") (number_literal "0x14c")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n    uVar1 = 0x80;\n    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;\n    if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }\n  }" ({ "{") (expression_statement "uVar1 = 0x80;" (assignment_expression "uVar1 = 0x80" (identifier "uVar1") (= "=") (number_literal "0x80")) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x144) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x144) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x144)" (* "*") (cast_expression "(uint *)(param_1 + 0x144)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x144)" (( "(") (binary_expression "param_1 + 0x144" (identifier "param_1") (+ "+") (number_literal "0x144")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (goto_statement "goto LAB_000200b0;" (goto "goto") (statement_identifier "LAB_000200b0") (; ";"))) (if_statement "if (*(uint *)(param_1 + 0x148) <= param_2) {\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x148) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x148) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x148)" (* "*") (cast_expression "(uint *)(param_1 + 0x148)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x148)" (( "(") (binary_expression "param_1 + 0x148" (identifier "param_1") (+ "+") (number_literal "0x148")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);\n      goto LAB_000200b0;\n    }" ({ "{") (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x11e);" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x11e)" (identifier "uVar1") (= "=") (binary_expression "(uint)*(ushort *)(param_1 + 0x11e)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x11e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11e)" (( "(") (binary_expression "param_1 + 0x11e" (identifier "param_1") (+ "+") (number_literal "0x11e")) () ")"))))) (; ";")) (goto_statement "goto LAB_000200b0;" (goto "goto") (statement_identifier "LAB_000200b0") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);" (assignment_expression "uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2)" (parenthesized_expression "(**(code **)(PTR_DAT_000f52bc + 0x40cc))" (( "(") (pointer_expression "**(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (pointer_expression "*(code **)(PTR_DAT_000f52bc + 0x40cc)" (* "*") (cast_expression "(code **)(PTR_DAT_000f52bc + 0x40cc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_000f52bc + 0x40cc)" (( "(") (binary_expression "PTR_DAT_000f52bc + 0x40cc" (identifier "PTR_DAT_000f52bc") (+ "+") (number_literal "0x40cc")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (labeled_statement "LAB_000200b0:\n  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" (statement_identifier "LAB_000200b0") (: ":") (expression_statement "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;" (assignment_expression "**(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" (* "*") (pointer_expression "*(int **)(param_1 + 0x1f8)" (* "*") (cast_expression "(int **)(param_1 + 0x1f8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1f8)" (( "(") (binary_expression "param_1 + 0x1f8" (identifier "param_1") (+ "+") (number_literal "0x1f8")) () ")"))))) (= "=") (binary_expression "**(int **)(param_1 + 0x1f8) + uVar1" (pointer_expression "**(int **)(param_1 + 0x1f8)" (* "*") (pointer_expression "*(int **)(param_1 + 0x1f8)" (* "*") (cast_expression "(int **)(param_1 + 0x1f8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1f8)" (( "(") (binary_expression "param_1 + 0x1f8" (identifier "param_1") (+ "+") (number_literal "0x1f8")) () ")"))))) (+ "+") (identifier "uVar1"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (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))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (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: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))) (return_statement))))

void MASKED(int param_1,uint param_2)

{
  uint uVar1;
  
  if ((param_1 != 0) && (param_2 < *(uint *)(param_1 + 0x14c))) {
    uVar1 = 0x80;
    if (*(uint *)(param_1 + 0x144) <= param_2) goto LAB_000200b0;
    if (*(uint *)(param_1 + 0x148) <= param_2) {
      uVar1 = (uint)*(ushort *)(param_1 + 0x11e);
      goto LAB_000200b0;
    }
  }
  uVar1 = (**(code **)(PTR_DAT_000f52bc + 0x40cc))(param_2);
LAB_000200b0:
  **(int **)(param_1 + 0x1f8) = **(int **)(param_1 + 0x1f8) + uVar1;
  return;
}

