
/* std::wistream::putback(wchar_t) */

wistream * __thiscall std::wistream::putback(wistream *this,wchar_t param_1)

{
  int *piVar1;
  uint uVar2;
  wios *this_00;
  sentry local_1d [13];
  
  __x86_get_pc_thunk_di();
  *(undefined4 *)(this + 4) = 0;
  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),
              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)
  ;
  sentry::sentry(local_1d,this,true);
  if (local_1d[0] == (sentry)0x0) {
    return this;
  }
  this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));
  piVar1 = *(int **)(this_00 + 0x7c);
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[2];
    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {
      piVar1[2] = uVar2 - 4;
    }
    else {
                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */
      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);
    }
    if (param_1 != L'\xffffffff') {
      return this;
    }
    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));
  }
  wios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);
  return this;
}



int * FUN_001d4430(int *param_1,int param_2)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  char local_1d [13];
  
  FUN_00058c4a();
  param_1[1] = 0;
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);
  FUN_001d3130(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    return param_1;
  }
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  piVar1 = *(int **)(iVar3 + 0x7c);
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[2];
    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {
      piVar1[2] = uVar2 - 4;
    }
    else {
                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */
      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);
    }
    if (param_2 != -1) {
      return param_1;
    }
    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  }
  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x00058c4a
ADD EDI,0x16abc7
PUSH ESI
PUSH EBX
SUB ESP,0x24
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESI + 0x4],0x0
MOV EBX,EDI
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
AND EAX,0xfffffffd
PUSH EAX
PUSH EDX
CALL 0x001d6d60
ADD ESP,0xc
LEA EAX,[EBP + -0x19]
PUSH 0x1
PUSH ESI
PUSH EAX
CALL 0x001d3130
ADD ESP,0x10
CMP byte ptr [EBP + -0x19],0x0
JZ 0x001d44a8
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x7c]
TEST EAX,EAX
JZ 0x001d44bf
MOV EDX,dword ptr [EAX + 0x8]
CMP dword ptr [EAX + 0x4],EDX
JNC 0x001d44e0
MOV ECX,dword ptr [EDX + -0x4]
CMP dword ptr [EBP + 0xc],ECX
JNZ 0x001d44e0
SUB EDX,0x4
MOV dword ptr [EAX + 0x8],EDX
MOV EAX,dword ptr [EBP + 0xc]
CMP EAX,-0x1
JZ 0x001d44b8
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
SUB ESP,0x8
MOV EBX,EDI
OR EAX,0x1
PUSH EAX
PUSH EDX
CALL 0x001d6d60
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EAX]
SUB ESP,0x8
PUSH dword ptr [EBP + 0xc]
PUSH EAX
CALL dword ptr [EDX + 0x2c]
ADD ESP,0x10
JMP 0x001d44a3
(translation_unit "int * FUN_001d4430(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}\n\n" (function_definition "int * FUN_001d4430(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001d4430(int *param_1,int param_2)" * (function_declarator "FUN_001d4430(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) & 0xfffffffd" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_001d3130(local_1d,param_1,1);" (call_expression "FUN_001d3130(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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 "piVar1 = *(int **)(iVar3 + 0x7c);" (assignment_expression "piVar1 = *(int **)(iVar3 + 0x7c)" identifier = (pointer_expression "*(int **)(iVar3 + 0x7c)" * (cast_expression "(int **)(iVar3 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x7c)" ( (binary_expression "iVar3 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" { (expression_statement "uVar2 = piVar1[2];" (assignment_expression "uVar2 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" if (parenthesized_expression "(((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4)))" ( (binary_expression "((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))" (parenthesized_expression "((uint)piVar1[1] < uVar2)" ( (binary_expression "(uint)piVar1[1] < uVar2" (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_2 == *(int *)(uVar2 - 4))" ( (binary_expression "param_2 == *(int *)(uVar2 - 4)" identifier == (pointer_expression "*(int *)(uVar2 - 4)" * (cast_expression "(int *)(uVar2 - 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      piVar1[2] = uVar2 - 4;\n    }" { (expression_statement "piVar1[2] = uVar2 - 4;" (assignment_expression "piVar1[2] = uVar2 - 4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" else (compound_statement "{\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" { comment (expression_statement "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" identifier = (call_expression "(**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" ( (pointer_expression "**(code **)(*piVar1 + 0x2c)" * (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_2 != -1) {\n      return param_1;\n    }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wistream::putback(wchar_t) */\n\nwistream * __thiscall std::wistream::putback(wistream *this,wchar_t param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  wios *this_00;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  *(undefined4 *)(this + 4) = 0;\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)\n  ;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  piVar1 = *(int **)(this_00 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }\n    if (param_1 != L'\xffffffff') {\n      return this;\n    }\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  wios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);\n  return this;\n}\n\n" comment (ERROR "wistream * __thiscall std::wistream::putback(wistream *this," (binary_expression "wistream * __thiscall std::wistream::putback(wistream *this" (binary_expression "wistream * __thiscall" identifier * identifier) (ERROR "std::wistream::putback(wistream" identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "wchar_t param_1)\n\n{\n  int *piVar1;\n  uint uVar2;\n  wios *this_00;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  *(undefined4 *)(this + 4) = 0;\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)\n  ;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  piVar1 = *(int **)(this_00 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }\n    if (param_1 != L'\xffffffff') {\n      return this;\n    }\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  wios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);\n  return this;\n}" type_identifier identifier (ERROR ")" )) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  wios *this_00;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  *(undefined4 *)(this + 4) = 0;\n  wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)\n  ;\n  sentry::sentry(local_1d,this,true);\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  piVar1 = *(int **)(this_00 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }\n    if (param_1 != L'\xffffffff') {\n      return this;\n    }\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }\n  wios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "wios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "sentry local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "wios::clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)\n  ;" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)\n  ;" (call_expression "clear((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)" identifier (argument_list "((wios *)(this + *(int *)(*(int *)this + -0xc)),\n              *(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit)" ( (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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 "*(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) & ~_S_eofbit" (pointer_expression "*(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(wios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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) )))) & (unary_expression "~_S_eofbit" ~ identifier)) ))) ;)) (labeled_statement "sentry::sentry(local_1d,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1d,this,true);" (call_expression "sentry(local_1d,this,true)" identifier (argument_list "(local_1d,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }" if (parenthesized_expression "(local_1d[0] == (sentry)0x0)" ( (binary_expression "local_1d[0] == (sentry)0x0" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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) ))))) )))) ;) (expression_statement "piVar1 = *(int **)(this_00 + 0x7c);" (assignment_expression "piVar1 = *(int **)(this_00 + 0x7c)" identifier = (pointer_expression "*(int **)(this_00 + 0x7c)" * (cast_expression "(int **)(this_00 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0x7c)" ( (binary_expression "this_00 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }\n    if (param_1 != L'\xffffffff') {\n      return this;\n    }\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }\n    if (param_1 != L'\xffffffff') {\n      return this;\n    }\n    this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  }" { (expression_statement "uVar2 = piVar1[2];" (assignment_expression "uVar2 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }" if (parenthesized_expression "(((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4)))" ( (binary_expression "((uint)piVar1[1] < uVar2) && (param_1 == *(wchar_t *)(uVar2 - 4))" (parenthesized_expression "((uint)piVar1[1] < uVar2)" ( (binary_expression "(uint)piVar1[1] < uVar2" (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_1 == *(wchar_t *)(uVar2 - 4))" ( (binary_expression "param_1 == *(wchar_t *)(uVar2 - 4)" identifier == (pointer_expression "*(wchar_t *)(uVar2 - 4)" * (cast_expression "(wchar_t *)(uVar2 - 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      piVar1[2] = uVar2 - 4;\n    }" { (expression_statement "piVar1[2] = uVar2 - 4;" (assignment_expression "piVar1[2] = uVar2 - 4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }" else (compound_statement "{\n                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */\n      param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);\n    }" { comment (expression_statement "param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1);" (assignment_expression "param_1 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x2c))(piVar1,param_1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" ( (pointer_expression "**(code **)(*piVar1 + 0x2c)" * (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_1)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_1 != L'\xffffffff') {\n      return this;\n    }" if (parenthesized_expression "(param_1 != L'\xffffffff')" ( (binary_expression "param_1 != L'\xffffffff'" identifier != (char_literal "L'\xffffffff'" L' escape_sequence character character character character ')) )) (compound_statement "{\n      return this;\n    }" { (return_statement "return this;" return identifier ;) })) (expression_statement "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_00 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (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) ))))) )))) ;) })) (labeled_statement "wios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit);" (call_expression "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit)" identifier (argument_list "(this_00,*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_00 + 0x14) | _S_badbit" (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x14)" ( (binary_expression "this_00 + 0x14" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return this;" return identifier ;) })))
(translation_unit "int * FUN_001d4430(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}\n\n" (function_definition "int * FUN_001d4430(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_001d4430(int *param_1,int param_2)" * (function_declarator "FUN_001d4430(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) & 0xfffffffd" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_001d3130(local_1d,param_1,1);" (call_expression "FUN_001d3130(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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 "piVar1 = *(int **)(iVar3 + 0x7c);" (assignment_expression "piVar1 = *(int **)(iVar3 + 0x7c)" identifier = (pointer_expression "*(int **)(iVar3 + 0x7c)" * (cast_expression "(int **)(iVar3 + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x7c)" ( (binary_expression "iVar3 + 0x7c" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" { (expression_statement "uVar2 = piVar1[2];" (assignment_expression "uVar2 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) (if_statement "if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" if (parenthesized_expression "(((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4)))" ( (binary_expression "((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))" (parenthesized_expression "((uint)piVar1[1] < uVar2)" ( (binary_expression "(uint)piVar1[1] < uVar2" (cast_expression "(uint)piVar1[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) < identifier) )) && (parenthesized_expression "(param_2 == *(int *)(uVar2 - 4))" ( (binary_expression "param_2 == *(int *)(uVar2 - 4)" identifier == (pointer_expression "*(int *)(uVar2 - 4)" * (cast_expression "(int *)(uVar2 - 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar2 - 4)" ( (binary_expression "uVar2 - 4" identifier - number_literal) ))))) ))) )) (compound_statement "{\n      piVar1[2] = uVar2 - 4;\n    }" { (expression_statement "piVar1[2] = uVar2 - 4;" (assignment_expression "piVar1[2] = uVar2 - 4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (binary_expression "uVar2 - 4" identifier - number_literal)) ;) }) (else_clause "else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" else (compound_statement "{\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" { (expression_statement "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" identifier = (call_expression "(**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" ( (pointer_expression "**(code **)(*piVar1 + 0x2c)" * (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2)" ( identifier , identifier )))) ;) }))) (if_statement "if (param_2 != -1) {\n      return param_1;\n    }" if (parenthesized_expression "(param_2 != -1)" ( (binary_expression "param_2 != -1" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (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) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - LIT)) ;) }) (else_clause else (compound_statement { (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 , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (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 ;) })))
(function_definition "int * FUN_001d4430(int *param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_001d4430(int *param_1,int param_2)" (* "*") (function_declarator "FUN_001d4430(int *param_1,int param_2)" (identifier "FUN_001d4430") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  int iVar3;\n  char local_1d [13];\n  \n  FUN_00058c4a();\n  param_1[1] = 0;\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);\n  FUN_001d3130(local_1d,param_1,1);\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  piVar1 = *(int **)(iVar3 + 0x7c);\n  if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }\n  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char local_1d [13];" (primitive_type "char") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (expression_statement "FUN_00058c4a();" (call_expression "FUN_00058c4a()" (identifier "FUN_00058c4a") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" (identifier "FUN_001d6d60") (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) & 0xfffffffd" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "0xfffffffd")) () ")"))) (; ";")) (expression_statement "FUN_001d3130(local_1d,param_1,1);" (call_expression "FUN_001d3130(local_1d,param_1,1)" (identifier "FUN_001d3130") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (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 "piVar1 = *(int **)(iVar3 + 0x7c);" (assignment_expression "piVar1 = *(int **)(iVar3 + 0x7c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(iVar3 + 0x7c)" (* "*") (cast_expression "(int **)(iVar3 + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x7c)" (( "(") (binary_expression "iVar3 + 0x7c" (identifier "iVar3") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = piVar1[2];\n    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }\n    if (param_2 != -1) {\n      return param_1;\n    }\n    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  }" ({ "{") (expression_statement "uVar2 = piVar1[2];" (assignment_expression "uVar2 = piVar1[2]" (identifier "uVar2") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {\n      piVar1[2] = uVar2 - 4;\n    }\n    else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" (if "if") (parenthesized_expression "(((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4)))" (( "(") (binary_expression "((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))" (parenthesized_expression "((uint)piVar1[1] < uVar2)" (( "(") (binary_expression "(uint)piVar1[1] < uVar2" (cast_expression "(uint)piVar1[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (< "<") (identifier "uVar2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == *(int *)(uVar2 - 4))" (( "(") (binary_expression "param_2 == *(int *)(uVar2 - 4)" (identifier "param_2") (== "==") (pointer_expression "*(int *)(uVar2 - 4)" (* "*") (cast_expression "(int *)(uVar2 - 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar2 - 4)" (( "(") (binary_expression "uVar2 - 4" (identifier "uVar2") (- "-") (number_literal "4")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      piVar1[2] = uVar2 - 4;\n    }" ({ "{") (expression_statement "piVar1[2] = uVar2 - 4;" (assignment_expression "piVar1[2] = uVar2 - 4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "uVar2 - 4" (identifier "uVar2") (- "-") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" (else "else") (compound_statement "{\n                    \n      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);\n    }" ({ "{") (expression_statement "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);" (assignment_expression "param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" (identifier "param_2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x2c))(piVar1,param_2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x2c)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x2c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x2c)" (( "(") (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (argument_list "(piVar1,param_2)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (if_statement "if (param_2 != -1) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_2 != -1)" (( "(") (binary_expression "param_2 != -1" (identifier "param_2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (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_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);" (call_expression "FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1)" (identifier "FUN_001d6d60") (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 1)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) | 1" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wistream::putback(wchar_t) */

wistream * __thiscall std::wistream::putback(wistream *var_2,type_1 function_1)

{
  int *var_5;
  type_2 var_6;
  type_3 *var_4;
  type_4 local_1d [13];
  
  var_1();
  *(type_5 *)(var_2 + 4) = 0;
  wios::var_3((type_3 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)),
              *(type_6 *)((type_3 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)) + 0x14) & ~_S_eofbit)
  ;
  sentry::type_4(local_1d,var_2,true);
  if (local_1d[0] == (type_4)0x0) {
    return var_2;
  }
  var_4 = (type_3 *)(var_2 + *(int *)(*(int *)var_2 + -0xc));
  var_5 = *(int **)(var_4 + 0x7c);
  if (var_5 != (int *)0x0) {
    var_6 = var_5[2];
    if (((type_2)var_5[1] < var_6) && (function_1 == *(type_1 *)(var_6 - 4))) {
      var_5[2] = var_6 - 4;
    }
    else {
                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */
      function_1 = (**(type_7 **)(*var_5 + 0x2c))(var_5,function_1);
    }
    if (function_1 != L'\xffffffff') {
      return var_2;
    }
    var_4 = (type_3 *)(var_2 + *(int *)(*(int *)var_2 + -0xc));
  }
  wios::var_3(var_4,*(type_6 *)(var_4 + 0x14) | var_7);
  return var_2;
}


(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: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (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 (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (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) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (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)))))

int * MASKED(int *param_1,int param_2)

{
  int *piVar1;
  uint uVar2;
  int iVar3;
  char local_1d [13];
  
  FUN_00058c4a();
  param_1[1] = 0;
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) & 0xfffffffd);
  FUN_001d3130(local_1d,param_1,1);
  if (local_1d[0] == '\0') {
    return param_1;
  }
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  piVar1 = *(int **)(iVar3 + 0x7c);
  if (piVar1 != (int *)0x0) {
    uVar2 = piVar1[2];
    if (((uint)piVar1[1] < uVar2) && (param_2 == *(int *)(uVar2 - 4))) {
      piVar1[2] = uVar2 - 4;
    }
    else {
                    /* try { // try from 001d44e9 to 001d44eb has its CatchHandler @ 001d44f1 */
      param_2 = (**(code **)(*piVar1 + 0x2c))(piVar1,param_2);
    }
    if (param_2 != -1) {
      return param_1;
    }
    iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  }
  FUN_001d6d60(iVar3,*(uint *)(iVar3 + 0x14) | 1);
  return param_1;
}

