
/* std::__codecvt_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t
   const*&, char*, char*, char*&) const */

undefined4 __thiscall
std::__codecvt_utf16_base<wchar_t>::do_out
          (__codecvt_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,
          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)

{
  undefined4 uVar1;
  undefined4 uVar2;
  bool bVar3;
  undefined4 uVar4;
  char *local_1c;
  char *local_18;
  wchar_t *local_14;
  wchar_t *local_10;
  
  uVar1 = *(undefined4 *)(this + 0x10);
  uVar2 = *(undefined4 *)(this + 0xc);
  local_1c = param_5;
  local_18 = param_6;
  local_14 = param_2;
  local_10 = param_3;
  bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);
  uVar4 = 1;
  if (bVar3) {
    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);
  }
  *param_4 = local_14;
  *param_7 = local_1c;
  return uVar4;
}



undefined4
FUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)

{
  undefined4 uVar1;
  char cVar2;
  undefined4 uVar3;
  
  uVar1 = *(undefined4 *)(param_1 + 0x10);
  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);
  uVar3 = 1;
  if (cVar2 != '\0') {
    uVar3 = FUN_002cfe70(uVar1);
  }
  *param_5 = param_3;
  *param_8 = param_6;
  return uVar3;
}


PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x10
MOV EDX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x20]
MOV EBX,ESP
MOV ESI,dword ptr [EAX + 0x10]
MOV EDI,dword ptr [EAX + 0xc]
MOV dword ptr [ESP],EDX
MOV EAX,EBX
MOV EDX,dword ptr [ESP + 0x38]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x8],EDX
MOV EDX,dword ptr [ESP + 0x2c]
MOV dword ptr [ESP + 0xc],EDX
MOV EDX,ESI
CALL 0x002cf670
MOV EDX,0x1
TEST AL,AL
JZ 0x002cff94
LEA EAX,[ESP + 0x8]
PUSH ESI
MOV EDX,EBX
MOV ECX,EDI
CALL 0x002cfe70
MOV EDX,EAX
POP EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],ECX
MOV EAX,dword ptr [ESP + 0x3c]
MOV ECX,dword ptr [ESP]
MOV dword ptr [EAX],ECX
ADD ESP,0x10
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
RET
(translation_unit "undefined4\nFUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}\n\n" (function_definition "undefined4\nFUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(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) ))))) ;) (expression_statement "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);" (assignment_expression "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4)" identifier = (call_expression "FUN_002cf670(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = FUN_002cfe70(uVar1);\n  }" { (expression_statement "uVar3 = FUN_002cfe70(uVar1);" (assignment_expression "uVar3 = FUN_002cfe70(uVar1)" identifier = (call_expression "FUN_002cfe70(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) })) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* std::__codecvt_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t\n   const*&, char*, char*, char*&) const */\n\nundefined4 __thiscall\nstd::__codecvt_utf16_base<wchar_t>::do_out\n          (__codecvt_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  char *local_1c;\n  char *local_18;\n  wchar_t *local_14;\n  wchar_t *local_10;\n  \n  uVar1 = *(undefined4 *)(this + 0x10);\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_1c = param_5;\n  local_18 = param_6;\n  local_14 = param_2;\n  local_10 = param_3;\n  bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);\n  uVar4 = 1;\n  if (bVar3) {\n    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);\n  }\n  *param_4 = local_14;\n  *param_7 = local_1c;\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 __thiscall\nstd::__codecvt_utf16_base<wchar_t>::do_out\n          (__codecvt_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  char *local_1c;\n  char *local_18;\n  wchar_t *local_14;\n  wchar_t *local_10;\n  \n  uVar1 = *(undefined4 *)(this + 0x10);\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_1c = param_5;\n  local_18 = param_6;\n  local_14 = param_2;\n  local_10 = param_3;\n  bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);\n  uVar4 = 1;\n  if (bVar3) {\n    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);\n  }\n  *param_4 = local_14;\n  *param_7 = local_1c;\n  return uVar4;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__codecvt_utf16_base<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "do_out\n          (__codecvt_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" identifier (parameter_list "(__codecvt_utf16_base<wchar_t> *this,__mbstate_t *param_1,wchar_t *param_2,\n          wchar_t *param_3,wchar_t **param_4,char *param_5,char *param_6,char **param_7)" ( (parameter_declaration "__codecvt_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 "wchar_t *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "wchar_t *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "wchar_t **param_4" type_identifier (pointer_declarator "**param_4" * (pointer_declarator "*param_4" * identifier))) , (parameter_declaration "char *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) , (parameter_declaration "char **param_7" primitive_type (pointer_declarator "**param_7" * (pointer_declarator "*param_7" * identifier))) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  bool bVar3;\n  undefined4 uVar4;\n  char *local_1c;\n  char *local_18;\n  wchar_t *local_14;\n  wchar_t *local_10;\n  \n  uVar1 = *(undefined4 *)(this + 0x10);\n  uVar2 = *(undefined4 *)(this + 0xc);\n  local_1c = param_5;\n  local_18 = param_6;\n  local_14 = param_2;\n  local_10 = param_3;\n  bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);\n  uVar4 = 1;\n  if (bVar3) {\n    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);\n  }\n  *param_4 = local_14;\n  *param_7 = local_1c;\n  return uVar4;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "bool bVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *local_1c;" primitive_type (pointer_declarator "*local_1c" * identifier) ;) (declaration "char *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "wchar_t *local_14;" type_identifier (pointer_declarator "*local_14" * identifier) ;) (declaration "wchar_t *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "uVar1 = *(undefined4 *)(this + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(this + 0x10)" 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) ))))) ;) (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) ))))) ;) (expression_statement "local_1c = param_5;" (assignment_expression "local_1c = param_5" identifier = identifier) ;) (expression_statement "local_18 = param_6;" (assignment_expression "local_18 = param_6" identifier = identifier) ;) (expression_statement "local_14 = param_2;" (assignment_expression "local_14 = param_2" identifier = identifier) ;) (expression_statement "local_10 = param_3;" (assignment_expression "local_10 = param_3" identifier = identifier) ;) (expression_statement "bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);" (binary_expression "bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1)" (binary_expression "bVar3 = (anonymous_namespace)::write_utf16_bom<false" (assignment_expression "bVar3 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) (ERROR "::write_utf16_bom" : : identifier) < false) > (parenthesized_expression "(&local_1c,uVar1)" ( (comma_expression "&local_1c,uVar1" (pointer_expression "&local_1c" & identifier) , identifier) ))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (if_statement "if (bVar3) {\n    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);\n  }" if (parenthesized_expression "(bVar3)" ( identifier )) (compound_statement "{\n    uVar4 = (anonymous_namespace)::ucs4_out(&local_14,&local_1c,uVar2,uVar1);\n  }" { (ERROR "uVar4 = (anonymous_namespace)::" (assignment_expression "uVar4 = (anonymous_namespace)" identifier = (parenthesized_expression "(anonymous_namespace)" ( identifier ))) : :) (expression_statement "ucs4_out(&local_14,&local_1c,uVar2,uVar1);" (call_expression "ucs4_out(&local_14,&local_1c,uVar2,uVar1)" identifier (argument_list "(&local_14,&local_1c,uVar2,uVar1)" ( (pointer_expression "&local_14" & identifier) , (pointer_expression "&local_1c" & identifier) , identifier , identifier ))) ;) })) (expression_statement "*param_4 = local_14;" (assignment_expression "*param_4 = local_14" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "*param_7 = local_1c;" (assignment_expression "*param_7 = local_1c" (pointer_expression "*param_7" * identifier) = identifier) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "undefined4\nFUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}\n\n" (function_definition "undefined4\nFUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" type_identifier (function_declarator "FUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(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) ))))) ;) (expression_statement "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);" (assignment_expression "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4)" identifier = (call_expression "FUN_002cf670(param_6,param_7,param_3,param_4)" identifier (argument_list "(param_6,param_7,param_3,param_4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar3 = FUN_002cfe70(uVar1);\n  }" { (expression_statement "uVar3 = FUN_002cfe70(uVar1);" (assignment_expression "uVar3 = FUN_002cfe70(uVar1)" identifier = (call_expression "FUN_002cfe70(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) })) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" * identifier) = identifier) ;) (return_statement "return uVar3;" return 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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 , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4\nFUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)\n\n{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_002cff40(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" (identifier "FUN_002cff40") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 *param_8" (type_identifier "undefined4") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  char cVar2;\n  undefined4 uVar3;\n  \n  uVar1 = *(undefined4 *)(param_1 + 0x10);\n  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);\n  uVar3 = 1;\n  if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }\n  *param_5 = param_3;\n  *param_8 = param_6;\n  return uVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x10)" (identifier "uVar1") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);" (assignment_expression "cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4)" (identifier "cVar2") (= "=") (call_expression "FUN_002cf670(param_6,param_7,param_3,param_4)" (identifier "FUN_002cf670") (argument_list "(param_6,param_7,param_3,param_4)" (( "(") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (cVar2 != '\0') {\n    uVar3 = FUN_002cfe70(uVar1);\n  }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar3 = FUN_002cfe70(uVar1);\n  }" ({ "{") (expression_statement "uVar3 = FUN_002cfe70(uVar1);" (assignment_expression "uVar3 = FUN_002cfe70(uVar1)" (identifier "uVar3") (= "=") (call_expression "FUN_002cfe70(uVar1)" (identifier "FUN_002cfe70") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (} "}"))) (expression_statement "*param_5 = param_3;" (assignment_expression "*param_5 = param_3" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*param_8 = param_6;" (assignment_expression "*param_8 = param_6" (pointer_expression "*param_8" (* "*") (identifier "param_8")) (= "=") (identifier "param_6")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* std::__codecvt_utf16_base<wchar_t>::do_out(__mbstate_t&, wchar_t const*, wchar_t const*, wchar_t
   const*&, char*, char*, char*&) const */

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

{
  type_1 uVar1;
  type_1 uVar2;
  bool bVar3;
  type_1 uVar4;
  char *local_1c;
  char *local_18;
  type_4 *local_14;
  type_4 *local_10;
  
  uVar1 = *(type_1 *)(var_1 + 0x10);
  uVar2 = *(type_1 *)(var_1 + 0xc);
  local_1c = param_5;
  local_18 = param_6;
  local_14 = param_2;
  local_10 = param_3;
  bVar3 = (anonymous_namespace)::write_utf16_bom<false>(&local_1c,uVar1);
  uVar4 = 1;
  if (bVar3) {
    uVar4 = (anonymous_namespace)::var_2(&local_14,&local_1c,uVar2,uVar1);
  }
  *param_4 = local_14;
  *param_7 = local_1c;
  return uVar4;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (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) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

undefined4
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
            undefined4 *param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8)

{
  undefined4 uVar1;
  char cVar2;
  undefined4 uVar3;
  
  uVar1 = *(undefined4 *)(param_1 + 0x10);
  cVar2 = FUN_002cf670(param_6,param_7,param_3,param_4);
  uVar3 = 1;
  if (cVar2 != '\0') {
    uVar3 = FUN_002cfe70(uVar1);
  }
  *param_5 = param_3;
  *param_8 = param_6;
  return uVar3;
}

