
/* std::ios_base::_M_call_callbacks(std::ios_base::event) */

void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)

{
  int *piVar1;
  
  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {
                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */
    (*(code *)piVar1[1])(param_2,this,piVar1[2]);
  }
  return;
}



/* std::ios_base::_M_call_callbacks(std::ios_base::event) */

void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)

{
  int *piVar1;
  
  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {
                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */
    (*(code *)piVar1[1])(param_2,this,piVar1[2]);
  }
  return;
}


lui gp,0x14
addiu gp,gp,0x5f0
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
lw s0,0x18(a0)
beq s0,zero,0x00388ca4
_or s1,a0,zero
or s2,a1,zero
lw t9,0x4(s0)
or a1,s1,zero
lw a2,0x8(s0)
jalr t9
_or a0,s2,zero
lw s0,0x0(s0)
bne s0,zero,0x00388c84
_nop
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "/* std::ios_base::_M_call_callbacks(std::ios_base::event) */\n\nvoid __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::" identifier : : identifier : :) (function_declarator "_M_call_callbacks(ios_base *this,undefined4 param_2)" identifier (parameter_list "(ios_base *this,undefined4 param_2)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (for_statement "for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" for ( (assignment_expression "piVar1 = *(int **)(this + 0x18)" identifier = (pointer_expression "*(int **)(this + 0x18)" * (cast_expression "(int **)(this + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ) (compound_statement "{\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" { comment (expression_statement "(*(code *)piVar1[1])(param_2,this,piVar1[2]);" (call_expression "(*(code *)piVar1[1])(param_2,this,piVar1[2])" (parenthesized_expression "(*(code *)piVar1[1])" ( (pointer_expression "*(code *)piVar1[1]" * (cast_expression "(code *)piVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,this,piVar1[2])" ( identifier , identifier , (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::ios_base::_M_call_callbacks(std::ios_base::event) */\n\nvoid __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::" identifier : : identifier : :) (function_declarator "_M_call_callbacks(ios_base *this,undefined4 param_2)" identifier (parameter_list "(ios_base *this,undefined4 param_2)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (for_statement "for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" for ( (assignment_expression "piVar1 = *(int **)(this + 0x18)" identifier = (pointer_expression "*(int **)(this + 0x18)" * (cast_expression "(int **)(this + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ) (compound_statement "{\n                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */\n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" { comment (expression_statement "(*(code *)piVar1[1])(param_2,this,piVar1[2]);" (call_expression "(*(code *)piVar1[1])(param_2,this,piVar1[2])" (parenthesized_expression "(*(code *)piVar1[1])" ( (pointer_expression "*(code *)piVar1[1]" * (cast_expression "(code *)piVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,this,piVar1[2])" ( identifier , identifier , (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}\n\n" (function_definition "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::" identifier : : identifier : :) (function_declarator "_M_call_callbacks(ios_base *this,undefined4 param_2)" identifier (parameter_list "(ios_base *this,undefined4 param_2)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (for_statement "for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" for ( (assignment_expression "piVar1 = *(int **)(this + 0x18)" identifier = (pointer_expression "*(int **)(this + 0x18)" * (cast_expression "(int **)(this + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ; (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ) (compound_statement "{\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" { (expression_statement "(*(code *)piVar1[1])(param_2,this,piVar1[2]);" (call_expression "(*(code *)piVar1[1])(param_2,this,piVar1[2])" (parenthesized_expression "(*(code *)piVar1[1])" ( (pointer_expression "*(code *)piVar1[1]" * (cast_expression "(code *)piVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,this,piVar1[2])" ( identifier , identifier , (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return ;) })))
(function_definition "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::ios_base::" (identifier "std") (: ":") (: ":") (identifier "ios_base") (: ":") (: ":")) (function_declarator "_M_call_callbacks(ios_base *this,undefined4 param_2)" (identifier "_M_call_callbacks") (parameter_list "(ios_base *this,undefined4 param_2)" (( "(") (parameter_declaration "ios_base *this" (type_identifier "ios_base") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (for_statement "for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" (for "for") (( "(") (assignment_expression "piVar1 = *(int **)(this + 0x18)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(this + 0x18)" (* "*") (cast_expression "(int **)(this + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x18)" (( "(") (binary_expression "this + 0x18" (identifier "this") (+ "+") (number_literal "0x18")) () ")"))))) (; ";") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "piVar1 = (int *)*piVar1" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) () ")") (compound_statement "{\n                    \n    (*(code *)piVar1[1])(param_2,this,piVar1[2]);\n  }" ({ "{") (expression_statement "(*(code *)piVar1[1])(param_2,this,piVar1[2]);" (call_expression "(*(code *)piVar1[1])(param_2,this,piVar1[2])" (parenthesized_expression "(*(code *)piVar1[1])" (( "(") (pointer_expression "*(code *)piVar1[1]" (* "*") (cast_expression "(code *)piVar1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(param_2,this,piVar1[2])" (( "(") (identifier "param_2") (, ",") (identifier "this") (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ios_base::_M_call_callbacks(std::ios_base::event) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 param_2)

{
  int *var_2;
  
  for (var_2 = *(int **)(var_1 + 0x18); var_2 != (int *)0x0; var_2 = (int *)*var_2) {
                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */
    (*(type_3 *)var_2[1])(param_2,var_1,var_2[2]);
  }
  return;
}


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

/* std::ios_base::MASKED(std::ios_base::event) */

void __thiscall std::ios_base::MASKED(ios_base *this,undefined4 param_2)

{
  int *piVar1;
  
  for (piVar1 = *(int **)(this + 0x18); piVar1 != (int *)0x0; piVar1 = (int *)*piVar1) {
                    /* try { // try from 00388c90 to 00388c97 has its CatchHandler @ 00388cbc */
    (*(code *)piVar1[1])(param_2,this,piVar1[2]);
  }
  return;
}

