
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::ws<char, std::char_traits<char> >(std::istream&) */

istream * std::ws<char,std::char_traits<char>>(istream *param_1)

{
  long *plVar1;
  int iVar2;
  ctype *pcVar3;
  byte *pbVar4;
  ulong uVar5;
  byte *pbVar6;
  locale local_20 [8];
  
  locale::locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));
                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */
  pcVar3 = use_facet<std::ctype<char>>(local_20);
  locale::~locale(local_20);
  plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);
  pbVar4 = (byte *)plVar1[2];
  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;
  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {
    while( true ) {
      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {
        return param_1;
      }
      pbVar6 = (byte *)plVar1[3];
      if ((byte *)plVar1[2] < pbVar6) {
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
      }
      else {
        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
        if (iVar2 == -1) goto LAB_004bfecb;
        pbVar4 = (byte *)plVar1[2];
        pbVar6 = (byte *)plVar1[3];
      }
      if (pbVar6 <= pbVar4) break;
LAB_004bfe9d:
      uVar5 = (ulong)*pbVar4;
    }
  }
LAB_004bfecb:
  ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),
             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |
             _S_eofbit);
  return param_1;
}



long * FUN_004bfe30(long *param_1)

{
  long *plVar1;
  int iVar2;
  long lVar3;
  byte *pbVar4;
  ulong uVar5;
  byte *pbVar6;
  undefined1 local_20 [8];
  
  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);
                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */
  lVar3 = FUN_004afd30(local_20);
  FUN_004a0870(local_20);
  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
  pbVar4 = (byte *)plVar1[2];
  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;
  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {
    while( true ) {
      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {
        return param_1;
      }
      pbVar6 = (byte *)plVar1[3];
      if ((byte *)plVar1[2] < pbVar6) {
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
      }
      else {
        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
        if (iVar2 == -1) goto LAB_004bfecb;
        pbVar4 = (byte *)plVar1[2];
        pbVar6 = (byte *)plVar1[3];
      }
      if (pbVar6 <= pbVar4) break;
LAB_004bfe9d:
      uVar5 = (ulong)*pbVar4;
    }
  }
LAB_004bfecb:
  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);
  return param_1;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
MOV RAX,qword ptr [RDI]
LEA RBP,[RSP + 0x8]
MOV RSI,qword ptr [RAX + -0x18]
ADD RSI,RDI
MOV RDI,RBP
ADD RSI,0xd0
CALL 0x004a0130
MOV RDI,RBP
CALL 0x004afd30
MOV RDI,RBP
MOV R12,RAX
CALL 0x004a0870
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV RBP,qword ptr [RBX + RAX*0x1 + 0xe8]
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RBP + 0x18],RAX
JA 0x004bfe9d
JMP 0x004bfef0
ADD RAX,0x1
MOV qword ptr [RBP + 0x10],RAX
CMP RAX,RDX
JNC 0x004bfef0
MOVZX EAX,byte ptr [RAX]
MOV RDX,qword ptr [R12 + 0x30]
MOVZX EAX,AL
TEST byte ptr [RDX + RAX*0x2 + 0x1],0x20
JZ 0x004bfee0
MOV RAX,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
CMP RAX,RDX
JC 0x004bfe90
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x50]
CMP EAX,-0x1
JNZ 0x004bff01
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x2
CALL 0x004c3f30
ADD RSP,0x10
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
CMP EAX,-0x1
JNZ 0x004bfea0
JMP 0x004bfecb
MOV RAX,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
JMP 0x004bfe98
(translation_unit "long * FUN_004bfe30(long *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}\n\n" (function_definition "long * FUN_004bfe30(long *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_004bfe30(long *param_1)" * (function_declarator "FUN_004bfe30(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined1 local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (expression_statement "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);" (call_expression "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" identifier (argument_list "(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" ( identifier , (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))) ;) comment (expression_statement "lVar3 = FUN_004afd30(local_20);" (assignment_expression "lVar3 = FUN_004afd30(local_20)" identifier = (call_expression "FUN_004afd30(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_004a0870(local_20);" (call_expression "FUN_004a0870(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;" if (parenthesized_expression "(pbVar4 < (byte *)plVar1[3])" ( (binary_expression "pbVar4 < (byte *)plVar1[3]" identifier < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_004bfe9d;" goto statement_identifier ;)) (while_statement "while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" while (parenthesized_expression "(uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1)" ( (comma_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1" (assignment_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) , (binary_expression "(int)uVar5 != -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal)) )) (compound_statement "{\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" { (while_statement "while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" { (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar3 + 0x30) + 1" (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar5 & 0xff) * 2" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" if (parenthesized_expression "((byte *)plVar1[2] < pbVar6)" ( (binary_expression "(byte *)plVar1[2] < pbVar6" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }" { (expression_statement "pbVar4 = (byte *)plVar1[2] + 1;" (assignment_expression "pbVar4 = (byte *)plVar1[2] + 1" identifier = (binary_expression "(byte *)plVar1[2] + 1" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "plVar1[2] = (long)pbVar4;" (assignment_expression "plVar1[2] = (long)pbVar4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pbVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }) (else_clause "else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" else (compound_statement "{\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" { (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_004bfecb;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_004bfecb;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar6 <= pbVar4) break;" if (parenthesized_expression "(pbVar6 <= pbVar4)" ( (binary_expression "pbVar6 <= pbVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;" statement_identifier : (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;)) })) })) (labeled_statement "LAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" statement_identifier : (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;)) (expression_statement "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);" (call_expression "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 2)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 2" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::istream& std::ws<char, std::char_traits<char> >(std::istream&) */\n\nistream * std::ws<char,std::char_traits<char>>(istream *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  ctype *pcVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  locale local_20 [8];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  pcVar3 = use_facet<std::ctype<char>>(local_20);\n  locale::~locale(local_20);\n  plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);\n  return param_1;\n}\n\n" comment comment (ERROR "istream * std::ws<char," (binary_expression "istream * std::ws<char" (binary_expression "istream * std" identifier * identifier) (ERROR "::ws" : : identifier) < identifier) ,) (labeled_statement "std::char_traits<char>>(istream *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  ctype *pcVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  locale local_20 [8];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  pcVar3 = use_facet<std::ctype<char>>(local_20);\n  locale::~locale(local_20);\n  plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);\n  return param_1;\n}" statement_identifier : (ERROR ":char_traits<char>>(istream *param_1)" : (binary_expression "char_traits<char>>(istream *param_1)" identifier < (binary_expression "char>>(istream *param_1)" identifier >> (parenthesized_expression "(istream *param_1)" ( (binary_expression "istream *param_1" identifier * identifier) ))))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  ctype *pcVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  locale local_20 [8];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));\n                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */\n  pcVar3 = use_facet<std::ctype<char>>(local_20);\n  locale::~locale(local_20);\n  plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "ctype *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "locale local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (labeled_statement "locale::locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0));" (call_expression "locale(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0))" identifier (argument_list "(local_20,(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0))" ( identifier , (cast_expression "(locale *)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0)" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xd0" (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))) ))) ;)) comment (expression_statement "pcVar3 = use_facet<std::ctype<char>>(local_20);" (binary_expression "pcVar3 = use_facet<std::ctype<char>>(local_20)" (assignment_expression "pcVar3 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(local_20)" identifier >> (parenthesized_expression "(local_20)" ( identifier )))) ;) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (expression_statement "plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8" (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;" if (parenthesized_expression "(pbVar4 < (byte *)plVar1[3])" ( (binary_expression "pbVar4 < (byte *)plVar1[3]" identifier < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_004bfe9d;" goto statement_identifier ;)) (while_statement "while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" while (parenthesized_expression "(uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1)" ( (comma_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1" (assignment_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) , (binary_expression "(int)uVar5 != -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal)) )) (compound_statement "{\n    while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" { (while_statement "while( true ) {\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" { (if_statement "if ((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }" if (parenthesized_expression "((*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(pcVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(pcVar3 + 0x30) + 1" (pointer_expression "*(long *)(pcVar3 + 0x30)" * (cast_expression "(long *)(pcVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar3 + 0x30)" ( (binary_expression "pcVar3 + 0x30" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar5 & 0xff) * 2" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" if (parenthesized_expression "((byte *)plVar1[2] < pbVar6)" ( (binary_expression "(byte *)plVar1[2] < pbVar6" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }" { (expression_statement "pbVar4 = (byte *)plVar1[2] + 1;" (assignment_expression "pbVar4 = (byte *)plVar1[2] + 1" identifier = (binary_expression "(byte *)plVar1[2] + 1" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "plVar1[2] = (long)pbVar4;" (assignment_expression "plVar1[2] = (long)pbVar4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pbVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }) (else_clause "else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" else (compound_statement "{\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" { (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_004bfecb;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_004bfecb;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar6 <= pbVar4) break;" if (parenthesized_expression "(pbVar6 <= pbVar4)" ( (binary_expression "pbVar6 <= pbVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;" statement_identifier : (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;)) })) })) (labeled_statement "LAB_004bfecb:\n  ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);" statement_identifier : (labeled_statement "ios::clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit);" (call_expression "clear((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit)" identifier (argument_list "((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n             *(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit)" ( (cast_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) |\n             _S_eofbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (binary_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20" (cast_expression "(ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "long * FUN_004bfe30(long *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    \n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}\n\n" (function_definition "long * FUN_004bfe30(long *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    \n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_004bfe30(long *param_1)" * (function_declarator "FUN_004bfe30(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    \n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "undefined1 local_20 [8];" type_identifier (array_declarator "local_20 [8]" identifier [ number_literal ]) ;) (expression_statement "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);" (call_expression "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" identifier (argument_list "(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" ( identifier , (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))) ;) (expression_statement "lVar3 = FUN_004afd30(local_20);" (assignment_expression "lVar3 = FUN_004afd30(local_20)" identifier = (call_expression "FUN_004afd30(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_004a0870(local_20);" (call_expression "FUN_004a0870(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;" if (parenthesized_expression "(pbVar4 < (byte *)plVar1[3])" ( (binary_expression "pbVar4 < (byte *)plVar1[3]" identifier < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_004bfe9d;" goto statement_identifier ;)) (while_statement "while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" while (parenthesized_expression "(uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1)" ( (comma_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1" (assignment_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" ( (pointer_expression "**(code **)(*plVar1 + 0x48)" * (pointer_expression "*(code **)(*plVar1 + 0x48)" * (cast_expression "(code **)(*plVar1 + 0x48)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x48)" ( (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) , (binary_expression "(int)uVar5 != -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal)) )) (compound_statement "{\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" { (while_statement "while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" { (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar3 + 0x30) + 1" (pointer_expression "*(long *)(lVar3 + 0x30)" * (cast_expression "(long *)(lVar3 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x30)" ( (binary_expression "lVar3 + 0x30" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar5 & 0xff) * 2" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        return param_1;\n      }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" if (parenthesized_expression "((byte *)plVar1[2] < pbVar6)" ( (binary_expression "(byte *)plVar1[2] < pbVar6" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }" { (expression_statement "pbVar4 = (byte *)plVar1[2] + 1;" (assignment_expression "pbVar4 = (byte *)plVar1[2] + 1" identifier = (binary_expression "(byte *)plVar1[2] + 1" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "plVar1[2] = (long)pbVar4;" (assignment_expression "plVar1[2] = (long)pbVar4" (subscript_expression "plVar1[2]" identifier [ number_literal ]) = (cast_expression "(long)pbVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }) (else_clause "else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" else (compound_statement "{\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" { (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" identifier = (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) goto LAB_004bfecb;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_004bfecb;" goto statement_identifier ;)) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" identifier = (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" identifier = (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar6 <= pbVar4) break;" if (parenthesized_expression "(pbVar6 <= pbVar4)" ( (binary_expression "pbVar6 <= pbVar4" identifier <= identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;" statement_identifier : (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;)) })) })) (labeled_statement "LAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" statement_identifier : (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;)) (expression_statement "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);" (call_expression "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2)" identifier (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 2)" ( identifier , (binary_expression "*(uint *)(lVar3 + 0x20) | 2" (pointer_expression "*(uint *)(lVar3 + 0x20)" * (cast_expression "(uint *)(lVar3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x20)" ( (binary_expression "lVar3 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (while_statement while (parenthesized_expression ( (comma_expression (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 )))) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) & LIT) )) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) }) (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;)) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 "long * FUN_004bfe30(long *param_1)\n\n{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    \n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_004bfe30(long *param_1)" (* "*") (function_declarator "FUN_004bfe30(long *param_1)" (identifier "FUN_004bfe30") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  long lVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  byte *pbVar6;\n  undefined1 local_20 [8];\n  \n  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);\n                    \n  lVar3 = FUN_004afd30(local_20);\n  FUN_004a0870(local_20);\n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n  pbVar4 = (byte *)plVar1[2];\n  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;\n  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }\nLAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "undefined1 local_20 [8];" (type_identifier "undefined1") (array_declarator "local_20 [8]" (identifier "local_20") ([ "[") (number_literal "8") (] "]")) (; ";")) (expression_statement "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);" (call_expression "FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" (identifier "FUN_004a0130") (argument_list "(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0)" (( "(") (identifier "local_20") (, ",") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xd0")) () ")"))) (; ";")) (expression_statement "lVar3 = FUN_004afd30(local_20);" (assignment_expression "lVar3 = FUN_004afd30(local_20)" (identifier "lVar3") (= "=") (call_expression "FUN_004afd30(local_20)" (identifier "FUN_004afd30") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")")))) (; ";")) (expression_statement "FUN_004a0870(local_20);" (call_expression "FUN_004a0870(local_20)" (identifier "FUN_004a0870") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;" (if "if") (parenthesized_expression "(pbVar4 < (byte *)plVar1[3])" (( "(") (binary_expression "pbVar4 < (byte *)plVar1[3]" (identifier "pbVar4") (< "<") (cast_expression "(byte *)plVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (goto_statement "goto LAB_004bfe9d;" (goto "goto") (statement_identifier "LAB_004bfe9d") (; ";"))) (while_statement "while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" (while "while") (parenthesized_expression "(uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1)" (( "(") (comma_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1" (assignment_expression "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*plVar1 + 0x48))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x48))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x48)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x48)" (* "*") (cast_expression "(code **)(*plVar1 + 0x48)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x48)" (( "(") (binary_expression "*plVar1 + 0x48" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x48")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")")))) (, ",") (binary_expression "(int)uVar5 != -1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (!= "!=") (number_literal "-1"))) () ")")) (compound_statement "{\n    while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }\n      pbVar6 = (byte *)plVar1[3];\n      if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }\n      if (pbVar6 <= pbVar4) break;\nLAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;\n    }" ({ "{") (if_statement "if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {\n        return param_1;\n      }" (if "if") (parenthesized_expression "((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (* "*") (cast_expression "(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (binary_expression "*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar3 + 0x30) + 1" (pointer_expression "*(long *)(lVar3 + 0x30)" (* "*") (cast_expression "(long *)(lVar3 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x30)" (( "(") (binary_expression "lVar3 + 0x30" (identifier "lVar3") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uVar5 & 0xff) * 2" (parenthesized_expression "(uVar5 & 0xff)" (( "(") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return param_1;\n      }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" (identifier "pbVar6") (= "=") (cast_expression "(byte *)plVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if ((byte *)plVar1[2] < pbVar6) {\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }\n      else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" (if "if") (parenthesized_expression "((byte *)plVar1[2] < pbVar6)" (( "(") (binary_expression "(byte *)plVar1[2] < pbVar6" (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar6")) () ")")) (compound_statement "{\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\n      }" ({ "{") (expression_statement "pbVar4 = (byte *)plVar1[2] + 1;" (assignment_expression "pbVar4 = (byte *)plVar1[2] + 1" (identifier "pbVar4") (= "=") (binary_expression "(byte *)plVar1[2] + 1" (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "plVar1[2] = (long)pbVar4;" (assignment_expression "plVar1[2] = (long)pbVar4" (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(long)pbVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pbVar4"))) (; ";")) (} "}")) (else_clause "else {\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" (else "else") (compound_statement "{\n        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n        if (iVar2 == -1) goto LAB_004bfecb;\n        pbVar4 = (byte *)plVar1[2];\n        pbVar6 = (byte *)plVar1[3];\n      }" ({ "{") (expression_statement "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);" (assignment_expression "iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x50))(plVar1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) goto LAB_004bfecb;" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_004bfecb;" (goto "goto") (statement_identifier "LAB_004bfecb") (; ";"))) (expression_statement "pbVar4 = (byte *)plVar1[2];" (assignment_expression "pbVar4 = (byte *)plVar1[2]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar6 = (byte *)plVar1[3];" (assignment_expression "pbVar6 = (byte *)plVar1[3]" (identifier "pbVar6") (= "=") (cast_expression "(byte *)plVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (if_statement "if (pbVar6 <= pbVar4) break;" (if "if") (parenthesized_expression "(pbVar6 <= pbVar4)" (( "(") (binary_expression "pbVar6 <= pbVar4" (identifier "pbVar6") (<= "<=") (identifier "pbVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_004bfe9d:\n      uVar5 = (ulong)*pbVar4;" (statement_identifier "LAB_004bfe9d") (: ":") (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" (identifier "uVar5") (= "=") (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "pbVar4"))) (; ";"))) (} "}"))) (} "}"))) (labeled_statement "LAB_004bfecb:\n  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (statement_identifier "LAB_004bfecb") (: ":") (expression_statement "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar3") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";"))) (expression_statement "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);" (call_expression "FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2)" (identifier "FUN_004c3f30") (argument_list "(lVar3,*(uint *)(lVar3 + 0x20) | 2)" (( "(") (identifier "lVar3") (, ",") (binary_expression "*(uint *)(lVar3 + 0x20) | 2" (pointer_expression "*(uint *)(lVar3 + 0x20)" (* "*") (cast_expression "(uint *)(lVar3 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x20)" (( "(") (binary_expression "lVar3 + 0x20" (identifier "lVar3") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "2")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::istream& std::ws<char, std::char_traits<char> >(std::istream&) */

istream * var_3::ws<var_4,std::char_traits<var_4>>(istream *var_1)

{
  long *plVar1;
  int var_9;
  type_1 *var_6;
  type_2 *var_5;
  type_3 var_7;
  type_2 *var_8;
  type_4 local_20 [8];
  
  locale::type_4(local_20,(type_4 *)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xd0));
                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */
  var_6 = var_2<var_3::type_1<var_4>>(local_20);
  locale::~type_4(local_20);
  plVar1 = *(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8);
  var_5 = (type_2 *)plVar1[2];
  if (var_5 < (type_2 *)plVar1[3]) goto LAB_004bfe9d;
  while (var_7 = (**(type_5 **)(*plVar1 + 0x48))(plVar1), (int)var_7 != -1) {
    while( true ) {
      if ((*(type_2 *)(*(long *)(var_6 + 0x30) + 1 + (var_7 & 0xff) * 2) & 0x20) == 0) {
        return var_1;
      }
      var_8 = (type_2 *)plVar1[3];
      if ((type_2 *)plVar1[2] < var_8) {
        var_5 = (type_2 *)plVar1[2] + 1;
        plVar1[2] = (long)var_5;
      }
      else {
        var_9 = (**(type_5 **)(*plVar1 + 0x50))(plVar1);
        if (var_9 == -1) goto LAB_004bfecb;
        var_5 = (type_2 *)plVar1[2];
        var_8 = (type_2 *)plVar1[3];
      }
      if (var_8 <= var_5) break;
LAB_004bfe9d:
      var_7 = (type_3)*var_5;
    }
  }
LAB_004bfecb:
  ios::var_10((type_6 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
             *(type_7 *)((type_6 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20) |
             var_11);
  return var_1;
}


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

long * MASKED(long *param_1)

{
  long *plVar1;
  int iVar2;
  long lVar3;
  byte *pbVar4;
  ulong uVar5;
  byte *pbVar6;
  undefined1 local_20 [8];
  
  FUN_004a0130(local_20,(long)param_1 + *(long *)(*param_1 + -0x18) + 0xd0);
                    /* try { // try from 004bfe5c to 004bfe60 has its CatchHandler @ 004bff0b */
  lVar3 = FUN_004afd30(local_20);
  FUN_004a0870(local_20);
  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
  pbVar4 = (byte *)plVar1[2];
  if (pbVar4 < (byte *)plVar1[3]) goto LAB_004bfe9d;
  while (uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1), (int)uVar5 != -1) {
    while( true ) {
      if ((*(byte *)(*(long *)(lVar3 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) == 0) {
        return param_1;
      }
      pbVar6 = (byte *)plVar1[3];
      if ((byte *)plVar1[2] < pbVar6) {
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
      }
      else {
        iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
        if (iVar2 == -1) goto LAB_004bfecb;
        pbVar4 = (byte *)plVar1[2];
        pbVar6 = (byte *)plVar1[3];
      }
      if (pbVar6 <= pbVar4) break;
LAB_004bfe9d:
      uVar5 = (ulong)*pbVar4;
    }
  }
LAB_004bfecb:
  lVar3 = *(long *)(*param_1 + -0x18) + (long)param_1;
  FUN_004c3f30(lVar3,*(uint *)(lVar3 + 0x20) | 2);
  return param_1;
}

