
/* std::wostream::seekp(long long, std::_Ios_Seekdir) */

int * std::wostream::seekp(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  uint local_2c;
  uint local_28;
  
  __x86_get_pc_thunk_di();
  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */
    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);
    if ((local_28 & local_2c) == 0xffffffff) {
      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);
      return param_1;
    }
  }
  return param_1;
}



int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  uint local_2c;
  uint local_28;
  
  FUN_000b484e();
  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */
    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);
    if ((local_28 & local_2c) == 0xffffffff) {
      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;
      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);
      return param_1;
    }
  }
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000b484e
ADD EDI,0x1bcac7
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV ESI,dword ptr [EBP + 0x8]
MOV ECX,dword ptr [EBP + 0xc]
MOV EBX,dword ptr [EBP + 0x10]
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
TEST byte ptr [EDX + 0x14],0x5
JNZ 0x00257584
MOV EAX,dword ptr [EDX + 0x7c]
LEA EDX,[EBP + -0x28]
SUB ESP,0x8
MOV dword ptr [EBP + -0x2c],EDX
MOV EDX,dword ptr [EAX]
PUSH 0x10
PUSH dword ptr [EBP + 0x14]
PUSH EBX
PUSH ECX
PUSH EAX
PUSH dword ptr [EBP + -0x2c]
CALL dword ptr [EDX + 0x10]
MOV EAX,dword ptr [EBP + -0x24]
AND EAX,dword ptr [EBP + -0x28]
ADD ESP,0x1c
CMP EAX,-0x1
JZ 0x00257590
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,EDI
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x4
PUSH EAX
PUSH EDX
CALL 0x00272b10
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" * (function_declarator "FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * 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) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0)" ( (binary_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0" (parenthesized_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5)" ( (binary_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5" (pointer_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" * (cast_expression "(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x14" (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) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" { (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) ))))) ;) comment (expression_statement "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);" (call_expression "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10)" (parenthesized_expression "(**(code **)(*piVar1 + 0x10))" ( (pointer_expression "**(code **)(*piVar1 + 0x10)" * (pointer_expression "*(code **)(*piVar1 + 0x10)" * (cast_expression "(code **)(*piVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(&local_2c,piVar1,param_2,param_3,param_4,0x10)" ( (pointer_expression "&local_2c" & identifier) , identifier , identifier , identifier , identifier , number_literal ))) ;) (if_statement "if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" if (parenthesized_expression "((local_28 & local_2c) == 0xffffffff)" ( (binary_expression "(local_28 & local_2c) == 0xffffffff" (parenthesized_expression "(local_28 & local_2c)" ( (binary_expression "local_28 & local_2c" identifier & identifier) )) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" { (expression_statement "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (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) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);" (call_expression "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4)" identifier (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 4" (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 param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wostream::seekp(long long, std::_Ios_Seekdir) */\n\nint * std::wostream::seekp(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint local_2c;\n  uint local_28;\n  \n  __x86_get_pc_thunk_di();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" comment (function_definition "int * std::wostream::seekp(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  uint local_2c;\n  uint local_28;\n  \n  __x86_get_pc_thunk_di();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* std::wostream::seekp(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" * (ERROR "std::wostream::" identifier : : identifier : :) (function_declarator "seekp(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * 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) )))) (compound_statement "{\n  int *piVar1;\n  uint local_2c;\n  uint local_28;\n  \n  __x86_get_pc_thunk_di();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0)" ( (binary_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0" (parenthesized_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5)" ( (binary_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5" (pointer_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" * (cast_expression "(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x14" (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) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */\n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }\n  }" { (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) ))))) ;) comment (expression_statement "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);" (call_expression "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10)" (parenthesized_expression "(**(code **)(*piVar1 + 0x10))" ( (pointer_expression "**(code **)(*piVar1 + 0x10)" * (pointer_expression "*(code **)(*piVar1 + 0x10)" * (cast_expression "(code **)(*piVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(&local_2c,piVar1,param_2,param_3,param_4,0x10)" ( (pointer_expression "&local_2c" & identifier) , identifier , identifier , identifier , identifier , number_literal ))) ;) (if_statement "if ((local_28 & local_2c) == 0xffffffff) {\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }" if (parenthesized_expression "((local_28 & local_2c) == 0xffffffff)" ( (binary_expression "(local_28 & local_2c) == 0xffffffff" (parenthesized_expression "(local_28 & local_2c)" ( (binary_expression "local_28 & local_2c" identifier & identifier) )) == number_literal) )) (compound_statement "{\n      wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);\n      return param_1;\n    }" { (labeled_statement "wios::clear(*(int *)(*param_1 + -0xc) + (int)param_1);" statement_identifier : (ERROR ":" :) (expression_statement "clear(*(int *)(*param_1 + -0xc) + (int)param_1);" (call_expression "clear(*(int *)(*param_1 + -0xc) + (int)param_1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1)" ( (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (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) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ;)) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" * (function_declarator "FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * 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) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" if (parenthesized_expression "((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0)" ( (binary_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0" (parenthesized_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5)" ( (binary_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5" (pointer_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" * (cast_expression "(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x14" (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) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" { (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 "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);" (call_expression "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10)" (parenthesized_expression "(**(code **)(*piVar1 + 0x10))" ( (pointer_expression "**(code **)(*piVar1 + 0x10)" * (pointer_expression "*(code **)(*piVar1 + 0x10)" * (cast_expression "(code **)(*piVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(&local_2c,piVar1,param_2,param_3,param_4,0x10)" ( (pointer_expression "&local_2c" & identifier) , identifier , identifier , identifier , identifier , number_literal ))) ;) (if_statement "if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" if (parenthesized_expression "((local_28 & local_2c) == 0xffffffff)" ( (binary_expression "(local_28 & local_2c) == 0xffffffff" (parenthesized_expression "(local_28 & local_2c)" ( (binary_expression "local_28 & local_2c" identifier & identifier) )) == number_literal) )) (compound_statement "{\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" { (expression_statement "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (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) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);" (call_expression "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4)" identifier (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 4" (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 param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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) )))) & LIT) )) == LIT) )) (compound_statement { (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 (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 ( (pointer_expression & IDENT) , IDENT , IDENT , IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (call_expression 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 IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (* "*") (function_declarator "FUN_00257530(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_00257530") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint local_2c;\n  uint local_28;\n  \n  FUN_000b484e();\n  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" (identifier "FUN_000b484e") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0)" (( "(") (binary_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0" (parenthesized_expression "(*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5)" (( "(") (binary_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5" (pointer_expression "*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" (* "*") (cast_expression "(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x14" (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 "0x14")) () ")")))) (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n                    \n    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);\n    if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }\n  }" ({ "{") (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 "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);" (call_expression "(**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10)" (parenthesized_expression "(**(code **)(*piVar1 + 0x10))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x10)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x10)" (* "*") (cast_expression "(code **)(*piVar1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x10)" (( "(") (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(&local_2c,piVar1,param_2,param_3,param_4,0x10)" (( "(") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (identifier "piVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (number_literal "0x10") () ")"))) (; ";")) (if_statement "if ((local_28 & local_2c) == 0xffffffff) {\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" (if "if") (parenthesized_expression "((local_28 & local_2c) == 0xffffffff)" (( "(") (binary_expression "(local_28 & local_2c) == 0xffffffff" (parenthesized_expression "(local_28 & local_2c)" (( "(") (binary_expression "local_28 & local_2c" (identifier "local_28") (& "&") (identifier "local_2c")) () ")")) (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);\n      return param_1;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar2") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)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")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (expression_statement "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);" (call_expression "FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4)" (identifier "FUN_00272b10") (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 4)" (( "(") (identifier "iVar2") (, ",") (binary_expression "*(uint *)(iVar2 + 0x14) | 4" (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 "4")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wostream::seekp(long long, std::_Ios_Seekdir) */

int * std::wostream::function_1(int *param_1,type_1 param_2,type_1 param_3,type_1 param_4)

{
  int *piVar1;
  type_2 var_3;
  type_2 var_2;
  
  var_1();
  if ((*(type_3 *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */
    (**(type_4 **)(*piVar1 + 0x10))(&var_3,piVar1,param_2,param_3,param_4,0x10);
    if ((var_2 & var_3) == 0xffffffff) {
      wios::var_4(*(int *)(*param_1 + -0xc) + (int)param_1);
      return param_1;
    }
  }
  return param_1;
}


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

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

{
  int *piVar1;
  int iVar2;
  uint local_2c;
  uint local_28;
  
  FUN_000b484e();
  if ((*(byte *)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x14) & 5) == 0) {
    piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
                    /* try { // try from 00257573 to 00257575 has its CatchHandler @ 002575b6 */
    (**(code **)(*piVar1 + 0x10))(&local_2c,piVar1,param_2,param_3,param_4,0x10);
    if ((local_28 & local_2c) == 0xffffffff) {
      iVar2 = *(int *)(*param_1 + -0xc) + (int)param_1;
      FUN_00272b10(iVar2,*(uint *)(iVar2 + 0x14) | 4);
      return param_1;
    }
  }
  return param_1;
}

