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

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

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = 0x10ffff;
  iVar1 = (anonymous_namespace)::utf16_span(param_2,param_3,param_4,0x10ffff,0);
  return CONCAT44(uVar2,iVar1 - (int)param_2);
}



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

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = 0x10ffff;
  iVar1 = FUN_0026f020(0x10ffff,0);
  return CONCAT44(uVar2,iVar1 - param_3);
}


PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
PUSH 0x0
PUSH 0x10ffff
MOV ECX,dword ptr [ESP + 0x20]
MOV EAX,EBX
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x0026f020
POP EDX
POP ECX
SUB EAX,EBX
POP EBX
RET
(translation_unit "undefined8 FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}\n\n" (function_definition "undefined8 FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" type_identifier (function_declarator "FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier 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 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x10ffff;" (assignment_expression "uVar2 = 0x10ffff" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0026f020(0x10ffff,0);" (assignment_expression "iVar1 = FUN_0026f020(0x10ffff,0)" identifier = (call_expression "FUN_0026f020(0x10ffff,0)" identifier (argument_list "(0x10ffff,0)" ( number_literal , 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<char16_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,\n   unsigned int) const */\n\nundefined8 __thiscall\nstd::codecvt<char16_t,char,__mbstate_t>::do_length\n          (codecvt<char16_t,char,__mbstate_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 = 0x10ffff;\n  iVar1 = (anonymous_namespace)::utf16_span(param_2,param_3,param_4,0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - (int)param_2);\n}\n\n" comment (declaration "undefined8 __thiscall\nstd::codecvt<char16_t,char,__mbstate_t>::do_length\n          (codecvt<char16_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)\n\n{\n  int iVar1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::" identifier : :) identifier (ERROR "<char16_t" < primitive_type) , identifier , (ERROR "__mbstate_t>::do_length\n          (codecvt<char16_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)\n\n{\n  int" (function_declarator "__mbstate_t>::do_length\n          (codecvt<char16_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)" identifier (ERROR ">::do_length" > : : identifier) (parameter_list "(codecvt<char16_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3\n          ,uint param_4)" ( (ERROR "codecvt<" identifier <) (parameter_declaration "char16_t" primitive_type) , (parameter_declaration "char" primitive_type) , (parameter_declaration "__mbstate_t> *this" type_identifier (ERROR ">" >) (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) ))) { primitive_type) identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x10ffff;" (assignment_expression "uVar2 = 0x10ffff" identifier = number_literal) ;) (ERROR "iVar1 = (anonymous_namespace)::" (assignment_expression "iVar1 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "utf16_span(param_2,param_3,param_4,0x10ffff,0);" (call_expression "utf16_span(param_2,param_3,param_4,0x10ffff,0)" identifier (argument_list "(param_2,param_3,param_4,0x10ffff,0)" ( identifier , identifier , identifier , number_literal , 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)) ))) ;) (ERROR "}" }))
(translation_unit "undefined8 FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}\n\n" (function_definition "undefined8 FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" type_identifier (function_declarator "FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier 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 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = 0x10ffff;" (assignment_expression "uVar2 = 0x10ffff" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0026f020(0x10ffff,0);" (assignment_expression "iVar1 = FUN_0026f020(0x10ffff,0)" identifier = (call_expression "FUN_0026f020(0x10ffff,0)" identifier (argument_list "(0x10ffff,0)" ( number_literal , 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 = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (return_statement return (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) ))) ;) })))
(function_definition "undefined8 FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\n  return CONCAT44(uVar2,iVar1 - param_3);\n}" (type_identifier "undefined8") (function_declarator "FUN_0026f0d0(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_0026f0d0") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (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 = 0x10ffff;\n  iVar1 = FUN_0026f020(0x10ffff,0);\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 = 0x10ffff;" (assignment_expression "uVar2 = 0x10ffff" (identifier "uVar2") (= "=") (number_literal "0x10ffff")) (; ";")) (expression_statement "iVar1 = FUN_0026f020(0x10ffff,0);" (assignment_expression "iVar1 = FUN_0026f020(0x10ffff,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0026f020(0x10ffff,0)" (identifier "FUN_0026f020") (argument_list "(0x10ffff,0)" (( "(") (number_literal "0x10ffff") (, ",") (number_literal "0") () ")")))) (; ";")) (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<char16_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,
   unsigned int) const */

type_1 __thiscall
std::codecvt<char16_t,char,__mbstate_t>::do_length
          (codecvt<char16_t,char,__mbstate_t> *this,__mbstate_t *param_1,char *param_2,char *param_3
          ,uint param_4)

{
  int var_3;
  type_2 uVar2;
  
  uVar2 = 0x10ffff;
  var_3 = (anonymous_namespace)::var_1(param_2,param_3,param_4,0x10ffff,0);
  return var_2(uVar2,var_3 - (int)param_2);
}


(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: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (return_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))))))

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

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = 0x10ffff;
  iVar1 = FUN_0026f020(0x10ffff,0);
  return CONCAT44(uVar2,iVar1 - param_3);
}

