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

long __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
          ,ulong param_4)

{
  long lVar1;
  
  lVar1 = (anonymous_namespace)::utf16_span(param_2,param_3,param_4,0x10ffff,0);
  return lVar1 - (long)param_2;
}



long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,
                 undefined8 param_5)

{
  long lVar1;
  
  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);
  return lVar1 - param_3;
}


PUSH RBX
MOV RBX,RDX
MOV RSI,RCX
MOV RDX,R8
MOV RDI,RBX
XOR R8D,R8D
MOV ECX,0x10ffff
CALL 0x002f6690
SUB RAX,RBX
POP RBX
RET
(translation_unit "long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}\n\n" (function_definition "long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);" (assignment_expression "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" identifier = (call_expression "FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" identifier (argument_list "(param_3,param_4,param_5,0x10ffff,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) (return_statement "return lVar1 - param_3;" return (binary_expression "lVar1 - param_3" identifier - identifier) ;) })))
(translation_unit "/* std::codecvt<char16_t, char, __mbstate_t>::do_length(__mbstate_t&, char const*, char const*,\n   unsigned long) const */\n\nlong __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          ,ulong param_4)\n\n{\n  long lVar1;\n  \n  lVar1 = (anonymous_namespace)::utf16_span(param_2,param_3,param_4,0x10ffff,0);\n  return lVar1 - (long)param_2;\n}\n\n" comment (declaration "long __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          ,ulong param_4)\n\n{\n  long lVar1;" (sized_type_specifier "long" long) (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          ,ulong param_4)\n\n{\n  long" (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          ,ulong 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          ,ulong 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 "ulong param_4" type_identifier identifier) ))) { long) identifier ;) (ERROR "lVar1 = (anonymous_namespace)::" (assignment_expression "lVar1 = (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 lVar1 - (long)param_2;" return (binary_expression "lVar1 - (long)param_2" identifier - (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (ERROR "}" }))
(translation_unit "long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}\n\n" (function_definition "long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);" (assignment_expression "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" identifier = (call_expression "FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" identifier (argument_list "(param_3,param_4,param_5,0x10ffff,0)" ( identifier , identifier , identifier , number_literal , number_literal )))) ;) (return_statement "return lVar1 - param_3;" return (binary_expression "lVar1 - param_3" identifier - identifier) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT , LIT )))) ;) (return_statement return (binary_expression IDENT - IDENT) ;) })))
(function_definition "long FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_002f6750(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" (identifier "FUN_002f6750") (parameter_list "(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,\n                 undefined8 param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);\n  return lVar1 - param_3;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);" (assignment_expression "lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" (identifier "lVar1") (= "=") (call_expression "FUN_002f6690(param_3,param_4,param_5,0x10ffff,0)" (identifier "FUN_002f6690") (argument_list "(param_3,param_4,param_5,0x10ffff,0)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (number_literal "0x10ffff") (, ",") (number_literal "0") () ")")))) (; ";")) (return_statement "return lVar1 - param_3;" (return "return") (binary_expression "lVar1 - param_3" (identifier "lVar1") (- "-") (identifier "param_3")) (; ";")) (} "}")))

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

long __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
          ,ulong param_4)

{
  long var_2;
  
  var_2 = (anonymous_namespace)::var_1(param_2,param_3,param_4,0x10ffff,0);
  return var_2 - (long)param_2;
}


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

long MASKED(undefined8 param_1,undefined8 param_2,long param_3,undefined8 param_4,
                 undefined8 param_5)

{
  long lVar1;
  
  lVar1 = FUN_002f6690(param_3,param_4,param_5,0x10ffff,0);
  return lVar1 - param_3;
}

