
/* std::ctype<wchar_t>::ctype(__locale_struct*, unsigned int) */

void __thiscall
std::ctype<wchar_t>::ctype(ctype<wchar_t> *this,__locale_struct *param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int in_t9;
  __locale_struct *local_res4 [3];
  
  iVar1 = *(int *)(in_t9 + 0x13b61c);
  *(uint *)(this + 4) = (uint)(param_2 != 0);
  *(int *)this = iVar1 + 8;
  local_res4[0] = param_1;
  uVar2 = locale::facet::_S_clone_c_locale(local_res4);
  *(undefined4 *)(this + 8) = uVar2;
  this[0xc] = (ctype<wchar_t>)0x0;
  _M_initialize_ctype(this);
  return;
}



void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  int in_t9;
  __locale_struct *local_res4 [3];
  
  iVar1 = *(int *)(in_t9 + 0x13b61c);
  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);
  *(int *)param_1 = iVar1 + 8;
  local_res4[0] = param_2;
  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);
  *(undefined4 *)(param_1 + 8) = uVar2;
  param_1[0xc] = (ctype<wchar_t>)0x0;
  std::ctype<wchar_t>::_M_initialize_ctype(param_1);
  return;
}


lui gp,0x14
addiu gp,gp,-0xe58
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x3b8c(gp)
lw t9,-0x65e0(gp)
sltu a2,zero,a2
sw s0,0x18(sp)
addiu v0,v0,0x8
or s0,a0,zero
sw gp,0x10(sp)
addiu a0,sp,0x24
sw ra,0x1c(sp)
sw a1,0x24(sp)
sw a2,0x4(s0)
bal 0x0038d488
_sw v0,0x0(s0)
or a0,s0,zero
lw gp,0x10(sp)
sw v0,0x8(s0)
lw t9,-0x3b74(gp)
bal 0x0037a784
_sb zero,0xc(s0)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" identifier (parameter_list "(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" ( (parameter_declaration "ctype<wchar_t> *param_1" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__locale_struct *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_t9 + 0x13b61c);" (assignment_expression "iVar1 = *(int *)(in_t9 + 0x13b61c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x13b61c)" * (cast_expression "(int *)(in_t9 + 0x13b61c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x13b61c)" ( (binary_expression "in_t9 + 0x13b61c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_3 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*(int *)param_1 = iVar1 + 8;" (assignment_expression "*(int *)param_1 = iVar1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "local_res4[0] = param_2;" (assignment_expression "local_res4[0] = param_2" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" identifier = identifier) : :) (labeled_statement "locale::facet::_S_clone_c_locale(local_res4);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_clone_c_locale(local_res4);" statement_identifier : (ERROR ":" :) (expression_statement "_S_clone_c_locale(local_res4);" (call_expression "_S_clone_c_locale(local_res4)" identifier (argument_list "(local_res4)" ( identifier ))) ;))) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[0xc] = (ctype<wchar_t>)0x0;" (assignment_expression "param_1[0xc] = (ctype<wchar_t>)0x0" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) = (parenthesized_expression "(ctype<wchar_t>)0x0" ( (binary_expression "ctype<wchar_t>)0x0" (binary_expression "ctype<wchar_t" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) (labeled_statement "std::ctype<wchar_t>::_M_initialize_ctype(param_1);" statement_identifier (ERROR "::ctype<wchar_t>:" : : (binary_expression "ctype<wchar_t" identifier < identifier) > :) : (expression_statement "_M_initialize_ctype(param_1);" (call_expression "_M_initialize_ctype(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* std::ctype<wchar_t>::ctype(__locale_struct*, unsigned int) */\n\nvoid __thiscall\nstd::ctype<wchar_t>::ctype(ctype<wchar_t> *this,__locale_struct *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(int *)this = iVar1 + 8;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  this[0xc] = (ctype<wchar_t>)0x0;\n  _M_initialize_ctype(this);\n  return;\n}\n\n" comment (function_definition "void __thiscall\nstd::ctype<wchar_t>::ctype(ctype<wchar_t> *this,__locale_struct *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(int *)this = iVar1 + 8;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  this[0xc] = (ctype<wchar_t>)0x0;\n  _M_initialize_ctype(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ctype<wchar_t>::" identifier : : identifier < identifier > : :) (function_declarator "ctype(ctype<wchar_t> *this,__locale_struct *param_1,uint param_2)" identifier (parameter_list "(ctype<wchar_t> *this,__locale_struct *param_1,uint param_2)" ( (parameter_declaration "ctype<wchar_t> *this" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "__locale_struct *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(this + 4) = (uint)(param_2 != 0);\n  *(int *)this = iVar1 + 8;\n  local_res4[0] = param_1;\n  uVar2 = locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(this + 8) = uVar2;\n  this[0xc] = (ctype<wchar_t>)0x0;\n  _M_initialize_ctype(this);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_t9 + 0x13b61c);" (assignment_expression "iVar1 = *(int *)(in_t9 + 0x13b61c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x13b61c)" * (cast_expression "(int *)(in_t9 + 0x13b61c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x13b61c)" ( (binary_expression "in_t9 + 0x13b61c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(this + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(this + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (expression_statement "*(int *)this = iVar1 + 8;" (assignment_expression "*(int *)this = iVar1 + 8" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "local_res4[0] = param_1;" (assignment_expression "local_res4[0] = param_1" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "facet::_S_clone_c_locale(local_res4);" statement_identifier : (ERROR ":" :) (expression_statement "_S_clone_c_locale(local_res4);" (call_expression "_S_clone_c_locale(local_res4)" identifier (argument_list "(local_res4)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(this + 8) = uVar2;" (assignment_expression "*(undefined4 *)(this + 8) = uVar2" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "this[0xc] = (ctype<wchar_t>)0x0;" (assignment_expression "this[0xc] = (ctype<wchar_t>)0x0" (subscript_expression "this[0xc]" identifier [ number_literal ]) = (parenthesized_expression "(ctype<wchar_t>)0x0" ( (binary_expression "ctype<wchar_t>)0x0" (binary_expression "ctype<wchar_t" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) (expression_statement "_M_initialize_ctype(this);" (call_expression "_M_initialize_ctype(this)" identifier (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" identifier (parameter_list "(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" ( (parameter_declaration "ctype<wchar_t> *param_1" type_identifier (ERROR "<wchar_t>" < identifier >) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "__locale_struct *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "__locale_struct *local_res4 [3];" type_identifier (pointer_declarator "*local_res4 [3]" * (array_declarator "local_res4 [3]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = *(int *)(in_t9 + 0x13b61c);" (assignment_expression "iVar1 = *(int *)(in_t9 + 0x13b61c)" identifier = (pointer_expression "*(int *)(in_t9 + 0x13b61c)" * (cast_expression "(int *)(in_t9 + 0x13b61c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x13b61c)" ( (binary_expression "in_t9 + 0x13b61c" identifier + number_literal) ))))) ;) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_3 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )))) ;) (expression_statement "*(int *)param_1 = iVar1 + 8;" (assignment_expression "*(int *)param_1 = iVar1 + 8" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "local_res4[0] = param_2;" (assignment_expression "local_res4[0] = param_2" (subscript_expression "local_res4[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" identifier = identifier) : :) (labeled_statement "locale::facet::_S_clone_c_locale(local_res4);" statement_identifier : (ERROR ":" :) (labeled_statement "facet::_S_clone_c_locale(local_res4);" statement_identifier : (ERROR ":" :) (expression_statement "_S_clone_c_locale(local_res4);" (call_expression "_S_clone_c_locale(local_res4)" identifier (argument_list "(local_res4)" ( identifier ))) ;))) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[0xc] = (ctype<wchar_t>)0x0;" (assignment_expression "param_1[0xc] = (ctype<wchar_t>)0x0" (subscript_expression "param_1[0xc]" identifier [ number_literal ]) = (parenthesized_expression "(ctype<wchar_t>)0x0" ( (binary_expression "ctype<wchar_t>)0x0" (binary_expression "ctype<wchar_t" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) (labeled_statement "std::ctype<wchar_t>::_M_initialize_ctype(param_1);" statement_identifier (ERROR "::ctype<wchar_t>:" : : (binary_expression "ctype<wchar_t" identifier < identifier) > :) : (expression_statement "_M_initialize_ctype(param_1);" (call_expression "_M_initialize_ctype(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (ERROR < IDENT >) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (ERROR (assignment_expression IDENT = IDENT) : :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) > (ERROR )) LIT) ))) ;) (labeled_statement statement_identifier (ERROR : : (binary_expression IDENT < IDENT) > :) : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0038a098(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" (identifier "FUN_0038a098") (parameter_list "(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)" (( "(") (parameter_declaration "ctype<wchar_t> *param_1" (type_identifier "ctype") (ERROR "<wchar_t>" (< "<") (identifier "wchar_t") (> ">")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "__locale_struct *param_2" (type_identifier "__locale_struct") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  __locale_struct *local_res4 [3];\n  \n  iVar1 = *(int *)(in_t9 + 0x13b61c);\n  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);\n  *(int *)param_1 = iVar1 + 8;\n  local_res4[0] = param_2;\n  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);\n  *(undefined4 *)(param_1 + 8) = uVar2;\n  param_1[0xc] = (ctype<wchar_t>)0x0;\n  std::ctype<wchar_t>::_M_initialize_ctype(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (declaration "__locale_struct *local_res4 [3];" (type_identifier "__locale_struct") (pointer_declarator "*local_res4 [3]" (* "*") (array_declarator "local_res4 [3]" (identifier "local_res4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "iVar1 = *(int *)(in_t9 + 0x13b61c);" (assignment_expression "iVar1 = *(int *)(in_t9 + 0x13b61c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_t9 + 0x13b61c)" (* "*") (cast_expression "(int *)(in_t9 + 0x13b61c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_t9 + 0x13b61c)" (( "(") (binary_expression "in_t9 + 0x13b61c" (identifier "in_t9") (+ "+") (number_literal "0x13b61c")) () ")"))))) (; ";")) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_3 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_3 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (call_expression "(uint)(param_3 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (expression_statement "*(int *)param_1 = iVar1 + 8;" (assignment_expression "*(int *)param_1 = iVar1 + 8" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "local_res4[0] = param_2;" (assignment_expression "local_res4[0] = param_2" (subscript_expression "local_res4[0]" (identifier "local_res4") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (ERROR "uVar2 = std::" (assignment_expression "uVar2 = std" (identifier "uVar2") (= "=") (identifier "std")) (: ":") (: ":")) (labeled_statement "locale::facet::_S_clone_c_locale(local_res4);" (statement_identifier "locale") (: ":") (ERROR ":" (: ":")) (labeled_statement "facet::_S_clone_c_locale(local_res4);" (statement_identifier "facet") (: ":") (ERROR ":" (: ":")) (expression_statement "_S_clone_c_locale(local_res4);" (call_expression "_S_clone_c_locale(local_res4)" (identifier "_S_clone_c_locale") (argument_list "(local_res4)" (( "(") (identifier "local_res4") () ")"))) (; ";")))) (expression_statement "*(undefined4 *)(param_1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_1[0xc] = (ctype<wchar_t>)0x0;" (assignment_expression "param_1[0xc] = (ctype<wchar_t>)0x0" (subscript_expression "param_1[0xc]" (identifier "param_1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (parenthesized_expression "(ctype<wchar_t>)0x0" (( "(") (binary_expression "ctype<wchar_t>)0x0" (binary_expression "ctype<wchar_t" (identifier "ctype") (< "<") (identifier "wchar_t")) (> ">") (ERROR ")" () ")")) (number_literal "0x0")) () ""))) (; ";")) (labeled_statement "std::ctype<wchar_t>::_M_initialize_ctype(param_1);" (statement_identifier "std") (ERROR "::ctype<wchar_t>:" (: ":") (: ":") (binary_expression "ctype<wchar_t" (identifier "ctype") (< "<") (identifier "wchar_t")) (> ">") (: ":")) (: ":") (expression_statement "_M_initialize_ctype(param_1);" (call_expression "_M_initialize_ctype(param_1)" (identifier "_M_initialize_ctype") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ctype<wchar_t>::ctype(__locale_struct*, unsigned int) */

void __thiscall
std::function_1<var_6>::function_1(function_1<var_6> *var_2,type_1 *param_1,type_2 var_3)

{
  int var_4;
  type_3 uVar2;
  int var_1;
  type_1 *local_res4 [3];
  
  var_4 = *(int *)(var_1 + 0x13b61c);
  *(type_2 *)(var_2 + 4) = (type_2)(var_3 != 0);
  *(int *)var_2 = var_4 + 8;
  local_res4[0] = param_1;
  uVar2 = locale::facet::var_5(local_res4);
  *(type_3 *)(var_2 + 8) = uVar2;
  var_2[0xc] = (function_1<var_6>)0x0;
  var_7(var_2);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) (ERROR (identifier)) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (array_declarator declarator: (identifier) size: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (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))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (ERROR (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR) right: (number_literal)) (MISSING ")")))) (labeled_statement label: (statement_identifier) (ERROR (binary_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement))))

void MASKED(ctype<wchar_t> *param_1,__locale_struct *param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  int in_t9;
  __locale_struct *local_res4 [3];
  
  iVar1 = *(int *)(in_t9 + 0x13b61c);
  *(uint *)(param_1 + 4) = (uint)(param_3 != 0);
  *(int *)param_1 = iVar1 + 8;
  local_res4[0] = param_2;
  uVar2 = std::locale::facet::_S_clone_c_locale(local_res4);
  *(undefined4 *)(param_1 + 8) = uVar2;
  param_1[0xc] = (ctype<wchar_t>)0x0;
  std::ctype<wchar_t>::_M_initialize_ctype(param_1);
  return;
}

