
/* std::wostream::_M_write(wchar_t const*, int) */

void __thiscall std::wostream::_M_write(wostream *this,wchar_t *param_1,int param_2)

{
  int iVar1;
  
  iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))
                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c));
  if (param_2 == iVar1) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_clear_00435d80)
            (this + *(int *)(*(int *)this + -0xc),
             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);
  return;
}



void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);
  if (param_3 == iVar2) {
    return;
  }
  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);
                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);
  return;
}


lui gp,0x17
addiu gp,gp,0x16a0
addu gp,gp,t9
lw v0,0x0(a0)
addiu sp,sp,-0x28
sw s0,0x1c(sp)
or s0,a0,zero
lw v0,-0xc(v0)
sw gp,0x10(sp)
sw s1,0x20(sp)
addu v0,a0,v0
sw ra,0x24(sp)
lw v0,0x7c(v0)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x30(v0)
jalr t9
_or s1,a2,zero
bne s1,v0,0x002c8b94
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x0(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw t9,-0x4450(gp)
lw v0,-0xc(v0)
addu s0,s0,v0
or a0,s0,zero
lw a1,0x14(s0)
lw s0,0x1c(sp)
addiu sp,sp,0x28
jr t9
_ori a1,a1,0x1
(translation_unit "void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}\n\n" (function_definition "void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" primitive_type (function_declarator "FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" ( (pointer_expression "**(code **)(*piVar1 + 0x30)" * (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (param_3 == iVar2) {\n    return;\n  }" if (parenthesized_expression "(param_3 == iVar2)" ( (binary_expression "param_3 == iVar2" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) comment comment (expression_statement "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_00435d80)" ( (pointer_expression "*(code *)PTR_clear_00435d80" * (cast_expression "(code *)PTR_clear_00435d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wostream::_M_write(wchar_t const*, int) */\n\nvoid __thiscall std::wostream::_M_write(wostream *this,wchar_t *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c));\n  if (param_2 == iVar1) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)\n            (this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wostream::_M_write(wostream *this,wchar_t *param_1,int param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c));\n  if (param_2 == iVar1) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)\n            (this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wostream::" identifier : : identifier : :) (function_declarator "_M_write(wostream *this,wchar_t *param_1,int param_2)" identifier (parameter_list "(wostream *this,wchar_t *param_1,int param_2)" ( (parameter_declaration "wostream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "wchar_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c));\n  if (param_2 == iVar1) {\n    return;\n  }\n                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_clear_00435d80)\n            (this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c));" (assignment_expression "iVar1 = (**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c))" identifier = (call_expression "(**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))\n                    (*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c))" (parenthesized_expression "(**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30))" ( (pointer_expression "**(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30)" * (pointer_expression "*(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30)" * (cast_expression "(code **)(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30)" ( (binary_expression "**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c) + 0x30" (pointer_expression "**(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x7c" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c))" ( (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x7c)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x7c" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) )))) ;) (if_statement "if (param_2 == iVar1) {\n    return;\n  }" if (parenthesized_expression "(param_2 == iVar1)" ( (binary_expression "param_2 == iVar1" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment comment (expression_statement "(*(code *)PTR_clear_00435d80)\n            (this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_00435d80)\n            (this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_00435d80)" ( (pointer_expression "*(code *)PTR_clear_00435d80" * (cast_expression "(code *)PTR_clear_00435d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this + *(int *)(*(int *)this + -0xc),\n             *(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) , (binary_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14) | 1" (pointer_expression "*(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" * (cast_expression "(uint *)(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x14)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x14" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    \n                    \n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}\n\n" (function_definition "void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    \n                    \n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" primitive_type (function_declarator "FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    \n                    \n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" ( (pointer_expression "**(code **)(*piVar1 + 0x30)" * (pointer_expression "*(code **)(*piVar1 + 0x30)" * (cast_expression "(code **)(*piVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x30)" ( (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (param_3 == iVar2) {\n    return;\n  }" if (parenthesized_expression "(param_3 == iVar2)" ( (binary_expression "param_3 == iVar2" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_00435d80)" ( (pointer_expression "*(code *)PTR_clear_00435d80" * (cast_expression "(code *)PTR_clear_00435d80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    \n                    \n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002c8b30(int *param_1,undefined4 param_2,int param_3)" (identifier "FUN_002c8b30") (parameter_list "(int *param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (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 *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);\n  if (param_3 == iVar2) {\n    return;\n  }\n  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n                    \n                    \n  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x30))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x30))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x30)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x30)" (* "*") (cast_expression "(code **)(*piVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x30)" (( "(") (binary_expression "*piVar1 + 0x30" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (param_3 == iVar2) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == iVar2)" (( "(") (binary_expression "param_3 == iVar2" (identifier "param_3") (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" (identifier "iVar2") (= "=") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "(*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (parenthesized_expression "(*(code *)PTR_clear_00435d80)" (( "(") (pointer_expression "*(code *)PTR_clear_00435d80" (* "*") (cast_expression "(code *)PTR_clear_00435d80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clear_00435d80"))) () ")")) (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (( "(") (identifier "iVar2") (, ",") (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wostream::_M_write(wchar_t const*, int) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 *param_1,int var_2)

{
  int var_3;
  
  var_3 = (**(type_3 **)(**(int **)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x7c) + 0x30))
                    (*(int **)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x7c));
  if (var_2 == var_3) {
    return;
  }
                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_3 *)PTR_clear_00435d80)
            (var_1 + *(int *)(*(int *)var_1 + -0xc),
             *(type_4 *)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x14) | 1);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_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: (number_literal))))) (return_statement))))

void MASKED(int *param_1,undefined4 param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  iVar2 = (**(code **)(*piVar1 + 0x30))(piVar1);
  if (param_3 == iVar2) {
    return;
  }
  iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);
                    /* WARNING: Could not recover jumptable at 0x002c8bbc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_clear_00435d80)(iVar2,*(uint *)(iVar2 + 0x14) | 1);
  return;
}

