
/* std::codecvt<wchar_t, char, __mbstate_t>::do_max_length() const */

undefined4 __thiscall
std::codecvt<wchar_t,char,__mbstate_t>::do_max_length(codecvt<wchar_t,char,__mbstate_t> *this)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(this + 8));
  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();
  (*(code *)PTR___uselocale_004c5b2c)(uVar1);
  return uVar2;
}



undefined4 FUN_003e767c(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));
  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();
  (*(code *)PTR___uselocale_004c5b2c)(uVar1);
  return uVar2;
}


lui gp,0xe
addiu gp,gp,0x1bc4
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x3714(gp)
lw a0,0x8(a0)
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x355c(gp)
jalr t9
_or s0,v0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x3714(gp)
jalr t9
_or s0,v0,zero
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_003e767c(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_003e767c(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_003e767c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();" (assignment_expression "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" identifier = (call_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" (parenthesized_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)" ( (pointer_expression "*(code *)PTR___ctype_get_mb_cur_max_004c5ce4" * (cast_expression "(code *)PTR___ctype_get_mb_cur_max_004c5ce4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar1);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar1)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* std::codecvt<wchar_t, char, __mbstate_t>::do_max_length() const */\n\nundefined4 __thiscall\nstd::codecvt<wchar_t,char,__mbstate_t>::do_max_length(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(this + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}\n\n" comment (declaration "undefined4 __thiscall\nstd::codecvt<wchar_t,char,__mbstate_t>::do_max_length(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{\n  undefined4 uVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::codecvt<" identifier : : identifier <) identifier , identifier , (ERROR "__mbstate_t>::do_max_length(codecvt<wchar_t,char,__mbstate_t> *this)\n\n{\n  undefined4" identifier > : : (function_declarator "do_max_length(codecvt<wchar_t,char,__mbstate_t> *this)" identifier (parameter_list "(codecvt<wchar_t,char,__mbstate_t> *this)" ( (parameter_declaration "codecvt<wchar_t" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "char" primitive_type) , (parameter_declaration "__mbstate_t> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) ))) { identifier) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(this + 8));" (assignment_expression "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(this + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(this + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(this + 8))" ( (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();" (assignment_expression "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" identifier = (call_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" (parenthesized_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)" ( (pointer_expression "*(code *)PTR___ctype_get_mb_cur_max_004c5ce4" * (cast_expression "(code *)PTR___ctype_get_mb_cur_max_004c5ce4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar1);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar1)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 FUN_003e767c(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_003e767c(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" type_identifier (function_declarator "FUN_003e767c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();" (assignment_expression "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" identifier = (call_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" (parenthesized_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)" ( (pointer_expression "*(code *)PTR___ctype_get_mb_cur_max_004c5ce4" * (cast_expression "(code *)PTR___ctype_get_mb_cur_max_004c5ce4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar1);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar1)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" ( (pointer_expression "*(code *)PTR___uselocale_004c5b2c" * (cast_expression "(code *)PTR___uselocale_004c5b2c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_003e767c(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_003e767c(int param_1)" (identifier "FUN_003e767c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));\n  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();\n  (*(code *)PTR___uselocale_004c5b2c)(uVar1);\n  return uVar2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8))" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" (( "(") (pointer_expression "*(code *)PTR___uselocale_004c5b2c" (* "*") (cast_expression "(code *)PTR___uselocale_004c5b2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___uselocale_004c5b2c"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();" (assignment_expression "uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)()" (parenthesized_expression "(*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)" (( "(") (pointer_expression "*(code *)PTR___ctype_get_mb_cur_max_004c5ce4" (* "*") (cast_expression "(code *)PTR___ctype_get_mb_cur_max_004c5ce4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_get_mb_cur_max_004c5ce4"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR___uselocale_004c5b2c)(uVar1);" (call_expression "(*(code *)PTR___uselocale_004c5b2c)(uVar1)" (parenthesized_expression "(*(code *)PTR___uselocale_004c5b2c)" (( "(") (pointer_expression "*(code *)PTR___uselocale_004c5b2c" (* "*") (cast_expression "(code *)PTR___uselocale_004c5b2c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___uselocale_004c5b2c"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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 (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (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 (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  
  uVar1 = (*(code *)PTR___uselocale_004c5b2c)(*(undefined4 *)(param_1 + 8));
  uVar2 = (*(code *)PTR___ctype_get_mb_cur_max_004c5ce4)();
  (*(code *)PTR___uselocale_004c5b2c)(uVar1);
  return uVar2;
}

