
/* std::__codecvt_utf8_utf16_base<wchar_t>::do_length(__mbstate_t&, char const*, char const*,
   unsigned int) const */

int __thiscall
std::__codecvt_utf8_utf16_base<wchar_t>::do_length
          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3
          ,uint param_4)

{
  int iVar1;
  
  iVar1 = (anonymous_namespace)::utf16_span
                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),
                     *(undefined4 *)(this + 0x10));
  return iVar1 - (int)param_2;
}



int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)

{
  int iVar1;
  
  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),
                       *(undefined4 *)(param_1 + 0x10));
  return iVar1 - param_3;
}


lui gp,0xf
addiu gp,gp,-0x18
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x398c(gp)
lw v0,0x10(a0)
or a1,a3,zero
lw a3,0xc(a0)
sw s0,0x20(sp)
or s0,a2,zero
sw ra,0x24(sp)
addiu t9,t9,-0x6fa0
sw gp,0x18(sp)
or a0,s0,zero
sw v0,0x10(sp)
bal 0x003d9060
_lw a2,0x38(sp)
lw ra,0x24(sp)
subu v0,v0,s0
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}\n\n" (function_definition "int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" primitive_type (function_declarator "FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1 - param_3;" return (binary_expression "iVar1 - param_3" identifier - identifier) ;) })))
(translation_unit "/* std::__codecvt_utf8_utf16_base<wchar_t>::do_length(__mbstate_t&, char const*, char const*,\n   unsigned int) const */\n\nint __thiscall\nstd::__codecvt_utf8_utf16_base<wchar_t>::do_length\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (anonymous_namespace)::utf16_span\n                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10));\n  return iVar1 - (int)param_2;\n}\n\n" comment (function_definition "int __thiscall\nstd::__codecvt_utf8_utf16_base<wchar_t>::do_length\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)\n\n{\n  int iVar1;\n  \n  iVar1 = (anonymous_namespace)::utf16_span\n                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10));\n  return iVar1 - (int)param_2;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_utf16_base<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_length\n          (__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)" identifier (parameter_list "(__codecvt_utf8_utf16_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)" ( (parameter_declaration "__codecvt_utf8_utf16_base<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__mbstate_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (anonymous_namespace)::utf16_span\n                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10));\n  return iVar1 - (int)param_2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (ERROR "iVar1 = (anonymous_namespace)::" (assignment_expression "iVar1 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "utf16_span\n                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10));" (call_expression "utf16_span\n                    (param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10))" identifier (argument_list "(param_2,param_3,param_4,*(undefined4 *)(this + 0xc),\n                     *(undefined4 *)(this + 0x10))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) ))) ;) (return_statement "return iVar1 - (int)param_2;" return (binary_expression "iVar1 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}\n\n" (function_definition "int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" primitive_type (function_declarator "FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1 - param_3;" return (binary_expression "iVar1 - param_3" identifier - identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return (binary_expression IDENT - IDENT) ;) })))
(function_definition "int FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" (primitive_type "int") (function_declarator "FUN_003d9258(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" (identifier "FUN_003d9258") (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));\n  return iVar1 - param_3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" (identifier "iVar1") (= "=") (call_expression "FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" (identifier "FUN_003d9060") (argument_list "(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),\n                       *(undefined4 *)(param_1 + 0x10))" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (return_statement "return iVar1 - param_3;" (return "return") (binary_expression "iVar1 - param_3" (identifier "iVar1") (- "-") (identifier "param_3")) (; ";")) (} "}")))
(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)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (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))))) (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))))))))) (return_statement (binary_expression left: (identifier) right: (identifier))))))

int MASKED(int param_1,undefined4 param_2,int param_3,undefined4 param_4,undefined4 param_5)

{
  int iVar1;
  
  iVar1 = FUN_003d9060(param_3,param_4,param_5,*(undefined4 *)(param_1 + 0xc),
                       *(undefined4 *)(param_1 + 0x10));
  return iVar1 - param_3;
}

