
/* std::istream::sentry::sentry(std::istream&, bool) */

void __thiscall std::istream::sentry::sentry(sentry *this,istream *param_1,bool param_2)

{
  long *plVar1;
  int iVar2;
  _Ios_Iostate _Var3;
  byte *pbVar4;
  ulong uVar5;
  ios *this_00;
  byte *pbVar6;
  long lVar7;
  long lVar8;
  
  lVar7 = *(long *)param_1;
  *this = (sentry)0x0;
  this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));
  if (*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit) {
    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);
    return;
  }
  if (*(ostream **)(this_00 + 0xd8) == (ostream *)0x0) {
    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;
LAB_0029704c:
    plVar1 = *(long **)(this_00 + 0xe8);
    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {
      lVar8 = *(long *)(this_00 + 0xf0);
      uVar5 = (ulong)*(byte *)plVar1[2];
      if (lVar8 == 0) {
LAB_002971db:
                    /* WARNING: Subroutine does not return */
        __throw_bad_cast();
      }
    }
    else {
      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
      lVar7 = *(long *)param_1;
      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));
      lVar8 = *(long *)(this_00 + 0xf0);
      if (lVar8 == 0) goto LAB_002971db;
      if ((int)uVar5 == -1) {
LAB_002970e0:
        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;
        goto LAB_002970e6;
      }
    }
    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {
      do {
        pbVar6 = (byte *)plVar1[3];
        if (pbVar6 <= (byte *)plVar1[2]) {
          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
          if (iVar2 != -1) {
            pbVar4 = (byte *)plVar1[2];
            pbVar6 = (byte *)plVar1[3];
            goto LAB_00297098;
          }
LAB_002970d6:
          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));
          goto LAB_002970e0;
        }
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
LAB_00297098:
        if (pbVar4 < pbVar6) {
          uVar5 = (ulong)*pbVar4;
        }
        else {
                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */
          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
          if ((int)uVar5 == -1) goto LAB_002970d6;
        }
      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);
      lVar7 = *(long *)param_1;
    }
    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));
    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);
  }
  else {
                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */
    ostream::flush(*(ostream **)(this_00 + 0xd8));
    lVar7 = *(long *)param_1;
    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));
    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;
    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);
  }
  if (_Var3 == _S_goodbit) {
LAB_0029713f:
    *this = (sentry)0x1;
    return;
  }
LAB_002970e6:
  ios::clear(this_00,_Var3 | _S_failbit);
  return;
}



void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)

{
  long *plVar1;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  ulong uVar5;
  long lVar6;
  byte *pbVar7;
  long lVar8;
  long lVar9;
  
  lVar8 = *param_2;
  *param_1 = 0;
  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
  if (*(uint *)(lVar6 + 0x20) != 0) {
    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);
    return;
  }
  if (*(long *)(lVar6 + 0xd8) == 0) {
    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;
LAB_0029704c:
    plVar1 = *(long **)(lVar6 + 0xe8);
    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {
      lVar9 = *(long *)(lVar6 + 0xf0);
      uVar5 = (ulong)*(byte *)plVar1[2];
      if (lVar9 == 0) {
LAB_002971db:
                    /* WARNING: Subroutine does not return */
        FUN_002b5510();
      }
    }
    else {
      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
      lVar8 = *param_2;
      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
      lVar9 = *(long *)(lVar6 + 0xf0);
      if (lVar9 == 0) goto LAB_002971db;
      if ((int)uVar5 == -1) {
LAB_002970e0:
        uVar3 = *(uint *)(lVar6 + 0x20) | 2;
        goto LAB_002970e6;
      }
    }
    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {
      do {
        pbVar7 = (byte *)plVar1[3];
        if (pbVar7 <= (byte *)plVar1[2]) {
          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
          if (iVar2 != -1) {
            pbVar4 = (byte *)plVar1[2];
            pbVar7 = (byte *)plVar1[3];
            goto LAB_00297098;
          }
LAB_002970d6:
          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);
          goto LAB_002970e0;
        }
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
LAB_00297098:
        if (pbVar4 < pbVar7) {
          uVar5 = (ulong)*pbVar4;
        }
        else {
                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */
          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
          if ((int)uVar5 == -1) goto LAB_002970d6;
        }
      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);
      lVar8 = *param_2;
    }
    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);
    uVar3 = *(uint *)(lVar6 + 0x20);
  }
  else {
                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */
    FUN_00281710();
    lVar8 = *param_2;
    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;
    uVar3 = *(uint *)(lVar6 + 0x20);
  }
  if (uVar3 == 0) {
LAB_0029713f:
    *param_1 = 1;
    return;
  }
LAB_002970e6:
  FUN_0029c920(lVar6,uVar3 | 4);
  return;
}


MOV R8,qword ptr [RSI]
MOV byte ptr [RDI],0x0
MOV RCX,qword ptr [R8 + -0x18]
ADD RCX,RSI
MOV EAX,dword ptr [RCX + 0x20]
TEST EAX,EAX
JZ 0x00297008
OR EAX,0x4
MOV RDI,RCX
MOV ESI,EAX
JMP 0x0029c920
PUSH R13
PUSH R12
MOV R12,RDI
PUSH RBP
MOV EBP,EDX
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
MOV RDI,qword ptr [RCX + 0xd8]
TEST RDI,RDI
JZ 0x00297150
CALL 0x00281710
MOV R8,qword ptr [RBX]
MOV RCX,qword ptr [R8 + -0x18]
ADD RCX,RBX
TEST BPL,BPL
JNZ 0x00297138
TEST byte ptr [RCX + 0x19],0x10
JZ 0x00297138
MOV RBP,qword ptr [RCX + 0xe8]
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RBP + 0x18],RAX
JBE 0x002971a0
MOV R13,qword ptr [RCX + 0xf0]
MOVZX EAX,byte ptr [RAX]
TEST R13,R13
JZ 0x002971db
MOV RDX,qword ptr [R13 + 0x30]
MOVZX EAX,AL
TEST byte ptr [RDX + RAX*0x2 + 0x1],0x20
JNZ 0x002970b6
JMP 0x00297183
ADD RAX,0x1
MOV qword ptr [RBP + 0x10],RAX
CMP RAX,RDX
JNC 0x00297160
MOVZX EAX,byte ptr [RAX]
MOV RDX,qword ptr [R13 + 0x30]
MOVZX EAX,AL
TEST byte ptr [RDX + RAX*0x2 + 0x1],0x20
JZ 0x00297180
MOV RAX,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
CMP RAX,RDX
JC 0x00297090
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x50]
CMP EAX,-0x1
JNZ 0x002971ce
MOV RAX,qword ptr [RBX]
ADD RBX,qword ptr [RAX + -0x18]
MOV RCX,RBX
MOV EAX,dword ptr [RCX + 0x20]
OR EAX,0x2
ADD RSP,0x8
OR EAX,0x4
MOV RDI,RCX
POP RBX
MOV ESI,EAX
POP RBP
POP R12
POP R13
JMP 0x0029c920
MOV EAX,dword ptr [RCX + 0x20]
TEST EAX,EAX
JNZ 0x002970e6
MOV byte ptr [R12],0x1
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
TEST DL,DL
JNZ 0x0029713f
TEST byte ptr [RCX + 0x19],0x10
JZ 0x0029713f
JMP 0x0029704c
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
CMP EAX,-0x1
JNZ 0x002970a4
JMP 0x002970d6
MOV R8,qword ptr [RBX]
ADD RBX,qword ptr [R8 + -0x18]
MOV EAX,dword ptr [RBX + 0x20]
MOV RCX,RBX
TEST EAX,EAX
JZ 0x0029713f
JMP 0x002970e6
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x48]
MOV R8,qword ptr [RBX]
MOV RCX,qword ptr [R8 + -0x18]
ADD RCX,RBX
MOV R13,qword ptr [RCX + 0xf0]
TEST R13,R13
JZ 0x002971db
CMP EAX,-0x1
JNZ 0x00297074
JMP 0x002970e0
MOV RAX,qword ptr [RBP + 0x10]
MOV RDX,qword ptr [RBP + 0x18]
JMP 0x00297098
CALL 0x002b5510
(translation_unit "void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)\n\n{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}\n\n" (function_definition "void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)\n\n{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" primitive_type (function_declarator "FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)" identifier (parameter_list "(undefined1 *param_1,long *param_2,char param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" if (parenthesized_expression "(*(uint *)(lVar6 + 0x20) != 0)" ( (binary_expression "*(uint *)(lVar6 + 0x20) != 0" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" { (expression_statement "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);" (call_expression "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4)" identifier (argument_list "(lVar6,*(uint *)(lVar6 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar6 + 0x20) | 4" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" if (parenthesized_expression "(*(long *)(lVar6 + 0xd8) == 0)" ( (binary_expression "*(long *)(lVar6 + 0xd8) == 0" (pointer_expression "*(long *)(lVar6 + 0xd8)" * (cast_expression "(long *)(lVar6 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xd8)" ( (binary_expression "lVar6 + 0xd8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" { (if_statement "if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;" if (parenthesized_expression "((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0))" ( (binary_expression "(param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" ( (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" * (cast_expression "(byte *)(lVar6 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x19)" ( (binary_expression "lVar6 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0029713f;" goto statement_identifier ;)) (labeled_statement "LAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);" statement_identifier : (expression_statement "plVar1 = *(long **)(lVar6 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar6 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar6 + 0xe8)" * (cast_expression "(long **)(lVar6 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar6 + 0xe8)" ( (binary_expression "lVar6 + 0xe8" identifier + number_literal) ))))) ;)) (if_statement "if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" if (parenthesized_expression "((byte *)plVar1[2] < (byte *)plVar1[3])" ( (binary_expression "(byte *)plVar1[2] < (byte *)plVar1[3]" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }\n    }" { (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" identifier = (pointer_expression "*(long *)(lVar6 + 0xf0)" * (cast_expression "(long *)(lVar6 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xf0)" ( (binary_expression "lVar6 + 0xf0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (ulong)*(byte *)plVar1[2];" (assignment_expression "uVar5 = (ulong)*(byte *)plVar1[2]" identifier = (binary_expression "(ulong)*(byte *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) (if_statement "if (lVar9 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();\n      }" { (labeled_statement "LAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        FUN_002b5510();" statement_identifier : comment (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" else (compound_statement "{\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" { (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" identifier = (pointer_expression "*(long *)(lVar6 + 0xf0)" * (cast_expression "(long *)(lVar6 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xf0)" ( (binary_expression "lVar6 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (lVar9 == 0) goto LAB_002971db;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002971db;" goto statement_identifier ;)) (if_statement "if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" { (labeled_statement "LAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;" statement_identifier : (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20) | 2;" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20) | 2" identifier = (binary_expression "*(uint *)(lVar6 + 0x20) | 2" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) | number_literal)) ;)) (goto_statement "goto LAB_002970e6;" goto statement_identifier ;) })) }))) (if_statement "if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" * (cast_expression "(long *)(lVar9 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x30)" ( (binary_expression "lVar9 + 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      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" { (do_statement "do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);" do (compound_statement "{\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      }" { (expression_statement "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (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 (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }" if (parenthesized_expression "(pbVar7 <= (byte *)plVar1[2])" ( (binary_expression "pbVar7 <= (byte *)plVar1[2]" identifier <= (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\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) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" { (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 "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (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_00297098;" goto statement_identifier ;) })) (labeled_statement "LAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" statement_identifier : (expression_statement "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18)" identifier = (binary_expression "(long)param_2 + *(long *)(*param_2 + -0x18)" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_2 + -0x18)" * (cast_expression "(long *)(*param_2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0x18)" ( (binary_expression "*param_2 + -0x18" (pointer_expression "*param_2" * identifier) + number_literal) )))))) ;)) (goto_statement "goto LAB_002970e0;" goto statement_identifier ;) })) (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)) ;) (labeled_statement "LAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" statement_identifier : (if_statement "if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" if (parenthesized_expression "(pbVar4 < pbVar7)" ( (binary_expression "pbVar4 < pbVar7" identifier < identifier) )) (compound_statement "{\n          uVar5 = (ulong)*pbVar4;\n        }" { (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" else (compound_statement "{\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" { comment (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (if_statement "if ((int)uVar5 == -1) goto LAB_002970d6;" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (goto_statement "goto LAB_002970d6;" goto statement_identifier ;)) })))) }) while (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" * (cast_expression "(long *)(lVar9 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x30)" ( (binary_expression "lVar9 + 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) )) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18)" identifier = (binary_expression "(long)param_2 + *(long *)(lVar8 + -0x18)" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))))) ;) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" identifier = (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" else (compound_statement "{\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" { comment (expression_statement "FUN_00281710();" (call_expression "FUN_00281710()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;" if (parenthesized_expression "((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0))" ( (binary_expression "(param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" ( (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) != 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" * (cast_expression "(byte *)(lVar6 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x19)" ( (binary_expression "lVar6 + 0x19" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_0029704c;" goto statement_identifier ;)) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" identifier = (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" { (labeled_statement "LAB_0029713f:\n    *param_1 = 1;" statement_identifier : (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;)) (return_statement "return;" return ;) })) (labeled_statement "LAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);" statement_identifier : (expression_statement "FUN_0029c920(lVar6,uVar3 | 4);" (call_expression "FUN_0029c920(lVar6,uVar3 | 4)" identifier (argument_list "(lVar6,uVar3 | 4)" ( identifier , (binary_expression "uVar3 | 4" identifier | number_literal) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* std::istream::sentry::sentry(std::istream&, bool) */\n\nvoid __thiscall std::istream::sentry::sentry(sentry *this,istream *param_1,bool param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  _Ios_Iostate _Var3;\n  byte *pbVar4;\n  ulong uVar5;\n  ios *this_00;\n  byte *pbVar6;\n  long lVar7;\n  long lVar8;\n  \n  lVar7 = *(long *)param_1;\n  *this = (sentry)0x0;\n  this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n  if (*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit) {\n    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);\n    return;\n  }\n  if (*(ostream **)(this_00 + 0xd8) == (ostream *)0x0) {\n    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  if (_Var3 == _S_goodbit) {\nLAB_0029713f:\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_002970e6:\n  ios::clear(this_00,_Var3 | _S_failbit);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::istream::sentry::sentry(sentry *this,istream *param_1,bool param_2)\n\n{\n  long *plVar1;\n  int iVar2;\n  _Ios_Iostate _Var3;\n  byte *pbVar4;\n  ulong uVar5;\n  ios *this_00;\n  byte *pbVar6;\n  long lVar7;\n  long lVar8;\n  \n  lVar7 = *(long *)param_1;\n  *this = (sentry)0x0;\n  this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n  if (*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit) {\n    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);\n    return;\n  }\n  if (*(ostream **)(this_00 + 0xd8) == (ostream *)0x0) {\n    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  if (_Var3 == _S_goodbit) {\nLAB_0029713f:\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_002970e6:\n  ios::clear(this_00,_Var3 | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istream::sentry::" identifier : : identifier : : identifier : :) (function_declarator "sentry(sentry *this,istream *param_1,bool param_2)" identifier (parameter_list "(sentry *this,istream *param_1,bool param_2)" ( (parameter_declaration "sentry *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "istream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "bool param_2" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  _Ios_Iostate _Var3;\n  byte *pbVar4;\n  ulong uVar5;\n  ios *this_00;\n  byte *pbVar6;\n  long lVar7;\n  long lVar8;\n  \n  lVar7 = *(long *)param_1;\n  *this = (sentry)0x0;\n  this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n  if (*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit) {\n    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);\n    return;\n  }\n  if (*(ostream **)(this_00 + 0xd8) == (ostream *)0x0) {\n    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  if (_Var3 == _S_goodbit) {\nLAB_0029713f:\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_002970e6:\n  ios::clear(this_00,_Var3 | _S_failbit);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "_Ios_Iostate _Var3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar7 = *(long *)param_1;" (assignment_expression "lVar7 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*this = (sentry)0x0;" (assignment_expression "*this = (sentry)0x0" (pointer_expression "*this" * identifier) = (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;) (expression_statement "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));" (assignment_expression "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18))" identifier = (cast_expression "(ios *)(param_1 + *(long *)(lVar7 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(lVar7 + -0x18))" ( (binary_expression "param_1 + *(long *)(lVar7 + -0x18)" identifier + (pointer_expression "*(long *)(lVar7 + -0x18)" * (cast_expression "(long *)(lVar7 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + -0x18)" ( (binary_expression "lVar7 + -0x18" identifier + number_literal) ))))) )))) ;) (if_statement "if (*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit) {\n    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);\n    return;\n  }" if (parenthesized_expression "(*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit)" ( (binary_expression "*(_Ios_Iostate *)(this_00 + 0x20) != _S_goodbit" (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);\n    return;\n  }" { (labeled_statement "ios::clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit);" (call_expression "clear(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit)" identifier (argument_list "(this_00,*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_00 + 0x20) | _S_failbit" (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })) (if_statement "if (*(ostream **)(this_00 + 0xd8) == (ostream *)0x0) {\n    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }\n  else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }" if (parenthesized_expression "(*(ostream **)(this_00 + 0xd8) == (ostream *)0x0)" ( (binary_expression "*(ostream **)(this_00 + 0xd8) == (ostream *)0x0" (pointer_expression "*(ostream **)(this_00 + 0xd8)" * (cast_expression "(ostream **)(this_00 + 0xd8)" ( (type_descriptor "ostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0xd8)" ( (binary_expression "this_00 + 0xd8" identifier + number_literal) )))) == (cast_expression "(ostream *)0x0" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }" { (if_statement "if ((param_2) || (((byte)this_00[0x19] & 0x10) == 0)) goto LAB_0029713f;" if (parenthesized_expression "((param_2) || (((byte)this_00[0x19] & 0x10) == 0))" ( (binary_expression "(param_2) || (((byte)this_00[0x19] & 0x10) == 0)" (parenthesized_expression "(param_2)" ( identifier )) || (parenthesized_expression "(((byte)this_00[0x19] & 0x10) == 0)" ( (binary_expression "((byte)this_00[0x19] & 0x10) == 0" (parenthesized_expression "((byte)this_00[0x19] & 0x10)" ( (binary_expression "(byte)this_00[0x19] & 0x10" (cast_expression "(byte)this_00[0x19]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this_00[0x19]" identifier [ number_literal ])) & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0029713f;" goto statement_identifier ;)) (labeled_statement "LAB_0029704c:\n    plVar1 = *(long **)(this_00 + 0xe8);" statement_identifier : (expression_statement "plVar1 = *(long **)(this_00 + 0xe8);" (assignment_expression "plVar1 = *(long **)(this_00 + 0xe8)" identifier = (pointer_expression "*(long **)(this_00 + 0xe8)" * (cast_expression "(long **)(this_00 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0xe8)" ( (binary_expression "this_00 + 0xe8" identifier + number_literal) ))))) ;)) (if_statement "if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }" if (parenthesized_expression "((byte *)plVar1[2] < (byte *)plVar1[3])" ( (binary_expression "(byte *)plVar1[2] < (byte *)plVar1[3]" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      lVar8 = *(long *)(this_00 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n    }" { (expression_statement "lVar8 = *(long *)(this_00 + 0xf0);" (assignment_expression "lVar8 = *(long *)(this_00 + 0xf0)" identifier = (pointer_expression "*(long *)(this_00 + 0xf0)" * (cast_expression "(long *)(this_00 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0xf0)" ( (binary_expression "this_00 + 0xf0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (ulong)*(byte *)plVar1[2];" (assignment_expression "uVar5 = (ulong)*(byte *)plVar1[2]" identifier = (binary_expression "(ulong)*(byte *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) (if_statement "if (lVar8 == 0) {\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }" if (parenthesized_expression "(lVar8 == 0)" ( (binary_expression "lVar8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }" { (labeled_statement "LAB_002971db:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();" statement_identifier : comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }" else (compound_statement "{\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar7 = *(long *)param_1;\n      this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n      lVar8 = *(long *)(this_00 + 0xf0);\n      if (lVar8 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }\n    }" { (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (expression_statement "lVar7 = *(long *)param_1;" (assignment_expression "lVar7 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));" (assignment_expression "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18))" identifier = (cast_expression "(ios *)(param_1 + *(long *)(lVar7 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(lVar7 + -0x18))" ( (binary_expression "param_1 + *(long *)(lVar7 + -0x18)" identifier + (pointer_expression "*(long *)(lVar7 + -0x18)" * (cast_expression "(long *)(lVar7 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + -0x18)" ( (binary_expression "lVar7 + -0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "lVar8 = *(long *)(this_00 + 0xf0);" (assignment_expression "lVar8 = *(long *)(this_00 + 0xf0)" identifier = (pointer_expression "*(long *)(this_00 + 0xf0)" * (cast_expression "(long *)(this_00 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0xf0)" ( (binary_expression "this_00 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (lVar8 == 0) goto LAB_002971db;" if (parenthesized_expression "(lVar8 == 0)" ( (binary_expression "lVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002971db;" goto statement_identifier ;)) (if_statement "if ((int)uVar5 == -1) {\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\nLAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;\n        goto LAB_002970e6;\n      }" { (labeled_statement "LAB_002970e0:\n        _Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;" statement_identifier : (expression_statement "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit;" (assignment_expression "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit" identifier = (binary_expression "*(_Ios_Iostate *)(this_00 + 0x20) | _S_eofbit" (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) )))) | identifier)) ;)) (goto_statement "goto LAB_002970e6;" goto statement_identifier ;) })) }))) (if_statement "if ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar8 + 0x30) + 1" (pointer_expression "*(long *)(lVar8 + 0x30)" * (cast_expression "(long *)(lVar8 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + 0x30)" ( (binary_expression "lVar8 + 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      do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar7 = *(long *)param_1;\n    }" { (do_statement "do {\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);" do (compound_statement "{\n        pbVar6 = (byte *)plVar1[3];\n        if (pbVar6 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      }" { (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 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\n        }" if (parenthesized_expression "(pbVar6 <= (byte *)plVar1[2])" ( (binary_expression "pbVar6 <= (byte *)plVar1[2]" identifier <= (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));\n          goto LAB_002970e0;\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) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar4 = (byte *)plVar1[2];\n            pbVar6 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" { (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 ]))) ;) (goto_statement "goto LAB_00297098;" goto statement_identifier ;) })) (labeled_statement "LAB_002970d6:\n          this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" statement_identifier : (expression_statement "this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18));" (assignment_expression "this_00 = (ios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" identifier = (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) ))))) )))) ;)) (goto_statement "goto LAB_002970e0;" goto statement_identifier ;) })) (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)) ;) (labeled_statement "LAB_00297098:\n        if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" statement_identifier : (if_statement "if (pbVar4 < pbVar6) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" if (parenthesized_expression "(pbVar4 < pbVar6)" ( (binary_expression "pbVar4 < pbVar6" identifier < identifier) )) (compound_statement "{\n          uVar5 = (ulong)*pbVar4;\n        }" { (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" else (compound_statement "{\n                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */\n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" { comment (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (if_statement "if ((int)uVar5 == -1) goto LAB_002970d6;" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (goto_statement "goto LAB_002970d6;" goto statement_identifier ;)) })))) }) while (parenthesized_expression "((*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar8 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar8 + 0x30) + 1" (pointer_expression "*(long *)(lVar8 + 0x30)" * (cast_expression "(long *)(lVar8 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + 0x30)" ( (binary_expression "lVar8 + 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) )) ;) (expression_statement "lVar7 = *(long *)param_1;" (assignment_expression "lVar7 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (expression_statement "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));" (assignment_expression "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18))" identifier = (cast_expression "(ios *)(param_1 + *(long *)(lVar7 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(lVar7 + -0x18))" ( (binary_expression "param_1 + *(long *)(lVar7 + -0x18)" identifier + (pointer_expression "*(long *)(lVar7 + -0x18)" * (cast_expression "(long *)(lVar7 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + -0x18)" ( (binary_expression "lVar7 + -0x18" identifier + number_literal) ))))) )))) ;) (expression_statement "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20);" (assignment_expression "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20)" identifier = (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }" else (compound_statement "{\n                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */\n    ostream::flush(*(ostream **)(this_00 + 0xd8));\n    lVar7 = *(long *)param_1;\n    this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));\n    if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;\n    _Var3 = *(_Ios_Iostate *)(this_00 + 0x20);\n  }" { comment (labeled_statement "ostream::flush(*(ostream **)(this_00 + 0xd8));" statement_identifier : (ERROR ":" :) (expression_statement "flush(*(ostream **)(this_00 + 0xd8));" (call_expression "flush(*(ostream **)(this_00 + 0xd8))" identifier (argument_list "(*(ostream **)(this_00 + 0xd8))" ( (pointer_expression "*(ostream **)(this_00 + 0xd8)" * (cast_expression "(ostream **)(this_00 + 0xd8)" ( (type_descriptor "ostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0xd8)" ( (binary_expression "this_00 + 0xd8" identifier + number_literal) )))) ))) ;)) (expression_statement "lVar7 = *(long *)param_1;" (assignment_expression "lVar7 = *(long *)param_1" identifier = (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18));" (assignment_expression "this_00 = (ios *)(param_1 + *(long *)(lVar7 + -0x18))" identifier = (cast_expression "(ios *)(param_1 + *(long *)(lVar7 + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(lVar7 + -0x18))" ( (binary_expression "param_1 + *(long *)(lVar7 + -0x18)" identifier + (pointer_expression "*(long *)(lVar7 + -0x18)" * (cast_expression "(long *)(lVar7 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar7 + -0x18)" ( (binary_expression "lVar7 + -0x18" identifier + number_literal) ))))) )))) ;) (if_statement "if ((!param_2) && (((byte)this_00[0x19] & 0x10) != 0)) goto LAB_0029704c;" if (parenthesized_expression "((!param_2) && (((byte)this_00[0x19] & 0x10) != 0))" ( (binary_expression "(!param_2) && (((byte)this_00[0x19] & 0x10) != 0)" (parenthesized_expression "(!param_2)" ( (unary_expression "!param_2" ! identifier) )) && (parenthesized_expression "(((byte)this_00[0x19] & 0x10) != 0)" ( (binary_expression "((byte)this_00[0x19] & 0x10) != 0" (parenthesized_expression "((byte)this_00[0x19] & 0x10)" ( (binary_expression "(byte)this_00[0x19] & 0x10" (cast_expression "(byte)this_00[0x19]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "this_00[0x19]" identifier [ number_literal ])) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_0029704c;" goto statement_identifier ;)) (expression_statement "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20);" (assignment_expression "_Var3 = *(_Ios_Iostate *)(this_00 + 0x20)" identifier = (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x20)" ( (binary_expression "this_00 + 0x20" identifier + number_literal) ))))) ;) }))) (if_statement "if (_Var3 == _S_goodbit) {\nLAB_0029713f:\n    *this = (sentry)0x1;\n    return;\n  }" if (parenthesized_expression "(_Var3 == _S_goodbit)" ( (binary_expression "_Var3 == _S_goodbit" identifier == identifier) )) (compound_statement "{\nLAB_0029713f:\n    *this = (sentry)0x1;\n    return;\n  }" { (labeled_statement "LAB_0029713f:\n    *this = (sentry)0x1;" statement_identifier : (expression_statement "*this = (sentry)0x1;" (assignment_expression "*this = (sentry)0x1" (pointer_expression "*this" * identifier) = (cast_expression "(sentry)0x1" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;)) (return_statement "return;" return ;) })) (labeled_statement "LAB_002970e6:\n  ios::clear(this_00,_Var3 | _S_failbit);" statement_identifier : (labeled_statement "ios::clear(this_00,_Var3 | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,_Var3 | _S_failbit);" (call_expression "clear(this_00,_Var3 | _S_failbit)" identifier (argument_list "(this_00,_Var3 | _S_failbit)" ( identifier , (binary_expression "_Var3 | _S_failbit" identifier | identifier) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)\n\n{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}\n\n" (function_definition "void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)\n\n{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" primitive_type (function_declarator "FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)" identifier (parameter_list "(undefined1 *param_1,long *param_2,char param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" if (parenthesized_expression "(*(uint *)(lVar6 + 0x20) != 0)" ( (binary_expression "*(uint *)(lVar6 + 0x20) != 0" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" { (expression_statement "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);" (call_expression "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4)" identifier (argument_list "(lVar6,*(uint *)(lVar6 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar6 + 0x20) | 4" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" if (parenthesized_expression "(*(long *)(lVar6 + 0xd8) == 0)" ( (binary_expression "*(long *)(lVar6 + 0xd8) == 0" (pointer_expression "*(long *)(lVar6 + 0xd8)" * (cast_expression "(long *)(lVar6 + 0xd8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xd8)" ( (binary_expression "lVar6 + 0xd8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" { (if_statement "if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;" if (parenthesized_expression "((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0))" ( (binary_expression "(param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" ( (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" * (cast_expression "(byte *)(lVar6 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x19)" ( (binary_expression "lVar6 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0029713f;" goto statement_identifier ;)) (labeled_statement "LAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);" statement_identifier : (expression_statement "plVar1 = *(long **)(lVar6 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar6 + 0xe8)" identifier = (pointer_expression "*(long **)(lVar6 + 0xe8)" * (cast_expression "(long **)(lVar6 + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar6 + 0xe8)" ( (binary_expression "lVar6 + 0xe8" identifier + number_literal) ))))) ;)) (if_statement "if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" if (parenthesized_expression "((byte *)plVar1[2] < (byte *)plVar1[3])" ( (binary_expression "(byte *)plVar1[2] < (byte *)plVar1[3]" (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)plVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }" { (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" identifier = (pointer_expression "*(long *)(lVar6 + 0xf0)" * (cast_expression "(long *)(lVar6 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xf0)" ( (binary_expression "lVar6 + 0xf0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (ulong)*(byte *)plVar1[2];" (assignment_expression "uVar5 = (ulong)*(byte *)plVar1[2]" identifier = (binary_expression "(ulong)*(byte *)plVar1[2]" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ])))) ;) (if_statement "if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }" { (labeled_statement "LAB_002971db:\n                    \n        FUN_002b5510();" statement_identifier : (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" identifier (argument_list "()" ( ))) ;)) })) }) (else_clause "else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" else (compound_statement "{\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" { (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" identifier = (pointer_expression "*(long *)(lVar6 + 0xf0)" * (cast_expression "(long *)(lVar6 + 0xf0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0xf0)" ( (binary_expression "lVar6 + 0xf0" identifier + number_literal) ))))) ;) (if_statement "if (lVar9 == 0) goto LAB_002971db;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_002971db;" goto statement_identifier ;)) (if_statement "if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (compound_statement "{\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" { (labeled_statement "LAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;" statement_identifier : (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20) | 2;" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20) | 2" identifier = (binary_expression "*(uint *)(lVar6 + 0x20) | 2" (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) | number_literal)) ;)) (goto_statement "goto LAB_002970e6;" goto statement_identifier ;) })) }))) (if_statement "if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" if (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" * (cast_expression "(long *)(lVar9 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x30)" ( (binary_expression "lVar9 + 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      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" { (do_statement "do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);" do (compound_statement "{\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      }" { (expression_statement "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (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 (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }" if (parenthesized_expression "(pbVar7 <= (byte *)plVar1[2])" ( (binary_expression "pbVar7 <= (byte *)plVar1[2]" identifier <= (cast_expression "(byte *)plVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar1[2]" identifier [ number_literal ]))) )) (compound_statement "{\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\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) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" { (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 "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (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_00297098;" goto statement_identifier ;) })) (labeled_statement "LAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" statement_identifier : (expression_statement "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18)" identifier = (binary_expression "(long)param_2 + *(long *)(*param_2 + -0x18)" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_2 + -0x18)" * (cast_expression "(long *)(*param_2 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0x18)" ( (binary_expression "*param_2 + -0x18" (pointer_expression "*param_2" * identifier) + number_literal) )))))) ;)) (goto_statement "goto LAB_002970e0;" goto statement_identifier ;) })) (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)) ;) (labeled_statement "LAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" statement_identifier : (if_statement "if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" if (parenthesized_expression "(pbVar4 < pbVar7)" ( (binary_expression "pbVar4 < pbVar7" identifier < identifier) )) (compound_statement "{\n          uVar5 = (ulong)*pbVar4;\n        }" { (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" identifier = (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" else (compound_statement "{\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" { (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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 )))) ;) (if_statement "if ((int)uVar5 == -1) goto LAB_002970d6;" if (parenthesized_expression "((int)uVar5 == -1)" ( (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) == number_literal) )) (goto_statement "goto LAB_002970d6;" goto statement_identifier ;)) })))) }) while (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" * (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" ( (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" * (cast_expression "(long *)(lVar9 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 0x30)" ( (binary_expression "lVar9 + 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) )) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) (expression_statement "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18)" identifier = (binary_expression "(long)param_2 + *(long *)(lVar8 + -0x18)" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))))) ;) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" identifier = (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) ;) }) (else_clause "else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" else (compound_statement "{\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" { (expression_statement "FUN_00281710();" (call_expression "FUN_00281710()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" identifier = (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" * (cast_expression "(long *)(lVar8 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + -0x18)" ( (binary_expression "lVar8 + -0x18" identifier + number_literal) )))) + (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;" if (parenthesized_expression "((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0))" ( (binary_expression "(param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" ( (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) != 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" * (cast_expression "(byte *)(lVar6 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x19)" ( (binary_expression "lVar6 + 0x19" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_0029704c;" goto statement_identifier ;)) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" identifier = (pointer_expression "*(uint *)(lVar6 + 0x20)" * (cast_expression "(uint *)(lVar6 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) ;) }))) (if_statement "if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" { (labeled_statement "LAB_0029713f:\n    *param_1 = 1;" statement_identifier : (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;)) (return_statement "return;" return ;) })) (labeled_statement "LAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);" statement_identifier : (expression_statement "FUN_0029c920(lVar6,uVar3 | 4);" (call_expression "FUN_0029c920(lVar6,uVar3 | 4)" identifier (argument_list "(lVar6,uVar3 | 4)" ( identifier , (binary_expression "uVar3 | 4" identifier | number_literal) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (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 ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (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 IDENT + LIT) ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) }) (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 )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;)) (goto_statement goto statement_identifier ;) })) }))) (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 { (do_statement do (compound_statement { (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 ]))) )) (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) )) (compound_statement { (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 ]))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (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) )))))) ;)) (goto_statement goto statement_identifier ;) })) (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)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) })))) }) while (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) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (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 IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | LIT) ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)\n\n{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00296fe0(undefined1 *param_1,long *param_2,char param_3)" (identifier "FUN_00296fe0") (parameter_list "(undefined1 *param_1,long *param_2,char param_3)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  long *plVar1;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  ulong uVar5;\n  long lVar6;\n  byte *pbVar7;\n  long lVar8;\n  long lVar9;\n  \n  lVar8 = *param_2;\n  *param_1 = 0;\n  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n  if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }\n  if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }\nLAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "long lVar8;" (sized_type_specifier "long" (long "long")) (identifier "lVar8") (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" (identifier "lVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" (identifier "lVar6") (= "=") (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" (* "*") (cast_expression "(long *)(lVar8 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + -0x18)" (( "(") (binary_expression "lVar8 + -0x18" (identifier "lVar8") (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")))) (; ";")) (if_statement "if (*(uint *)(lVar6 + 0x20) != 0) {\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" (if "if") (parenthesized_expression "(*(uint *)(lVar6 + 0x20) != 0)" (( "(") (binary_expression "*(uint *)(lVar6 + 0x20) != 0" (pointer_expression "*(uint *)(lVar6 + 0x20)" (* "*") (cast_expression "(uint *)(lVar6 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);\n    return;\n  }" ({ "{") (expression_statement "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);" (call_expression "FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4)" (identifier "FUN_0029c920") (argument_list "(lVar6,*(uint *)(lVar6 + 0x20) | 4)" (( "(") (identifier "lVar6") (, ",") (binary_expression "*(uint *)(lVar6 + 0x20) | 4" (pointer_expression "*(uint *)(lVar6 + 0x20)" (* "*") (cast_expression "(uint *)(lVar6 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (*(long *)(lVar6 + 0xd8) == 0) {\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }\n  else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" (if "if") (parenthesized_expression "(*(long *)(lVar6 + 0xd8) == 0)" (( "(") (binary_expression "*(long *)(lVar6 + 0xd8) == 0" (pointer_expression "*(long *)(lVar6 + 0xd8)" (* "*") (cast_expression "(long *)(lVar6 + 0xd8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0xd8)" (( "(") (binary_expression "lVar6 + 0xd8" (identifier "lVar6") (+ "+") (number_literal "0xd8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;\nLAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);\n    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }\n    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }\n    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" ({ "{") (if_statement "if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;" (if "if") (parenthesized_expression "((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0))" (( "(") (binary_expression "(param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" (( "(") (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" (* "*") (cast_expression "(byte *)(lVar6 + 0x19)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x19)" (( "(") (binary_expression "lVar6 + 0x19" (identifier "lVar6") (+ "+") (number_literal "0x19")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0029713f;" (goto "goto") (statement_identifier "LAB_0029713f") (; ";"))) (labeled_statement "LAB_0029704c:\n    plVar1 = *(long **)(lVar6 + 0xe8);" (statement_identifier "LAB_0029704c") (: ":") (expression_statement "plVar1 = *(long **)(lVar6 + 0xe8);" (assignment_expression "plVar1 = *(long **)(lVar6 + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(lVar6 + 0xe8)" (* "*") (cast_expression "(long **)(lVar6 + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar6 + 0xe8)" (( "(") (binary_expression "lVar6 + 0xe8" (identifier "lVar6") (+ "+") (number_literal "0xe8")) () ")"))))) (; ";"))) (if_statement "if ((byte *)plVar1[2] < (byte *)plVar1[3]) {\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }\n    else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" (if "if") (parenthesized_expression "((byte *)plVar1[2] < (byte *)plVar1[3])" (( "(") (binary_expression "(byte *)plVar1[2] < (byte *)plVar1[3]" (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(byte *)plVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[3]" (identifier "plVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      uVar5 = (ulong)*(byte *)plVar1[2];\n      if (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }\n    }" ({ "{") (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" (identifier "lVar9") (= "=") (pointer_expression "*(long *)(lVar6 + 0xf0)" (* "*") (cast_expression "(long *)(lVar6 + 0xf0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0xf0)" (( "(") (binary_expression "lVar6 + 0xf0" (identifier "lVar6") (+ "+") (number_literal "0xf0")) () ")"))))) (; ";")) (expression_statement "uVar5 = (ulong)*(byte *)plVar1[2];" (assignment_expression "uVar5 = (ulong)*(byte *)plVar1[2]" (identifier "uVar5") (= "=") (binary_expression "(ulong)*(byte *)plVar1[2]" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (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 (lVar9 == 0) {\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }" (if "if") (parenthesized_expression "(lVar9 == 0)" (( "(") (binary_expression "lVar9 == 0" (identifier "lVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002971db:\n                    \n        FUN_002b5510();\n      }" ({ "{") (labeled_statement "LAB_002971db:\n                    \n        FUN_002b5510();" (statement_identifier "LAB_002971db") (: ":") (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" (identifier "FUN_002b5510") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}")) (else_clause "else {\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" (else "else") (compound_statement "{\n      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n      lVar8 = *param_2;\n      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n      lVar9 = *(long *)(lVar6 + 0xf0);\n      if (lVar9 == 0) goto LAB_002971db;\n      if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }\n    }" ({ "{") (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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") () ")")))) (; ";")) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" (identifier "lVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" (identifier "lVar6") (= "=") (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" (* "*") (cast_expression "(long *)(lVar8 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + -0x18)" (( "(") (binary_expression "lVar8 + -0x18" (identifier "lVar8") (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")))) (; ";")) (expression_statement "lVar9 = *(long *)(lVar6 + 0xf0);" (assignment_expression "lVar9 = *(long *)(lVar6 + 0xf0)" (identifier "lVar9") (= "=") (pointer_expression "*(long *)(lVar6 + 0xf0)" (* "*") (cast_expression "(long *)(lVar6 + 0xf0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0xf0)" (( "(") (binary_expression "lVar6 + 0xf0" (identifier "lVar6") (+ "+") (number_literal "0xf0")) () ")"))))) (; ";")) (if_statement "if (lVar9 == 0) goto LAB_002971db;" (if "if") (parenthesized_expression "(lVar9 == 0)" (( "(") (binary_expression "lVar9 == 0" (identifier "lVar9") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_002971db;" (goto "goto") (statement_identifier "LAB_002971db") (; ";"))) (if_statement "if ((int)uVar5 == -1) {\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" (if "if") (parenthesized_expression "((int)uVar5 == -1)" (( "(") (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;\n        goto LAB_002970e6;\n      }" ({ "{") (labeled_statement "LAB_002970e0:\n        uVar3 = *(uint *)(lVar6 + 0x20) | 2;" (statement_identifier "LAB_002970e0") (: ":") (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20) | 2;" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20) | 2" (identifier "uVar3") (= "=") (binary_expression "*(uint *)(lVar6 + 0x20) | 2" (pointer_expression "*(uint *)(lVar6 + 0x20)" (* "*") (cast_expression "(uint *)(lVar6 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "2"))) (; ";"))) (goto_statement "goto LAB_002970e6;" (goto "goto") (statement_identifier "LAB_002970e6") (; ";")) (} "}"))) (} "}")))) (if_statement "if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {\n      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" (if "if") (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (* "*") (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" (* "*") (cast_expression "(long *)(lVar9 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x30)" (( "(") (binary_expression "lVar9 + 0x30" (identifier "lVar9") (+ "+") (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      do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);\n      lVar8 = *param_2;\n    }" ({ "{") (do_statement "do {\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);" (do "do") (compound_statement "{\n        pbVar7 = (byte *)plVar1[3];\n        if (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }\n        pbVar4 = (byte *)plVar1[2] + 1;\n        plVar1[2] = (long)pbVar4;\nLAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }\n      }" ({ "{") (expression_statement "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (byte *)plVar1[3]" (identifier "pbVar7") (= "=") (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 (pbVar7 <= (byte *)plVar1[2]) {\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\n        }" (if "if") (parenthesized_expression "(pbVar7 <= (byte *)plVar1[2])" (( "(") (binary_expression "pbVar7 <= (byte *)plVar1[2]" (identifier "pbVar7") (<= "<=") (cast_expression "(byte *)plVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar1[2]" (identifier "plVar1") ([ "[") (number_literal "2") (] "]")))) () ")")) (compound_statement "{\n          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);\n          if (iVar2 != -1) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }\nLAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);\n          goto LAB_002970e0;\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) {\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" (if "if") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n            pbVar4 = (byte *)plVar1[2];\n            pbVar7 = (byte *)plVar1[3];\n            goto LAB_00297098;\n          }" ({ "{") (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 "pbVar7 = (byte *)plVar1[3];" (assignment_expression "pbVar7 = (byte *)plVar1[3]" (identifier "pbVar7") (= "=") (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_00297098;" (goto "goto") (statement_identifier "LAB_00297098") (; ";")) (} "}"))) (labeled_statement "LAB_002970d6:\n          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" (statement_identifier "LAB_002970d6") (: ":") (expression_statement "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18)" (identifier "lVar6") (= "=") (binary_expression "(long)param_2 + *(long *)(*param_2 + -0x18)" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (pointer_expression "*(long *)(*param_2 + -0x18)" (* "*") (cast_expression "(long *)(*param_2 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + -0x18)" (( "(") (binary_expression "*param_2 + -0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-0x18")) () ")")))))) (; ";"))) (goto_statement "goto LAB_002970e0;" (goto "goto") (statement_identifier "LAB_002970e0") (; ";")) (} "}"))) (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"))) (; ";")) (labeled_statement "LAB_00297098:\n        if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" (statement_identifier "LAB_00297098") (: ":") (if_statement "if (pbVar4 < pbVar7) {\n          uVar5 = (ulong)*pbVar4;\n        }\n        else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" (if "if") (parenthesized_expression "(pbVar4 < pbVar7)" (( "(") (binary_expression "pbVar4 < pbVar7" (identifier "pbVar4") (< "<") (identifier "pbVar7")) () ")")) (compound_statement "{\n          uVar5 = (ulong)*pbVar4;\n        }" ({ "{") (expression_statement "uVar5 = (ulong)*pbVar4;" (assignment_expression "uVar5 = (ulong)*pbVar4" (identifier "uVar5") (= "=") (binary_expression "(ulong)*pbVar4" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (} "}")) (else_clause "else {\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" (else "else") (compound_statement "{\n                    \n          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);\n          if ((int)uVar5 == -1) goto LAB_002970d6;\n        }" ({ "{") (expression_statement "uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);" (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") () ")")))) (; ";")) (if_statement "if ((int)uVar5 == -1) goto LAB_002970d6;" (if "if") (parenthesized_expression "((int)uVar5 == -1)" (( "(") (binary_expression "(int)uVar5 == -1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_002970d6;" (goto "goto") (statement_identifier "LAB_002970d6") (; ";"))) (} "}"))))) (} "}")) (while "while") (parenthesized_expression "((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (* "*") (cast_expression "(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2)" (( "(") (binary_expression "*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2" (binary_expression "*(long *)(lVar9 + 0x30) + 1" (pointer_expression "*(long *)(lVar9 + 0x30)" (* "*") (cast_expression "(long *)(lVar9 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 0x30)" (( "(") (binary_expression "lVar9 + 0x30" (identifier "lVar9") (+ "+") (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")) () ")")) (; ";")) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" (identifier "lVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (expression_statement "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);" (assignment_expression "lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18)" (identifier "lVar6") (= "=") (binary_expression "(long)param_2 + *(long *)(lVar8 + -0x18)" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (pointer_expression "*(long *)(lVar8 + -0x18)" (* "*") (cast_expression "(long *)(lVar8 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + -0x18)" (( "(") (binary_expression "lVar8 + -0x18" (identifier "lVar8") (+ "+") (number_literal "-0x18")) () ")")))))) (; ";")) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(lVar6 + 0x20)" (* "*") (cast_expression "(uint *)(lVar6 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" (else "else") (compound_statement "{\n                    \n    FUN_00281710();\n    lVar8 = *param_2;\n    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;\n    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;\n    uVar3 = *(uint *)(lVar6 + 0x20);\n  }" ({ "{") (expression_statement "FUN_00281710();" (call_expression "FUN_00281710()" (identifier "FUN_00281710") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar8 = *param_2;" (assignment_expression "lVar8 = *param_2" (identifier "lVar8") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;" (assignment_expression "lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2" (identifier "lVar6") (= "=") (binary_expression "*(long *)(lVar8 + -0x18) + (long)param_2" (pointer_expression "*(long *)(lVar8 + -0x18)" (* "*") (cast_expression "(long *)(lVar8 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + -0x18)" (( "(") (binary_expression "lVar8 + -0x18" (identifier "lVar8") (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")))) (; ";")) (if_statement "if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;" (if "if") (parenthesized_expression "((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0))" (( "(") (binary_expression "(param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" (parenthesized_expression "(param_3 == '\0')" (( "(") (binary_expression "param_3 == '\0'" (identifier "param_3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(lVar6 + 0x19) & 0x10) != 0)" (( "(") (binary_expression "(*(byte *)(lVar6 + 0x19) & 0x10) != 0" (parenthesized_expression "(*(byte *)(lVar6 + 0x19) & 0x10)" (( "(") (binary_expression "*(byte *)(lVar6 + 0x19) & 0x10" (pointer_expression "*(byte *)(lVar6 + 0x19)" (* "*") (cast_expression "(byte *)(lVar6 + 0x19)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x19)" (( "(") (binary_expression "lVar6 + 0x19" (identifier "lVar6") (+ "+") (number_literal "0x19")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0029704c;" (goto "goto") (statement_identifier "LAB_0029704c") (; ";"))) (expression_statement "uVar3 = *(uint *)(lVar6 + 0x20);" (assignment_expression "uVar3 = *(uint *)(lVar6 + 0x20)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(lVar6 + 0x20)" (* "*") (cast_expression "(uint *)(lVar6 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (uVar3 == 0) {\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0029713f:\n    *param_1 = 1;\n    return;\n  }" ({ "{") (labeled_statement "LAB_0029713f:\n    *param_1 = 1;" (statement_identifier "LAB_0029713f") (: ":") (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_002970e6:\n  FUN_0029c920(lVar6,uVar3 | 4);" (statement_identifier "LAB_002970e6") (: ":") (expression_statement "FUN_0029c920(lVar6,uVar3 | 4);" (call_expression "FUN_0029c920(lVar6,uVar3 | 4)" (identifier "FUN_0029c920") (argument_list "(lVar6,uVar3 | 4)" (( "(") (identifier "lVar6") (, ",") (binary_expression "uVar3 | 4" (identifier "uVar3") (| "|") (number_literal "4")) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::istream::sentry::sentry(std::istream&, bool) */

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

{
  long *plVar1;
  int var_12;
  type_2 var_15;
  type_3 *var_13;
  type_4 var_10;
  type_5 *var_3;
  type_3 *var_11;
  long var_2;
  long var_7;
  
  var_2 = *(long *)var_1;
  *this = (function_1)0x0;
  var_3 = (type_5 *)(var_1 + *(long *)(var_2 + -0x18));
  if (*(type_2 *)(var_3 + 0x20) != var_4) {
    ios::var_5(var_3,*(type_2 *)(var_3 + 0x20) | var_6);
    return;
  }
  if (*(type_6 **)(var_3 + 0xd8) == (type_6 *)0x0) {
    if ((param_2) || (((type_3)var_3[0x19] & 0x10) == 0)) goto LAB_0029713f;
LAB_0029704c:
    plVar1 = *(long **)(var_3 + 0xe8);
    if ((type_3 *)plVar1[2] < (type_3 *)plVar1[3]) {
      var_7 = *(long *)(var_3 + 0xf0);
      var_10 = (type_4)*(type_3 *)plVar1[2];
      if (var_7 == 0) {
LAB_002971db:
                    /* WARNING: Subroutine does not return */
        var_8();
      }
    }
    else {
      var_10 = (**(type_7 **)(*plVar1 + 0x48))(plVar1);
      var_2 = *(long *)var_1;
      var_3 = (type_5 *)(var_1 + *(long *)(var_2 + -0x18));
      var_7 = *(long *)(var_3 + 0xf0);
      if (var_7 == 0) goto LAB_002971db;
      if ((int)var_10 == -1) {
LAB_002970e0:
        var_15 = *(type_2 *)(var_3 + 0x20) | var_9;
        goto LAB_002970e6;
      }
    }
    if ((*(type_3 *)(*(long *)(var_7 + 0x30) + 1 + (var_10 & 0xff) * 2) & 0x20) != 0) {
      do {
        var_11 = (type_3 *)plVar1[3];
        if (var_11 <= (type_3 *)plVar1[2]) {
          var_12 = (**(type_7 **)(*plVar1 + 0x50))(plVar1);
          if (var_12 != -1) {
            var_13 = (type_3 *)plVar1[2];
            var_11 = (type_3 *)plVar1[3];
            goto LAB_00297098;
          }
LAB_002970d6:
          var_3 = (type_5 *)(var_1 + *(long *)(*(long *)var_1 + -0x18));
          goto LAB_002970e0;
        }
        var_13 = (type_3 *)plVar1[2] + 1;
        plVar1[2] = (long)var_13;
LAB_00297098:
        if (var_13 < var_11) {
          var_10 = (type_4)*var_13;
        }
        else {
                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */
          var_10 = (**(type_7 **)(*plVar1 + 0x48))(plVar1);
          if ((int)var_10 == -1) goto LAB_002970d6;
        }
      } while ((*(type_3 *)(*(long *)(var_7 + 0x30) + 1 + (var_10 & 0xff) * 2) & 0x20) != 0);
      var_2 = *(long *)var_1;
    }
    var_3 = (type_5 *)(var_1 + *(long *)(var_2 + -0x18));
    var_15 = *(type_2 *)(var_3 + 0x20);
  }
  else {
                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */
    ostream::var_14(*(type_6 **)(var_3 + 0xd8));
    var_2 = *(long *)var_1;
    var_3 = (type_5 *)(var_1 + *(long *)(var_2 + -0x18));
    if ((!param_2) && (((type_3)var_3[0x19] & 0x10) != 0)) goto LAB_0029704c;
    var_15 = *(type_2 *)(var_3 + 0x20);
  }
  if (var_15 == var_4) {
LAB_0029713f:
    *this = (function_1)0x1;
    return;
  }
LAB_002970e6:
  ios::var_5(var_3,var_15 | var_6);
  return;
}


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

void MASKED(undefined1 *param_1,long *param_2,char param_3)

{
  long *plVar1;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  ulong uVar5;
  long lVar6;
  byte *pbVar7;
  long lVar8;
  long lVar9;
  
  lVar8 = *param_2;
  *param_1 = 0;
  lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
  if (*(uint *)(lVar6 + 0x20) != 0) {
    FUN_0029c920(lVar6,*(uint *)(lVar6 + 0x20) | 4);
    return;
  }
  if (*(long *)(lVar6 + 0xd8) == 0) {
    if ((param_3 != '\0') || ((*(byte *)(lVar6 + 0x19) & 0x10) == 0)) goto LAB_0029713f;
LAB_0029704c:
    plVar1 = *(long **)(lVar6 + 0xe8);
    if ((byte *)plVar1[2] < (byte *)plVar1[3]) {
      lVar9 = *(long *)(lVar6 + 0xf0);
      uVar5 = (ulong)*(byte *)plVar1[2];
      if (lVar9 == 0) {
LAB_002971db:
                    /* WARNING: Subroutine does not return */
        FUN_002b5510();
      }
    }
    else {
      uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
      lVar8 = *param_2;
      lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
      lVar9 = *(long *)(lVar6 + 0xf0);
      if (lVar9 == 0) goto LAB_002971db;
      if ((int)uVar5 == -1) {
LAB_002970e0:
        uVar3 = *(uint *)(lVar6 + 0x20) | 2;
        goto LAB_002970e6;
      }
    }
    if ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0) {
      do {
        pbVar7 = (byte *)plVar1[3];
        if (pbVar7 <= (byte *)plVar1[2]) {
          iVar2 = (**(code **)(*plVar1 + 0x50))(plVar1);
          if (iVar2 != -1) {
            pbVar4 = (byte *)plVar1[2];
            pbVar7 = (byte *)plVar1[3];
            goto LAB_00297098;
          }
LAB_002970d6:
          lVar6 = (long)param_2 + *(long *)(*param_2 + -0x18);
          goto LAB_002970e0;
        }
        pbVar4 = (byte *)plVar1[2] + 1;
        plVar1[2] = (long)pbVar4;
LAB_00297098:
        if (pbVar4 < pbVar7) {
          uVar5 = (ulong)*pbVar4;
        }
        else {
                    /* try { // try from 00297167 to 002971df has its CatchHandler @ 002971e0 */
          uVar5 = (**(code **)(*plVar1 + 0x48))(plVar1);
          if ((int)uVar5 == -1) goto LAB_002970d6;
        }
      } while ((*(byte *)(*(long *)(lVar9 + 0x30) + 1 + (uVar5 & 0xff) * 2) & 0x20) != 0);
      lVar8 = *param_2;
    }
    lVar6 = (long)param_2 + *(long *)(lVar8 + -0x18);
    uVar3 = *(uint *)(lVar6 + 0x20);
  }
  else {
                    /* try { // try from 0029702a to 002970cc has its CatchHandler @ 002971e0 */
    FUN_00281710();
    lVar8 = *param_2;
    lVar6 = *(long *)(lVar8 + -0x18) + (long)param_2;
    if ((param_3 == '\0') && ((*(byte *)(lVar6 + 0x19) & 0x10) != 0)) goto LAB_0029704c;
    uVar3 = *(uint *)(lVar6 + 0x20);
  }
  if (uVar3 == 0) {
LAB_0029713f:
    *param_1 = 1;
    return;
  }
LAB_002970e6:
  FUN_0029c920(lVar6,uVar3 | 4);
  return;
}

