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

long __thiscall
std::__codecvt_utf8_base<char32_t>::do_length
          (__codecvt_utf8_base<char32_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,
          ulong param_4)

{
  long lVar1;
  
  lVar1 = (anonymous_namespace)::ucs4_span
                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),
                     *(undefined4 *)(this + 0x18));
  return lVar1 - (long)param_2;
}



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

{
  long lVar1;
  
  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),
                       *(undefined4 *)(param_1 + 0x18));
  return lVar1 - param_3;
}


PUSH RBX
MOV RSI,RCX
MOV RBX,RDX
MOV RCX,qword ptr [RDI + 0x10]
MOV RDX,R8
MOV R8D,dword ptr [RDI + 0x18]
MOV RDI,RBX
CALL 0x003b8790
SUB RAX,RBX
POP RBX
RET
(translation_unit "long FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}\n\n" (function_definition "long FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));" (assignment_expression "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" ( identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (return_statement "return lVar1 - param_3;" return (binary_expression "lVar1 - param_3" identifier - identifier) ;) })))
(translation_unit "/* std::__codecvt_utf8_base<char32_t>::do_length(__mbstate_t&, char const*, char const*, unsigned\n   long) const */\n\nlong __thiscall\nstd::__codecvt_utf8_base<char32_t>::do_length\n          (__codecvt_utf8_base<char32_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)::ucs4_span\n                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18));\n  return lVar1 - (long)param_2;\n}\n\n" comment (function_definition "long __thiscall\nstd::__codecvt_utf8_base<char32_t>::do_length\n          (__codecvt_utf8_base<char32_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)::ucs4_span\n                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18));\n  return lVar1 - (long)param_2;\n}" (sized_type_specifier "long" long) (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf8_base<char32_t>::" identifier : : identifier < primitive_type > : :) (function_declarator "do_length\n          (__codecvt_utf8_base<char32_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          ulong param_4)" identifier (parameter_list "(__codecvt_utf8_base<char32_t> *this,__mbstate_t *param_1,char *param_2,char *param_3,\n          ulong param_4)" ( (parameter_declaration "__codecvt_utf8_base<char32_t> *this" type_identifier (ERROR "<char32_t>" < primitive_type >) (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) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = (anonymous_namespace)::ucs4_span\n                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18));\n  return lVar1 - (long)param_2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (ERROR "lVar1 = (anonymous_namespace)::" (assignment_expression "lVar1 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "ucs4_span\n                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18));" (call_expression "ucs4_span\n                    (param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18))" identifier (argument_list "(param_2,param_3,param_4,*(undefined8 *)(this + 0x10),\n                     *(undefined4 *)(this + 0x18))" ( identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(this + 0x18)" * (cast_expression "(undefined4 *)(this + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + 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)) ;) })))
(translation_unit "long FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}\n\n" (function_definition "long FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" identifier (parameter_list "(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) 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_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));" (assignment_expression "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" ( identifier , identifier , identifier , (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + 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 (sized_type_specifier long) 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 , (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 "long FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_003b8820(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" (identifier "FUN_003b8820") (parameter_list "(long param_1,undefined8 param_2,long param_3,undefined8 param_4,undefined8 param_5\n                 )" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (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_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));\n  return lVar1 - param_3;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18));" (assignment_expression "lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" (identifier "lVar1") (= "=") (call_expression "FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" (identifier "FUN_003b8790") (argument_list "(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),\n                       *(undefined4 *)(param_1 + 0x18))" (( "(") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (return_statement "return lVar1 - param_3;" (return "return") (binary_expression "lVar1 - param_3" (identifier "lVar1") (- "-") (identifier "param_3")) (; ";")) (} "}")))

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

long __thiscall
std::type_1<char32_t>::function_1
          (type_1<char32_t> *var_2,type_2 *param_1,char *param_2,char *param_3,
          type_3 param_4)

{
  long var_3;
  
  var_3 = (anonymous_namespace)::var_1
                    (param_2,param_3,param_4,*(type_4 *)(var_2 + 0x10),
                     *(type_5 *)(var_2 + 0x18));
  return var_3 - (long)param_2;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) 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) (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))))))

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

{
  long lVar1;
  
  lVar1 = FUN_003b8790(param_3,param_4,param_5,*(undefined8 *)(param_1 + 0x10),
                       *(undefined4 *)(param_1 + 0x18));
  return lVar1 - param_3;
}

