
void lzo_check(uint32_t init,uint8_t *buf,uint len,_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn,
              uint32_t ref)

{
  uint32_t uVar1;
  
  uVar1 = (*fn)(init,buf,len);
  if (uVar1 != ref) {
    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);
  }
  return;
}



void FUN_000a483c(void)

{
  int iVar1;
  code *in_a3;
  int in_stack_00000010;
  
  iVar1 = (*in_a3)();
  if (iVar1 != in_stack_00000010) {
    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);
  }
  return;
}


lui gp,0x9
addiu gp,gp,0x4914
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw gp,0x10(sp)
or t9,a3,zero
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x30(sp)
beq v0,v1,0x000a4880
_lw a0,-0x7fac(gp)
addiu a0,a0,0x18b0
lw t9,-0x7f60(gp)
jalr t9
_nop
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_000a483c(void)\n\n{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000a483c(void)\n\n{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000a483c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "int in_stack_00000010;" primitive_type identifier ;) (expression_statement "iVar1 = (*in_a3)();" (assignment_expression "iVar1 = (*in_a3)()" identifier = (call_expression "(*in_a3)()" (parenthesized_expression "(*in_a3)" ( (pointer_expression "*in_a3" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" if (parenthesized_expression "(iVar1 != in_stack_00000010)" ( (binary_expression "iVar1 != in_stack_00000010" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" { (expression_statement "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);" (call_expression "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0)" (parenthesized_expression "(*(code *)PTR_FUN_001311f0)" ( (pointer_expression "*(code *)PTR_FUN_001311f0" * (cast_expression "(code *)PTR_FUN_001311f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x18b0)" ( (binary_expression "PTR_FUN_001311a4 + 0x18b0" identifier + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void lzo_check(uint32_t init,uint8_t *buf,uint len,_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn,\n              uint32_t ref)\n\n{\n  uint32_t uVar1;\n  \n  uVar1 = (*fn)(init,buf,len);\n  if (uVar1 != ref) {\n    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);\n  }\n  return;\n}\n\n" (function_definition "void lzo_check(uint32_t init,uint8_t *buf,uint len,_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn,\n              uint32_t ref)\n\n{\n  uint32_t uVar1;\n  \n  uVar1 = (*fn)(init,buf,len);\n  if (uVar1 != ref) {\n    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);\n  }\n  return;\n}" primitive_type (function_declarator "lzo_check(uint32_t init,uint8_t *buf,uint len,_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn,\n              uint32_t ref)" identifier (parameter_list "(uint32_t init,uint8_t *buf,uint len,_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn,\n              uint32_t ref)" ( (parameter_declaration "uint32_t init" primitive_type identifier) , (parameter_declaration "uint8_t *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "uint len" type_identifier identifier) , (parameter_declaration "_func_uint32_t_uint32_t_uint8_t_ptr_uint *fn" type_identifier (pointer_declarator "*fn" * identifier)) , (parameter_declaration "uint32_t ref" primitive_type identifier) ))) (compound_statement "{\n  uint32_t uVar1;\n  \n  uVar1 = (*fn)(init,buf,len);\n  if (uVar1 != ref) {\n    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);\n  }\n  return;\n}" { (declaration "uint32_t uVar1;" primitive_type identifier ;) (expression_statement "uVar1 = (*fn)(init,buf,len);" (assignment_expression "uVar1 = (*fn)(init,buf,len)" identifier = (call_expression "(*fn)(init,buf,len)" (parenthesized_expression "(*fn)" ( (pointer_expression "*fn" * identifier) )) (argument_list "(init,buf,len)" ( identifier , identifier , identifier )))) ;) (if_statement "if (uVar1 != ref) {\n    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);\n  }" if (parenthesized_expression "(uVar1 != ref)" ( (binary_expression "uVar1 != ref" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);\n  }" { (expression_statement "(*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0);" (call_expression "(*(code *)PTR_bb_error_msg_and_die_001311f0)(PTR_bdcommands_4__name_4__001311a4 + 0x18b0)" (parenthesized_expression "(*(code *)PTR_bb_error_msg_and_die_001311f0)" ( (pointer_expression "*(code *)PTR_bb_error_msg_and_die_001311f0" * (cast_expression "(code *)PTR_bb_error_msg_and_die_001311f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_bdcommands_4__name_4__001311a4 + 0x18b0)" ( (binary_expression "PTR_bdcommands_4__name_4__001311a4 + 0x18b0" identifier + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000a483c(void)\n\n{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000a483c(void)\n\n{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000a483c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *in_a3;" type_identifier (pointer_declarator "*in_a3" * identifier) ;) (declaration "int in_stack_00000010;" primitive_type identifier ;) (expression_statement "iVar1 = (*in_a3)();" (assignment_expression "iVar1 = (*in_a3)()" identifier = (call_expression "(*in_a3)()" (parenthesized_expression "(*in_a3)" ( (pointer_expression "*in_a3" * identifier) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" if (parenthesized_expression "(iVar1 != in_stack_00000010)" ( (binary_expression "iVar1 != in_stack_00000010" identifier != identifier) )) (compound_statement "{\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" { (expression_statement "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);" (call_expression "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0)" (parenthesized_expression "(*(code *)PTR_FUN_001311f0)" ( (pointer_expression "*(code *)PTR_FUN_001311f0" * (cast_expression "(code *)PTR_FUN_001311f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_001311a4 + 0x18b0)" ( (binary_expression "PTR_FUN_001311a4 + 0x18b0" identifier + number_literal) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000a483c(void)\n\n{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000a483c(void)" (identifier "FUN_000a483c") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  code *in_a3;\n  int in_stack_00000010;\n  \n  iVar1 = (*in_a3)();\n  if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "code *in_a3;" (type_identifier "code") (pointer_declarator "*in_a3" (* "*") (identifier "in_a3")) (; ";")) (declaration "int in_stack_00000010;" (primitive_type "int") (identifier "in_stack_00000010") (; ";")) (expression_statement "iVar1 = (*in_a3)();" (assignment_expression "iVar1 = (*in_a3)()" (identifier "iVar1") (= "=") (call_expression "(*in_a3)()" (parenthesized_expression "(*in_a3)" (( "(") (pointer_expression "*in_a3" (* "*") (identifier "in_a3")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != in_stack_00000010) {\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" (if "if") (parenthesized_expression "(iVar1 != in_stack_00000010)" (( "(") (binary_expression "iVar1 != in_stack_00000010" (identifier "iVar1") (!= "!=") (identifier "in_stack_00000010")) () ")")) (compound_statement "{\n    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);\n  }" ({ "{") (expression_statement "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);" (call_expression "(*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0)" (parenthesized_expression "(*(code *)PTR_FUN_001311f0)" (( "(") (pointer_expression "*(code *)PTR_FUN_001311f0" (* "*") (cast_expression "(code *)PTR_FUN_001311f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_001311f0"))) () ")")) (argument_list "(PTR_FUN_001311a4 + 0x18b0)" (( "(") (binary_expression "PTR_FUN_001311a4 + 0x18b0" (identifier "PTR_FUN_001311a4") (+ "+") (number_literal "0x18b0")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(uint32_t init,uint8_t *buf,type_1 len,type_2 *fn,
              uint32_t var_2)

{
  uint32_t var_1;
  
  var_1 = (*fn)(init,buf,len);
  if (var_1 != var_2) {
    (*(type_3 *)PTR_bb_error_msg_and_die_001311f0)(var_3 + 0x18b0);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

void MASKED(void)

{
  int iVar1;
  code *in_a3;
  int in_stack_00000010;
  
  iVar1 = (*in_a3)();
  if (iVar1 != in_stack_00000010) {
    (*(code *)PTR_FUN_001311f0)(PTR_FUN_001311a4 + 0x18b0);
  }
  return;
}

