
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::istream::ignore(int, int) */

istream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)

{
  int *piVar1;
  uint uVar2;
  size_t __n;
  void *pvVar3;
  istream *piVar4;
  byte *pbVar5;
  byte *pbVar6;
  size_t sVar7;
  int iVar8;
  sentry local_31;
  sentry local_1d [13];
  
  if (param_2 == -1) {
    piVar4 = (istream *)ignore(this,param_1);
    return piVar4;
  }
  *(undefined4 *)(this + 4) = 0;
  sentry::sentry(local_1d,this,true);
  if (param_1 < 1) {
    return this;
  }
  if (local_1d[0] == (sentry)0x0) {
    return this;
  }
  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar2 = (uint)*(byte *)piVar1[2];
  }
  else {
    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  local_31 = (sentry)0x0;
  iVar8 = *(int *)(this + 4);
  do {
    while (iVar8 < param_1) {
      if (uVar2 == 0xffffffff) goto LAB_001fb410;
      if (uVar2 == param_2) {
        if (param_1 == 0x7fffffff) {
          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;
          goto LAB_001fb3f0;
        }
        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;
        goto LAB_001fb3e4;
      }
      pbVar5 = (byte *)piVar1[3];
      pbVar6 = (byte *)piVar1[2];
      __n = (int)pbVar5 - (int)pbVar6;
      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {
        __n = param_1 - iVar8;
      }
      if ((int)__n < 2) {
        *(int *)(this + 4) = iVar8 + 1;
        if (pbVar6 < pbVar5) {
          pbVar6 = pbVar6 + 1;
          piVar1[2] = (int)pbVar6;
        }
        else {
          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar8 == -1) goto LAB_001fb410;
          pbVar6 = (byte *)piVar1[2];
          pbVar5 = (byte *)piVar1[3];
        }
        if (pbVar5 <= pbVar6) goto LAB_001fb470;
        uVar2 = (uint)*pbVar6;
        iVar8 = *(int *)(this + 4);
      }
      else {
        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);
        sVar7 = (int)pvVar3 - (int)pbVar6;
        if (pvVar3 == (void *)0x0) {
          sVar7 = __n;
        }
        pbVar6 = pbVar6 + sVar7;
        iVar8 = iVar8 + sVar7;
        piVar1[2] = (int)pbVar6;
        *(int *)(this + 4) = iVar8;
        if (pbVar6 < pbVar5) {
          uVar2 = (uint)*pbVar6;
        }
        else {
LAB_001fb470:
                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */
          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);
          iVar8 = *(int *)(this + 4);
        }
      }
    }
    if (param_1 != 0x7fffffff) {
      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;
      goto LAB_001fb3da;
    }
    if (uVar2 == 0xffffffff) {
LAB_001fb410:
      if (local_31 != (sentry)0x0) {
        *(undefined4 *)(this + 4) = 0x7fffffff;
      }
      goto LAB_001fb41d;
    }
    if (uVar2 == param_2) {
      if (local_31 != (sentry)0x0) {
LAB_001fb3d3:
        *(undefined4 *)(this + 4) = 0x7fffffff;
LAB_001fb3da:
        if (uVar2 == 0xffffffff) {
LAB_001fb41d:
          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |
                     _S_eofbit);
          return this;
        }
        if (param_2 != uVar2) {
          return this;
        }
LAB_001fb3e4:
        iVar8 = *(int *)(this + 4);
      }
      if (iVar8 != 0x7fffffff) {
LAB_001fb3f0:
        *(int *)(this + 4) = iVar8 + 1;
      }
      if ((uint)piVar1[2] < (uint)piVar1[3]) {
        piVar1[2] = piVar1[2] + 1;
      }
      else {
                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */
        (**(code **)(*piVar1 + 0x28))(piVar1);
      }
      return this;
    }
    local_31 = local_1d[0];
    *(undefined4 *)(this + 4) = 0x80000000;
    iVar8 = -0x80000000;
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * FUN_001fb230(int *param_1,int param_2,uint param_3)

{
  uint uVar1;
  size_t __n;
  void *pvVar2;
  int *piVar3;
  byte *pbVar4;
  byte *pbVar5;
  size_t sVar6;
  int iVar7;
  char local_31;
  char local_1d [13];
  
  if (param_3 == 0xffffffff) {
    piVar3 = (int *)FUN_00234ef0(param_1,param_2);
    return piVar3;
  }
  param_1[1] = 0;
  FUN_001cfd60(local_1d,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_1d[0] == '\0') {
    return param_1;
  }
  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {
    uVar1 = (uint)*(byte *)piVar3[2];
  }
  else {
    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);
  }
  local_31 = '\0';
  iVar7 = param_1[1];
  do {
    while (iVar7 < param_2) {
      if (uVar1 == 0xffffffff) goto LAB_001fb410;
      if (uVar1 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (local_31 != '\0') goto LAB_001fb3d3;
          goto LAB_001fb3f0;
        }
        if (local_31 != '\0') goto LAB_001fb3d3;
        goto LAB_001fb3e4;
      }
      pbVar4 = (byte *)piVar3[3];
      pbVar5 = (byte *)piVar3[2];
      __n = (int)pbVar4 - (int)pbVar5;
      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {
        __n = param_2 - iVar7;
      }
      if ((int)__n < 2) {
        param_1[1] = iVar7 + 1;
        if (pbVar5 < pbVar4) {
          pbVar5 = pbVar5 + 1;
          piVar3[2] = (int)pbVar5;
        }
        else {
          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);
          if (iVar7 == -1) goto LAB_001fb410;
          pbVar5 = (byte *)piVar3[2];
          pbVar4 = (byte *)piVar3[3];
        }
        if (pbVar4 <= pbVar5) goto LAB_001fb470;
        uVar1 = (uint)*pbVar5;
        iVar7 = param_1[1];
      }
      else {
        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);
        sVar6 = (int)pvVar2 - (int)pbVar5;
        if (pvVar2 == (void *)0x0) {
          sVar6 = __n;
        }
        pbVar5 = pbVar5 + sVar6;
        iVar7 = iVar7 + sVar6;
        piVar3[2] = (int)pbVar5;
        param_1[1] = iVar7;
        if (pbVar5 < pbVar4) {
          uVar1 = (uint)*pbVar5;
        }
        else {
LAB_001fb470:
                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */
          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);
          iVar7 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (local_31 != '\0') goto LAB_001fb3d3;
      goto LAB_001fb3da;
    }
    if (uVar1 == 0xffffffff) {
LAB_001fb410:
      if (local_31 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_001fb41d;
    }
    if (uVar1 == param_3) {
      if (local_31 != '\0') {
LAB_001fb3d3:
        param_1[1] = 0x7fffffff;
LAB_001fb3da:
        if (uVar1 == 0xffffffff) {
LAB_001fb41d:
          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;
          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != uVar1) {
          return param_1;
        }
LAB_001fb3e4:
        iVar7 = param_1[1];
      }
      if (iVar7 != 0x7fffffff) {
LAB_001fb3f0:
        param_1[1] = iVar7 + 1;
      }
      if ((uint)piVar3[2] < (uint)piVar3[3]) {
        piVar3[2] = piVar3[2] + 1;
      }
      else {
                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */
        (**(code **)(*piVar3 + 0x28))(piVar3);
      }
      return param_1;
    }
    local_31 = local_1d[0];
    param_1[1] = -0x80000000;
    iVar7 = -0x80000000;
  } while( true );
}


CALL 0x00058c42
ADD EAX,0x143dcb
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
CMP dword ptr [EBP + 0x10],-0x1
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x2c],EAX
JZ 0x001fb3a0
SUB ESP,0x4
LEA EAX,[EBP + -0x19]
MOV dword ptr [ESI + 0x4],0x0
MOV EBX,dword ptr [EBP + -0x2c]
PUSH 0x1
PUSH ESI
PUSH EAX
CALL 0x001cfd60
MOV EAX,dword ptr [EBP + 0xc]
ADD ESP,0x10
TEST EAX,EAX
JLE 0x001fb390
MOVZX EAX,byte ptr [EBP + -0x19]
MOV byte ptr [EBP + -0x2e],AL
TEST AL,AL
JZ 0x001fb390
MOV EAX,dword ptr [ESI]
MOVZX EBX,byte ptr [EBP + 0x10]
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [ESI + EAX*0x1 + 0x78]
MOV dword ptr [EBP + -0x34],EDX
MOV EAX,dword ptr [EDX + 0x8]
CMP dword ptr [EDX + 0xc],EAX
JBE 0x001fb487
MOVZX EAX,byte ptr [EAX]
MOVSX EDX,BL
MOV byte ptr [EBP + -0x2d],0x0
MOV EDI,dword ptr [ESI + 0x4]
MOV dword ptr [EBP + -0x44],EDX
LEA ESI,[ESI]
CMP dword ptr [EBP + 0xc],EDI
JLE 0x001fb340
CMP EAX,-0x1
JZ 0x001fb410
CMP EAX,dword ptr [EBP + 0x10]
JZ 0x001fb3c0
MOV EAX,dword ptr [EBP + -0x34]
MOV EBX,dword ptr [EBP + 0xc]
MOV ECX,dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EAX + 0x8]
SUB EBX,EDI
MOV EAX,ECX
SUB EAX,EDX
CMP EBX,EAX
CMOVLE EAX,EBX
CMP EAX,0x1
JLE 0x001fb448
SUB ESP,0x4
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x40],ECX
PUSH EAX
PUSH dword ptr [EBP + -0x44]
PUSH EDX
MOV dword ptr [EBP + -0x3c],EDX
MOV dword ptr [EBP + -0x38],EAX
CALL 0x00028970
MOV EDX,dword ptr [EBP + -0x3c]
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x40]
MOV EBX,EAX
SUB EBX,EDX
TEST EAX,EAX
CMOVZ EBX,dword ptr [EBP + -0x38]
MOV EAX,dword ptr [EBP + -0x34]
ADD EDX,EBX
ADD EDI,EBX
MOV dword ptr [EAX + 0x8],EDX
MOV dword ptr [ESI + 0x4],EDI
CMP ECX,EDX
JBE 0x001fb470
MOVZX EAX,byte ptr [EDX]
CMP dword ptr [EBP + 0xc],EDI
JG 0x001fb2c1
LEA ESI,[ESI]
CMP dword ptr [EBP + 0xc],0x7fffffff
JNZ 0x001fb4be
CMP EAX,-0x1
JZ 0x001fb410
CMP EAX,dword ptr [EBP + 0x10]
JZ 0x001fb4dc
MOVZX ECX,byte ptr [EBP + -0x2e]
MOV dword ptr [ESI + 0x4],0x80000000
MOV EDI,0x80000000
MOV byte ptr [EBP + -0x2d],CL
JMP 0x001fb2b8
MOV EDI,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,ESI
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [EBP + 0xc]
MOV EBX,EAX
PUSH ESI
CALL 0x00234ef0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [EBP + 0xc],0x7fffffff
JNZ 0x001fb4cd
CMP byte ptr [EBP + -0x2d],0x0
JZ 0x001fb3f0
MOV dword ptr [ESI + 0x4],0x7fffffff
CMP EAX,-0x1
JZ 0x001fb41d
CMP dword ptr [EBP + 0x10],EAX
JNZ 0x001fb390
MOV EDI,dword ptr [ESI + 0x4]
CMP EDI,0x7fffffff
JZ 0x001fb3f6
NOP
ADD EDI,0x1
MOV dword ptr [ESI + 0x4],EDI
MOV EDI,dword ptr [EBP + -0x34]
MOV EAX,dword ptr [EDI + 0x8]
CMP EAX,dword ptr [EDI + 0xc]
JNC 0x001fb377
ADD EAX,0x1
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,ESI
JMP 0x001fb392
CMP byte ptr [EBP + -0x2d],0x0
JZ 0x001fb41d
MOV dword ptr [ESI + 0x4],0x7fffffff
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x2c]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,ESI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x2
PUSH EAX
PUSH EDX
CALL 0x001d62c0
ADD ESP,0x10
MOV EAX,ESI
JMP 0x001fb392
ADD EDI,0x1
MOV dword ptr [ESI + 0x4],EDI
CMP ECX,EDX
JBE 0x001fb49b
MOV EAX,dword ptr [EBP + -0x34]
ADD EDX,0x1
MOV dword ptr [EAX + 0x8],EDX
CMP EDX,ECX
JNC 0x001fb470
MOVZX EAX,byte ptr [EDX]
MOV EDI,dword ptr [ESI + 0x4]
JMP 0x001fb2b8
MOV EDI,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
MOV EDI,dword ptr [ESI + 0x4]
JMP 0x001fb2b8
MOV EDI,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x001fb2a8
MOV EDI,dword ptr [EBP + -0x34]
SUB ESP,0xc
MOV EAX,dword ptr [EDI]
PUSH EDI
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001fb410
MOV EAX,dword ptr [EBP + -0x34]
MOV EDX,dword ptr [EAX + 0x8]
MOV ECX,dword ptr [EAX + 0xc]
JMP 0x001fb45b
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x001fb3d3
JMP 0x001fb3da
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x001fb3d3
JMP 0x001fb3e4
CMP byte ptr [EBP + -0x2d],0x0
JNZ 0x001fb3d3
JMP 0x001fb3e7
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint * FUN_001fb230(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}\n\n" comment (function_definition "int * FUN_001fb230(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_001fb230(int *param_1,int param_2,uint param_3)" * (function_declarator "FUN_001fb230(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" if (parenthesized_expression "(param_3 == 0xffffffff)" ( (binary_expression "param_3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" { (expression_statement "piVar3 = (int *)FUN_00234ef0(param_1,param_2);" (assignment_expression "piVar3 = (int *)FUN_00234ef0(param_1,param_2)" identifier = (cast_expression "(int *)FUN_00234ef0(param_1,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00234ef0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" if (parenthesized_expression "((byte *)piVar3[2] < (byte *)piVar3[3])" ( (binary_expression "(byte *)piVar3[2] < (byte *)piVar3[3]" (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }" { (expression_statement "uVar1 = (uint)*(byte *)piVar3[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar3[2]" identifier = (binary_expression "(uint)*(byte *)piVar3[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" { (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;) }))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" { (while_statement "while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar7 < param_2)" ( (binary_expression "iVar7 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (uVar1 == 0xffffffff) goto LAB_001fb410;" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" { (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3f0;" goto statement_identifier ;) })) (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3e4;" goto statement_identifier ;) })) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" identifier = (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)pbVar4 - (int)pbVar5;" (assignment_expression "__n = (int)pbVar4 - (int)pbVar5" identifier = (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }" if (parenthesized_expression "(param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5)" ( (binary_expression "param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5" (binary_expression "param_2 - iVar7" identifier - identifier) <= (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n        __n = param_2 - iVar7;\n      }" { (expression_statement "__n = param_2 - iVar7;" (assignment_expression "__n = param_2 - iVar7" identifier = (binary_expression "param_2 - iVar7" identifier - identifier)) ;) })) (if_statement "if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" if (parenthesized_expression "((int)__n < 2)" ( (binary_expression "(int)__n < 2" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" else (compound_statement "{\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" { (expression_statement "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);" (assignment_expression "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;) (if_statement "if (iVar7 == -1) goto LAB_001fb410;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" identifier = (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar4 <= pbVar5) goto LAB_001fb470;" if (parenthesized_expression "(pbVar4 <= pbVar5)" ( (binary_expression "pbVar4 <= pbVar5" identifier <= identifier) )) (goto_statement "goto LAB_001fb470;" goto statement_identifier ;)) (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" else (compound_statement "{\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" { (expression_statement "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);" (assignment_expression "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n)" identifier = (call_expression "memchr(pbVar5,(int)(char)param_3,__n)" identifier (argument_list "(pbVar5,(int)(char)param_3,__n)" ( identifier , (cast_expression "(int)(char)param_3" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier )))) ;) (expression_statement "sVar6 = (int)pvVar2 - (int)pbVar5;" (assignment_expression "sVar6 = (int)pvVar2 - (int)pbVar5" identifier = (binary_expression "(int)pvVar2 - (int)pbVar5" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }" if (parenthesized_expression "(pvVar2 == (void *)0x0)" ( (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar6 = __n;\n        }" { (expression_statement "sVar6 = __n;" (assignment_expression "sVar6 = __n" identifier = identifier) ;) })) (expression_statement "pbVar5 = pbVar5 + sVar6;" (assignment_expression "pbVar5 = pbVar5 + sVar6" identifier = (binary_expression "pbVar5 + sVar6" identifier + identifier)) ;) (expression_statement "iVar7 = iVar7 + sVar6;" (assignment_expression "iVar7 = iVar7 + sVar6" identifier = (binary_expression "iVar7 + sVar6" identifier + identifier)) ;) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          uVar1 = (uint)*pbVar5;\n        }" { (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" { (labeled_statement "LAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" statement_identifier : comment (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;)) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" { (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3da;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" { (labeled_statement "LAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_001fb41d;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" { (if_statement "if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" { (labeled_statement "LAB_001fb3d3:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2)" identifier (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != uVar1)" ( (binary_expression "param_3 != uVar1" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_001fb3e4:\n        iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) })) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" if (parenthesized_expression "(iVar7 != 0x7fffffff)" ( (binary_expression "iVar7 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" { (labeled_statement "LAB_001fb3f0:\n        param_1[1] = iVar7 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" if (parenthesized_expression "((uint)piVar3[2] < (uint)piVar3[3])" ( (binary_expression "(uint)piVar3[2] < (uint)piVar3[3]" (cast_expression "(uint)piVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar3[2] = piVar3[2] + 1;\n      }" { (expression_statement "piVar3[2] = piVar3[2] + 1;" (assignment_expression "piVar3[2] = piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" else (compound_statement "{\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" { comment (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::istream::ignore(int, int) */\n\nistream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)\n\n{\n  int *piVar1;\n  uint uVar2;\n  size_t __n;\n  void *pvVar3;\n  istream *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  size_t sVar7;\n  int iVar8;\n  sentry local_31;\n  sentry local_1d [13];\n  \n  if (param_2 == -1) {\n    piVar4 = (istream *)ignore(this,param_1);\n    return piVar4;\n  }\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_31 = (sentry)0x0;\n  iVar8 = *(int *)(this + 4);\n  do {\n    while (iVar8 < param_1) {\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar2 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar2 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );\n}\n\n" comment comment (ERROR "istream * __thiscall std::istream::ignore(istream *this,int param_1,int param_2)" (binary_expression "istream * __thiscall std::istream::ignore(istream *this" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::ignore(istream" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type identifier , identifier identifier )) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  size_t __n;\n  void *pvVar3;\n  istream *piVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  size_t sVar7;\n  int iVar8;\n  sentry local_31;\n  sentry local_1d [13];\n  \n  if (param_2 == -1) {\n    piVar4 = (istream *)ignore(this,param_1);\n    return piVar4;\n  }\n  *(undefined4 *)(this + 4) = 0;\n  sentry::sentry(local_1d,this,true);\n  if (param_1 < 1) {\n    return this;\n  }\n  if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }\n  piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_31 = (sentry)0x0;\n  iVar8 = *(int *)(this + 4);\n  do {\n    while (iVar8 < param_1) {\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar2 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar2 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "istream *piVar4;" type_identifier (pointer_declarator "*piVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "sentry local_31;" type_identifier identifier ;) (declaration "sentry local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_2 == -1) {\n    piVar4 = (istream *)ignore(this,param_1);\n    return piVar4;\n  }" if (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) (compound_statement "{\n    piVar4 = (istream *)ignore(this,param_1);\n    return piVar4;\n  }" { (expression_statement "piVar4 = (istream *)ignore(this,param_1);" (assignment_expression "piVar4 = (istream *)ignore(this,param_1)" identifier = (cast_expression "(istream *)ignore(this,param_1)" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ignore(this,param_1)" identifier (argument_list "(this,param_1)" ( identifier , identifier ))))) ;) (return_statement "return piVar4;" return identifier ;) })) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "sentry::sentry(local_1d,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1d,this,true);" (call_expression "sentry(local_1d,this,true)" identifier (argument_list "(local_1d,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if (param_1 < 1) {\n    return this;\n  }" if (parenthesized_expression "(param_1 < 1)" ( (binary_expression "param_1 < 1" identifier < number_literal) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (if_statement "if (local_1d[0] == (sentry)0x0) {\n    return this;\n  }" if (parenthesized_expression "(local_1d[0] == (sentry)0x0)" ( (binary_expression "local_1d[0] == (sentry)0x0" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    return this;\n  }" { (return_statement "return this;" return identifier ;) })) (expression_statement "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x78" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" if (parenthesized_expression "((byte *)piVar1[2] < (byte *)piVar1[3])" ( (binary_expression "(byte *)piVar1[2] < (byte *)piVar1[3]" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar2 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar2 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar2 = (uint)*(byte *)piVar1[2]" identifier = (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n    uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (expression_statement "local_31 = (sentry)0x0;" (assignment_expression "local_31 = (sentry)0x0" identifier = (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;) (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (do_statement "do {\n    while (iVar8 < param_1) {\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar2 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar2 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar8 < param_1) {\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }\n    if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar2 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar2 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }\n    local_31 = local_1d[0];\n    *(undefined4 *)(this + 4) = 0x80000000;\n    iVar8 = -0x80000000;\n  }" { (while_statement "while (iVar8 < param_1) {\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }" while (parenthesized_expression "(iVar8 < param_1)" ( (binary_expression "iVar8 < param_1" identifier < identifier) )) (compound_statement "{\n      if (uVar2 == 0xffffffff) goto LAB_001fb410;\n      if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar5 = (byte *)piVar1[3];\n      pbVar6 = (byte *)piVar1[2];\n      __n = (int)pbVar5 - (int)pbVar6;\n      if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }\n      if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }\n    }" { (if_statement "if (uVar2 == 0xffffffff) goto LAB_001fb410;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (if_statement "if (uVar2 == param_2) {\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" if (parenthesized_expression "(uVar2 == param_2)" ( (binary_expression "uVar2 == param_2" identifier == identifier) )) (compound_statement "{\n        if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" { (if_statement "if (param_1 == 0x7fffffff) {\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" if (parenthesized_expression "(param_1 == 0x7fffffff)" ( (binary_expression "param_1 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" { (if_statement "if (local_31 != (sentry)0x0) goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3f0;" goto statement_identifier ;) })) (if_statement "if (local_31 != (sentry)0x0) goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3e4;" goto statement_identifier ;) })) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar6 = (byte *)piVar1[2];" (assignment_expression "pbVar6 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)pbVar5 - (int)pbVar6;" (assignment_expression "__n = (int)pbVar5 - (int)pbVar6" identifier = (binary_expression "(int)pbVar5 - (int)pbVar6" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6) {\n        __n = param_1 - iVar8;\n      }" if (parenthesized_expression "(param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6)" ( (binary_expression "param_1 - iVar8 <= (int)pbVar5 - (int)pbVar6" (binary_expression "param_1 - iVar8" identifier - identifier) <= (binary_expression "(int)pbVar5 - (int)pbVar6" (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n        __n = param_1 - iVar8;\n      }" { (expression_statement "__n = param_1 - iVar8;" (assignment_expression "__n = param_1 - iVar8" identifier = (binary_expression "param_1 - iVar8" identifier - identifier)) ;) })) (if_statement "if ((int)__n < 2) {\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }\n      else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }" if (parenthesized_expression "((int)__n < 2)" ( (binary_expression "(int)__n < 2" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(int *)(this + 4) = iVar8 + 1;\n        if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }\n        if (pbVar5 <= pbVar6) goto LAB_001fb470;\n        uVar2 = (uint)*pbVar6;\n        iVar8 = *(int *)(this + 4);\n      }" { (expression_statement "*(int *)(this + 4) = iVar8 + 1;" (assignment_expression "*(int *)(this + 4) = iVar8 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar6 < pbVar5) {\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }\n        else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "(pbVar6 < pbVar5)" ( (binary_expression "pbVar6 < pbVar5" identifier < identifier) )) (compound_statement "{\n          pbVar6 = pbVar6 + 1;\n          piVar1[2] = (int)pbVar6;\n        }" { (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar6;" (assignment_expression "piVar1[2] = (int)pbVar6" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n          iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar8 == -1) goto LAB_001fb410;\n          pbVar6 = (byte *)piVar1[2];\n          pbVar5 = (byte *)piVar1[3];\n        }" { (expression_statement "iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar8 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar8 == -1) goto LAB_001fb410;" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (expression_statement "pbVar6 = (byte *)piVar1[2];" (assignment_expression "pbVar6 = (byte *)piVar1[2]" identifier = (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar1[3];" (assignment_expression "pbVar5 = (byte *)piVar1[3]" identifier = (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar5 <= pbVar6) goto LAB_001fb470;" if (parenthesized_expression "(pbVar5 <= pbVar6)" ( (binary_expression "pbVar5 <= pbVar6" identifier <= identifier) )) (goto_statement "goto LAB_001fb470;" goto statement_identifier ;)) (expression_statement "uVar2 = (uint)*pbVar6;" (assignment_expression "uVar2 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }" else (compound_statement "{\n        pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);\n        sVar7 = (int)pvVar3 - (int)pbVar6;\n        if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }\n        pbVar6 = pbVar6 + sVar7;\n        iVar8 = iVar8 + sVar7;\n        piVar1[2] = (int)pbVar6;\n        *(int *)(this + 4) = iVar8;\n        if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }\n      }" { (expression_statement "pvVar3 = memchr(pbVar6,(int)(char)param_2,__n);" (assignment_expression "pvVar3 = memchr(pbVar6,(int)(char)param_2,__n)" identifier = (call_expression "memchr(pbVar6,(int)(char)param_2,__n)" identifier (argument_list "(pbVar6,(int)(char)param_2,__n)" ( identifier , (cast_expression "(int)(char)param_2" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier )))) ;) (expression_statement "sVar7 = (int)pvVar3 - (int)pbVar6;" (assignment_expression "sVar7 = (int)pvVar3 - (int)pbVar6" identifier = (binary_expression "(int)pvVar3 - (int)pbVar6" (cast_expression "(int)pvVar3" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (pvVar3 == (void *)0x0) {\n          sVar7 = __n;\n        }" if (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar7 = __n;\n        }" { (expression_statement "sVar7 = __n;" (assignment_expression "sVar7 = __n" identifier = identifier) ;) })) (expression_statement "pbVar6 = pbVar6 + sVar7;" (assignment_expression "pbVar6 = pbVar6 + sVar7" identifier = (binary_expression "pbVar6 + sVar7" identifier + identifier)) ;) (expression_statement "iVar8 = iVar8 + sVar7;" (assignment_expression "iVar8 = iVar8 + sVar7" identifier = (binary_expression "iVar8 + sVar7" identifier + identifier)) ;) (expression_statement "piVar1[2] = (int)pbVar6;" (assignment_expression "piVar1[2] = (int)pbVar6" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(this + 4) = iVar8;" (assignment_expression "*(int *)(this + 4) = iVar8" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (pbVar6 < pbVar5) {\n          uVar2 = (uint)*pbVar6;\n        }\n        else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }" if (parenthesized_expression "(pbVar6 < pbVar5)" ( (binary_expression "pbVar6 < pbVar5" identifier < identifier) )) (compound_statement "{\n          uVar2 = (uint)*pbVar6;\n        }" { (expression_statement "uVar2 = (uint)*pbVar6;" (assignment_expression "uVar2 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }" else (compound_statement "{\nLAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);\n          iVar8 = *(int *)(this + 4);\n        }" { (labeled_statement "LAB_001fb470:\n                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */\n          uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar2 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;)) (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }))) }))) })) (if_statement "if (param_1 != 0x7fffffff) {\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" if (parenthesized_expression "(param_1 != 0x7fffffff)" ( (binary_expression "param_1 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != (sentry)0x0) goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" { (if_statement "if (local_31 != (sentry)0x0) goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3da;" goto statement_identifier ;) })) (if_statement "if (uVar2 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" { (labeled_statement "LAB_001fb410:\n      if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != (sentry)0x0) {\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n        *(undefined4 *)(this + 4) = 0x7fffffff;\n      }" { (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_001fb41d;" goto statement_identifier ;) })) (if_statement "if (uVar2 == param_2) {\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }" if (parenthesized_expression "(uVar2 == param_2)" ( (binary_expression "uVar2 == param_2" identifier == identifier) )) (compound_statement "{\n      if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }\n      if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }\n      if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }\n      return this;\n    }" { (if_statement "if (local_31 != (sentry)0x0) {\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }" if (parenthesized_expression "(local_31 != (sentry)0x0)" ( (binary_expression "local_31 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\nLAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }\n        if (param_2 != uVar2) {\n          return this;\n        }\nLAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);\n      }" { (labeled_statement "LAB_001fb3d3:\n        *(undefined4 *)(this + 4) = 0x7fffffff;" statement_identifier : (expression_statement "*(undefined4 *)(this + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(this + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;)) (labeled_statement "LAB_001fb3da:\n        if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }" statement_identifier : (if_statement "if (uVar2 == 0xffffffff) {\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);\n          return this;\n        }" { (labeled_statement "LAB_001fb41d:\n          ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);" statement_identifier : (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit);" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit)" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                     *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit)" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) |\n                     _S_eofbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;))) (return_statement "return this;" return identifier ;) }))) (if_statement "if (param_2 != uVar2) {\n          return this;\n        }" if (parenthesized_expression "(param_2 != uVar2)" ( (binary_expression "param_2 != uVar2" identifier != identifier) )) (compound_statement "{\n          return this;\n        }" { (return_statement "return this;" return identifier ;) })) (labeled_statement "LAB_001fb3e4:\n        iVar8 = *(int *)(this + 4);" statement_identifier : (expression_statement "iVar8 = *(int *)(this + 4);" (assignment_expression "iVar8 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;)) })) (if_statement "if (iVar8 != 0x7fffffff) {\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }" if (parenthesized_expression "(iVar8 != 0x7fffffff)" ( (binary_expression "iVar8 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;\n      }" { (labeled_statement "LAB_001fb3f0:\n        *(int *)(this + 4) = iVar8 + 1;" statement_identifier : (expression_statement "*(int *)(this + 4) = iVar8 + 1;" (assignment_expression "*(int *)(this + 4) = iVar8 + 1" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar1[2] < (uint)piVar1[3]) {\n        piVar1[2] = piVar1[2] + 1;\n      }\n      else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" if (parenthesized_expression "((uint)piVar1[2] < (uint)piVar1[3])" ( (binary_expression "(uint)piVar1[2] < (uint)piVar1[3]" (cast_expression "(uint)piVar1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar1[2] = piVar1[2] + 1;\n      }" { (expression_statement "piVar1[2] = piVar1[2] + 1;" (assignment_expression "piVar1[2] = piVar1[2] + 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (binary_expression "piVar1[2] + 1" (subscript_expression "piVar1[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" else (compound_statement "{\n                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */\n        (**(code **)(*piVar1 + 0x28))(piVar1);\n      }" { comment (expression_statement "(**(code **)(*piVar1 + 0x28))(piVar1);" (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier ))) ;) }))) (return_statement "return this;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 4) = 0x80000000;" (assignment_expression "*(undefined4 *)(this + 4) = 0x80000000" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = -0x80000000;" (assignment_expression "iVar8 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) }))
(translation_unit "int * FUN_001fb230(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}\n\n" (function_definition "int * FUN_001fb230(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_001fb230(int *param_1,int param_2,uint param_3)" * (function_declarator "FUN_001fb230(int *param_1,int param_2,uint param_3)" identifier (parameter_list "(int *param_1,int param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char local_31;" primitive_type identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (if_statement "if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" if (parenthesized_expression "(param_3 == 0xffffffff)" ( (binary_expression "param_3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" { (expression_statement "piVar3 = (int *)FUN_00234ef0(param_1,param_2);" (assignment_expression "piVar3 = (int *)FUN_00234ef0(param_1,param_2)" identifier = (cast_expression "(int *)FUN_00234ef0(param_1,param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00234ef0(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (return_statement "return piVar3;" return identifier ;) })) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" if (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" if (parenthesized_expression "((byte *)piVar3[2] < (byte *)piVar3[3])" ( (binary_expression "(byte *)piVar3[2] < (byte *)piVar3[3]" (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }" { (expression_statement "uVar1 = (uint)*(byte *)piVar3[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar3[2]" identifier = (binary_expression "(uint)*(byte *)piVar3[2]" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" else (compound_statement "{\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" { (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;) }))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" do (compound_statement "{\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" { (while_statement "while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" while (parenthesized_expression "(iVar7 < param_2)" ( (binary_expression "iVar7 < param_2" identifier < identifier) )) (compound_statement "{\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" { (if_statement "if (uVar1 == 0xffffffff) goto LAB_001fb410;" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" { (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" if (parenthesized_expression "(param_2 == 0x7fffffff)" ( (binary_expression "param_2 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" { (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3f0;" goto statement_identifier ;) })) (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3e4;" goto statement_identifier ;) })) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" identifier = (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "__n = (int)pbVar4 - (int)pbVar5;" (assignment_expression "__n = (int)pbVar4 - (int)pbVar5" identifier = (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }" if (parenthesized_expression "(param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5)" ( (binary_expression "param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5" (binary_expression "param_2 - iVar7" identifier - identifier) <= (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) )) (compound_statement "{\n        __n = param_2 - iVar7;\n      }" { (expression_statement "__n = param_2 - iVar7;" (assignment_expression "__n = param_2 - iVar7" identifier = (binary_expression "param_2 - iVar7" identifier - identifier)) ;) })) (if_statement "if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" if (parenthesized_expression "((int)__n < 2)" ( (binary_expression "(int)__n < 2" (cast_expression "(int)__n" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }" { (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" identifier = (binary_expression "pbVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" else (compound_statement "{\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" { (expression_statement "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);" (assignment_expression "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;) (if_statement "if (iVar7 == -1) goto LAB_001fb410;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_001fb410;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" identifier = (cast_expression "(byte *)piVar3[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" identifier = (cast_expression "(byte *)piVar3[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) ;) }))) (if_statement "if (pbVar4 <= pbVar5) goto LAB_001fb470;" if (parenthesized_expression "(pbVar4 <= pbVar5)" ( (binary_expression "pbVar4 <= pbVar5" identifier <= identifier) )) (goto_statement "goto LAB_001fb470;" goto statement_identifier ;)) (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" else (compound_statement "{\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" { (expression_statement "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);" (assignment_expression "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n)" identifier = (call_expression "memchr(pbVar5,(int)(char)param_3,__n)" identifier (argument_list "(pbVar5,(int)(char)param_3,__n)" ( identifier , (cast_expression "(int)(char)param_3" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)param_3" ( (type_descriptor "char" primitive_type) ) identifier)) , identifier )))) ;) (expression_statement "sVar6 = (int)pvVar2 - (int)pbVar5;" (assignment_expression "sVar6 = (int)pvVar2 - (int)pbVar5" identifier = (binary_expression "(int)pvVar2 - (int)pbVar5" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }" if (parenthesized_expression "(pvVar2 == (void *)0x0)" ( (binary_expression "pvVar2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar6 = __n;\n        }" { (expression_statement "sVar6 = __n;" (assignment_expression "sVar6 = __n" identifier = identifier) ;) })) (expression_statement "pbVar5 = pbVar5 + sVar6;" (assignment_expression "pbVar5 = pbVar5 + sVar6" identifier = (binary_expression "pbVar5 + sVar6" identifier + identifier)) ;) (expression_statement "iVar7 = iVar7 + sVar6;" (assignment_expression "iVar7 = iVar7 + sVar6" identifier = (binary_expression "iVar7 + sVar6" identifier + identifier)) ;) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          uVar1 = (uint)*pbVar5;\n        }" { (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" else (compound_statement "{\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" { (labeled_statement "LAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" statement_identifier : (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" identifier = (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" ( (pointer_expression "**(code **)(*piVar3 + 0x24)" * (pointer_expression "*(code **)(*piVar3 + 0x24)" * (cast_expression "(code **)(*piVar3 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x24)" ( (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier )))) ;)) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) }))) })) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" if (parenthesized_expression "(param_2 != 0x7fffffff)" ( (binary_expression "param_2 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" { (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_001fb3d3;" goto statement_identifier ;)) (goto_statement "goto LAB_001fb3da;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" { (labeled_statement "LAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" statement_identifier : (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" { (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) }))) (goto_statement "goto LAB_001fb41d;" goto statement_identifier ;) })) (if_statement "if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" if (parenthesized_expression "(uVar1 == param_3)" ( (binary_expression "uVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" { (if_statement "if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" if (parenthesized_expression "(local_31 != '\0')" ( (binary_expression "local_31 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" { (labeled_statement "LAB_001fb3d3:\n        param_1[1] = 0x7fffffff;" statement_identifier : (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;)) (labeled_statement "LAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" statement_identifier : (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" if (parenthesized_expression "(uVar1 == 0xffffffff)" ( (binary_expression "uVar1 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" { (labeled_statement "LAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) (expression_statement "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2)" identifier (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" * (cast_expression "(uint *)(iVar7 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x14)" ( (binary_expression "iVar7 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) }))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" if (parenthesized_expression "(param_3 != uVar1)" ( (binary_expression "param_3 != uVar1" identifier != identifier) )) (compound_statement "{\n          return param_1;\n        }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_001fb3e4:\n        iVar7 = param_1[1];" statement_identifier : (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;)) })) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" if (parenthesized_expression "(iVar7 != 0x7fffffff)" ( (binary_expression "iVar7 != 0x7fffffff" identifier != number_literal) )) (compound_statement "{\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" { (labeled_statement "LAB_001fb3f0:\n        param_1[1] = iVar7 + 1;" statement_identifier : (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar7 + 1" identifier + number_literal)) ;)) })) (if_statement "if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" if (parenthesized_expression "((uint)piVar3[2] < (uint)piVar3[3])" ( (binary_expression "(uint)piVar3[2] < (uint)piVar3[3]" (cast_expression "(uint)piVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[2]" identifier [ number_literal ])) < (cast_expression "(uint)piVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar3[2] = piVar3[2] + 1;\n      }" { (expression_statement "piVar3[2] = piVar3[2] + 1;" (assignment_expression "piVar3[2] = piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" else (compound_statement "{\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" { (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3)" ( identifier ))) ;) }))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" identifier = (subscript_expression "local_1d[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" identifier = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (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 = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) <= (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 { (labeled_statement statement_identifier : (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 = (subscript_expression IDENT [ LIT ])) ;) }))) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression 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 (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return IDENT ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "int * FUN_001fb230(int *param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* FUN_001fb230(int *param_1,int param_2,uint param_3)" (* "*") (function_declarator "FUN_001fb230(int *param_1,int param_2,uint param_3)" (identifier "FUN_001fb230") (parameter_list "(int *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint uVar1;\n  size_t __n;\n  void *pvVar2;\n  int *piVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  size_t sVar6;\n  int iVar7;\n  char local_31;\n  char local_1d [13];\n  \n  if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }\n  param_1[1] = 0;\n  FUN_001cfd60(local_1d,param_1,1);\n  if (param_2 < 1) {\n    return param_1;\n  }\n  if (local_1d[0] == '\0') {\n    return param_1;\n  }\n  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }\n  local_31 = '\0';\n  iVar7 = param_1[1];\n  do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char local_31;" (primitive_type "char") (identifier "local_31") (; ";")) (declaration "char local_1d [13];" (primitive_type "char") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (if_statement "if (param_3 == 0xffffffff) {\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" (if "if") (parenthesized_expression "(param_3 == 0xffffffff)" (( "(") (binary_expression "param_3 == 0xffffffff" (identifier "param_3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\n    piVar3 = (int *)FUN_00234ef0(param_1,param_2);\n    return piVar3;\n  }" ({ "{") (expression_statement "piVar3 = (int *)FUN_00234ef0(param_1,param_2);" (assignment_expression "piVar3 = (int *)FUN_00234ef0(param_1,param_2)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00234ef0(param_1,param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00234ef0(param_1,param_2)" (identifier "FUN_00234ef0") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001cfd60(local_1d,param_1,1);" (call_expression "FUN_001cfd60(local_1d,param_1,1)" (identifier "FUN_001cfd60") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (param_2 < 1) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if (local_1d[0] == '\0') {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (if_statement "if ((byte *)piVar3[2] < (byte *)piVar3[3]) {\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }\n  else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" (if "if") (parenthesized_expression "((byte *)piVar3[2] < (byte *)piVar3[3])" (( "(") (binary_expression "(byte *)piVar3[2] < (byte *)piVar3[3]" (cast_expression "(byte *)piVar3[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(byte *)piVar3[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    uVar1 = (uint)*(byte *)piVar3[2];\n  }" ({ "{") (expression_statement "uVar1 = (uint)*(byte *)piVar3[2];" (assignment_expression "uVar1 = (uint)*(byte *)piVar3[2]" (identifier "uVar1") (= "=") (binary_expression "(uint)*(byte *)piVar3[2]" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)piVar3[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" (else "else") (compound_statement "{\n    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x24)" (* "*") (cast_expression "(code **)(*piVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x24)" (( "(") (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")")))) (; ";")) (} "}")))) (expression_statement "local_31 = '\0';" (assignment_expression "local_31 = '\0'" (identifier "local_31") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (do_statement "do {\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  } while( true );" (do "do") (compound_statement "{\n    while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }\n    if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }\n    if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }\n    if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }\n    local_31 = local_1d[0];\n    param_1[1] = -0x80000000;\n    iVar7 = -0x80000000;\n  }" ({ "{") (while_statement "while (iVar7 < param_2) {\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" (while "while") (parenthesized_expression "(iVar7 < param_2)" (( "(") (binary_expression "iVar7 < param_2" (identifier "iVar7") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      if (uVar1 == 0xffffffff) goto LAB_001fb410;\n      if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }\n      pbVar4 = (byte *)piVar3[3];\n      pbVar5 = (byte *)piVar3[2];\n      __n = (int)pbVar4 - (int)pbVar5;\n      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }\n      if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }\n    }" ({ "{") (if_statement "if (uVar1 == 0xffffffff) goto LAB_001fb410;" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_001fb410;" (goto "goto") (statement_identifier "LAB_001fb410") (; ";"))) (if_statement "if (uVar1 == param_3) {\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" (if "if") (parenthesized_expression "(uVar1 == param_3)" (( "(") (binary_expression "uVar1 == param_3" (identifier "uVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n        if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }\n        if (local_31 != '\0') goto LAB_001fb3d3;\n        goto LAB_001fb3e4;\n      }" ({ "{") (if_statement "if (param_2 == 0x7fffffff) {\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" (if "if") (parenthesized_expression "(param_2 == 0x7fffffff)" (( "(") (binary_expression "param_2 == 0x7fffffff" (identifier "param_2") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n          if (local_31 != '\0') goto LAB_001fb3d3;\n          goto LAB_001fb3f0;\n        }" ({ "{") (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_001fb3d3;" (goto "goto") (statement_identifier "LAB_001fb3d3") (; ";"))) (goto_statement "goto LAB_001fb3f0;" (goto "goto") (statement_identifier "LAB_001fb3f0") (; ";")) (} "}"))) (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_001fb3d3;" (goto "goto") (statement_identifier "LAB_001fb3d3") (; ";"))) (goto_statement "goto LAB_001fb3e4;" (goto "goto") (statement_identifier "LAB_001fb3e4") (; ";")) (} "}"))) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar3[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar3[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "__n = (int)pbVar4 - (int)pbVar5;" (assignment_expression "__n = (int)pbVar4 - (int)pbVar5" (identifier "__n") (= "=") (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")) (- "-") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")))) (; ";")) (if_statement "if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {\n        __n = param_2 - iVar7;\n      }" (if "if") (parenthesized_expression "(param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5)" (( "(") (binary_expression "param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5" (binary_expression "param_2 - iVar7" (identifier "param_2") (- "-") (identifier "iVar7")) (<= "<=") (binary_expression "(int)pbVar4 - (int)pbVar5" (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")) (- "-") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")))) () ")")) (compound_statement "{\n        __n = param_2 - iVar7;\n      }" ({ "{") (expression_statement "__n = param_2 - iVar7;" (assignment_expression "__n = param_2 - iVar7" (identifier "__n") (= "=") (binary_expression "param_2 - iVar7" (identifier "param_2") (- "-") (identifier "iVar7"))) (; ";")) (} "}"))) (if_statement "if ((int)__n < 2) {\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }\n      else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" (if "if") (parenthesized_expression "((int)__n < 2)" (( "(") (binary_expression "(int)__n < 2" (cast_expression "(int)__n" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__n")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        param_1[1] = iVar7 + 1;\n        if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }\n        if (pbVar4 <= pbVar5) goto LAB_001fb470;\n        uVar1 = (uint)*pbVar5;\n        iVar7 = param_1[1];\n      }" ({ "{") (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pbVar5 < pbVar4) {\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }\n        else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" (if "if") (parenthesized_expression "(pbVar5 < pbVar4)" (( "(") (binary_expression "pbVar5 < pbVar4" (identifier "pbVar5") (< "<") (identifier "pbVar4")) () ")")) (compound_statement "{\n          pbVar5 = pbVar5 + 1;\n          piVar3[2] = (int)pbVar5;\n        }" ({ "{") (expression_statement "pbVar5 = pbVar5 + 1;" (assignment_expression "pbVar5 = pbVar5 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + 1" (identifier "pbVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5"))) (; ";")) (} "}")) (else_clause "else {\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" (else "else") (compound_statement "{\n          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);\n          if (iVar7 == -1) goto LAB_001fb410;\n          pbVar5 = (byte *)piVar3[2];\n          pbVar4 = (byte *)piVar3[3];\n        }" ({ "{") (expression_statement "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);" (assignment_expression "iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3)" (identifier "iVar7") (= "=") (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x28)" (* "*") (cast_expression "(code **)(*piVar3 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x28)" (( "(") (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")")))) (; ";")) (if_statement "if (iVar7 == -1) goto LAB_001fb410;" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_001fb410;" (goto "goto") (statement_identifier "LAB_001fb410") (; ";"))) (expression_statement "pbVar5 = (byte *)piVar3[2];" (assignment_expression "pbVar5 = (byte *)piVar3[2]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar3[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar3[3];" (assignment_expression "pbVar4 = (byte *)piVar3[3]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar3[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (if_statement "if (pbVar4 <= pbVar5) goto LAB_001fb470;" (if "if") (parenthesized_expression "(pbVar4 <= pbVar5)" (( "(") (binary_expression "pbVar4 <= pbVar5" (identifier "pbVar4") (<= "<=") (identifier "pbVar5")) () ")")) (goto_statement "goto LAB_001fb470;" (goto "goto") (statement_identifier "LAB_001fb470") (; ";"))) (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar5"))) (; ";")) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" (else "else") (compound_statement "{\n        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);\n        sVar6 = (int)pvVar2 - (int)pbVar5;\n        if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }\n        pbVar5 = pbVar5 + sVar6;\n        iVar7 = iVar7 + sVar6;\n        piVar3[2] = (int)pbVar5;\n        param_1[1] = iVar7;\n        if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }\n      }" ({ "{") (expression_statement "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);" (assignment_expression "pvVar2 = memchr(pbVar5,(int)(char)param_3,__n)" (identifier "pvVar2") (= "=") (call_expression "memchr(pbVar5,(int)(char)param_3,__n)" (identifier "memchr") (argument_list "(pbVar5,(int)(char)param_3,__n)" (( "(") (identifier "pbVar5") (, ",") (cast_expression "(int)(char)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)param_3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_3"))) (, ",") (identifier "__n") () ")")))) (; ";")) (expression_statement "sVar6 = (int)pvVar2 - (int)pbVar5;" (assignment_expression "sVar6 = (int)pvVar2 - (int)pbVar5" (identifier "sVar6") (= "=") (binary_expression "(int)pvVar2 - (int)pbVar5" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (- "-") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5")))) (; ";")) (if_statement "if (pvVar2 == (void *)0x0) {\n          sVar6 = __n;\n        }" (if "if") (parenthesized_expression "(pvVar2 == (void *)0x0)" (( "(") (binary_expression "pvVar2 == (void *)0x0" (identifier "pvVar2") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          sVar6 = __n;\n        }" ({ "{") (expression_statement "sVar6 = __n;" (assignment_expression "sVar6 = __n" (identifier "sVar6") (= "=") (identifier "__n")) (; ";")) (} "}"))) (expression_statement "pbVar5 = pbVar5 + sVar6;" (assignment_expression "pbVar5 = pbVar5 + sVar6" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + sVar6" (identifier "pbVar5") (+ "+") (identifier "sVar6"))) (; ";")) (expression_statement "iVar7 = iVar7 + sVar6;" (assignment_expression "iVar7 = iVar7 + sVar6" (identifier "iVar7") (= "=") (binary_expression "iVar7 + sVar6" (identifier "iVar7") (+ "+") (identifier "sVar6"))) (; ";")) (expression_statement "piVar3[2] = (int)pbVar5;" (assignment_expression "piVar3[2] = (int)pbVar5" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5"))) (; ";")) (expression_statement "param_1[1] = iVar7;" (assignment_expression "param_1[1] = iVar7" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (pbVar5 < pbVar4) {\n          uVar1 = (uint)*pbVar5;\n        }\n        else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" (if "if") (parenthesized_expression "(pbVar5 < pbVar4)" (( "(") (binary_expression "pbVar5 < pbVar4" (identifier "pbVar5") (< "<") (identifier "pbVar4")) () ")")) (compound_statement "{\n          uVar1 = (uint)*pbVar5;\n        }" ({ "{") (expression_statement "uVar1 = (uint)*pbVar5;" (assignment_expression "uVar1 = (uint)*pbVar5" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar5"))) (; ";")) (} "}")) (else_clause "else {\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" (else "else") (compound_statement "{\nLAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);\n          iVar7 = param_1[1];\n        }" ({ "{") (labeled_statement "LAB_001fb470:\n                    \n          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (statement_identifier "LAB_001fb470") (: ":") (expression_statement "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);" (assignment_expression "uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3)" (identifier "uVar1") (= "=") (call_expression "(**(code **)(*piVar3 + 0x24))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x24)" (* "*") (cast_expression "(code **)(*piVar3 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x24)" (( "(") (binary_expression "*piVar3 + 0x24" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")")))) (; ";"))) (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}")))) (} "}"))) (if_statement "if (param_2 != 0x7fffffff) {\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" (if "if") (parenthesized_expression "(param_2 != 0x7fffffff)" (( "(") (binary_expression "param_2 != 0x7fffffff" (identifier "param_2") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n      if (local_31 != '\0') goto LAB_001fb3d3;\n      goto LAB_001fb3da;\n    }" ({ "{") (if_statement "if (local_31 != '\0') goto LAB_001fb3d3;" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_001fb3d3;" (goto "goto") (statement_identifier "LAB_001fb3d3") (; ";"))) (goto_statement "goto LAB_001fb3da;" (goto "goto") (statement_identifier "LAB_001fb3da") (; ";")) (} "}"))) (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }\n      goto LAB_001fb41d;\n    }" ({ "{") (labeled_statement "LAB_001fb410:\n      if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (statement_identifier "LAB_001fb410") (: ":") (if_statement "if (local_31 != '\0') {\n        param_1[1] = 0x7fffffff;\n      }" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        param_1[1] = 0x7fffffff;\n      }" ({ "{") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")))) (goto_statement "goto LAB_001fb41d;" (goto "goto") (statement_identifier "LAB_001fb41d") (; ";")) (} "}"))) (if_statement "if (uVar1 == param_3) {\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" (if "if") (parenthesized_expression "(uVar1 == param_3)" (( "(") (binary_expression "uVar1 == param_3" (identifier "uVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }\n      if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }\n      if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }\n      return param_1;\n    }" ({ "{") (if_statement "if (local_31 != '\0') {\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" (if "if") (parenthesized_expression "(local_31 != '\0')" (( "(") (binary_expression "local_31 != '\0'" (identifier "local_31") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_001fb3d3:\n        param_1[1] = 0x7fffffff;\nLAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }\n        if (param_3 != uVar1) {\n          return param_1;\n        }\nLAB_001fb3e4:\n        iVar7 = param_1[1];\n      }" ({ "{") (labeled_statement "LAB_001fb3d3:\n        param_1[1] = 0x7fffffff;" (statement_identifier "LAB_001fb3d3") (: ":") (expression_statement "param_1[1] = 0x7fffffff;" (assignment_expression "param_1[1] = 0x7fffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x7fffffff")) (; ";"))) (labeled_statement "LAB_001fb3da:\n        if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" (statement_identifier "LAB_001fb3da") (: ":") (if_statement "if (uVar1 == 0xffffffff) {\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" (if "if") (parenthesized_expression "(uVar1 == 0xffffffff)" (( "(") (binary_expression "uVar1 == 0xffffffff" (identifier "uVar1") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;\n          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);\n          return param_1;\n        }" ({ "{") (labeled_statement "LAB_001fb41d:\n          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_001fb41d") (: ":") (expression_statement "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar7") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";"))) (expression_statement "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);" (call_expression "FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2)" (identifier "FUN_001d62c0") (argument_list "(iVar7,*(uint *)(iVar7 + 0x14) | 2)" (( "(") (identifier "iVar7") (, ",") (binary_expression "*(uint *)(iVar7 + 0x14) | 2" (pointer_expression "*(uint *)(iVar7 + 0x14)" (* "*") (cast_expression "(uint *)(iVar7 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x14)" (( "(") (binary_expression "iVar7 + 0x14" (identifier "iVar7") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "2")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))) (if_statement "if (param_3 != uVar1) {\n          return param_1;\n        }" (if "if") (parenthesized_expression "(param_3 != uVar1)" (( "(") (binary_expression "param_3 != uVar1" (identifier "param_3") (!= "!=") (identifier "uVar1")) () ")")) (compound_statement "{\n          return param_1;\n        }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "LAB_001fb3e4:\n        iVar7 = param_1[1];" (statement_identifier "LAB_001fb3e4") (: ":") (expression_statement "iVar7 = param_1[1];" (assignment_expression "iVar7 = param_1[1]" (identifier "iVar7") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (} "}"))) (if_statement "if (iVar7 != 0x7fffffff) {\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" (if "if") (parenthesized_expression "(iVar7 != 0x7fffffff)" (( "(") (binary_expression "iVar7 != 0x7fffffff" (identifier "iVar7") (!= "!=") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\nLAB_001fb3f0:\n        param_1[1] = iVar7 + 1;\n      }" ({ "{") (labeled_statement "LAB_001fb3f0:\n        param_1[1] = iVar7 + 1;" (statement_identifier "LAB_001fb3f0") (: ":") (expression_statement "param_1[1] = iVar7 + 1;" (assignment_expression "param_1[1] = iVar7 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";"))) (} "}"))) (if_statement "if ((uint)piVar3[2] < (uint)piVar3[3]) {\n        piVar3[2] = piVar3[2] + 1;\n      }\n      else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" (if "if") (parenthesized_expression "((uint)piVar3[2] < (uint)piVar3[3])" (( "(") (binary_expression "(uint)piVar3[2] < (uint)piVar3[3]" (cast_expression "(uint)piVar3[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(uint)piVar3[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        piVar3[2] = piVar3[2] + 1;\n      }" ({ "{") (expression_statement "piVar3[2] = piVar3[2] + 1;" (assignment_expression "piVar3[2] = piVar3[2] + 1" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "piVar3[2] + 1" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" (else "else") (compound_statement "{\n                    \n        (**(code **)(*piVar3 + 0x28))(piVar3);\n      }" ({ "{") (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x28)" (* "*") (cast_expression "(code **)(*piVar3 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x28)" (( "(") (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (} "}")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "local_31 = local_1d[0];" (assignment_expression "local_31 = local_1d[0]" (identifier "local_31") (= "=") (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "param_1[1] = -0x80000000;" (assignment_expression "param_1[1] = -0x80000000" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "-0x80000000")) (; ";")) (expression_statement "iVar7 = -0x80000000;" (assignment_expression "iVar7 = -0x80000000" (identifier "iVar7") (= "=") (number_literal "-0x80000000")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::istream::ignore(int, int) */

type_2 * __thiscall std::type_2::var_2(type_2 *var_3,int var_4,int var_1)

{
  int *piVar1;
  type_1 var_6;
  size_t __n;
  void *var_11;
  type_2 *piVar4;
  type_3 *var_9;
  type_3 *var_8;
  size_t var_12;
  int var_5;
  type_4 var_7;
  type_4 local_1d [13];
  
  if (var_1 == -1) {
    piVar4 = (type_2 *)var_2(var_3,var_4);
    return piVar4;
  }
  *(type_5 *)(var_3 + 4) = 0;
  sentry::type_4(local_1d,var_3,true);
  if (var_4 < 1) {
    return var_3;
  }
  if (local_1d[0] == (type_4)0x0) {
    return var_3;
  }
  piVar1 = *(int **)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x78);
  if ((type_3 *)piVar1[2] < (type_3 *)piVar1[3]) {
    var_6 = (type_1)*(type_3 *)piVar1[2];
  }
  else {
    var_6 = (**(type_6 **)(*piVar1 + 0x24))(piVar1);
  }
  var_7 = (type_4)0x0;
  var_5 = *(int *)(var_3 + 4);
  do {
    while (var_5 < var_4) {
      if (var_6 == 0xffffffff) goto LAB_001fb410;
      if (var_6 == var_1) {
        if (var_4 == 0x7fffffff) {
          if (var_7 != (type_4)0x0) goto LAB_001fb3d3;
          goto LAB_001fb3f0;
        }
        if (var_7 != (type_4)0x0) goto LAB_001fb3d3;
        goto LAB_001fb3e4;
      }
      var_9 = (type_3 *)piVar1[3];
      var_8 = (type_3 *)piVar1[2];
      __n = (int)var_9 - (int)var_8;
      if (var_4 - var_5 <= (int)var_9 - (int)var_8) {
        __n = var_4 - var_5;
      }
      if ((int)__n < 2) {
        *(int *)(var_3 + 4) = var_5 + 1;
        if (var_8 < var_9) {
          var_8 = var_8 + 1;
          piVar1[2] = (int)var_8;
        }
        else {
          var_5 = (**(type_6 **)(*piVar1 + 0x28))(piVar1);
          if (var_5 == -1) goto LAB_001fb410;
          var_8 = (type_3 *)piVar1[2];
          var_9 = (type_3 *)piVar1[3];
        }
        if (var_9 <= var_8) goto LAB_001fb470;
        var_6 = (type_1)*var_8;
        var_5 = *(int *)(var_3 + 4);
      }
      else {
        var_11 = var_10(var_8,(int)(char)var_1,__n);
        var_12 = (int)var_11 - (int)var_8;
        if (var_11 == (void *)0x0) {
          var_12 = __n;
        }
        var_8 = var_8 + var_12;
        var_5 = var_5 + var_12;
        piVar1[2] = (int)var_8;
        *(int *)(var_3 + 4) = var_5;
        if (var_8 < var_9) {
          var_6 = (type_1)*var_8;
        }
        else {
LAB_001fb470:
                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */
          var_6 = (**(type_6 **)(*piVar1 + 0x24))(piVar1);
          var_5 = *(int *)(var_3 + 4);
        }
      }
    }
    if (var_4 != 0x7fffffff) {
      if (var_7 != (type_4)0x0) goto LAB_001fb3d3;
      goto LAB_001fb3da;
    }
    if (var_6 == 0xffffffff) {
LAB_001fb410:
      if (var_7 != (type_4)0x0) {
        *(type_5 *)(var_3 + 4) = 0x7fffffff;
      }
      goto LAB_001fb41d;
    }
    if (var_6 == var_1) {
      if (var_7 != (type_4)0x0) {
LAB_001fb3d3:
        *(type_5 *)(var_3 + 4) = 0x7fffffff;
LAB_001fb3da:
        if (var_6 == 0xffffffff) {
LAB_001fb41d:
          ios::var_13((type_7 *)(var_3 + *(int *)(*(int *)var_3 + -0xc)),
                     *(type_8 *)((type_7 *)(var_3 + *(int *)(*(int *)var_3 + -0xc)) + 0x14) |
                     var_14);
          return var_3;
        }
        if (var_1 != var_6) {
          return var_3;
        }
LAB_001fb3e4:
        var_5 = *(int *)(var_3 + 4);
      }
      if (var_5 != 0x7fffffff) {
LAB_001fb3f0:
        *(int *)(var_3 + 4) = var_5 + 1;
      }
      if ((type_1)piVar1[2] < (type_1)piVar1[3]) {
        piVar1[2] = piVar1[2] + 1;
      }
      else {
                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */
        (**(type_6 **)(*piVar1 + 0x28))(piVar1);
      }
      return var_3;
    }
    var_7 = local_1d[0];
    *(type_5 *)(var_3 + 4) = 0x80000000;
    var_5 = -0x80000000;
  } while( true );
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int * MASKED(int *param_1,int param_2,uint param_3)

{
  uint uVar1;
  size_t __n;
  void *pvVar2;
  int *piVar3;
  byte *pbVar4;
  byte *pbVar5;
  size_t sVar6;
  int iVar7;
  char local_31;
  char local_1d [13];
  
  if (param_3 == 0xffffffff) {
    piVar3 = (int *)FUN_00234ef0(param_1,param_2);
    return piVar3;
  }
  param_1[1] = 0;
  FUN_001cfd60(local_1d,param_1,1);
  if (param_2 < 1) {
    return param_1;
  }
  if (local_1d[0] == '\0') {
    return param_1;
  }
  piVar3 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar3[2] < (byte *)piVar3[3]) {
    uVar1 = (uint)*(byte *)piVar3[2];
  }
  else {
    uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);
  }
  local_31 = '\0';
  iVar7 = param_1[1];
  do {
    while (iVar7 < param_2) {
      if (uVar1 == 0xffffffff) goto LAB_001fb410;
      if (uVar1 == param_3) {
        if (param_2 == 0x7fffffff) {
          if (local_31 != '\0') goto LAB_001fb3d3;
          goto LAB_001fb3f0;
        }
        if (local_31 != '\0') goto LAB_001fb3d3;
        goto LAB_001fb3e4;
      }
      pbVar4 = (byte *)piVar3[3];
      pbVar5 = (byte *)piVar3[2];
      __n = (int)pbVar4 - (int)pbVar5;
      if (param_2 - iVar7 <= (int)pbVar4 - (int)pbVar5) {
        __n = param_2 - iVar7;
      }
      if ((int)__n < 2) {
        param_1[1] = iVar7 + 1;
        if (pbVar5 < pbVar4) {
          pbVar5 = pbVar5 + 1;
          piVar3[2] = (int)pbVar5;
        }
        else {
          iVar7 = (**(code **)(*piVar3 + 0x28))(piVar3);
          if (iVar7 == -1) goto LAB_001fb410;
          pbVar5 = (byte *)piVar3[2];
          pbVar4 = (byte *)piVar3[3];
        }
        if (pbVar4 <= pbVar5) goto LAB_001fb470;
        uVar1 = (uint)*pbVar5;
        iVar7 = param_1[1];
      }
      else {
        pvVar2 = memchr(pbVar5,(int)(char)param_3,__n);
        sVar6 = (int)pvVar2 - (int)pbVar5;
        if (pvVar2 == (void *)0x0) {
          sVar6 = __n;
        }
        pbVar5 = pbVar5 + sVar6;
        iVar7 = iVar7 + sVar6;
        piVar3[2] = (int)pbVar5;
        param_1[1] = iVar7;
        if (pbVar5 < pbVar4) {
          uVar1 = (uint)*pbVar5;
        }
        else {
LAB_001fb470:
                    /* try { // try from 001fb479 to 001fb4a6 has its CatchHandler @ 001fb4eb */
          uVar1 = (**(code **)(*piVar3 + 0x24))(piVar3);
          iVar7 = param_1[1];
        }
      }
    }
    if (param_2 != 0x7fffffff) {
      if (local_31 != '\0') goto LAB_001fb3d3;
      goto LAB_001fb3da;
    }
    if (uVar1 == 0xffffffff) {
LAB_001fb410:
      if (local_31 != '\0') {
        param_1[1] = 0x7fffffff;
      }
      goto LAB_001fb41d;
    }
    if (uVar1 == param_3) {
      if (local_31 != '\0') {
LAB_001fb3d3:
        param_1[1] = 0x7fffffff;
LAB_001fb3da:
        if (uVar1 == 0xffffffff) {
LAB_001fb41d:
          iVar7 = *(int *)(*param_1 + -0xc) + (int)param_1;
          FUN_001d62c0(iVar7,*(uint *)(iVar7 + 0x14) | 2);
          return param_1;
        }
        if (param_3 != uVar1) {
          return param_1;
        }
LAB_001fb3e4:
        iVar7 = param_1[1];
      }
      if (iVar7 != 0x7fffffff) {
LAB_001fb3f0:
        param_1[1] = iVar7 + 1;
      }
      if ((uint)piVar3[2] < (uint)piVar3[3]) {
        piVar3[2] = piVar3[2] + 1;
      }
      else {
                    /* try { // try from 001fb380 to 001fb382 has its CatchHandler @ 001fb4eb */
        (**(code **)(*piVar3 + 0x28))(piVar3);
      }
      return param_1;
    }
    local_31 = local_1d[0];
    param_1[1] = -0x80000000;
    iVar7 = -0x80000000;
  } while( true );
}

