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

istream * std::operator>>(istream *param_1,char *param_2)

{
  int *piVar1;
  void *__src;
  ctype *pcVar2;
  uint uVar3;
  byte *pbVar4;
  byte *pbVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  size_t local_34;
  int local_30;
  sentry local_21;
  locale local_20 [16];
  
  __x86_get_pc_thunk_di();
  istream::sentry::sentry(&local_21,param_1,false);
  if (local_21 == (sentry)0x0) {
    iVar8 = *(int *)param_1;
LAB_00297457:
    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));
    return param_1;
  }
  iVar8 = 0x7fffffff;
  if (0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {
    iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);
  }
  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));
                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */
  pcVar2 = use_facet<std::ctype<char>>(local_20);
  locale::~locale(local_20);
  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar3 = (uint)*(byte *)piVar1[2];
  }
  else {
                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */
    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  local_30 = 0;
LAB_00297348:
  if (local_30 < iVar8 + -1) {
    do {
      if (uVar3 == 0xffffffff) goto LAB_00297518;
      iVar6 = *(int *)(pcVar2 + 0x18);
      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;
      __src = (void *)piVar1[2];
      iVar7 = (iVar8 - local_30) + -1;
      iVar9 = piVar1[3] - (int)__src;
      if (iVar9 < iVar7) {
        iVar7 = iVar9;
      }
      if (iVar7 < 2) {
        local_30 = local_30 + 1;
        *param_2 = (char)uVar3;
        param_2 = param_2 + 1;
        pbVar4 = (byte *)piVar1[3];
        if ((byte *)piVar1[2] < pbVar4) {
          pbVar5 = (byte *)piVar1[2] + 1;
          piVar1[2] = (int)pbVar5;
        }
        else {
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar6 == -1) goto LAB_00297518;
          pbVar5 = (byte *)piVar1[2];
          pbVar4 = (byte *)piVar1[3];
        }
        if (pbVar5 < pbVar4) {
          uVar3 = (uint)*pbVar5;
        }
        else {
                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */
          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
        }
        goto LAB_00297348;
      }
      pbVar4 = (byte *)((int)__src + 1);
      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&
         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {
        do {
          pbVar4 = pbVar4 + 1;
          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;
        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);
        local_34 = (int)pbVar4 - (int)__src;
        if (local_34 != 0) goto LAB_002974c4;
        piVar1[2] = (int)pbVar4;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      else {
        local_34 = 1;
LAB_002974c4:
        memcpy(param_2,__src,local_34);
        pbVar4 = (byte *)(local_34 + piVar1[2]);
        piVar1[2] = (int)pbVar4;
        param_2 = param_2 + local_34;
        local_30 = local_30 + local_34;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      uVar3 = (uint)*pbVar4;
      if (iVar8 + -1 <= local_30) break;
    } while( true );
  }
  if (uVar3 == 0xffffffff) {
LAB_00297518:
    *param_2 = '\0';
    iVar8 = *(int *)param_1;
    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
  }
  else {
LAB_00297417:
    *param_2 = '\0';
    iVar8 = *(int *)param_1;
    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;
    if (local_30 != 0) {
      return param_1;
    }
  }
  goto LAB_00297457;
LAB_002974f6:
                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */
  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  goto LAB_00297348;
}



int * FUN_002972a0(int *param_1,undefined1 *param_2)

{
  int *piVar1;
  void *__src;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  byte *pbVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  size_t local_34;
  int local_30;
  char local_21;
  undefined1 local_20 [16];
  
  FUN_000b484e();
  FUN_0026bb10(&local_21,param_1,0);
  if (local_21 == '\0') {
    iVar2 = *param_1;
    uVar3 = 4;
LAB_00297457:
    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);
    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));
    return param_1;
  }
  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);
  iVar7 = 0x7fffffff;
  if (0 < iVar2) {
    iVar7 = iVar2;
  }
  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */
  iVar2 = FUN_0025d250(local_20);
  FUN_0024a980(local_20);
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar3 = (uint)*(byte *)piVar1[2];
  }
  else {
                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */
    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  local_30 = 0;
LAB_00297348:
  if (local_30 < iVar7 + -1) {
    do {
      if (uVar3 == 0xffffffff) goto LAB_00297518;
      iVar6 = *(int *)(iVar2 + 0x18);
      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;
      __src = (void *)piVar1[2];
      iVar8 = (iVar7 - local_30) + -1;
      iVar9 = piVar1[3] - (int)__src;
      if (iVar9 < iVar8) {
        iVar8 = iVar9;
      }
      if (iVar8 < 2) {
        local_30 = local_30 + 1;
        *param_2 = (char)uVar3;
        param_2 = param_2 + 1;
        pbVar4 = (byte *)piVar1[3];
        if ((byte *)piVar1[2] < pbVar4) {
          pbVar5 = (byte *)piVar1[2] + 1;
          piVar1[2] = (int)pbVar5;
        }
        else {
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar6 == -1) goto LAB_00297518;
          pbVar5 = (byte *)piVar1[2];
          pbVar4 = (byte *)piVar1[3];
        }
        if (pbVar5 < pbVar4) {
          uVar3 = (uint)*pbVar5;
        }
        else {
                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */
          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
        }
        goto LAB_00297348;
      }
      pbVar4 = (byte *)((int)__src + 1);
      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&
         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {
        do {
          pbVar4 = pbVar4 + 1;
          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;
        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);
        local_34 = (int)pbVar4 - (int)__src;
        if (local_34 != 0) goto LAB_002974c4;
        piVar1[2] = (int)pbVar4;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      else {
        local_34 = 1;
LAB_002974c4:
        memcpy(param_2,__src,local_34);
        pbVar4 = (byte *)(local_34 + piVar1[2]);
        piVar1[2] = (int)pbVar4;
        param_2 = param_2 + local_34;
        local_30 = local_30 + local_34;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      uVar3 = (uint)*pbVar4;
      if (iVar7 + -1 <= local_30) break;
    } while( true );
  }
  if (uVar3 == 0xffffffff) {
LAB_00297518:
    *param_2 = 0;
    iVar2 = *param_1;
    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;
    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;
  }
  else {
LAB_00297417:
    *param_2 = 0;
    iVar2 = *param_1;
    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;
    if (local_30 != 0) {
      return param_1;
    }
    uVar3 = 4;
  }
  goto LAB_00297457;
LAB_002974f6:
                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */
  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  goto LAB_00297348;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000b484e
ADD EDI,0x17cd57
PUSH ESI
LEA EAX,[EBP + -0x1d]
PUSH EBX
SUB ESP,0x40
PUSH 0x0
PUSH dword ptr [EBP + 0x8]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [EBP + -0x44],EDI
CALL 0x0026bb10
ADD ESP,0x10
CMP byte ptr [EBP + -0x1d],0x0
MOV EAX,dword ptr [EBP + 0x8]
JZ 0x00297450
MOV EAX,dword ptr [EAX]
MOV ESI,dword ptr [EBP + 0x8]
MOV EDX,0x7fffffff
ADD ESI,dword ptr [EAX + -0xc]
MOV EAX,ESI
MOV ESI,dword ptr [ESI + 0x8]
TEST ESI,ESI
CMOVG EDX,ESI
SUB ESP,0x8
LEA ESI,[EBP + -0x1c]
ADD EAX,0x6c
PUSH EAX
PUSH ESI
MOV dword ptr [EBP + -0x34],EDX
CALL 0x0024a1b0
MOV dword ptr [ESP],ESI
CALL 0x0025d250
MOV dword ptr [ESP],ESI
MOV dword ptr [EBP + -0x3c],EAX
CALL 0x0024a980
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + -0xc]
MOV ESI,dword ptr [ESI + EAX*0x1 + 0x78]
MOV EAX,dword ptr [ESI + 0x8]
CMP dword ptr [ESI + 0xc],EAX
JBE 0x00297549
MOVZX EAX,byte ptr [EAX]
MOV EBX,dword ptr [EBP + -0x34]
MOV dword ptr [EBP + -0x2c],0x0
SUB EBX,0x1
MOV dword ptr [EBP + -0x38],EBX
LEA ESI,[ESI]
MOV EDI,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [EBP + -0x38]
CMP EDI,ECX
JGE 0x0029740e
CMP EAX,-0x1
JZ 0x0029756e
MOV EBX,dword ptr [EBP + -0x3c]
MOVZX EDX,AL
MOV EBX,dword ptr [EBX + 0x18]
MOV dword ptr [EBP + -0x30],EBX
TEST byte ptr [EBX + EDX*0x2 + 0x1],0x20
JNZ 0x00297417
MOV EBX,dword ptr [ESI + 0xc]
MOV EDX,dword ptr [EBP + -0x34]
MOV ECX,dword ptr [ESI + 0x8]
SUB EDX,EDI
MOV EDI,EBX
SUB EDX,0x1
SUB EDI,ECX
CMP EDX,EDI
CMOVG EDX,EDI
CMP EDX,0x1
JLE 0x00297480
ADD EDX,ECX
LEA EAX,[ECX + 0x1]
MOV dword ptr [EBP + -0x40],EDX
CMP EDX,EAX
JBE 0x002974b8
MOVZX EDI,byte ptr [ECX + 0x1]
MOV EDX,dword ptr [EBP + -0x30]
TEST byte ptr [EDX + EDI*0x2 + 0x1],0x20
JNZ 0x002974b8
MOV EDX,dword ptr [EBP + -0x40]
MOV dword ptr [EBP + -0x40],ECX
MOV ECX,dword ptr [EBP + -0x30]
JMP 0x002973d2
MOVZX EDI,byte ptr [EAX]
TEST byte ptr [ECX + EDI*0x2 + 0x1],0x20
JNZ 0x002973d9
ADD EAX,0x1
CMP EDX,EAX
JA 0x002973c8
MOV ECX,dword ptr [EBP + -0x40]
MOV EDI,EAX
SUB EDI,ECX
MOV dword ptr [EBP + -0x30],EDI
JNZ 0x002974c4
MOV ECX,dword ptr [EBP + -0x30]
MOV dword ptr [ESI + 0x8],EAX
ADD dword ptr [EBP + 0xc],ECX
ADD dword ptr [EBP + -0x2c],EDI
CMP EAX,EBX
JNC 0x002974f6
MOV EDI,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [EBP + -0x38]
MOVZX EAX,byte ptr [EAX]
CMP EDI,ECX
JL 0x00297356
CMP EAX,-0x1
JZ 0x0029756e
MOV EAX,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV byte ptr [EAX],0x0
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
MOV EAX,dword ptr [EBP + -0x2c]
TEST EAX,EAX
JZ 0x0029753f
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EAX]
MOV EAX,0x4
MOV ESI,dword ptr [EBP + 0x8]
ADD ESI,dword ptr [EDX + -0xc]
SUB ESP,0x8
OR EAX,dword ptr [ESI + 0x14]
MOV EBX,dword ptr [EBP + -0x44]
PUSH EAX
PUSH ESI
CALL 0x00272070
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EBP + 0xc]
MOV EBX,dword ptr [EBP + 0xc]
ADD dword ptr [EBP + -0x2c],0x1
MOV byte ptr [ECX],AL
MOV EAX,dword ptr [ESI + 0x8]
ADD EBX,0x1
MOV EDX,dword ptr [ESI + 0xc]
CMP EAX,EDX
JNC 0x00297507
ADD EAX,0x1
MOV dword ptr [ESI + 0x8],EAX
CMP EAX,EDX
JNC 0x0029755a
MOVZX EAX,byte ptr [EAX]
MOV dword ptr [EBP + 0xc],EBX
JMP 0x00297348
MOV dword ptr [EBP + -0x30],0x1
MOV EDI,0x1
SUB ESP,0x4
PUSH dword ptr [EBP + -0x30]
MOV EBX,dword ptr [EBP + -0x44]
PUSH ECX
PUSH dword ptr [EBP + 0xc]
CALL 0x0002c2d0
MOV EBX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [EBP + -0x30]
ADD ESP,0x10
ADD EAX,dword ptr [ESI + 0x8]
MOV ECX,dword ptr [EBP + -0x30]
MOV dword ptr [ESI + 0x8],EAX
ADD dword ptr [EBP + 0xc],ECX
ADD dword ptr [EBP + -0x2c],EDI
CMP EAX,EBX
JC 0x002973fd
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x00297348
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00297573
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EBP + 0x8]
MOV byte ptr [EBX],0x0
CMP dword ptr [EBP + -0x2c],0x1
MOV EDX,dword ptr [EAX]
MOV EAX,dword ptr [EDX + -0xc]
MOV dword ptr [ESI + EAX*0x1 + 0x8],0x0
SBB EAX,EAX
AND EAX,0x4
ADD EAX,0x2
JMP 0x00297457
MOV EAX,0x4
JMP 0x00297457
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x00297335
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH ESI
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
MOV dword ptr [EBP + 0xc],EBX
JMP 0x00297348
MOV EBX,dword ptr [EBP + 0xc]
JMP 0x00297518
MOV EAX,dword ptr [ESI + 0x8]
MOV EDX,dword ptr [ESI + 0xc]
JMP 0x0029749f
(translation_unit "int * FUN_002972a0(int *param_1,undefined1 *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */\n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}\n\n" (function_definition "int * FUN_002972a0(int *param_1,undefined1 *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */\n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" primitive_type (pointer_declarator "* FUN_002972a0(int *param_1,undefined1 *param_2)" * (function_declarator "FUN_002972a0(int *param_1,undefined1 *param_2)" identifier (parameter_list "(int *param_1,undefined1 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */\n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_21;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" identifier (argument_list "(&local_21,param_1,0)" ( (pointer_expression "&local_21" & identifier) , identifier , number_literal ))) ;) (if_statement "if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" if (parenthesized_expression "(local_21 == '\0')" ( (binary_expression "local_21 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" { (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (labeled_statement "LAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" statement_identifier : (expression_statement "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))))) ;)) (expression_statement "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));" (call_expression "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" identifier (argument_list "(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" ( identifier , (binary_expression "uVar3 | *(uint *)(iVar2 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" identifier = (pointer_expression "*(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" * (cast_expression "(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n    iVar7 = iVar2;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar7 = iVar2;\n  }" { (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) })) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))) ;) comment (expression_statement "iVar2 = FUN_0025d250(local_20);" (assignment_expression "iVar2 = FUN_0025d250(local_20)" identifier = (call_expression "FUN_0025d250(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(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 *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(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    uVar3 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar3 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar3 = (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                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" statement_identifier : (if_statement "if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" if (parenthesized_expression "(local_30 < iVar7 + -1)" ( (binary_expression "local_30 < iVar7 + -1" identifier < (binary_expression "iVar7 + -1" identifier + number_literal)) )) (compound_statement "{\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" { (do_statement "do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );" do (compound_statement "{\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    }" { (if_statement "if (uVar3 == 0xffffffff) goto LAB_00297518;" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;" if (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (binary_expression "iVar6 + 1 + (uVar3 & 0xff) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uVar3 & 0xff) * 2" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00297417;" goto statement_identifier ;)) (expression_statement "__src = (void *)piVar1[2];" (assignment_expression "__src = (void *)piVar1[2]" identifier = (cast_expression "(void *)piVar1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar8 = (iVar7 - local_30) + -1;" (assignment_expression "iVar8 = (iVar7 - local_30) + -1" identifier = (binary_expression "(iVar7 - local_30) + -1" (parenthesized_expression "(iVar7 - local_30)" ( (binary_expression "iVar7 - local_30" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar9 = piVar1[3] - (int)__src;" (assignment_expression "iVar9 = piVar1[3] - (int)__src" identifier = (binary_expression "piVar1[3] - (int)__src" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }" if (parenthesized_expression "(iVar9 < iVar8)" ( (binary_expression "iVar9 < iVar8" identifier < identifier) )) (compound_statement "{\n        iVar8 = iVar9;\n      }" { (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" identifier = identifier) ;) })) (if_statement "if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" if (parenthesized_expression "(iVar8 < 2)" ( (binary_expression "iVar8 < 2" identifier < number_literal) )) (compound_statement "{\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" { (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (char)uVar3;" (assignment_expression "*param_2 = (char)uVar3" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar4)" ( (binary_expression "(byte *)piVar1[2] < pbVar4" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar5 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar5;" (assignment_expression "piVar1[2] = (int)pbVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" { (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(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 (iVar6 == -1) goto LAB_00297518;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar1[2];" (assignment_expression "pbVar5 = (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 "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          uVar3 = (uint)*pbVar5;\n        }" { (expression_statement "uVar3 = (uint)*pbVar5;" (assignment_expression "uVar3 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" else (compound_statement "{\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" { comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;) }))) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) })) (expression_statement "pbVar4 = (byte *)((int)__src + 1);" (assignment_expression "pbVar4 = (byte *)((int)__src + 1)" identifier = (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" if (parenthesized_expression "((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0))" ( (binary_expression "(pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar4 < (byte *)(iVar8 + (int)__src))" ( (binary_expression "pbVar4 < (byte *)(iVar8 + (int)__src)" identifier < (cast_expression "(byte *)(iVar8 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + (int)__src)" ( (binary_expression "iVar8 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) && (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (binary_expression "iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*(byte *)((int)__src + 1) * 2" (binary_expression "(uint)*(byte *)((int)__src + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (do_statement "do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);" do (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;" if (parenthesized_expression "((byte *)(iVar8 + (int)__src) <= pbVar4)" ( (binary_expression "(byte *)(iVar8 + (int)__src) <= pbVar4" (cast_expression "(byte *)(iVar8 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + (int)__src)" ( (binary_expression "iVar8 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (binary_expression "iVar6 + 1 + (uint)*pbVar4 * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "local_34 = (int)pbVar4 - (int)__src;" (assignment_expression "local_34 = (int)pbVar4 - (int)__src" identifier = (binary_expression "(int)pbVar4 - (int)__src" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_34 != 0) goto LAB_002974c4;" if (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002974c4;" goto statement_identifier ;)) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }) (else_clause "else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" else (compound_statement "{\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (labeled_statement "LAB_002974c4:\n        memcpy(param_2,__src,local_34);" statement_identifier : (expression_statement "memcpy(param_2,__src,local_34);" (call_expression "memcpy(param_2,__src,local_34)" identifier (argument_list "(param_2,__src,local_34)" ( identifier , identifier , identifier ))) ;)) (expression_statement "pbVar4 = (byte *)(local_34 + piVar1[2]);" (assignment_expression "pbVar4 = (byte *)(local_34 + piVar1[2])" identifier = (cast_expression "(byte *)(local_34 + piVar1[2])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + piVar1[2])" ( (binary_expression "local_34 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ])) )))) ;) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + local_34;" (assignment_expression "param_2 = param_2 + local_34" identifier = (binary_expression "param_2 + local_34" identifier + identifier)) ;) (expression_statement "local_30 = local_30 + local_34;" (assignment_expression "local_30 = local_30 + local_34" identifier = (binary_expression "local_30 + local_34" identifier + identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }))) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (iVar7 + -1 <= local_30) break;" if (parenthesized_expression "(iVar7 + -1 <= local_30)" ( (binary_expression "iVar7 + -1 <= local_30" (binary_expression "iVar7 + -1" identifier + number_literal) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (if_statement "if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }" { (labeled_statement "LAB_00297518:\n    *param_2 = 0;" statement_identifier : (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;)) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar3 = (-(uint)(local_30 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" ( (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" - (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) }) (else_clause "else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" else (compound_statement "{\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" { (labeled_statement "LAB_00297417:\n    *param_2 = 0;" statement_identifier : (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;)) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n      return param_1;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }))) (goto_statement "goto LAB_00297457;" goto statement_identifier ;) (labeled_statement "LAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;)) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::istream& std::TEMPNAMEPLACEHOLDERVALUE(std::istream&, char*) */\n\nistream * std::operator>>(istream *param_1,char *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  ctype *pcVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  sentry local_21;\n  locale local_20 [16];\n  \n  __x86_get_pc_thunk_di();\n  istream::sentry::sentry(&local_21,param_1,false);\n  if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\nLAB_00297457:\n    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n    return param_1;\n  }\n  iVar8 = 0x7fffffff;\n  if (0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n    iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n  }\n  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));\n                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */\n  pcVar2 = use_facet<std::ctype<char>>(local_20);\n  locale::~locale(local_20);\n  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar8 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n  }\n  else {\nLAB_00297417:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}\n\n" comment comment (ERROR "istream * std::operator>>(istream *param_1,char *param_2)" (binary_expression "istream * std::operator>>(istream *param_1,char *param_2)" (binary_expression "istream * std" identifier * identifier) (ERROR "::operator" : : identifier) >> (parenthesized_expression "(istream *param_1,char *param_2)" ( (comma_expression "istream *param_1,char *param_2" (binary_expression "istream *param_1" identifier * identifier) , (binary_expression "char *param_2" identifier * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  void *__src;\n  ctype *pcVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  sentry local_21;\n  locale local_20 [16];\n  \n  __x86_get_pc_thunk_di();\n  istream::sentry::sentry(&local_21,param_1,false);\n  if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\nLAB_00297457:\n    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n    return param_1;\n  }\n  iVar8 = 0x7fffffff;\n  if (0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n    iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n  }\n  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));\n                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */\n  pcVar2 = use_facet<std::ctype<char>>(local_20);\n  locale::~locale(local_20);\n  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar8 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n  }\n  else {\nLAB_00297417:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "ctype *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "sentry local_21;" type_identifier identifier ;) (declaration "locale local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (labeled_statement "istream::sentry::sentry(&local_21,param_1,false);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(&local_21,param_1,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(&local_21,param_1,false);" (call_expression "sentry(&local_21,param_1,false)" identifier (argument_list "(&local_21,param_1,false)" ( (pointer_expression "&local_21" & identifier) , identifier , false ))) ;))) (if_statement "if (local_21 == (sentry)0x0) {\n    iVar8 = *(int *)param_1;\nLAB_00297457:\n    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n    return param_1;\n  }" if (parenthesized_expression "(local_21 == (sentry)0x0)" ( (binary_expression "local_21 == (sentry)0x0" identifier == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    iVar8 = *(int *)param_1;\nLAB_00297457:\n    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));\n    return param_1;\n  }" { (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (labeled_statement "LAB_00297457:\n    ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" statement_identifier : (labeled_statement "ios::clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" statement_identifier : (ERROR ":" :) (expression_statement "clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)));" (call_expression "clear((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)))" identifier (argument_list "((_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc)))" ( (call_expression "(_Ios_Iostate)(param_1 + *(int *)(iVar8 + -0xc))" (parenthesized_expression "(_Ios_Iostate)" ( identifier )) (argument_list "(param_1 + *(int *)(iVar8 + -0xc))" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) ))) ))) ;))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar8 = 0x7fffffff;" (assignment_expression "iVar8 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)) {\n    iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8))" ( (binary_expression "0 < *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" number_literal < (pointer_expression "*(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" * (cast_expression "(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 8" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) )) (compound_statement "{\n    iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);\n  }" { (expression_statement "iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8);" (assignment_expression "iVar8 = *(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" identifier = (pointer_expression "*(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" * (cast_expression "(int *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 8" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) })) (labeled_statement "locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));" (call_expression "locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c))" identifier (argument_list "(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c))" ( identifier , (cast_expression "(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))) ))) ;)) comment (expression_statement "pcVar2 = use_facet<std::ctype<char>>(local_20);" (binary_expression "pcVar2 = use_facet<std::ctype<char>>(local_20)" (assignment_expression "pcVar2 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "char>>(local_20)" identifier >> (parenthesized_expression "(local_20)" ( identifier )))) ;) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (expression_statement "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(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    uVar3 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar3 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar3 = (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                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */\n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00297348:\n  if (local_30 < iVar8 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );\n  }" statement_identifier : (if_statement "if (local_30 < iVar8 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );\n  }" if (parenthesized_expression "(local_30 < iVar8 + -1)" ( (binary_expression "local_30 < iVar8 + -1" identifier < (binary_expression "iVar8 + -1" identifier + number_literal)) )) (compound_statement "{\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );\n  }" { (do_statement "do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    } while( true );" do (compound_statement "{\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(pcVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar7 = (iVar8 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }\n      if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar8 + -1 <= local_30) break;\n    }" { (if_statement "if (uVar3 == 0xffffffff) goto LAB_00297518;" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)(pcVar2 + 0x18);" (assignment_expression "iVar6 = *(int *)(pcVar2 + 0x18)" identifier = (pointer_expression "*(int *)(pcVar2 + 0x18)" * (cast_expression "(int *)(pcVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pcVar2 + 0x18)" ( (binary_expression "pcVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;" if (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (binary_expression "iVar6 + 1 + (uVar3 & 0xff) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uVar3 & 0xff) * 2" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00297417;" goto statement_identifier ;)) (expression_statement "__src = (void *)piVar1[2];" (assignment_expression "__src = (void *)piVar1[2]" identifier = (cast_expression "(void *)piVar1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar7 = (iVar8 - local_30) + -1;" (assignment_expression "iVar7 = (iVar8 - local_30) + -1" identifier = (binary_expression "(iVar8 - local_30) + -1" (parenthesized_expression "(iVar8 - local_30)" ( (binary_expression "iVar8 - local_30" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar9 = piVar1[3] - (int)__src;" (assignment_expression "iVar9 = piVar1[3] - (int)__src" identifier = (binary_expression "piVar1[3] - (int)__src" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar9 < iVar7) {\n        iVar7 = iVar9;\n      }" if (parenthesized_expression "(iVar9 < iVar7)" ( (binary_expression "iVar9 < iVar7" identifier < identifier) )) (compound_statement "{\n        iVar7 = iVar9;\n      }" { (expression_statement "iVar7 = iVar9;" (assignment_expression "iVar7 = iVar9" identifier = identifier) ;) })) (if_statement "if (iVar7 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" if (parenthesized_expression "(iVar7 < 2)" ( (binary_expression "iVar7 < 2" identifier < number_literal) )) (compound_statement "{\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" { (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (char)uVar3;" (assignment_expression "*param_2 = (char)uVar3" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar4)" ( (binary_expression "(byte *)piVar1[2] < pbVar4" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar5 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar5;" (assignment_expression "piVar1[2] = (int)pbVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" { (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(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 (iVar6 == -1) goto LAB_00297518;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar1[2];" (assignment_expression "pbVar5 = (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 "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          uVar3 = (uint)*pbVar5;\n        }" { (expression_statement "uVar3 = (uint)*pbVar5;" (assignment_expression "uVar3 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" else (compound_statement "{\n                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */\n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" { comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;) }))) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) })) (expression_statement "pbVar4 = (byte *)((int)__src + 1);" (assignment_expression "pbVar4 = (byte *)((int)__src + 1)" identifier = (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if ((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" if (parenthesized_expression "((pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0))" ( (binary_expression "(pbVar4 < (byte *)(iVar7 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar4 < (byte *)(iVar7 + (int)__src))" ( (binary_expression "pbVar4 < (byte *)(iVar7 + (int)__src)" identifier < (cast_expression "(byte *)(iVar7 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (int)__src)" ( (binary_expression "iVar7 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) && (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (binary_expression "iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*(byte *)((int)__src + 1) * 2" (binary_expression "(uint)*(byte *)((int)__src + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (do_statement "do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);" do (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;\n        }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)(iVar7 + (int)__src) <= pbVar4) break;" if (parenthesized_expression "((byte *)(iVar7 + (int)__src) <= pbVar4)" ( (binary_expression "(byte *)(iVar7 + (int)__src) <= pbVar4" (cast_expression "(byte *)(iVar7 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + (int)__src)" ( (binary_expression "iVar7 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (binary_expression "iVar6 + 1 + (uint)*pbVar4 * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "local_34 = (int)pbVar4 - (int)__src;" (assignment_expression "local_34 = (int)pbVar4 - (int)__src" identifier = (binary_expression "(int)pbVar4 - (int)__src" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_34 != 0) goto LAB_002974c4;" if (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002974c4;" goto statement_identifier ;)) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }) (else_clause "else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" else (compound_statement "{\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (labeled_statement "LAB_002974c4:\n        memcpy(param_2,__src,local_34);" statement_identifier : (expression_statement "memcpy(param_2,__src,local_34);" (call_expression "memcpy(param_2,__src,local_34)" identifier (argument_list "(param_2,__src,local_34)" ( identifier , identifier , identifier ))) ;)) (expression_statement "pbVar4 = (byte *)(local_34 + piVar1[2]);" (assignment_expression "pbVar4 = (byte *)(local_34 + piVar1[2])" identifier = (cast_expression "(byte *)(local_34 + piVar1[2])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + piVar1[2])" ( (binary_expression "local_34 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ])) )))) ;) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + local_34;" (assignment_expression "param_2 = param_2 + local_34" identifier = (binary_expression "param_2 + local_34" identifier + identifier)) ;) (expression_statement "local_30 = local_30 + local_34;" (assignment_expression "local_30 = local_30 + local_34" identifier = (binary_expression "local_30 + local_34" identifier + identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }))) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (iVar8 + -1 <= local_30) break;" if (parenthesized_expression "(iVar8 + -1 <= local_30)" ( (binary_expression "iVar8 + -1 <= local_30" (binary_expression "iVar8 + -1" identifier + number_literal) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (if_statement "if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n  }\n  else {\nLAB_00297417:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n  }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_00297518:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n  }" { (labeled_statement "LAB_00297518:\n    *param_2 = '\0';" statement_identifier : (expression_statement "*param_2 = '\0';" (assignment_expression "*param_2 = '\0'" (pointer_expression "*param_2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) }) (else_clause "else {\nLAB_00297417:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n  }" else (compound_statement "{\nLAB_00297417:\n    *param_2 = '\0';\n    iVar8 = *(int *)param_1;\n    *(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n  }" { (labeled_statement "LAB_00297417:\n    *param_2 = '\0';" statement_identifier : (expression_statement "*param_2 = '\0';" (assignment_expression "*param_2 = '\0'" (pointer_expression "*param_2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "iVar8 = *(int *)param_1;" (assignment_expression "iVar8 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" * (cast_expression "(undefined4 *)(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(iVar8 + -0xc) + 8)" ( (binary_expression "param_1 + *(int *)(iVar8 + -0xc) + 8" (binary_expression "param_1 + *(int *)(iVar8 + -0xc)" identifier + (pointer_expression "*(int *)(iVar8 + -0xc)" * (cast_expression "(int *)(iVar8 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -0xc)" ( (binary_expression "iVar8 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n      return param_1;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) }))) (goto_statement "goto LAB_00297457;" goto statement_identifier ;) (labeled_statement "LAB_002974f6:\n                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */\n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : comment (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;)) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) }))
(translation_unit "int * FUN_002972a0(int *param_1,undefined1 *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}\n\n" (function_definition "int * FUN_002972a0(int *param_1,undefined1 *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" primitive_type (pointer_declarator "* FUN_002972a0(int *param_1,undefined1 *param_2)" * (function_declarator "FUN_002972a0(int *param_1,undefined1 *param_2)" identifier (parameter_list "(int *param_1,undefined1 *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "char local_21;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" identifier (argument_list "(&local_21,param_1,0)" ( (pointer_expression "&local_21" & identifier) , identifier , number_literal ))) ;) (if_statement "if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" if (parenthesized_expression "(local_21 == '\0')" ( (binary_expression "local_21 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" { (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) (labeled_statement "LAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" statement_identifier : (expression_statement "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))))) ;)) (expression_statement "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));" (call_expression "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" identifier (argument_list "(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" ( identifier , (binary_expression "uVar3 | *(uint *)(iVar2 + 0x14)" identifier | (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" identifier = (pointer_expression "*(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" * (cast_expression "(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n    iVar7 = iVar2;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar7 = iVar2;\n  }" { (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" identifier = identifier) ;) })) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))) ;) (expression_statement "iVar2 = FUN_0025d250(local_20);" (assignment_expression "iVar2 = FUN_0025d250(local_20)" identifier = (call_expression "FUN_0025d250(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(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 *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(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    uVar3 = (uint)*(byte *)piVar1[2];\n  }" { (expression_statement "uVar3 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar3 = (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                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" else (compound_statement "{\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" statement_identifier : (if_statement "if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" if (parenthesized_expression "(local_30 < iVar7 + -1)" ( (binary_expression "local_30 < iVar7 + -1" identifier < (binary_expression "iVar7 + -1" identifier + number_literal)) )) (compound_statement "{\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" { (do_statement "do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );" do (compound_statement "{\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    }" { (if_statement "if (uVar3 == 0xffffffff) goto LAB_00297518;" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "iVar6 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x18)" identifier = (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;" if (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uVar3 & 0xff) * 2)" ( (binary_expression "iVar6 + 1 + (uVar3 & 0xff) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uVar3 & 0xff) * 2" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) * number_literal)) )))) & number_literal) )) != number_literal) )) (goto_statement "goto LAB_00297417;" goto statement_identifier ;)) (expression_statement "__src = (void *)piVar1[2];" (assignment_expression "__src = (void *)piVar1[2]" identifier = (cast_expression "(void *)piVar1[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (expression_statement "iVar8 = (iVar7 - local_30) + -1;" (assignment_expression "iVar8 = (iVar7 - local_30) + -1" identifier = (binary_expression "(iVar7 - local_30) + -1" (parenthesized_expression "(iVar7 - local_30)" ( (binary_expression "iVar7 - local_30" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar9 = piVar1[3] - (int)__src;" (assignment_expression "iVar9 = piVar1[3] - (int)__src" identifier = (binary_expression "piVar1[3] - (int)__src" (subscript_expression "piVar1[3]" identifier [ number_literal ]) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }" if (parenthesized_expression "(iVar9 < iVar8)" ( (binary_expression "iVar9 < iVar8" identifier < identifier) )) (compound_statement "{\n        iVar8 = iVar9;\n      }" { (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" identifier = identifier) ;) })) (if_statement "if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" if (parenthesized_expression "(iVar8 < 2)" ( (binary_expression "iVar8 < 2" identifier < number_literal) )) (compound_statement "{\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" { (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" identifier = (binary_expression "local_30 + 1" identifier + number_literal)) ;) (expression_statement "*param_2 = (char)uVar3;" (assignment_expression "*param_2 = (char)uVar3" (pointer_expression "*param_2" * identifier) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" if (parenthesized_expression "((byte *)piVar1[2] < pbVar4)" ( (binary_expression "(byte *)piVar1[2] < pbVar4" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }" { (expression_statement "pbVar5 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar5 = (byte *)piVar1[2] + 1" identifier = (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "piVar1[2] = (int)pbVar5;" (assignment_expression "piVar1[2] = (int)pbVar5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" else (compound_statement "{\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" { (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(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 (iVar6 == -1) goto LAB_00297518;" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00297518;" goto statement_identifier ;)) (expression_statement "pbVar5 = (byte *)piVar1[2];" (assignment_expression "pbVar5 = (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 "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (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 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" if (parenthesized_expression "(pbVar5 < pbVar4)" ( (binary_expression "pbVar5 < pbVar4" identifier < identifier) )) (compound_statement "{\n          uVar3 = (uint)*pbVar5;\n        }" { (expression_statement "uVar3 = (uint)*pbVar5;" (assignment_expression "uVar3 = (uint)*pbVar5" identifier = (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) (else_clause "else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" else (compound_statement "{\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" { (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;) }))) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) })) (expression_statement "pbVar4 = (byte *)((int)__src + 1);" (assignment_expression "pbVar4 = (byte *)((int)__src + 1)" identifier = (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" if (parenthesized_expression "((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0))" ( (binary_expression "(pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar4 < (byte *)(iVar8 + (int)__src))" ( (binary_expression "pbVar4 < (byte *)(iVar8 + (int)__src)" identifier < (cast_expression "(byte *)(iVar8 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + (int)__src)" ( (binary_expression "iVar8 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) )))) )) && (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" ( (binary_expression "iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*(byte *)((int)__src + 1) * 2" (binary_expression "(uint)*(byte *)((int)__src + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)((int)__src + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__src + 1)" ( (binary_expression "(int)__src + 1" (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (do_statement "do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);" do (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        }" { (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;" if (parenthesized_expression "((byte *)(iVar8 + (int)__src) <= pbVar4)" ( (binary_expression "(byte *)(iVar8 + (int)__src) <= pbVar4" (cast_expression "(byte *)(iVar8 + (int)__src)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + (int)__src)" ( (binary_expression "iVar8 + (int)__src" identifier + (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier)) ))) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0)" ( (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20)" ( (binary_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" * (cast_expression "(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1 + (uint)*pbVar4 * 2)" ( (binary_expression "iVar6 + 1 + (uint)*pbVar4 * 2" (binary_expression "iVar6 + 1" identifier + number_literal) + (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "local_34 = (int)pbVar4 - (int)__src;" (assignment_expression "local_34 = (int)pbVar4 - (int)__src" identifier = (binary_expression "(int)pbVar4 - (int)__src" (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__src" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (local_34 != 0) goto LAB_002974c4;" if (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002974c4;" goto statement_identifier ;)) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }) (else_clause "else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" else (compound_statement "{\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" { (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" identifier = number_literal) ;) (labeled_statement "LAB_002974c4:\n        memcpy(param_2,__src,local_34);" statement_identifier : (expression_statement "memcpy(param_2,__src,local_34);" (call_expression "memcpy(param_2,__src,local_34)" identifier (argument_list "(param_2,__src,local_34)" ( identifier , identifier , identifier ))) ;)) (expression_statement "pbVar4 = (byte *)(local_34 + piVar1[2]);" (assignment_expression "pbVar4 = (byte *)(local_34 + piVar1[2])" identifier = (cast_expression "(byte *)(local_34 + piVar1[2])" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_34 + piVar1[2])" ( (binary_expression "local_34 + piVar1[2]" identifier + (subscript_expression "piVar1[2]" identifier [ number_literal ])) )))) ;) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_2 = param_2 + local_34;" (assignment_expression "param_2 = param_2 + local_34" identifier = (binary_expression "param_2 + local_34" identifier + identifier)) ;) (expression_statement "local_30 = local_30 + local_34;" (assignment_expression "local_30 = local_30 + local_34" identifier = (binary_expression "local_30 + local_34" identifier + identifier)) ;) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" if (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" ( (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (goto_statement "goto LAB_002974f6;" goto statement_identifier ;)) }))) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (if_statement "if (iVar7 + -1 <= local_30) break;" if (parenthesized_expression "(iVar7 + -1 <= local_30)" ( (binary_expression "iVar7 + -1 <= local_30" (binary_expression "iVar7 + -1" identifier + number_literal) <= identifier) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "( true )" ( true )) ;) }))) (if_statement "if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }" { (labeled_statement "LAB_00297518:\n    *param_2 = 0;" statement_identifier : (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;)) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar3 = (-(uint)(local_30 == 0) & 4) + 2" identifier = (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" ( (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" - (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )))) & number_literal) )) + number_literal)) ;) }) (else_clause "else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" else (compound_statement "{\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" { (labeled_statement "LAB_00297417:\n    *param_2 = 0;" statement_identifier : (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" * identifier) = number_literal) ;)) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" * (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) = number_literal) ;) (if_statement "if (local_30 != 0) {\n      return param_1;\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" identifier = number_literal) ;) }))) (goto_statement "goto LAB_00297457;" goto statement_identifier ;) (labeled_statement "LAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" statement_identifier : (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(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 )))) ;)) (goto_statement "goto LAB_00297348;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor 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 = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + LIT)) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) & LIT) )) != 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 = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_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 (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor 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) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) * LIT)) )))) & LIT) )) == LIT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))) & LIT) )) == 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 IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) (break_statement break ;)) }) while (parenthesized_expression ( BOOL )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) )))) & LIT) )) + LIT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (goto_statement goto statement_identifier ;) (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 )))) ;)) (goto_statement goto statement_identifier ;) })))
(function_definition "int * FUN_002972a0(int *param_1,undefined1 *param_2)\n\n{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" (primitive_type "int") (pointer_declarator "* FUN_002972a0(int *param_1,undefined1 *param_2)" (* "*") (function_declarator "FUN_002972a0(int *param_1,undefined1 *param_2)" (identifier "FUN_002972a0") (parameter_list "(int *param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  void *__src;\n  int iVar2;\n  uint uVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  size_t local_34;\n  int local_30;\n  char local_21;\n  undefined1 local_20 [16];\n  \n  FUN_000b484e();\n  FUN_0026bb10(&local_21,param_1,0);\n  if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }\n  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);\n  iVar7 = 0x7fffffff;\n  if (0 < iVar2) {\n    iVar7 = iVar2;\n  }\n  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  iVar2 = FUN_0025d250(local_20);\n  FUN_0024a980(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);\n  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }\n  local_30 = 0;\nLAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }\n  if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }\n  goto LAB_00297457;\nLAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  goto LAB_00297348;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "size_t local_34;" (primitive_type "size_t") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "char local_21;" (primitive_type "char") (identifier "local_21") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "FUN_000b484e();" (call_expression "FUN_000b484e()" (identifier "FUN_000b484e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0026bb10(&local_21,param_1,0);" (call_expression "FUN_0026bb10(&local_21,param_1,0)" (identifier "FUN_0026bb10") (argument_list "(&local_21,param_1,0)" (( "(") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (local_21 == '\0') {\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" (if "if") (parenthesized_expression "(local_21 == '\0')" (( "(") (binary_expression "local_21 == '\0'" (identifier "local_21") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = *param_1;\n    uVar3 = 4;\nLAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);\n    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));\n    return param_1;\n  }" ({ "{") (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (labeled_statement "LAB_00297457:\n    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" (statement_identifier "LAB_00297457") (: ":") (expression_statement "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc)" (identifier "iVar2") (= "=") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))))) (; ";"))) (expression_statement "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));" (call_expression "FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" (identifier "FUN_00272070") (argument_list "(iVar2,uVar3 | *(uint *)(iVar2 + 0x14))" (( "(") (identifier "iVar2") (, ",") (binary_expression "uVar3 | *(uint *)(iVar2 + 0x14)" (identifier "uVar3") (| "|") (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);" (assignment_expression "iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 8" (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 "8")) () ")"))))) (; ";")) (expression_statement "iVar7 = 0x7fffffff;" (assignment_expression "iVar7 = 0x7fffffff" (identifier "iVar7") (= "=") (number_literal "0x7fffffff")) (; ";")) (if_statement "if (0 < iVar2) {\n    iVar7 = iVar2;\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar7 = iVar2;\n  }" ({ "{") (expression_statement "iVar7 = iVar2;" (assignment_expression "iVar7 = iVar2" (identifier "iVar7") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (identifier "FUN_0024a1b0") (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (( "(") (identifier "local_20") (, ",") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (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 "0x6c")) () ")"))) (; ";")) (expression_statement "iVar2 = FUN_0025d250(local_20);" (assignment_expression "iVar2 = FUN_0025d250(local_20)" (identifier "iVar2") (= "=") (call_expression "FUN_0025d250(local_20)" (identifier "FUN_0025d250") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")")))) (; ";")) (expression_statement "FUN_0024a980(local_20);" (call_expression "FUN_0024a980(local_20)" (identifier "FUN_0024a980") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar1") (= "=") (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 *)piVar1[2] < (byte *)piVar1[3]) {\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }\n  else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" (if "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 "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n    uVar3 = (uint)*(byte *)piVar1[2];\n  }" ({ "{") (expression_statement "uVar3 = (uint)*(byte *)piVar1[2];" (assignment_expression "uVar3 = (uint)*(byte *)piVar1[2]" (identifier "uVar3") (= "=") (binary_expression "(uint)*(byte *)piVar1[2]" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))))) (; ";")) (} "}")) (else_clause "else {\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" (else "else") (compound_statement "{\n                    \n    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" ({ "{") (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar3") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00297348:\n  if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" (statement_identifier "LAB_00297348") (: ":") (if_statement "if (local_30 < iVar7 + -1) {\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" (if "if") (parenthesized_expression "(local_30 < iVar7 + -1)" (( "(") (binary_expression "local_30 < iVar7 + -1" (identifier "local_30") (< "<") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n    do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );\n  }" ({ "{") (do_statement "do {\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    } while( true );" (do "do") (compound_statement "{\n      if (uVar3 == 0xffffffff) goto LAB_00297518;\n      iVar6 = *(int *)(iVar2 + 0x18);\n      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;\n      __src = (void *)piVar1[2];\n      iVar8 = (iVar7 - local_30) + -1;\n      iVar9 = piVar1[3] - (int)__src;\n      if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }\n      if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }\n      pbVar4 = (byte *)((int)__src + 1);\n      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      uVar3 = (uint)*pbVar4;\n      if (iVar7 + -1 <= local_30) break;\n    }" ({ "{") (if_statement "if (uVar3 == 0xffffffff) goto LAB_00297518;" (if "if") (parenthesized_expression "(uVar3 == 0xffffffff)" (( "(") (binary_expression "uVar3 == 0xffffffff" (identifier "uVar3") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_00297518;" (goto "goto") (statement_identifier "LAB_00297518") (; ";"))) (expression_statement "iVar6 = *(int *)(iVar2 + 0x18);" (assignment_expression "iVar6 = *(int *)(iVar2 + 0x18)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;" (if "if") (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" (* "*") (cast_expression "(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 1 + (uVar3 & 0xff) * 2)" (( "(") (binary_expression "iVar6 + 1 + (uVar3 & 0xff) * 2" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uVar3 & 0xff) * 2" (parenthesized_expression "(uVar3 & 0xff)" (( "(") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff")) () ")")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00297417;" (goto "goto") (statement_identifier "LAB_00297417") (; ";"))) (expression_statement "__src = (void *)piVar1[2];" (assignment_expression "__src = (void *)piVar1[2]" (identifier "__src") (= "=") (cast_expression "(void *)piVar1[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "iVar8 = (iVar7 - local_30) + -1;" (assignment_expression "iVar8 = (iVar7 - local_30) + -1" (identifier "iVar8") (= "=") (binary_expression "(iVar7 - local_30) + -1" (parenthesized_expression "(iVar7 - local_30)" (( "(") (binary_expression "iVar7 - local_30" (identifier "iVar7") (- "-") (identifier "local_30")) () ")")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar9 = piVar1[3] - (int)__src;" (assignment_expression "iVar9 = piVar1[3] - (int)__src" (identifier "iVar9") (= "=") (binary_expression "piVar1[3] - (int)__src" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (if_statement "if (iVar9 < iVar8) {\n        iVar8 = iVar9;\n      }" (if "if") (parenthesized_expression "(iVar9 < iVar8)" (( "(") (binary_expression "iVar9 < iVar8" (identifier "iVar9") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n        iVar8 = iVar9;\n      }" ({ "{") (expression_statement "iVar8 = iVar9;" (assignment_expression "iVar8 = iVar9" (identifier "iVar8") (= "=") (identifier "iVar9")) (; ";")) (} "}"))) (if_statement "if (iVar8 < 2) {\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" (if "if") (parenthesized_expression "(iVar8 < 2)" (( "(") (binary_expression "iVar8 < 2" (identifier "iVar8") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        local_30 = local_30 + 1;\n        *param_2 = (char)uVar3;\n        param_2 = param_2 + 1;\n        pbVar4 = (byte *)piVar1[3];\n        if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }\n        if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }\n        goto LAB_00297348;\n      }" ({ "{") (expression_statement "local_30 = local_30 + 1;" (assignment_expression "local_30 = local_30 + 1" (identifier "local_30") (= "=") (binary_expression "local_30 + 1" (identifier "local_30") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_2 = (char)uVar3;" (assignment_expression "*param_2 = (char)uVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (byte *)piVar1[3]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if ((byte *)piVar1[2] < pbVar4) {\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }\n        else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" (if "if") (parenthesized_expression "((byte *)piVar1[2] < pbVar4)" (( "(") (binary_expression "(byte *)piVar1[2] < pbVar4" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar4")) () ")")) (compound_statement "{\n          pbVar5 = (byte *)piVar1[2] + 1;\n          piVar1[2] = (int)pbVar5;\n        }" ({ "{") (expression_statement "pbVar5 = (byte *)piVar1[2] + 1;" (assignment_expression "pbVar5 = (byte *)piVar1[2] + 1" (identifier "pbVar5") (= "=") (binary_expression "(byte *)piVar1[2] + 1" (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[2] = (int)pbVar5;" (assignment_expression "piVar1[2] = (int)pbVar5" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar5"))) (; ";")) (} "}")) (else_clause "else {\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" (else "else") (compound_statement "{\n          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);\n          if (iVar6 == -1) goto LAB_00297518;\n          pbVar5 = (byte *)piVar1[2];\n          pbVar4 = (byte *)piVar1[3];\n        }" ({ "{") (expression_statement "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar6") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar6 == -1) goto LAB_00297518;" (if "if") (parenthesized_expression "(iVar6 == -1)" (( "(") (binary_expression "iVar6 == -1" (identifier "iVar6") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00297518;" (goto "goto") (statement_identifier "LAB_00297518") (; ";"))) (expression_statement "pbVar5 = (byte *)piVar1[2];" (assignment_expression "pbVar5 = (byte *)piVar1[2]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)piVar1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar4 = (byte *)piVar1[3];" (assignment_expression "pbVar4 = (byte *)piVar1[3]" (identifier "pbVar4") (= "=") (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (if_statement "if (pbVar5 < pbVar4) {\n          uVar3 = (uint)*pbVar5;\n        }\n        else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" (if "if") (parenthesized_expression "(pbVar5 < pbVar4)" (( "(") (binary_expression "pbVar5 < pbVar4" (identifier "pbVar5") (< "<") (identifier "pbVar4")) () ")")) (compound_statement "{\n          uVar3 = (uint)*pbVar5;\n        }" ({ "{") (expression_statement "uVar3 = (uint)*pbVar5;" (assignment_expression "uVar3 = (uint)*pbVar5" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar5"))) (; ";")) (} "}")) (else_clause "else {\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" (else "else") (compound_statement "{\n                    \n          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);\n        }" ({ "{") (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar3") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (goto_statement "goto LAB_00297348;" (goto "goto") (statement_identifier "LAB_00297348") (; ";")) (} "}"))) (expression_statement "pbVar4 = (byte *)((int)__src + 1);" (assignment_expression "pbVar4 = (byte *)((int)__src + 1)" (identifier "pbVar4") (= "=") (cast_expression "(byte *)((int)__src + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__src + 1)" (( "(") (binary_expression "(int)__src + 1" (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }\n      else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" (if "if") (parenthesized_expression "((pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0))" (( "(") (binary_expression "(pbVar4 < (byte *)(iVar8 + (int)__src)) &&\n         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" (parenthesized_expression "(pbVar4 < (byte *)(iVar8 + (int)__src))" (( "(") (binary_expression "pbVar4 < (byte *)(iVar8 + (int)__src)" (identifier "pbVar4") (< "<") (cast_expression "(byte *)(iVar8 + (int)__src)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + (int)__src)" (( "(") (binary_expression "iVar8 + (int)__src" (identifier "iVar8") (+ "+") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) () ")")))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" (* "*") (cast_expression "(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2)" (( "(") (binary_expression "iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*(byte *)((int)__src + 1) * 2" (binary_expression "(uint)*(byte *)((int)__src + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)((int)__src + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__src + 1)" (( "(") (binary_expression "(int)__src + 1" (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")) (+ "+") (number_literal "1")) () ")")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);\n        local_34 = (int)pbVar4 - (int)__src;\n        if (local_34 != 0) goto LAB_002974c4;\n        piVar1[2] = (int)pbVar4;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" ({ "{") (do_statement "do {\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);" (do "do") (compound_statement "{\n          pbVar4 = pbVar4 + 1;\n          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;\n        }" ({ "{") (expression_statement "pbVar4 = pbVar4 + 1;" (assignment_expression "pbVar4 = pbVar4 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;" (if "if") (parenthesized_expression "((byte *)(iVar8 + (int)__src) <= pbVar4)" (( "(") (binary_expression "(byte *)(iVar8 + (int)__src) <= pbVar4" (cast_expression "(byte *)(iVar8 + (int)__src)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + (int)__src)" (( "(") (binary_expression "iVar8 + (int)__src" (identifier "iVar8") (+ "+") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src"))) () ")"))) (<= "<=") (identifier "pbVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0" (parenthesized_expression "(*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20)" (( "(") (binary_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20" (pointer_expression "*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" (* "*") (cast_expression "(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 1 + (uint)*pbVar4 * 2)" (( "(") (binary_expression "iVar6 + 1 + (uint)*pbVar4 * 2" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (binary_expression "(uint)*pbVar4 * 2" (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4")) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "local_34 = (int)pbVar4 - (int)__src;" (assignment_expression "local_34 = (int)pbVar4 - (int)__src" (identifier "local_34") (= "=") (binary_expression "(int)pbVar4 - (int)__src" (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4")) (- "-") (cast_expression "(int)__src" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__src")))) (; ";")) (if_statement "if (local_34 != 0) goto LAB_002974c4;" (if "if") (parenthesized_expression "(local_34 != 0)" (( "(") (binary_expression "local_34 != 0" (identifier "local_34") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_002974c4;" (goto "goto") (statement_identifier "LAB_002974c4") (; ";"))) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (; ";")) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" (if "if") (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" (( "(") (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "pbVar4")) () ")")) (goto_statement "goto LAB_002974f6;" (goto "goto") (statement_identifier "LAB_002974f6") (; ";"))) (} "}")) (else_clause "else {\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" (else "else") (compound_statement "{\n        local_34 = 1;\nLAB_002974c4:\n        memcpy(param_2,__src,local_34);\n        pbVar4 = (byte *)(local_34 + piVar1[2]);\n        piVar1[2] = (int)pbVar4;\n        param_2 = param_2 + local_34;\n        local_30 = local_30 + local_34;\n        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;\n      }" ({ "{") (expression_statement "local_34 = 1;" (assignment_expression "local_34 = 1" (identifier "local_34") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_002974c4:\n        memcpy(param_2,__src,local_34);" (statement_identifier "LAB_002974c4") (: ":") (expression_statement "memcpy(param_2,__src,local_34);" (call_expression "memcpy(param_2,__src,local_34)" (identifier "memcpy") (argument_list "(param_2,__src,local_34)" (( "(") (identifier "param_2") (, ",") (identifier "__src") (, ",") (identifier "local_34") () ")"))) (; ";"))) (expression_statement "pbVar4 = (byte *)(local_34 + piVar1[2]);" (assignment_expression "pbVar4 = (byte *)(local_34 + piVar1[2])" (identifier "pbVar4") (= "=") (cast_expression "(byte *)(local_34 + piVar1[2])" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_34 + piVar1[2])" (( "(") (binary_expression "local_34 + piVar1[2]" (identifier "local_34") (+ "+") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) () ")")))) (; ";")) (expression_statement "piVar1[2] = (int)pbVar4;" (assignment_expression "piVar1[2] = (int)pbVar4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar4"))) (; ";")) (expression_statement "param_2 = param_2 + local_34;" (assignment_expression "param_2 = param_2 + local_34" (identifier "param_2") (= "=") (binary_expression "param_2 + local_34" (identifier "param_2") (+ "+") (identifier "local_34"))) (; ";")) (expression_statement "local_30 = local_30 + local_34;" (assignment_expression "local_30 = local_30 + local_34" (identifier "local_30") (= "=") (binary_expression "local_30 + local_34" (identifier "local_30") (+ "+") (identifier "local_34"))) (; ";")) (if_statement "if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;" (if "if") (parenthesized_expression "((byte *)piVar1[3] <= pbVar4)" (( "(") (binary_expression "(byte *)piVar1[3] <= pbVar4" (cast_expression "(byte *)piVar1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "pbVar4")) () ")")) (goto_statement "goto LAB_002974f6;" (goto "goto") (statement_identifier "LAB_002974f6") (; ";"))) (} "}")))) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" (identifier "uVar3") (= "=") (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar4"))) (; ";")) (if_statement "if (iVar7 + -1 <= local_30) break;" (if "if") (parenthesized_expression "(iVar7 + -1 <= local_30)" (( "(") (binary_expression "iVar7 + -1 <= local_30" (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1")) (<= "<=") (identifier "local_30")) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))) (if_statement "if (uVar3 == 0xffffffff) {\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }\n  else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" (if "if") (parenthesized_expression "(uVar3 == 0xffffffff)" (( "(") (binary_expression "uVar3 == 0xffffffff" (identifier "uVar3") (== "==") (number_literal "0xffffffff")) () ")")) (compound_statement "{\nLAB_00297518:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;\n  }" ({ "{") (labeled_statement "LAB_00297518:\n    *param_2 = 0;" (statement_identifier "LAB_00297518") (: ":") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (-(uint)(local_30 == 0) & 4) + 2;" (assignment_expression "uVar3 = (-(uint)(local_30 == 0) & 4) + 2" (identifier "uVar3") (= "=") (binary_expression "(-(uint)(local_30 == 0) & 4) + 2" (parenthesized_expression "(-(uint)(local_30 == 0) & 4)" (( "(") (binary_expression "-(uint)(local_30 == 0) & 4" (unary_expression "-(uint)(local_30 == 0)" (- "-") (call_expression "(uint)(local_30 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "4")) () ")")) (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" (else "else") (compound_statement "{\nLAB_00297417:\n    *param_2 = 0;\n    iVar2 = *param_1;\n    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;\n    if (local_30 != 0) {\n      return param_1;\n    }\n    uVar3 = 4;\n  }" ({ "{") (labeled_statement "LAB_00297417:\n    *param_2 = 0;" (statement_identifier "LAB_00297417") (: ":") (expression_statement "*param_2 = 0;" (assignment_expression "*param_2 = 0" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar2 = *param_1;" (assignment_expression "iVar2 = *param_1" (identifier "iVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;" (assignment_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0" (pointer_expression "*(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (* "*") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_30 != 0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "uVar3 = 4;" (assignment_expression "uVar3 = 4" (identifier "uVar3") (= "=") (number_literal "4")) (; ";")) (} "}")))) (goto_statement "goto LAB_00297457;" (goto "goto") (statement_identifier "LAB_00297457") (; ";")) (labeled_statement "LAB_002974f6:\n                    \n  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (statement_identifier "LAB_002974f6") (: ":") (expression_statement "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "uVar3") (= "=") (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 "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";"))) (goto_statement "goto LAB_00297348;" (goto "goto") (statement_identifier "LAB_00297348") (; ";")) (} "}")))

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

istream * var_7::operator>>(istream *var_4,var_8 *var_15)

{
  int *piVar1;
  void *__src;
  type_1 *var_11;
  type_2 var_10;
  type_3 *var_16;
  type_3 *var_17;
  int var_12;
  int var_14;
  int var_5;
  int var_13;
  size_t var_18;
  int var_9;
  type_4 var_2;
  type_5 local_20 [16];
  
  var_1();
  istream::sentry::type_4(&var_2,var_4,false);
  if (var_2 == (type_4)0x0) {
    var_5 = *(int *)var_4;
LAB_00297457:
    ios::var_3((_Ios_Iostate)(var_4 + *(int *)(var_5 + -0xc)));
    return var_4;
  }
  var_5 = 0x7fffffff;
  if (0 < *(int *)(var_4 + *(int *)(*(int *)var_4 + -0xc) + 8)) {
    var_5 = *(int *)(var_4 + *(int *)(*(int *)var_4 + -0xc) + 8);
  }
  locale::type_5(local_20,(type_5 *)(var_4 + *(int *)(*(int *)var_4 + -0xc) + 0x6c));
                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */
  var_11 = var_6<var_7::type_1<var_8>>(local_20);
  locale::~type_5(local_20);
  piVar1 = *(int **)(var_4 + *(int *)(*(int *)var_4 + -0xc) + 0x78);
  if ((type_3 *)piVar1[2] < (type_3 *)piVar1[3]) {
    var_10 = (type_2)*(type_3 *)piVar1[2];
  }
  else {
                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */
    var_10 = (**(type_6 **)(*piVar1 + 0x24))(piVar1);
  }
  var_9 = 0;
LAB_00297348:
  if (var_9 < var_5 + -1) {
    do {
      if (var_10 == 0xffffffff) goto LAB_00297518;
      var_12 = *(int *)(var_11 + 0x18);
      if ((*(type_3 *)(var_12 + 1 + (var_10 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;
      __src = (void *)piVar1[2];
      var_14 = (var_5 - var_9) + -1;
      var_13 = piVar1[3] - (int)__src;
      if (var_13 < var_14) {
        var_14 = var_13;
      }
      if (var_14 < 2) {
        var_9 = var_9 + 1;
        *var_15 = (char)var_10;
        var_15 = var_15 + 1;
        var_16 = (type_3 *)piVar1[3];
        if ((type_3 *)piVar1[2] < var_16) {
          var_17 = (type_3 *)piVar1[2] + 1;
          piVar1[2] = (int)var_17;
        }
        else {
          var_12 = (**(type_6 **)(*piVar1 + 0x28))(piVar1);
          if (var_12 == -1) goto LAB_00297518;
          var_17 = (type_3 *)piVar1[2];
          var_16 = (type_3 *)piVar1[3];
        }
        if (var_17 < var_16) {
          var_10 = (type_2)*var_17;
        }
        else {
                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */
          var_10 = (**(type_6 **)(*piVar1 + 0x24))(piVar1);
        }
        goto LAB_00297348;
      }
      var_16 = (type_3 *)((int)__src + 1);
      if ((var_16 < (type_3 *)(var_14 + (int)__src)) &&
         ((*(type_3 *)(var_12 + 1 + (type_2)*(type_3 *)((int)__src + 1) * 2) & 0x20) == 0)) {
        do {
          var_16 = var_16 + 1;
          if ((type_3 *)(var_14 + (int)__src) <= var_16) break;
        } while ((*(type_3 *)(var_12 + 1 + (type_2)*var_16 * 2) & 0x20) == 0);
        var_18 = (int)var_16 - (int)__src;
        if (var_18 != 0) goto LAB_002974c4;
        piVar1[2] = (int)var_16;
        if ((type_3 *)piVar1[3] <= var_16) goto LAB_002974f6;
      }
      else {
        var_18 = 1;
LAB_002974c4:
        var_19(var_15,__src,var_18);
        var_16 = (type_3 *)(var_18 + piVar1[2]);
        piVar1[2] = (int)var_16;
        var_15 = var_15 + var_18;
        var_9 = var_9 + var_18;
        if ((type_3 *)piVar1[3] <= var_16) goto LAB_002974f6;
      }
      var_10 = (type_2)*var_16;
      if (var_5 + -1 <= var_9) break;
    } while( true );
  }
  if (var_10 == 0xffffffff) {
LAB_00297518:
    *var_15 = '\0';
    var_5 = *(int *)var_4;
    *(type_7 *)(var_4 + *(int *)(var_5 + -0xc) + 8) = 0;
  }
  else {
LAB_00297417:
    *var_15 = '\0';
    var_5 = *(int *)var_4;
    *(type_7 *)(var_4 + *(int *)(var_5 + -0xc) + 8) = 0;
    if (var_9 != 0) {
      return var_4;
    }
  }
  goto LAB_00297457;
LAB_002974f6:
                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */
  var_10 = (**(type_6 **)(*piVar1 + 0x24))(piVar1);
  goto LAB_00297348;
}


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

int * MASKED(int *param_1,undefined1 *param_2)

{
  int *piVar1;
  void *__src;
  int iVar2;
  uint uVar3;
  byte *pbVar4;
  byte *pbVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  size_t local_34;
  int local_30;
  char local_21;
  undefined1 local_20 [16];
  
  FUN_000b484e();
  FUN_0026bb10(&local_21,param_1,0);
  if (local_21 == '\0') {
    iVar2 = *param_1;
    uVar3 = 4;
LAB_00297457:
    iVar2 = (int)param_1 + *(int *)(iVar2 + -0xc);
    FUN_00272070(iVar2,uVar3 | *(uint *)(iVar2 + 0x14));
    return param_1;
  }
  iVar2 = *(int *)((int)param_1 + *(int *)(*param_1 + -0xc) + 8);
  iVar7 = 0x7fffffff;
  if (0 < iVar2) {
    iVar7 = iVar2;
  }
  FUN_0024a1b0(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 00297304 to 00297308 has its CatchHandler @ 0029757e */
  iVar2 = FUN_0025d250(local_20);
  FUN_0024a980(local_20);
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78);
  if ((byte *)piVar1[2] < (byte *)piVar1[3]) {
    uVar3 = (uint)*(byte *)piVar1[2];
  }
  else {
                    /* try { // try from 0029754f to 00297551 has its CatchHandler @ 00297588 */
    uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  }
  local_30 = 0;
LAB_00297348:
  if (local_30 < iVar7 + -1) {
    do {
      if (uVar3 == 0xffffffff) goto LAB_00297518;
      iVar6 = *(int *)(iVar2 + 0x18);
      if ((*(byte *)(iVar6 + 1 + (uVar3 & 0xff) * 2) & 0x20) != 0) goto LAB_00297417;
      __src = (void *)piVar1[2];
      iVar8 = (iVar7 - local_30) + -1;
      iVar9 = piVar1[3] - (int)__src;
      if (iVar9 < iVar8) {
        iVar8 = iVar9;
      }
      if (iVar8 < 2) {
        local_30 = local_30 + 1;
        *param_2 = (char)uVar3;
        param_2 = param_2 + 1;
        pbVar4 = (byte *)piVar1[3];
        if ((byte *)piVar1[2] < pbVar4) {
          pbVar5 = (byte *)piVar1[2] + 1;
          piVar1[2] = (int)pbVar5;
        }
        else {
          iVar6 = (**(code **)(*piVar1 + 0x28))(piVar1);
          if (iVar6 == -1) goto LAB_00297518;
          pbVar5 = (byte *)piVar1[2];
          pbVar4 = (byte *)piVar1[3];
        }
        if (pbVar5 < pbVar4) {
          uVar3 = (uint)*pbVar5;
        }
        else {
                    /* try { // try from 00297560 to 00297562 has its CatchHandler @ 0029758d */
          uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
        }
        goto LAB_00297348;
      }
      pbVar4 = (byte *)((int)__src + 1);
      if ((pbVar4 < (byte *)(iVar8 + (int)__src)) &&
         ((*(byte *)(iVar6 + 1 + (uint)*(byte *)((int)__src + 1) * 2) & 0x20) == 0)) {
        do {
          pbVar4 = pbVar4 + 1;
          if ((byte *)(iVar8 + (int)__src) <= pbVar4) break;
        } while ((*(byte *)(iVar6 + 1 + (uint)*pbVar4 * 2) & 0x20) == 0);
        local_34 = (int)pbVar4 - (int)__src;
        if (local_34 != 0) goto LAB_002974c4;
        piVar1[2] = (int)pbVar4;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      else {
        local_34 = 1;
LAB_002974c4:
        memcpy(param_2,__src,local_34);
        pbVar4 = (byte *)(local_34 + piVar1[2]);
        piVar1[2] = (int)pbVar4;
        param_2 = param_2 + local_34;
        local_30 = local_30 + local_34;
        if ((byte *)piVar1[3] <= pbVar4) goto LAB_002974f6;
      }
      uVar3 = (uint)*pbVar4;
      if (iVar7 + -1 <= local_30) break;
    } while( true );
  }
  if (uVar3 == 0xffffffff) {
LAB_00297518:
    *param_2 = 0;
    iVar2 = *param_1;
    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;
    uVar3 = (-(uint)(local_30 == 0) & 4) + 2;
  }
  else {
LAB_00297417:
    *param_2 = 0;
    iVar2 = *param_1;
    *(undefined4 *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8) = 0;
    if (local_30 != 0) {
      return param_1;
    }
    uVar3 = 4;
  }
  goto LAB_00297457;
LAB_002974f6:
                    /* try { // try from 002974fc to 0029750f has its CatchHandler @ 0029758d */
  uVar3 = (**(code **)(*piVar1 + 0x24))(piVar1);
  goto LAB_00297348;
}

