
/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> >
   >::put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const
    */

undefined4
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::put
          (undefined4 param_1,int *param_2)

{
  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {
    _M_insert_int<long>();
    return param_1;
  }
  (**(code **)(*param_2 + 0xc))();
  return param_1;
}



undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)

{
  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {
    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();
    return param_1;
  }
  (**(code **)(*param_2 + 0xc))();
  return param_1;
}


lui gp,0x16
addiu gp,gp,0x5350
addu gp,gp,t9
lw t0,0x0(a1)
addiu sp,sp,-0x38
lw t1,-0x68ec(gp)
lw v0,0x48(sp)
lw t9,0xc(t0)
lb v1,0x4f(sp)
lw t0,0x50(sp)
sw gp,0x20(sp)
sw s0,0x30(sp)
or s0,a0,zero
sw ra,0x34(sp)
sw a2,0x40(sp)
bne t9,t1,0x002d4eec
_sw a3,0x44(sp)
lw t9,-0x68f0(gp)
sw t0,0x18(sp)
sw v1,0x14(sp)
bal 0x002d4b68
_sw v0,0x10(sp)
or v0,s0,zero
lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
sw t0,0x18(sp)
sw v1,0x14(sp)
jalr t9
_sw v0,0x10(sp)
or v0,s0,zero
lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}\n\n" (function_definition "undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" type_identifier (function_declarator "FUN_002d4e80(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" { (if_statement "if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4)" ( (binary_expression "*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4" (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_put_004338e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" { (labeled_statement "std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();" statement_identifier (ERROR "::num_put<char,std::ostreambuf_iterator<char,std:" : : (comma_expression "num_put<char,std" (binary_expression "num_put<char" identifier < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) :) : (expression_statement "char_traits<char>>>::_M_insert_int<long>();" (binary_expression "char_traits<char>>>::_M_insert_int<long>()" (binary_expression "char_traits<char>>>::_M_insert_int<long" (binary_expression "char_traits<char>>>::_M_insert_int" identifier < (binary_expression "char>>>::_M_insert_int" identifier >> (ERROR ">::" > : :) identifier)) < identifier) > (parenthesized_expression "()" ( identifier ))) ;)) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0xc))();" (call_expression "(**(code **)(*param_2 + 0xc))()" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> >\n   >::put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const\n    */\n\nundefined4\nstd::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::put\n          (undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    _M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}\n\n" comment (declaration "undefined4\nstd::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::put\n          (undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    _M_insert_int<long>();" type_identifier (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "std::char_traits<char>>>::put\n          (undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {" identifier : : identifier < primitive_type >> > : : (function_declarator "put\n          (undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4)" (function_declarator "put\n          (undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (ERROR "{\n  if" { if) (parameter_list "(*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4)" ( (parameter_declaration "*(code **)(*param_2 + 0xc) == (code *)" type_identifier (abstract_pointer_declarator "*(code **)(*param_2 + 0xc) == (code *)" * (abstract_function_declarator "(code **)(*param_2 + 0xc) == (code *)" (abstract_function_declarator "(code **)(*param_2 + 0xc)" (abstract_function_declarator "(code **)" (parameter_list "(code **)" ( (parameter_declaration "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ))) (parameter_list "(*param_2 + 0xc)" ( (ERROR "*" *) (parameter_declaration "param_2" type_identifier) (ERROR "+ 0xc" + number_literal) ))) (ERROR "==" ==) (parameter_list "(code *)" ( (parameter_declaration "code *" type_identifier (abstract_pointer_declarator "*" *)) ))))) (ERROR "PTR_do_put_004338e4" identifier) ))) {) identifier (ERROR "<long>()" < long > ( )) ;) (return_statement "return param_1;" return identifier ;) (ERROR "}" }) (expression_statement "(**(code **)(*param_2 + 0xc))();" (call_expression "(**(code **)(*param_2 + 0xc))()" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}\n\n" (function_definition "undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" type_identifier (function_declarator "FUN_002d4e80(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" { (if_statement "if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4)" ( (binary_expression "*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4" (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_put_004338e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" { (labeled_statement "std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();" statement_identifier (ERROR "::num_put<char,std::ostreambuf_iterator<char,std:" : : (comma_expression "num_put<char,std" (binary_expression "num_put<char" identifier < identifier) , identifier) : : (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" identifier < identifier) , identifier) :) : (expression_statement "char_traits<char>>>::_M_insert_int<long>();" (binary_expression "char_traits<char>>>::_M_insert_int<long>()" (binary_expression "char_traits<char>>>::_M_insert_int<long" (binary_expression "char_traits<char>>>::_M_insert_int" identifier < (binary_expression "char>>>::_M_insert_int" identifier >> (ERROR ">::" > : :) identifier)) < identifier) > (parenthesized_expression "()" ( identifier ))) ;)) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0xc))();" (call_expression "(**(code **)(*param_2 + 0xc))()" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (labeled_statement statement_identifier (ERROR : : (comma_expression (binary_expression IDENT < IDENT) , IDENT) : : (comma_expression (binary_expression IDENT < IDENT) , IDENT) :) : (expression_statement (binary_expression (binary_expression (binary_expression IDENT < (binary_expression IDENT >> (ERROR > : :) IDENT)) < IDENT) > (parenthesized_expression ( IDENT ))) ;)) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_002d4e80(undefined4 param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" (type_identifier "undefined4") (function_declarator "FUN_002d4e80(undefined4 param_1,int *param_2)" (identifier "FUN_002d4e80") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0xc))();\n  return param_1;\n}" ({ "{") (if_statement "if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4)" (( "(") (binary_expression "*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4" (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")")))) (== "==") (cast_expression "(code *)PTR_do_put_004338e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_put_004338e4"))) () ")")) (compound_statement "{\n    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();\n    return param_1;\n  }" ({ "{") (labeled_statement "std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();" (statement_identifier "std") (ERROR "::num_put<char,std::ostreambuf_iterator<char,std:" (: ":") (: ":") (comma_expression "num_put<char,std" (binary_expression "num_put<char" (identifier "num_put") (< "<") (identifier "char")) (, ",") (identifier "std")) (: ":") (: ":") (comma_expression "ostreambuf_iterator<char,std" (binary_expression "ostreambuf_iterator<char" (identifier "ostreambuf_iterator") (< "<") (identifier "char")) (, ",") (identifier "std")) (: ":")) (: ":") (expression_statement "char_traits<char>>>::_M_insert_int<long>();" (binary_expression "char_traits<char>>>::_M_insert_int<long>()" (binary_expression "char_traits<char>>>::_M_insert_int<long" (binary_expression "char_traits<char>>>::_M_insert_int" (identifier "char_traits") (< "<") (binary_expression "char>>>::_M_insert_int" (identifier "char") (>> ">>") (ERROR ">::" (> ">") (: ":") (: ":")) (identifier "_M_insert_int"))) (< "<") (identifier "long")) (> ">") (parenthesized_expression "()" (( "(") (identifier "") () ")"))) (; ";"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0xc))();" (call_expression "(**(code **)(*param_2 + 0xc))()" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" (( "(") (pointer_expression "**(code **)(*param_2 + 0xc)" (* "*") (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::num_put<char, std::ostreambuf_iterator<char, std::char_traits<char> >
   >::put(std::ostreambuf_iterator<char, std::char_traits<char> >, std::ios_base&, char, long) const
    */

type_1
std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::put
          (type_1 param_1,int *param_2)

{
  if (*(type_2 **)(*param_2 + 0xc) == (type_2 *)PTR_do_put_004338e4) {
    _M_insert_int<long>();
    return param_1;
  }
  (**(type_2 **)(*param_2 + 0xc))();
  return param_1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (ERROR (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) (expression_statement (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (identifier) (ERROR) right: (identifier))) right: (identifier)) right: (parenthesized_expression (MISSING identifier))))) (return_statement (identifier)))) (expression_statement (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: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,int *param_2)

{
  if (*(code **)(*param_2 + 0xc) == (code *)PTR_do_put_004338e4) {
    std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_M_insert_int<long>();
    return param_1;
  }
  (**(code **)(*param_2 + 0xc))();
  return param_1;
}

