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

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

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



undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = *(undefined4 *)(param_1 + 0xc);
  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));
  return CONCAT44(uVar2,iVar1 - param_3);
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EBX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX + 0x10]
PUSH dword ptr [EAX + 0xc]
MOV EAX,EBX
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x00208dc0
POP EDX
POP ECX
SUB EAX,EBX
POP EBX
RET
(translation_unit "undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}\n\n" (function_definition "undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" type_identifier (function_declarator "FUN_00208e90(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" 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) ))))) ;) (expression_statement "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(uVar2,*(undefined4 *)(param_1 + 0x10))" ( identifier , (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 CONCAT44(uVar2,iVar1 - param_3);" return (call_expression "CONCAT44(uVar2,iVar1 - param_3)" identifier (argument_list "(uVar2,iVar1 - param_3)" ( identifier , (binary_expression "iVar1 - param_3" identifier - identifier) ))) ;) })))
(translation_unit "/* std::__codecvt_utf8_base<wchar_t>::do_length(__mbstate_t&, char const*, char const*, unsigned\n   int) const */\n\nundefined8 __thiscall\nstd::__codecvt_utf8_base<wchar_t>::do_length\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(this + 0xc);\n  iVar1 = (anonymous_namespace)::ucs4_span\n                    (param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10));\n  return CONCAT44(uVar2,iVar1 - (int)param_2);\n}\n\n" comment (function_definition "undefined8 __thiscall\nstd::__codecvt_utf8_base<wchar_t>::do_length\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(this + 0xc);\n  iVar1 = (anonymous_namespace)::ucs4_span\n                    (param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10));\n  return CONCAT44(uVar2,iVar1 - (int)param_2);\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_base<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_length\n          (__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" identifier (parameter_list "(__codecvt_utf8_base<wchar_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          uint param_4)" ( (parameter_declaration "__codecvt_utf8_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  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(this + 0xc);\n  iVar1 = (anonymous_namespace)::ucs4_span\n                    (param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10));\n  return CONCAT44(uVar2,iVar1 - (int)param_2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *(undefined4 *)(this + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(this + 0xc)" 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) ))))) ;) (ERROR "iVar1 = (anonymous_namespace)::" (assignment_expression "iVar1 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "ucs4_span\n                    (param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10));" (call_expression "ucs4_span\n                    (param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10))" identifier (argument_list "(param_2,param_3,param_4,uVar2,*(undefined4 *)(this + 0x10))" ( identifier , identifier , identifier , identifier , (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 CONCAT44(uVar2,iVar1 - (int)param_2);" return (call_expression "CONCAT44(uVar2,iVar1 - (int)param_2)" identifier (argument_list "(uVar2,iVar1 - (int)param_2)" ( identifier , (binary_expression "iVar1 - (int)param_2" identifier - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;) })))
(translation_unit "undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}\n\n" (function_definition "undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" type_identifier (function_declarator "FUN_00208e90(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" 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) ))))) ;) (expression_statement "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" identifier = (call_expression "FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" identifier (argument_list "(uVar2,*(undefined4 *)(param_1 + 0x10))" ( identifier , (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 CONCAT44(uVar2,iVar1 - param_3);" return (call_expression "CONCAT44(uVar2,iVar1 - param_3)" identifier (argument_list "(uVar2,iVar1 - param_3)" ( identifier , (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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) ))) ;) })))
(function_definition "undefined8 FUN_00208e90(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" (type_identifier "undefined8") (function_declarator "FUN_00208e90(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_00208e90") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *(undefined4 *)(param_1 + 0xc);\n  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0xc)" (identifier "uVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));" (assignment_expression "iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" (identifier "iVar1") (= "=") (call_expression "FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10))" (identifier "FUN_00208dc0") (argument_list "(uVar2,*(undefined4 *)(param_1 + 0x10))" (( "(") (identifier "uVar2") (, ",") (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 CONCAT44(uVar2,iVar1 - param_3);" (return "return") (call_expression "CONCAT44(uVar2,iVar1 - param_3)" (identifier "CONCAT44") (argument_list "(uVar2,iVar1 - param_3)" (( "(") (identifier "uVar2") (, ",") (binary_expression "iVar1 - param_3" (identifier "iVar1") (- "-") (identifier "param_3")) () ")"))) (; ";")) (} "}")))

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

type_1 __thiscall
std::type_2<wchar_t>::function_1
          (type_2<wchar_t> *var_1,type_3 *param_1,char *param_2,char *param_3,
          type_4 param_4)

{
  int var_4;
  type_5 uVar2;
  
  uVar2 = *(type_5 *)(var_1 + 0xc);
  var_4 = (anonymous_namespace)::var_2
                    (param_2,param_3,param_4,uVar2,*(type_5 *)(var_1 + 0x10));
  return var_3(uVar2,var_4 - (int)param_2);
}


(translation_unit (function_definition type: (type_identifier) 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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) arguments: (argument_list (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))))))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))))))

undefined8 MASKED(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = *(undefined4 *)(param_1 + 0xc);
  iVar1 = FUN_00208dc0(uVar2,*(undefined4 *)(param_1 + 0x10));
  return CONCAT44(uVar2,iVar1 - param_3);
}

