
/* std::moneypunct<wchar_t, false>::neg_format() const */

undefined4 * std::moneypunct<wchar_t,false>::neg_format(void)

{
  undefined4 *in_a0;
  int *in_a1;
  
  if (*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128) {
    *in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);
    return in_a0;
  }
  (**(code **)(*in_a1 + 0x28))();
  return in_a0;
}



undefined4 * FUN_003b0848(undefined4 *param_1,int *param_2)

{
  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {
    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);
    return param_1;
  }
  (**(code **)(*param_2 + 0x28))();
  return param_1;
}


lui gp,0x12
addiu gp,gp,-0x7608
addu gp,gp,t9
lw a3,0x0(a1)
addiu sp,sp,-0x20
lw a2,-0x6118(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw t9,0x28(a3)
bne t9,a2,0x003b0890
_or v0,a0,zero
lw v1,0x8(a1)
lw ra,0x1c(sp)
lw v1,0x3c(v1)
addiu sp,sp,0x20
swl v1,0x0(a0)
jr ra
_swr v1,0x3(a0)
jalr t9
_sw a0,0x20(sp)
lw ra,0x1c(sp)
lw v0,0x20(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 * FUN_003b0848(undefined4 *param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_003b0848(undefined4 *param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_003b0848(undefined4 *param_1,int *param_2)" * (function_declarator "FUN_003b0848(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" { (if_statement "if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128)" ( (binary_expression "*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128" (pointer_expression "*(code **)(*param_2 + 0x28)" * (cast_expression "(code **)(*param_2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_neg_format_004c3128" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" { (expression_statement "*param_1 = *(undefined4 *)(param_2[2] + 0x3c);" (assignment_expression "*param_1 = *(undefined4 *)(param_2[2] + 0x3c)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)(param_2[2] + 0x3c)" * (cast_expression "(undefined4 *)(param_2[2] + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 0x3c)" ( (binary_expression "param_2[2] + 0x3c" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x28))();" (call_expression "(**(code **)(*param_2 + 0x28))()" (parenthesized_expression "(**(code **)(*param_2 + 0x28))" ( (pointer_expression "**(code **)(*param_2 + 0x28)" * (pointer_expression "*(code **)(*param_2 + 0x28)" * (cast_expression "(code **)(*param_2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::moneypunct<wchar_t, false>::neg_format() const */\n\nundefined4 * std::moneypunct<wchar_t,false>::neg_format(void)\n\n{\n  undefined4 *in_a0;\n  int *in_a1;\n  \n  if (*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);\n    return in_a0;\n  }\n  (**(code **)(*in_a1 + 0x28))();\n  return in_a0;\n}\n\n" comment (ERROR "undefined4 * std::moneypunct<wchar_t,false>::neg_format(void)" (binary_expression "undefined4 * std::moneypunct<wchar_t,false>::neg_format(void)" (binary_expression "undefined4 * std::moneypunct<wchar_t" (binary_expression "undefined4 * std" identifier * identifier) (ERROR "::moneypunct" : : identifier) < identifier) (ERROR ",false" , false) > (ERROR "::" : :) (call_expression "neg_format(void)" identifier (argument_list "(void)" ( identifier ))))) (compound_statement "{\n  undefined4 *in_a0;\n  int *in_a1;\n  \n  if (*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);\n    return in_a0;\n  }\n  (**(code **)(*in_a1 + 0x28))();\n  return in_a0;\n}" { (declaration "undefined4 *in_a0;" type_identifier (pointer_declarator "*in_a0" * identifier) ;) (declaration "int *in_a1;" primitive_type (pointer_declarator "*in_a1" * identifier) ;) (if_statement "if (*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);\n    return in_a0;\n  }" if (parenthesized_expression "(*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128)" ( (binary_expression "*(code **)(*in_a1 + 0x28) == (code *)PTR_do_neg_format_004c3128" (pointer_expression "*(code **)(*in_a1 + 0x28)" * (cast_expression "(code **)(*in_a1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*in_a1 + 0x28)" ( (binary_expression "*in_a1 + 0x28" (pointer_expression "*in_a1" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_neg_format_004c3128" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);\n    return in_a0;\n  }" { (expression_statement "*in_a0 = *(undefined4 *)(in_a1[2] + 0x3c);" (assignment_expression "*in_a0 = *(undefined4 *)(in_a1[2] + 0x3c)" (pointer_expression "*in_a0" * identifier) = (pointer_expression "*(undefined4 *)(in_a1[2] + 0x3c)" * (cast_expression "(undefined4 *)(in_a1[2] + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a1[2] + 0x3c)" ( (binary_expression "in_a1[2] + 0x3c" (subscript_expression "in_a1[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return in_a0;" return identifier ;) })) (expression_statement "(**(code **)(*in_a1 + 0x28))();" (call_expression "(**(code **)(*in_a1 + 0x28))()" (parenthesized_expression "(**(code **)(*in_a1 + 0x28))" ( (pointer_expression "**(code **)(*in_a1 + 0x28)" * (pointer_expression "*(code **)(*in_a1 + 0x28)" * (cast_expression "(code **)(*in_a1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*in_a1 + 0x28)" ( (binary_expression "*in_a1 + 0x28" (pointer_expression "*in_a1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return in_a0;" return identifier ;) }))
(translation_unit "undefined4 * FUN_003b0848(undefined4 *param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}\n\n" (function_definition "undefined4 * FUN_003b0848(undefined4 *param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_003b0848(undefined4 *param_1,int *param_2)" * (function_declarator "FUN_003b0848(undefined4 *param_1,int *param_2)" identifier (parameter_list "(undefined4 *param_1,int *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" { (if_statement "if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" if (parenthesized_expression "(*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128)" ( (binary_expression "*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128" (pointer_expression "*(code **)(*param_2 + 0x28)" * (cast_expression "(code **)(*param_2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) )))) == (cast_expression "(code *)PTR_do_neg_format_004c3128" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" { (expression_statement "*param_1 = *(undefined4 *)(param_2[2] + 0x3c);" (assignment_expression "*param_1 = *(undefined4 *)(param_2[2] + 0x3c)" (pointer_expression "*param_1" * identifier) = (pointer_expression "*(undefined4 *)(param_2[2] + 0x3c)" * (cast_expression "(undefined4 *)(param_2[2] + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[2] + 0x3c)" ( (binary_expression "param_2[2] + 0x3c" (subscript_expression "param_2[2]" identifier [ number_literal ]) + number_literal) ))))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "(**(code **)(*param_2 + 0x28))();" (call_expression "(**(code **)(*param_2 + 0x28))()" (parenthesized_expression "(**(code **)(*param_2 + 0x28))" ( (pointer_expression "**(code **)(*param_2 + 0x28)" * (pointer_expression "*(code **)(*param_2 + 0x28)" * (cast_expression "(code **)(*param_2 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x28)" ( (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (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_003b0848(undefined4 *param_1,int *param_2)\n\n{\n  if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_003b0848(undefined4 *param_1,int *param_2)" (* "*") (function_declarator "FUN_003b0848(undefined4 *param_1,int *param_2)" (identifier "FUN_003b0848") (parameter_list "(undefined4 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (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 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }\n  (**(code **)(*param_2 + 0x28))();\n  return param_1;\n}" ({ "{") (if_statement "if (*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128) {\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128)" (( "(") (binary_expression "*(code **)(*param_2 + 0x28) == (code *)PTR_do_neg_format_004c3128" (pointer_expression "*(code **)(*param_2 + 0x28)" (* "*") (cast_expression "(code **)(*param_2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x28)" (( "(") (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x28")) () ")")))) (== "==") (cast_expression "(code *)PTR_do_neg_format_004c3128" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_neg_format_004c3128"))) () ")")) (compound_statement "{\n    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);\n    return param_1;\n  }" ({ "{") (expression_statement "*param_1 = *(undefined4 *)(param_2[2] + 0x3c);" (assignment_expression "*param_1 = *(undefined4 *)(param_2[2] + 0x3c)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*(undefined4 *)(param_2[2] + 0x3c)" (* "*") (cast_expression "(undefined4 *)(param_2[2] + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[2] + 0x3c)" (( "(") (binary_expression "param_2[2] + 0x3c" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0x28))();" (call_expression "(**(code **)(*param_2 + 0x28))()" (parenthesized_expression "(**(code **)(*param_2 + 0x28))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x28)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x28)" (* "*") (cast_expression "(code **)(*param_2 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x28)" (( "(") (binary_expression "*param_2 + 0x28" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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 (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (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 + 0x28) == (code *)PTR_do_neg_format_004c3128) {
    *param_1 = *(undefined4 *)(param_2[2] + 0x3c);
    return param_1;
  }
  (**(code **)(*param_2 + 0x28))();
  return param_1;
}

