
void fts5StructurePromote(Fts5Index *p,int iLvl,Fts5Structure *pStruct)

{
  int iVar1;
  Fts5StructureSegment *pFVar2;
  undefined8 *puVar3;
  long lVar4;
  int iVar5;
  Fts5StructureSegment **ppFVar6;
  int *piVar7;
  int iVar8;
  int iVar9;
  long lVar10;
  long lVar11;
  Fts5StructureSegment **local_48;
  int local_40;
  int local_3c;
  
  if (p->rc == 0) {
    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;
    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {
      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;
      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);
      iVar8 = iLvl + -1;
      if (-1 < iVar8) {
        iVar1 = *(int *)((long)ppFVar6 + 0xc);
        while (iVar1 == 0) {
          iVar8 = iVar8 + -1;
          if (iVar8 == -1) goto LAB_0017062a;
          iVar1 = *(int *)((long)ppFVar6 + -4);
          ppFVar6 = ppFVar6 + -2;
        }
        iVar1 = pStruct->aLevel[iVar8].nSeg;
        iVar9 = 0;
        if (0 < iVar1) {
          pFVar2 = pStruct->aLevel[iVar8].aSeg;
          piVar7 = &pFVar2->pgnoFirst;
          do {
            iVar5 = (piVar7[1] - *piVar7) + 1;
            if (iVar9 < iVar5) {
              iVar9 = iVar5;
            }
            piVar7 = piVar7 + 3;
          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);
        }
        if (local_40 <= iVar9) {
          iLvl = iVar8;
          local_40 = iVar9;
        }
      }
LAB_0017062a:
      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;
      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&
         (*(int *)(ppFVar6 + 5) == 0)) {
        local_48 = ppFVar6;
        while( true ) {
          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;
          if (-1 < iVar8) {
            lVar10 = (long)iVar8 * 0xc;
            if (local_40 <
                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -
                *(int *)(lVar10 + (long)local_48[6] + 4)) {
              return;
            }
            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;
            while( true ) {
              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);
              if (p->rc != 0) {
                return;
              }
              puVar3 = (undefined8 *)ppFVar6[4];
              lVar4 = (long)local_48[6];
              *puVar3 = *(undefined8 *)(lVar10 + lVar4);
              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);
              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;
              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;
              if (lVar11 == lVar10) break;
              lVar10 = lVar10 + -0xc;
              if (local_40 <
                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -
                  *(int *)(lVar10 + (long)local_48[6] + 4)) {
                return;
              }
            }
          }
          local_3c = local_3c + 1;
          if (pStruct->nLevel <= local_3c) break;
          piVar7 = (int *)(local_48 + 7);
          local_48 = local_48 + 2;
          if (*piVar7 != 0) {
            return;
          }
        }
        return;
      }
    }
  }
  return;
}



void FUN_0017056c(long param_1,int param_2,long param_3)

{
  int iVar1;
  undefined8 *puVar2;
  int iVar3;
  long lVar4;
  int *piVar5;
  long lVar6;
  int iVar7;
  undefined8 *puVar8;
  long lVar9;
  int iVar10;
  long lVar11;
  long local_48;
  int local_40;
  int local_3c;
  
  if (*(int *)(param_1 + 0x34) == 0) {
    lVar4 = (long)param_2 * 0x10 + param_3;
    if (*(int *)(lVar4 + 0x1c) != 0) {
      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;
      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);
      iVar7 = param_2 + -1;
      if (-1 < iVar7) {
        iVar1 = *(int *)(lVar4 + 0xc);
        while (iVar1 == 0) {
          iVar7 = iVar7 + -1;
          if (iVar7 == -1) goto LAB_0017062a;
          iVar1 = *(int *)(lVar4 + -4);
          lVar4 = lVar4 + -0x10;
        }
        lVar4 = (long)iVar7 * 0x10 + param_3;
        iVar1 = *(int *)(lVar4 + 0x1c);
        iVar10 = 0;
        if (0 < iVar1) {
          lVar4 = *(long *)(lVar4 + 0x20);
          piVar5 = (int *)(lVar4 + 4);
          do {
            iVar3 = (piVar5[1] - *piVar5) + 1;
            if (iVar10 < iVar3) {
              iVar10 = iVar3;
            }
            piVar5 = piVar5 + 3;
          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));
        }
        if (local_40 <= iVar10) {
          param_2 = iVar7;
          local_40 = iVar10;
        }
      }
LAB_0017062a:
      lVar4 = (long)param_2 * 0x10 + param_3;
      if (((*(int *)(lVar4 + 0x18) == 0) &&
          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&
         (*(int *)(lVar4 + 0x28) == 0)) {
        local_48 = lVar4;
        while( true ) {
          iVar7 = *(int *)(local_48 + 0x2c) + -1;
          if (-1 < iVar7) {
            lVar11 = (long)iVar7 * 0xc;
            lVar6 = lVar11 + *(long *)(local_48 + 0x30);
            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {
              return;
            }
            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;
            while( true ) {
              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);
              if (*(int *)(param_1 + 0x34) != 0) {
                return;
              }
              puVar2 = *(undefined8 **)(lVar4 + 0x20);
              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));
              *puVar2 = *puVar8;
              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);
              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;
              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;
              if (lVar6 == lVar11) break;
              lVar11 = lVar11 + -0xc;
              lVar9 = lVar11 + *(long *)(local_48 + 0x30);
              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {
                return;
              }
            }
          }
          local_3c = local_3c + 1;
          if (*(int *)(param_3 + 0x14) <= local_3c) break;
          piVar5 = (int *)(local_48 + 0x38);
          local_48 = local_48 + 0x10;
          if (*piVar5 != 0) {
            return;
          }
        }
        return;
      }
    }
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV R13D,ESI
MOV qword ptr [RSP],RDX
MOV ESI,dword ptr [RDI + 0x34]
TEST ESI,ESI
JNZ 0x00170717
MOV R14,RDI
MOVSXD RAX,R13D
SHL RAX,0x4
ADD RAX,RDX
MOV EDX,dword ptr [RAX + 0x1c]
TEST EDX,EDX
JZ 0x00170717
MOVSXD RDX,EDX
LEA RCX,[RDX + RDX*0x2]
MOV RDX,qword ptr [RAX + 0x20]
LEA RCX,[RDX + RCX*0x4 + -0xc]
MOV EBX,dword ptr [RCX + 0x8]
LEA EDX,[RBX + 0x1]
SUB EDX,dword ptr [RCX + 0x4]
MOV dword ptr [RSP + 0x18],EDX
MOV EDX,R13D
SUB EDX,0x1
JS 0x0017062a
CMP dword ptr [RAX + 0xc],0x0
JNZ 0x001705e1
SUB EDX,0x1
CMP EDX,-0x1
JZ 0x0017062a
SUB RAX,0x10
CMP dword ptr [RAX + 0xc],0x0
JZ 0x001705cf
MOVSXD RAX,EDX
SHL RAX,0x4
ADD RAX,qword ptr [RSP]
MOV EDI,dword ptr [RAX + 0x1c]
TEST EDI,EDI
JLE 0x0017061d
MOV RAX,qword ptr [RAX + 0x20]
LEA RCX,[RAX + 0x4]
LEA EDI,[RDI + -0x1]
LEA RDI,[RDI + RDI*0x2]
LEA RDI,[RAX + RDI*0x4 + 0x10]
MOV EAX,dword ptr [RCX + 0x4]
SUB EAX,dword ptr [RCX]
ADD EAX,0x1
CMP ESI,EAX
CMOVL ESI,EAX
ADD RCX,0xc
CMP RCX,RDI
JNZ 0x00170607
CMP dword ptr [RSP + 0x18],ESI
JG 0x0017062a
MOV dword ptr [RSP + 0x18],ESI
MOV R13D,EDX
MOVSXD RBP,R13D
SHL RBP,0x4
MOV RAX,qword ptr [RSP]
ADD RBP,RAX
CMP dword ptr [RBP + 0x18],0x0
JNZ 0x00170717
LEA EBX,[R13 + 0x1]
MOV dword ptr [RSP + 0x1c],EBX
CMP EBX,dword ptr [RAX + 0x14]
JGE 0x00170717
CMP dword ptr [RBP + 0x28],0x0
JNZ 0x00170717
MOV qword ptr [RSP + 0x10],RBP
LEA RAX,[R14 + 0x34]
MOV qword ptr [RSP + 0x8],RAX
MOV RSI,qword ptr [RSP + 0x10]
MOV R12,RSI
MOV EDX,dword ptr [RSI + 0x2c]
MOV EAX,EDX
SUB EAX,0x1
JS 0x00170726
CDQE
LEA R15,[RAX + RAX*0x2]
SHL R15,0x2
MOV RBX,R15
MOV RCX,R15
ADD RCX,qword ptr [RSI + 0x30]
MOV EAX,dword ptr [RCX + 0x8]
ADD EAX,0x1
SUB EAX,dword ptr [RCX + 0x4]
CMP dword ptr [RSP + 0x18],EAX
JL 0x00170717
LEA EAX,[RDX + -0x1]
LEA RAX,[RAX + RAX*0x2]
SHL RAX,0x2
SUB R15,RAX
MOV R8D,0x1
MOV ECX,0x1
MOV EDX,R13D
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001704b7
CMP dword ptr [R14 + 0x34],0x0
JNZ 0x00170717
MOV RAX,qword ptr [RBP + 0x20]
MOV RDX,RBX
ADD RDX,qword ptr [R12 + 0x30]
MOV RCX,qword ptr [RDX]
MOV qword ptr [RAX],RCX
MOV EDX,dword ptr [RDX + 0x8]
MOV dword ptr [RAX + 0x8],EDX
ADD dword ptr [RBP + 0x1c],0x1
SUB dword ptr [R12 + 0x2c],0x1
CMP R15,RBX
JZ 0x00170726
SUB RBX,0xc
MOV RDX,RBX
ADD RDX,qword ptr [R12 + 0x30]
MOV EAX,dword ptr [RDX + 0x8]
ADD EAX,0x1
SUB EAX,dword ptr [RDX + 0x4]
CMP dword ptr [RSP + 0x18],EAX
JGE 0x001706b2
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
ADD dword ptr [RSP + 0x1c],0x1
MOV EAX,dword ptr [RSP + 0x1c]
MOV RBX,qword ptr [RSP]
CMP EAX,dword ptr [RBX + 0x14]
JGE 0x00170717
ADD qword ptr [RSP + 0x10],0x10
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x28],0x0
JZ 0x0017066b
JMP 0x00170717
(translation_unit "void FUN_0017056c(long param_1,int param_2,long param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0017056c(long param_1,int param_2,long param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017056c(long param_1,int param_2,long param_3)" identifier (parameter_list "(long param_1,int param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" ( (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" { (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" identifier = (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) != 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) != 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" { (expression_statement "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;" (assignment_expression "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" identifier = (binary_expression "*(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" (binary_expression "*(long *)(lVar4 + 0x20) + -0xc" (pointer_expression "*(long *)(lVar4 + 0x20)" * (cast_expression "(long *)(lVar4 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) + number_literal) + (binary_expression "(long)*(int *)(lVar4 + 0x1c) * 0xc" (cast_expression "(long)*(int *)(lVar4 + 0x1c)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) ))))) * number_literal))) ;) (expression_statement "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);" (assignment_expression "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" identifier = (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" ( (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" * (cast_expression "(int *)(lVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar6 + 4)" * (cast_expression "(int *)(lVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 4)" ( (binary_expression "lVar6 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar7 = param_2 + -1;" (assignment_expression "iVar7 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" { (expression_statement "iVar1 = *(int *)(lVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0xc)" identifier = (pointer_expression "*(int *)(lVar4 + 0xc)" * (cast_expression "(int *)(lVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0xc)" ( (binary_expression "lVar4 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" { (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 == -1) goto LAB_0017062a;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0017062a;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(lVar4 + -4);" (assignment_expression "iVar1 = *(int *)(lVar4 + -4)" identifier = (pointer_expression "*(int *)(lVar4 + -4)" * (cast_expression "(int *)(lVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -4)" ( (binary_expression "lVar4 + -4" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = lVar4 + -0x10;" (assignment_expression "lVar4 = lVar4 + -0x10" identifier = (binary_expression "lVar4 + -0x10" identifier + number_literal)) ;) })) (expression_statement "lVar4 = (long)iVar7 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)iVar7 * 0x10 + param_3" identifier = (binary_expression "(long)iVar7 * 0x10 + param_3" (binary_expression "(long)iVar7 * 0x10" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;) (expression_statement "iVar1 = *(int *)(lVar4 + 0x1c);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0x1c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" { (expression_statement "lVar4 = *(long *)(lVar4 + 0x20);" (assignment_expression "lVar4 = *(long *)(lVar4 + 0x20)" identifier = (pointer_expression "*(long *)(lVar4 + 0x20)" * (cast_expression "(long *)(lVar4 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)(lVar4 + 4);" (assignment_expression "piVar5 = (int *)(lVar4 + 4)" identifier = (cast_expression "(int *)(lVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 4)" ( (binary_expression "lVar4 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));" do (compound_statement "{\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          }" { (expression_statement "iVar3 = (piVar5[1] - *piVar5) + 1;" (assignment_expression "iVar3 = (piVar5[1] - *piVar5) + 1" identifier = (binary_expression "(piVar5[1] - *piVar5) + 1" (parenthesized_expression "(piVar5[1] - *piVar5)" ( (binary_expression "piVar5[1] - *piVar5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) - (pointer_expression "*piVar5" * identifier)) )) + number_literal)) ;) (if_statement "if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }" if (parenthesized_expression "(iVar10 < iVar3)" ( (binary_expression "iVar10 < iVar3" identifier < identifier) )) (compound_statement "{\n              iVar10 = iVar3;\n            }" { (expression_statement "iVar10 = iVar3;" (assignment_expression "iVar10 = iVar3" identifier = identifier) ;) })) (expression_statement "piVar5 = piVar5 + 3;" (assignment_expression "piVar5 = piVar5 + 3" identifier = (binary_expression "piVar5 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc))" ( (binary_expression "piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" identifier != (cast_expression "(int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" ( (binary_expression "lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc" (binary_expression "lVar4 + 0x10" identifier + number_literal) + (binary_expression "(ulong)(iVar1 - 1) * 0xc" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal)) )))) )) ;) })) (if_statement "if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" if (parenthesized_expression "(local_40 <= iVar10)" ( (binary_expression "local_40 <= iVar10" identifier <= identifier) )) (compound_statement "{\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" { (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" identifier = identifier) ;) (expression_statement "local_40 = iVar10;" (assignment_expression "local_40 = iVar10" identifier = identifier) ;) })) })) (labeled_statement "LAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;" statement_identifier : (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" identifier = (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;)) (if_statement "if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0))" ( (binary_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)" (parenthesized_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)))" ( (binary_expression "(*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" ( (comma_expression "local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)" (assignment_expression "local_3c = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) , (binary_expression "local_3c < *(int *)(param_3 + 0x14)" identifier < (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))))) ))) )) && (parenthesized_expression "(*(int *)(lVar4 + 0x28) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x28) == 0" (pointer_expression "*(int *)(lVar4 + 0x28)" * (cast_expression "(int *)(lVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x28)" ( (binary_expression "lVar4 + 0x28" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" { (expression_statement "local_48 = lVar4;" (assignment_expression "local_48 = lVar4" identifier = identifier) ;) (while_statement "while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" { (expression_statement "iVar7 = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "iVar7 = *(int *)(local_48 + 0x2c) + -1" identifier = (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" { (expression_statement "lVar11 = (long)iVar7 * 0xc;" (assignment_expression "lVar11 = (long)iVar7 * 0xc" identifier = (binary_expression "(long)iVar7 * 0xc" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (expression_statement "lVar6 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar6 = lVar11 + *(long *)(local_48 + 0x30)" identifier = (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) )))))) ;) (if_statement "if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }" if (parenthesized_expression "(local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4))" ( (binary_expression "local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" identifier < (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" ( (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" * (cast_expression "(int *)(lVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar6 + 4)" * (cast_expression "(int *)(lVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 4)" ( (binary_expression "lVar6 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;" (assignment_expression "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" identifier = (binary_expression "lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" identifier + (binary_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" (call_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(local_48 + 0x2c) - 1)" ( (binary_expression "*(int *)(local_48 + 0x2c) - 1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) - number_literal) ))) * number_literal))) ;) (while_statement "while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" { (expression_statement "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);" (call_expression "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1)" identifier (argument_list "(param_1 + 0x34,param_3,param_2,1,1)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" ( (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = *(undefined8 **)(lVar4 + 0x20);" (assignment_expression "puVar2 = *(undefined8 **)(lVar4 + 0x20)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 0x20)" * (cast_expression "(undefined8 **)(lVar4 + 0x20)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));" (assignment_expression "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" identifier = (cast_expression "(undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + *(long *)(local_48 + 0x30))" ( (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "*puVar2 = *puVar8;" (assignment_expression "*puVar2 = *puVar8" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);" (assignment_expression "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1)" (pointer_expression "*(undefined4 *)(puVar2 + 1)" * (cast_expression "(undefined4 *)(puVar2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar8 + 1)" * (cast_expression "(undefined4 *)(puVar8 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;" (assignment_expression "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (lVar6 == lVar11) break;" if (parenthesized_expression "(lVar6 == lVar11)" ( (binary_expression "lVar6 == lVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar11 = lVar11 + -0xc;" (assignment_expression "lVar11 = lVar11 + -0xc" identifier = (binary_expression "lVar11 + -0xc" identifier + number_literal)) ;) (expression_statement "lVar9 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar9 = lVar11 + *(long *)(local_48 + 0x30)" identifier = (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) )))))) ;) (if_statement "if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }" if (parenthesized_expression "(local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4))" ( (binary_expression "local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" identifier < (binary_expression "(*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" (parenthesized_expression "(*(int *)(lVar9 + 8) + 1)" ( (binary_expression "*(int *)(lVar9 + 8) + 1" (pointer_expression "*(int *)(lVar9 + 8)" * (cast_expression "(int *)(lVar9 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 8)" ( (binary_expression "lVar9 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar9 + 4)" * (cast_expression "(int *)(lVar9 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 4)" ( (binary_expression "lVar9 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) })) })) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_3 + 0x14) <= local_3c) break;" if (parenthesized_expression "(*(int *)(param_3 + 0x14) <= local_3c)" ( (binary_expression "*(int *)(param_3 + 0x14) <= local_3c" (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar5 = (int *)(local_48 + 0x38);" (assignment_expression "piVar5 = (int *)(local_48 + 0x38)" identifier = (cast_expression "(int *)(local_48 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x38)" ( (binary_expression "local_48 + 0x38" identifier + number_literal) )))) ;) (expression_statement "local_48 = local_48 + 0x10;" (assignment_expression "local_48 = local_48 + 0x10" identifier = (binary_expression "local_48 + 0x10" identifier + number_literal)) ;) (if_statement "if (*piVar5 != 0) {\n            return;\n          }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void fts5StructurePromote(Fts5Index *p,int iLvl,Fts5Structure *pStruct)\n\n{\n  int iVar1;\n  Fts5StructureSegment *pFVar2;\n  undefined8 *puVar3;\n  long lVar4;\n  int iVar5;\n  Fts5StructureSegment **ppFVar6;\n  int *piVar7;\n  int iVar8;\n  int iVar9;\n  long lVar10;\n  long lVar11;\n  Fts5StructureSegment **local_48;\n  int local_40;\n  int local_3c;\n  \n  if (p->rc == 0) {\n    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void fts5StructurePromote(Fts5Index *p,int iLvl,Fts5Structure *pStruct)\n\n{\n  int iVar1;\n  Fts5StructureSegment *pFVar2;\n  undefined8 *puVar3;\n  long lVar4;\n  int iVar5;\n  Fts5StructureSegment **ppFVar6;\n  int *piVar7;\n  int iVar8;\n  int iVar9;\n  long lVar10;\n  long lVar11;\n  Fts5StructureSegment **local_48;\n  int local_40;\n  int local_3c;\n  \n  if (p->rc == 0) {\n    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "fts5StructurePromote(Fts5Index *p,int iLvl,Fts5Structure *pStruct)" identifier (parameter_list "(Fts5Index *p,int iLvl,Fts5Structure *pStruct)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int iLvl" primitive_type identifier) , (parameter_declaration "Fts5Structure *pStruct" type_identifier (pointer_declarator "*pStruct" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Fts5StructureSegment *pFVar2;\n  undefined8 *puVar3;\n  long lVar4;\n  int iVar5;\n  Fts5StructureSegment **ppFVar6;\n  int *piVar7;\n  int iVar8;\n  int iVar9;\n  long lVar10;\n  long lVar11;\n  Fts5StructureSegment **local_48;\n  int local_40;\n  int local_3c;\n  \n  if (p->rc == 0) {\n    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Fts5StructureSegment *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "Fts5StructureSegment **ppFVar6;" type_identifier (pointer_declarator "**ppFVar6" * (pointer_declarator "*ppFVar6" * identifier)) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "Fts5StructureSegment **local_48;" type_identifier (pointer_declarator "**local_48" * (pointer_declarator "*local_48" * identifier)) ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (if_statement "if (p->rc == 0) {\n    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(p->rc == 0)" ( (binary_expression "p->rc == 0" (field_expression "p->rc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n    if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" { (expression_statement "ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;" (assignment_expression "ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg" identifier = (pointer_expression "&pStruct->aLevel[(long)iLvl + -2].aSeg" & (field_expression "pStruct->aLevel[(long)iLvl + -2].aSeg" (subscript_expression "pStruct->aLevel[(long)iLvl + -2]" (field_expression "pStruct->aLevel" identifier -> field_identifier) [ (binary_expression "(long)iLvl + -2" (cast_expression "(long)iLvl" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ]) . field_identifier))) ;) (if_statement "if (*(int *)((long)ppFVar6 + 0x1c) != 0) {\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)((long)ppFVar6 + 0x1c) != 0)" ( (binary_expression "*(int *)((long)ppFVar6 + 0x1c) != 0" (pointer_expression "*(int *)((long)ppFVar6 + 0x1c)" * (cast_expression "(int *)((long)ppFVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + 0x1c)" ( (binary_expression "(long)ppFVar6 + 0x1c" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n      lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);\n      iVar8 = iLvl + -1;\n      if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }\nLAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;\n      if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" { (expression_statement "lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc;" (assignment_expression "lVar10 = (long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc" identifier = (binary_expression "(long)ppFVar6[4] + -0xc + (long)*(int *)((long)ppFVar6 + 0x1c) * 0xc" (binary_expression "(long)ppFVar6[4] + -0xc" (cast_expression "(long)ppFVar6[4]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "ppFVar6[4]" identifier [ number_literal ])) + number_literal) + (binary_expression "(long)*(int *)((long)ppFVar6 + 0x1c) * 0xc" (cast_expression "(long)*(int *)((long)ppFVar6 + 0x1c)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)((long)ppFVar6 + 0x1c)" * (cast_expression "(int *)((long)ppFVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + 0x1c)" ( (binary_expression "(long)ppFVar6 + 0x1c" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) * number_literal))) ;) (expression_statement "local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4);" (assignment_expression "local_40 = (*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4)" identifier = (binary_expression "(*(int *)(lVar10 + 8) + 1) - *(int *)(lVar10 + 4)" (parenthesized_expression "(*(int *)(lVar10 + 8) + 1)" ( (binary_expression "*(int *)(lVar10 + 8) + 1" (pointer_expression "*(int *)(lVar10 + 8)" * (cast_expression "(int *)(lVar10 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 8)" ( (binary_expression "lVar10 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar10 + 4)" * (cast_expression "(int *)(lVar10 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + 4)" ( (binary_expression "lVar10 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar8 = iLvl + -1;" (assignment_expression "iVar8 = iLvl + -1" identifier = (binary_expression "iLvl + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar8) {\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n        iVar1 = *(int *)((long)ppFVar6 + 0xc);\n        while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }\n        iVar1 = pStruct->aLevel[iVar8].nSeg;\n        iVar9 = 0;\n        if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }\n        if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }\n      }" { (expression_statement "iVar1 = *(int *)((long)ppFVar6 + 0xc);" (assignment_expression "iVar1 = *(int *)((long)ppFVar6 + 0xc)" identifier = (pointer_expression "*(int *)((long)ppFVar6 + 0xc)" * (cast_expression "(int *)((long)ppFVar6 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + 0xc)" ( (binary_expression "(long)ppFVar6 + 0xc" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (while_statement "while (iVar1 == 0) {\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }" while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar8 = iVar8 + -1;\n          if (iVar8 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)((long)ppFVar6 + -4);\n          ppFVar6 = ppFVar6 + -2;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (if_statement "if (iVar8 == -1) goto LAB_0017062a;" if (parenthesized_expression "(iVar8 == -1)" ( (binary_expression "iVar8 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0017062a;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)((long)ppFVar6 + -4);" (assignment_expression "iVar1 = *(int *)((long)ppFVar6 + -4)" identifier = (pointer_expression "*(int *)((long)ppFVar6 + -4)" * (cast_expression "(int *)((long)ppFVar6 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + -4)" ( (binary_expression "(long)ppFVar6 + -4" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "ppFVar6 = ppFVar6 + -2;" (assignment_expression "ppFVar6 = ppFVar6 + -2" identifier = (binary_expression "ppFVar6 + -2" identifier + number_literal)) ;) })) (expression_statement "iVar1 = pStruct->aLevel[iVar8].nSeg;" (assignment_expression "iVar1 = pStruct->aLevel[iVar8].nSeg" identifier = (field_expression "pStruct->aLevel[iVar8].nSeg" (subscript_expression "pStruct->aLevel[iVar8]" (field_expression "pStruct->aLevel" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n          pFVar2 = pStruct->aLevel[iVar8].aSeg;\n          piVar7 = &pFVar2->pgnoFirst;\n          do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);\n        }" { (expression_statement "pFVar2 = pStruct->aLevel[iVar8].aSeg;" (assignment_expression "pFVar2 = pStruct->aLevel[iVar8].aSeg" identifier = (field_expression "pStruct->aLevel[iVar8].aSeg" (subscript_expression "pStruct->aLevel[iVar8]" (field_expression "pStruct->aLevel" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) (expression_statement "piVar7 = &pFVar2->pgnoFirst;" (assignment_expression "piVar7 = &pFVar2->pgnoFirst" identifier = (pointer_expression "&pFVar2->pgnoFirst" & (field_expression "pFVar2->pgnoFirst" identifier -> field_identifier))) ;) (do_statement "do {\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          } while (piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst);" do (compound_statement "{\n            iVar5 = (piVar7[1] - *piVar7) + 1;\n            if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }\n            piVar7 = piVar7 + 3;\n          }" { (expression_statement "iVar5 = (piVar7[1] - *piVar7) + 1;" (assignment_expression "iVar5 = (piVar7[1] - *piVar7) + 1" identifier = (binary_expression "(piVar7[1] - *piVar7) + 1" (parenthesized_expression "(piVar7[1] - *piVar7)" ( (binary_expression "piVar7[1] - *piVar7" (subscript_expression "piVar7[1]" identifier [ number_literal ]) - (pointer_expression "*piVar7" * identifier)) )) + number_literal)) ;) (if_statement "if (iVar9 < iVar5) {\n              iVar9 = iVar5;\n            }" if (parenthesized_expression "(iVar9 < iVar5)" ( (binary_expression "iVar9 < iVar5" identifier < identifier) )) (compound_statement "{\n              iVar9 = iVar5;\n            }" { (expression_statement "iVar9 = iVar5;" (assignment_expression "iVar9 = iVar5" identifier = identifier) ;) })) (expression_statement "piVar7 = piVar7 + 3;" (assignment_expression "piVar7 = piVar7 + 3" identifier = (binary_expression "piVar7 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst)" ( (binary_expression "piVar7 != &pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst" identifier != (pointer_expression "&pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst" & (field_expression "pFVar2[(ulong)(iVar1 - 1) + 1].pgnoFirst" (subscript_expression "pFVar2[(ulong)(iVar1 - 1) + 1]" identifier [ (binary_expression "(ulong)(iVar1 - 1) + 1" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) + number_literal) ]) . field_identifier))) )) ;) })) (if_statement "if (local_40 <= iVar9) {\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }" if (parenthesized_expression "(local_40 <= iVar9)" ( (binary_expression "local_40 <= iVar9" identifier <= identifier) )) (compound_statement "{\n          iLvl = iVar8;\n          local_40 = iVar9;\n        }" { (expression_statement "iLvl = iVar8;" (assignment_expression "iLvl = iVar8" identifier = identifier) ;) (expression_statement "local_40 = iVar9;" (assignment_expression "local_40 = iVar9" identifier = identifier) ;) })) })) (labeled_statement "LAB_0017062a:\n      ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;" statement_identifier : (expression_statement "ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg;" (assignment_expression "ppFVar6 = &pStruct->aLevel[(long)iLvl + -2].aSeg" identifier = (pointer_expression "&pStruct->aLevel[(long)iLvl + -2].aSeg" & (field_expression "pStruct->aLevel[(long)iLvl + -2].aSeg" (subscript_expression "pStruct->aLevel[(long)iLvl + -2]" (field_expression "pStruct->aLevel" identifier -> field_identifier) [ (binary_expression "(long)iLvl + -2" (cast_expression "(long)iLvl" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ]) . field_identifier))) ;)) (if_statement "if (((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)) {\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0))" ( (binary_expression "((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)) &&\n         (*(int *)(ppFVar6 + 5) == 0)" (parenthesized_expression "((*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel))" ( (binary_expression "(*(int *)(ppFVar6 + 3) == 0) && (local_3c = iLvl + 1, local_3c < pStruct->nLevel)" (parenthesized_expression "(*(int *)(ppFVar6 + 3) == 0)" ( (binary_expression "*(int *)(ppFVar6 + 3) == 0" (pointer_expression "*(int *)(ppFVar6 + 3)" * (cast_expression "(int *)(ppFVar6 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppFVar6 + 3)" ( (binary_expression "ppFVar6 + 3" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(local_3c = iLvl + 1, local_3c < pStruct->nLevel)" ( (comma_expression "local_3c = iLvl + 1, local_3c < pStruct->nLevel" (assignment_expression "local_3c = iLvl + 1" identifier = (binary_expression "iLvl + 1" identifier + number_literal)) , (binary_expression "local_3c < pStruct->nLevel" identifier < (field_expression "pStruct->nLevel" identifier -> field_identifier))) ))) )) && (parenthesized_expression "(*(int *)(ppFVar6 + 5) == 0)" ( (binary_expression "*(int *)(ppFVar6 + 5) == 0" (pointer_expression "*(int *)(ppFVar6 + 5)" * (cast_expression "(int *)(ppFVar6 + 5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppFVar6 + 5)" ( (binary_expression "ppFVar6 + 5" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        local_48 = ppFVar6;\n        while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }\n        return;\n      }" { (expression_statement "local_48 = ppFVar6;" (assignment_expression "local_48 = ppFVar6" identifier = identifier) ;) (while_statement "while( true ) {\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar8 = *(int *)((long)local_48 + 0x2c) + -1;\n          if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (pStruct->nLevel <= local_3c) break;\n          piVar7 = (int *)(local_48 + 7);\n          local_48 = local_48 + 2;\n          if (*piVar7 != 0) {\n            return;\n          }\n        }" { (expression_statement "iVar8 = *(int *)((long)local_48 + 0x2c) + -1;" (assignment_expression "iVar8 = *(int *)((long)local_48 + 0x2c) + -1" identifier = (binary_expression "*(int *)((long)local_48 + 0x2c) + -1" (pointer_expression "*(int *)((long)local_48 + 0x2c)" * (cast_expression "(int *)((long)local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)local_48 + 0x2c)" ( (binary_expression "(long)local_48 + 0x2c" (cast_expression "(long)local_48" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar8) {\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n            lVar10 = (long)iVar8 * 0xc;\n            if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }\n            lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }\n          }" { (expression_statement "lVar10 = (long)iVar8 * 0xc;" (assignment_expression "lVar10 = (long)iVar8 * 0xc" identifier = (binary_expression "(long)iVar8 * 0xc" (cast_expression "(long)iVar8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (if_statement "if (local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)) {\n              return;\n            }" if (parenthesized_expression "(local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4))" ( (binary_expression "local_40 <\n                (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)" identifier < (binary_expression "(*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                *(int *)(lVar10 + (long)local_48[6] + 4)" (parenthesized_expression "(*(int *)(lVar10 + (long)local_48[6] + 8) + 1)" ( (binary_expression "*(int *)(lVar10 + (long)local_48[6] + 8) + 1" (pointer_expression "*(int *)(lVar10 + (long)local_48[6] + 8)" * (cast_expression "(int *)(lVar10 + (long)local_48[6] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + (long)local_48[6] + 8)" ( (binary_expression "lVar10 + (long)local_48[6] + 8" (binary_expression "lVar10 + (long)local_48[6]" identifier + (cast_expression "(long)local_48[6]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_48[6]" identifier [ number_literal ]))) + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar10 + (long)local_48[6] + 4)" * (cast_expression "(int *)(lVar10 + (long)local_48[6] + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + (long)local_48[6] + 4)" ( (binary_expression "lVar10 + (long)local_48[6] + 4" (binary_expression "lVar10 + (long)local_48[6]" identifier + (cast_expression "(long)local_48[6]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_48[6]" identifier [ number_literal ]))) + number_literal) )))))) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc;" (assignment_expression "lVar11 = lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc" identifier = (binary_expression "lVar10 + (ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc" identifier + (binary_expression "(ulong)(*(int *)((long)local_48 + 0x2c) - 1) * -0xc" (call_expression "(ulong)(*(int *)((long)local_48 + 0x2c) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)((long)local_48 + 0x2c) - 1)" ( (binary_expression "*(int *)((long)local_48 + 0x2c) - 1" (pointer_expression "*(int *)((long)local_48 + 0x2c)" * (cast_expression "(int *)((long)local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)local_48 + 0x2c)" ( (binary_expression "(long)local_48 + 0x2c" (cast_expression "(long)local_48" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) - number_literal) ))) * number_literal))) ;) (while_statement "while( true ) {\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);\n              if (p->rc != 0) {\n                return;\n              }\n              puVar3 = (undefined8 *)ppFVar6[4];\n              lVar4 = (long)local_48[6];\n              *puVar3 = *(undefined8 *)(lVar10 + lVar4);\n              *(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);\n              *(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;\n              *(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;\n              if (lVar11 == lVar10) break;\n              lVar10 = lVar10 + -0xc;\n              if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }\n            }" { (expression_statement "fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1);" (call_expression "fts5StructureExtendLevel(&p->rc,pStruct,iLvl,1,1)" identifier (argument_list "(&p->rc,pStruct,iLvl,1,1)" ( (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier)) , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (p->rc != 0) {\n                return;\n              }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) (expression_statement "puVar3 = (undefined8 *)ppFVar6[4];" (assignment_expression "puVar3 = (undefined8 *)ppFVar6[4]" identifier = (cast_expression "(undefined8 *)ppFVar6[4]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppFVar6[4]" identifier [ number_literal ]))) ;) (expression_statement "lVar4 = (long)local_48[6];" (assignment_expression "lVar4 = (long)local_48[6]" identifier = (cast_expression "(long)local_48[6]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_48[6]" identifier [ number_literal ]))) ;) (expression_statement "*puVar3 = *(undefined8 *)(lVar10 + lVar4);" (assignment_expression "*puVar3 = *(undefined8 *)(lVar10 + lVar4)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined8 *)(lVar10 + lVar4)" * (cast_expression "(undefined8 *)(lVar10 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar4)" ( (binary_expression "lVar10 + lVar4" identifier + identifier) ))))) ;) (expression_statement "*(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1);" (assignment_expression "*(undefined4 *)(puVar3 + 1) = *(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1)" (pointer_expression "*(undefined4 *)(puVar3 + 1)" * (cast_expression "(undefined4 *)(puVar3 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + 1)" ( (binary_expression "puVar3 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1)" * (cast_expression "(undefined4 *)((undefined8 *)(lVar10 + lVar4) + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((undefined8 *)(lVar10 + lVar4) + 1)" ( (binary_expression "(undefined8 *)(lVar10 + lVar4) + 1" (cast_expression "(undefined8 *)(lVar10 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + lVar4)" ( (binary_expression "lVar10 + lVar4" identifier + identifier) ))) + number_literal) ))))) ;) (expression_statement "*(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1;" (assignment_expression "*(int *)((long)ppFVar6 + 0x1c) = *(int *)((long)ppFVar6 + 0x1c) + 1" (pointer_expression "*(int *)((long)ppFVar6 + 0x1c)" * (cast_expression "(int *)((long)ppFVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + 0x1c)" ( (binary_expression "(long)ppFVar6 + 0x1c" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)ppFVar6 + 0x1c) + 1" (pointer_expression "*(int *)((long)ppFVar6 + 0x1c)" * (cast_expression "(int *)((long)ppFVar6 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppFVar6 + 0x1c)" ( (binary_expression "(long)ppFVar6 + 0x1c" (cast_expression "(long)ppFVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1;" (assignment_expression "*(int *)((long)local_48 + 0x2c) = *(int *)((long)local_48 + 0x2c) + -1" (pointer_expression "*(int *)((long)local_48 + 0x2c)" * (cast_expression "(int *)((long)local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)local_48 + 0x2c)" ( (binary_expression "(long)local_48 + 0x2c" (cast_expression "(long)local_48" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((long)local_48 + 0x2c) + -1" (pointer_expression "*(int *)((long)local_48 + 0x2c)" * (cast_expression "(int *)((long)local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)local_48 + 0x2c)" ( (binary_expression "(long)local_48 + 0x2c" (cast_expression "(long)local_48" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (if_statement "if (lVar11 == lVar10) break;" if (parenthesized_expression "(lVar11 == lVar10)" ( (binary_expression "lVar11 == lVar10" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -0xc;" (assignment_expression "lVar10 = lVar10 + -0xc" identifier = (binary_expression "lVar10 + -0xc" identifier + number_literal)) ;) (if_statement "if (local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)) {\n                return;\n              }" if (parenthesized_expression "(local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4))" ( (binary_expression "local_40 <\n                  (*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)" identifier < (binary_expression "(*(int *)(lVar10 + (long)local_48[6] + 8) + 1) -\n                  *(int *)(lVar10 + (long)local_48[6] + 4)" (parenthesized_expression "(*(int *)(lVar10 + (long)local_48[6] + 8) + 1)" ( (binary_expression "*(int *)(lVar10 + (long)local_48[6] + 8) + 1" (pointer_expression "*(int *)(lVar10 + (long)local_48[6] + 8)" * (cast_expression "(int *)(lVar10 + (long)local_48[6] + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + (long)local_48[6] + 8)" ( (binary_expression "lVar10 + (long)local_48[6] + 8" (binary_expression "lVar10 + (long)local_48[6]" identifier + (cast_expression "(long)local_48[6]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_48[6]" identifier [ number_literal ]))) + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar10 + (long)local_48[6] + 4)" * (cast_expression "(int *)(lVar10 + (long)local_48[6] + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar10 + (long)local_48[6] + 4)" ( (binary_expression "lVar10 + (long)local_48[6] + 4" (binary_expression "lVar10 + (long)local_48[6]" identifier + (cast_expression "(long)local_48[6]" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (subscript_expression "local_48[6]" identifier [ number_literal ]))) + number_literal) )))))) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) })) })) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (pStruct->nLevel <= local_3c) break;" if (parenthesized_expression "(pStruct->nLevel <= local_3c)" ( (binary_expression "pStruct->nLevel <= local_3c" (field_expression "pStruct->nLevel" identifier -> field_identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar7 = (int *)(local_48 + 7);" (assignment_expression "piVar7 = (int *)(local_48 + 7)" identifier = (cast_expression "(int *)(local_48 + 7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 7)" ( (binary_expression "local_48 + 7" identifier + number_literal) )))) ;) (expression_statement "local_48 = local_48 + 2;" (assignment_expression "local_48 = local_48 + 2" identifier = (binary_expression "local_48 + 2" identifier + number_literal)) ;) (if_statement "if (*piVar7 != 0) {\n            return;\n          }" if (parenthesized_expression "(*piVar7 != 0)" ( (binary_expression "*piVar7 != 0" (pointer_expression "*piVar7" * identifier) != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0017056c(long param_1,int param_2,long param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_0017056c(long param_1,int param_2,long param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017056c(long param_1,int param_2,long param_3)" identifier (parameter_list "(long param_1,int param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_48;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" ( (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" { (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" identifier = (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;) (if_statement "if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(lVar4 + 0x1c) != 0)" ( (binary_expression "*(int *)(lVar4 + 0x1c) != 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" { (expression_statement "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;" (assignment_expression "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" identifier = (binary_expression "*(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" (binary_expression "*(long *)(lVar4 + 0x20) + -0xc" (pointer_expression "*(long *)(lVar4 + 0x20)" * (cast_expression "(long *)(lVar4 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) + number_literal) + (binary_expression "(long)*(int *)(lVar4 + 0x1c) * 0xc" (cast_expression "(long)*(int *)(lVar4 + 0x1c)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) ))))) * number_literal))) ;) (expression_statement "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);" (assignment_expression "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" identifier = (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" ( (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" * (cast_expression "(int *)(lVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar6 + 4)" * (cast_expression "(int *)(lVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 4)" ( (binary_expression "lVar6 + 4" identifier + number_literal) )))))) ;) (expression_statement "iVar7 = param_2 + -1;" (assignment_expression "iVar7 = param_2 + -1" identifier = (binary_expression "param_2 + -1" identifier + number_literal)) ;) (if_statement "if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" { (expression_statement "iVar1 = *(int *)(lVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0xc)" identifier = (pointer_expression "*(int *)(lVar4 + 0xc)" * (cast_expression "(int *)(lVar4 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0xc)" ( (binary_expression "lVar4 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" while (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" { (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (if_statement "if (iVar7 == -1) goto LAB_0017062a;" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0017062a;" goto statement_identifier ;)) (expression_statement "iVar1 = *(int *)(lVar4 + -4);" (assignment_expression "iVar1 = *(int *)(lVar4 + -4)" identifier = (pointer_expression "*(int *)(lVar4 + -4)" * (cast_expression "(int *)(lVar4 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + -4)" ( (binary_expression "lVar4 + -4" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = lVar4 + -0x10;" (assignment_expression "lVar4 = lVar4 + -0x10" identifier = (binary_expression "lVar4 + -0x10" identifier + number_literal)) ;) })) (expression_statement "lVar4 = (long)iVar7 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)iVar7 * 0x10 + param_3" identifier = (binary_expression "(long)iVar7 * 0x10 + param_3" (binary_expression "(long)iVar7 * 0x10" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;) (expression_statement "iVar1 = *(int *)(lVar4 + 0x1c);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0x1c)" identifier = (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" { (expression_statement "lVar4 = *(long *)(lVar4 + 0x20);" (assignment_expression "lVar4 = *(long *)(lVar4 + 0x20)" identifier = (pointer_expression "*(long *)(lVar4 + 0x20)" * (cast_expression "(long *)(lVar4 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)(lVar4 + 4);" (assignment_expression "piVar5 = (int *)(lVar4 + 4)" identifier = (cast_expression "(int *)(lVar4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 4)" ( (binary_expression "lVar4 + 4" identifier + number_literal) )))) ;) (do_statement "do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));" do (compound_statement "{\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          }" { (expression_statement "iVar3 = (piVar5[1] - *piVar5) + 1;" (assignment_expression "iVar3 = (piVar5[1] - *piVar5) + 1" identifier = (binary_expression "(piVar5[1] - *piVar5) + 1" (parenthesized_expression "(piVar5[1] - *piVar5)" ( (binary_expression "piVar5[1] - *piVar5" (subscript_expression "piVar5[1]" identifier [ number_literal ]) - (pointer_expression "*piVar5" * identifier)) )) + number_literal)) ;) (if_statement "if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }" if (parenthesized_expression "(iVar10 < iVar3)" ( (binary_expression "iVar10 < iVar3" identifier < identifier) )) (compound_statement "{\n              iVar10 = iVar3;\n            }" { (expression_statement "iVar10 = iVar3;" (assignment_expression "iVar10 = iVar3" identifier = identifier) ;) })) (expression_statement "piVar5 = piVar5 + 3;" (assignment_expression "piVar5 = piVar5 + 3" identifier = (binary_expression "piVar5 + 3" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc))" ( (binary_expression "piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" identifier != (cast_expression "(int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" ( (binary_expression "lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc" (binary_expression "lVar4 + 0x10" identifier + number_literal) + (binary_expression "(ulong)(iVar1 - 1) * 0xc" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar1 - 1)" ( (binary_expression "iVar1 - 1" identifier - number_literal) ))) * number_literal)) )))) )) ;) })) (if_statement "if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" if (parenthesized_expression "(local_40 <= iVar10)" ( (binary_expression "local_40 <= iVar10" identifier <= identifier) )) (compound_statement "{\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" { (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" identifier = identifier) ;) (expression_statement "local_40 = iVar10;" (assignment_expression "local_40 = iVar10" identifier = identifier) ;) })) })) (labeled_statement "LAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;" statement_identifier : (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" identifier = (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal) + identifier)) ;)) (if_statement "if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" if (parenthesized_expression "(((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0))" ( (binary_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)" (parenthesized_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)))" ( (binary_expression "(*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" * (cast_expression "(int *)(lVar4 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" ( (comma_expression "local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)" (assignment_expression "local_3c = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) , (binary_expression "local_3c < *(int *)(param_3 + 0x14)" identifier < (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))))) ))) )) && (parenthesized_expression "(*(int *)(lVar4 + 0x28) == 0)" ( (binary_expression "*(int *)(lVar4 + 0x28) == 0" (pointer_expression "*(int *)(lVar4 + 0x28)" * (cast_expression "(int *)(lVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x28)" ( (binary_expression "lVar4 + 0x28" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" { (expression_statement "local_48 = lVar4;" (assignment_expression "local_48 = lVar4" identifier = identifier) ;) (while_statement "while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" { (expression_statement "iVar7 = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "iVar7 = *(int *)(local_48 + 0x2c) + -1" identifier = (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" if (parenthesized_expression "(-1 < iVar7)" ( (binary_expression "-1 < iVar7" number_literal < identifier) )) (compound_statement "{\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" { (expression_statement "lVar11 = (long)iVar7 * 0xc;" (assignment_expression "lVar11 = (long)iVar7 * 0xc" identifier = (binary_expression "(long)iVar7 * 0xc" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) ;) (expression_statement "lVar6 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar6 = lVar11 + *(long *)(local_48 + 0x30)" identifier = (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) )))))) ;) (if_statement "if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }" if (parenthesized_expression "(local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4))" ( (binary_expression "local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" identifier < (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" ( (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" * (cast_expression "(int *)(lVar6 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 8)" ( (binary_expression "lVar6 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar6 + 4)" * (cast_expression "(int *)(lVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 4)" ( (binary_expression "lVar6 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n              return;\n            }" { (return_statement "return;" return ;) })) (expression_statement "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;" (assignment_expression "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" identifier = (binary_expression "lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" identifier + (binary_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" (call_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(int *)(local_48 + 0x2c) - 1)" ( (binary_expression "*(int *)(local_48 + 0x2c) - 1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) - number_literal) ))) * number_literal))) ;) (while_statement "while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" { (expression_statement "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);" (call_expression "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1)" identifier (argument_list "(param_1 + 0x34,param_3,param_2,1,1)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) , identifier , identifier , number_literal , number_literal ))) ;) (if_statement "if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }" if (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" ( (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = *(undefined8 **)(lVar4 + 0x20);" (assignment_expression "puVar2 = *(undefined8 **)(lVar4 + 0x20)" identifier = (pointer_expression "*(undefined8 **)(lVar4 + 0x20)" * (cast_expression "(undefined8 **)(lVar4 + 0x20)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));" (assignment_expression "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" identifier = (cast_expression "(undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + *(long *)(local_48 + 0x30))" ( (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "*puVar2 = *puVar8;" (assignment_expression "*puVar2 = *puVar8" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);" (assignment_expression "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1)" (pointer_expression "*(undefined4 *)(puVar2 + 1)" * (cast_expression "(undefined4 *)(puVar2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(puVar8 + 1)" * (cast_expression "(undefined4 *)(puVar8 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar8 + 1)" ( (binary_expression "puVar8 + 1" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;" (assignment_expression "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" * (cast_expression "(int *)(lVar4 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x1c)" ( (binary_expression "lVar4 + 0x1c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) = (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" * (cast_expression "(int *)(local_48 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x2c)" ( (binary_expression "local_48 + 0x2c" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (lVar6 == lVar11) break;" if (parenthesized_expression "(lVar6 == lVar11)" ( (binary_expression "lVar6 == lVar11" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar11 = lVar11 + -0xc;" (assignment_expression "lVar11 = lVar11 + -0xc" identifier = (binary_expression "lVar11 + -0xc" identifier + number_literal)) ;) (expression_statement "lVar9 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar9 = lVar11 + *(long *)(local_48 + 0x30)" identifier = (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" identifier + (pointer_expression "*(long *)(local_48 + 0x30)" * (cast_expression "(long *)(local_48 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x30)" ( (binary_expression "local_48 + 0x30" identifier + number_literal) )))))) ;) (if_statement "if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }" if (parenthesized_expression "(local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4))" ( (binary_expression "local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" identifier < (binary_expression "(*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" (parenthesized_expression "(*(int *)(lVar9 + 8) + 1)" ( (binary_expression "*(int *)(lVar9 + 8) + 1" (pointer_expression "*(int *)(lVar9 + 8)" * (cast_expression "(int *)(lVar9 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 8)" ( (binary_expression "lVar9 + 8" identifier + number_literal) )))) + number_literal) )) - (pointer_expression "*(int *)(lVar9 + 4)" * (cast_expression "(int *)(lVar9 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar9 + 4)" ( (binary_expression "lVar9 + 4" identifier + number_literal) )))))) )) (compound_statement "{\n                return;\n              }" { (return_statement "return;" return ;) })) })) })) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" identifier = (binary_expression "local_3c + 1" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_3 + 0x14) <= local_3c) break;" if (parenthesized_expression "(*(int *)(param_3 + 0x14) <= local_3c)" ( (binary_expression "*(int *)(param_3 + 0x14) <= local_3c" (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "piVar5 = (int *)(local_48 + 0x38);" (assignment_expression "piVar5 = (int *)(local_48 + 0x38)" identifier = (cast_expression "(int *)(local_48 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_48 + 0x38)" ( (binary_expression "local_48 + 0x38" identifier + number_literal) )))) ;) (expression_statement "local_48 = local_48 + 0x10;" (assignment_expression "local_48 = local_48 + 0x10" identifier = (binary_expression "local_48 + 0x10" identifier + number_literal)) ;) (if_statement "if (*piVar5 != 0) {\n            return;\n          }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * IDENT)) )) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - LIT) ))) * LIT)) )))) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT) + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) ))) * LIT))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (return_statement return ;) })) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) })) (return_statement return ;) })) })) })) (return_statement return ;) })))
(function_definition "void FUN_0017056c(long param_1,int param_2,long param_3)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0017056c(long param_1,int param_2,long param_3)" (identifier "FUN_0017056c") (parameter_list "(long param_1,int param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  long lVar4;\n  int *piVar5;\n  long lVar6;\n  int iVar7;\n  undefined8 *puVar8;\n  long lVar9;\n  int iVar10;\n  long lVar11;\n  long local_48;\n  int local_40;\n  int local_3c;\n  \n  if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "long lVar11;" (sized_type_specifier "long" (long "long")) (identifier "lVar11") (; ";")) (declaration "long local_48;" (sized_type_specifier "long" (long "long")) (identifier "local_48") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (if_statement "if (*(int *)(param_1 + 0x34) == 0) {\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar4 = (long)param_2 * 0x10 + param_3;\n    if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }\n  }" ({ "{") (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" (identifier "lVar4") (= "=") (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (* "*") (number_literal "0x10")) (+ "+") (identifier "param_3"))) (; ";")) (if_statement "if (*(int *)(lVar4 + 0x1c) != 0) {\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(lVar4 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x1c) != 0" (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;\n      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);\n      iVar7 = param_2 + -1;\n      if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }\nLAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;\n      if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }\n    }" ({ "{") (expression_statement "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;" (assignment_expression "lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" (identifier "lVar6") (= "=") (binary_expression "*(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc" (binary_expression "*(long *)(lVar4 + 0x20) + -0xc" (pointer_expression "*(long *)(lVar4 + 0x20)" (* "*") (cast_expression "(long *)(lVar4 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (number_literal "-0xc")) (+ "+") (binary_expression "(long)*(int *)(lVar4 + 0x1c) * 0xc" (cast_expression "(long)*(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")"))))) (* "*") (number_literal "0xc")))) (; ";")) (expression_statement "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);" (assignment_expression "local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (identifier "local_40") (= "=") (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" (( "(") (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" (* "*") (cast_expression "(int *)(lVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 8)" (( "(") (binary_expression "lVar6 + 8" (identifier "lVar6") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1")) () ")")) (- "-") (pointer_expression "*(int *)(lVar6 + 4)" (* "*") (cast_expression "(int *)(lVar6 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 4)" (( "(") (binary_expression "lVar6 + 4" (identifier "lVar6") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "iVar7 = param_2 + -1;" (assignment_expression "iVar7 = param_2 + -1" (identifier "iVar7") (= "=") (binary_expression "param_2 + -1" (identifier "param_2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (-1 < iVar7) {\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" (if "if") (parenthesized_expression "(-1 < iVar7)" (( "(") (binary_expression "-1 < iVar7" (number_literal "-1") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n        iVar1 = *(int *)(lVar4 + 0xc);\n        while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }\n        lVar4 = (long)iVar7 * 0x10 + param_3;\n        iVar1 = *(int *)(lVar4 + 0x1c);\n        iVar10 = 0;\n        if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }\n        if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }\n      }" ({ "{") (expression_statement "iVar1 = *(int *)(lVar4 + 0xc);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(lVar4 + 0xc)" (* "*") (cast_expression "(int *)(lVar4 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0xc)" (( "(") (binary_expression "lVar4 + 0xc" (identifier "lVar4") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (while_statement "while (iVar1 == 0) {\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" (while "while") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar7 = iVar7 + -1;\n          if (iVar7 == -1) goto LAB_0017062a;\n          iVar1 = *(int *)(lVar4 + -4);\n          lVar4 = lVar4 + -0x10;\n        }" ({ "{") (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar7 == -1) goto LAB_0017062a;" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0017062a;" (goto "goto") (statement_identifier "LAB_0017062a") (; ";"))) (expression_statement "iVar1 = *(int *)(lVar4 + -4);" (assignment_expression "iVar1 = *(int *)(lVar4 + -4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(lVar4 + -4)" (* "*") (cast_expression "(int *)(lVar4 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + -4)" (( "(") (binary_expression "lVar4 + -4" (identifier "lVar4") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "lVar4 = lVar4 + -0x10;" (assignment_expression "lVar4 = lVar4 + -0x10" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -0x10" (identifier "lVar4") (+ "+") (number_literal "-0x10"))) (; ";")) (} "}"))) (expression_statement "lVar4 = (long)iVar7 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)iVar7 * 0x10 + param_3" (identifier "lVar4") (= "=") (binary_expression "(long)iVar7 * 0x10 + param_3" (binary_expression "(long)iVar7 * 0x10" (cast_expression "(long)iVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar7")) (* "*") (number_literal "0x10")) (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "iVar1 = *(int *)(lVar4 + 0x1c);" (assignment_expression "iVar1 = *(int *)(lVar4 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar1) {\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n          lVar4 = *(long *)(lVar4 + 0x20);\n          piVar5 = (int *)(lVar4 + 4);\n          do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));\n        }" ({ "{") (expression_statement "lVar4 = *(long *)(lVar4 + 0x20);" (assignment_expression "lVar4 = *(long *)(lVar4 + 0x20)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(lVar4 + 0x20)" (* "*") (cast_expression "(long *)(lVar4 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "piVar5 = (int *)(lVar4 + 4);" (assignment_expression "piVar5 = (int *)(lVar4 + 4)" (identifier "piVar5") (= "=") (cast_expression "(int *)(lVar4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 4)" (( "(") (binary_expression "lVar4 + 4" (identifier "lVar4") (+ "+") (number_literal "4")) () ")")))) (; ";")) (do_statement "do {\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));" (do "do") (compound_statement "{\n            iVar3 = (piVar5[1] - *piVar5) + 1;\n            if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }\n            piVar5 = piVar5 + 3;\n          }" ({ "{") (expression_statement "iVar3 = (piVar5[1] - *piVar5) + 1;" (assignment_expression "iVar3 = (piVar5[1] - *piVar5) + 1" (identifier "iVar3") (= "=") (binary_expression "(piVar5[1] - *piVar5) + 1" (parenthesized_expression "(piVar5[1] - *piVar5)" (( "(") (binary_expression "piVar5[1] - *piVar5" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) () ")")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar10 < iVar3) {\n              iVar10 = iVar3;\n            }" (if "if") (parenthesized_expression "(iVar10 < iVar3)" (( "(") (binary_expression "iVar10 < iVar3" (identifier "iVar10") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n              iVar10 = iVar3;\n            }" ({ "{") (expression_statement "iVar10 = iVar3;" (assignment_expression "iVar10 = iVar3" (identifier "iVar10") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "piVar5 = piVar5 + 3;" (assignment_expression "piVar5 = piVar5 + 3" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 3" (identifier "piVar5") (+ "+") (number_literal "3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc))" (( "(") (binary_expression "piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" (identifier "piVar5") (!= "!=") (cast_expression "(int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc)" (( "(") (binary_expression "lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc" (binary_expression "lVar4 + 0x10" (identifier "lVar4") (+ "+") (number_literal "0x10")) (+ "+") (binary_expression "(ulong)(iVar1 - 1) * 0xc" (call_expression "(ulong)(iVar1 - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar1 - 1)" (( "(") (binary_expression "iVar1 - 1" (identifier "iVar1") (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "0xc"))) () ")")))) () ")")) (; ";")) (} "}"))) (if_statement "if (local_40 <= iVar10) {\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" (if "if") (parenthesized_expression "(local_40 <= iVar10)" (( "(") (binary_expression "local_40 <= iVar10" (identifier "local_40") (<= "<=") (identifier "iVar10")) () ")")) (compound_statement "{\n          param_2 = iVar7;\n          local_40 = iVar10;\n        }" ({ "{") (expression_statement "param_2 = iVar7;" (assignment_expression "param_2 = iVar7" (identifier "param_2") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "local_40 = iVar10;" (assignment_expression "local_40 = iVar10" (identifier "local_40") (= "=") (identifier "iVar10")) (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0017062a:\n      lVar4 = (long)param_2 * 0x10 + param_3;" (statement_identifier "LAB_0017062a") (: ":") (expression_statement "lVar4 = (long)param_2 * 0x10 + param_3;" (assignment_expression "lVar4 = (long)param_2 * 0x10 + param_3" (identifier "lVar4") (= "=") (binary_expression "(long)param_2 * 0x10 + param_3" (binary_expression "(long)param_2 * 0x10" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (* "*") (number_literal "0x10")) (+ "+") (identifier "param_3"))) (; ";"))) (if_statement "if (((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)) {\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" (if "if") (parenthesized_expression "(((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0))" (( "(") (binary_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&\n         (*(int *)(lVar4 + 0x28) == 0)" (parenthesized_expression "((*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)))" (( "(") (binary_expression "(*(int *)(lVar4 + 0x18) == 0) &&\n          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" (parenthesized_expression "(*(int *)(lVar4 + 0x18) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x18) == 0" (pointer_expression "*(int *)(lVar4 + 0x18)" (* "*") (cast_expression "(int *)(lVar4 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))" (( "(") (comma_expression "local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14)" (assignment_expression "local_3c = param_2 + 1" (identifier "local_3c") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (, ",") (binary_expression "local_3c < *(int *)(param_3 + 0x14)" (identifier "local_3c") (< "<") (pointer_expression "*(int *)(param_3 + 0x14)" (* "*") (cast_expression "(int *)(param_3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(lVar4 + 0x28) == 0)" (( "(") (binary_expression "*(int *)(lVar4 + 0x28) == 0" (pointer_expression "*(int *)(lVar4 + 0x28)" (* "*") (cast_expression "(int *)(lVar4 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x28)" (( "(") (binary_expression "lVar4 + 0x28" (identifier "lVar4") (+ "+") (number_literal "0x28")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        local_48 = lVar4;\n        while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }\n        return;\n      }" ({ "{") (expression_statement "local_48 = lVar4;" (assignment_expression "local_48 = lVar4" (identifier "local_48") (= "=") (identifier "lVar4")) (; ";")) (while_statement "while( true ) {\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar7 = *(int *)(local_48 + 0x2c) + -1;\n          if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }\n          local_3c = local_3c + 1;\n          if (*(int *)(param_3 + 0x14) <= local_3c) break;\n          piVar5 = (int *)(local_48 + 0x38);\n          local_48 = local_48 + 0x10;\n          if (*piVar5 != 0) {\n            return;\n          }\n        }" ({ "{") (expression_statement "iVar7 = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "iVar7 = *(int *)(local_48 + 0x2c) + -1" (identifier "iVar7") (= "=") (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" (* "*") (cast_expression "(int *)(local_48 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x2c)" (( "(") (binary_expression "local_48 + 0x2c" (identifier "local_48") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (-1 < iVar7) {\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" (if "if") (parenthesized_expression "(-1 < iVar7)" (( "(") (binary_expression "-1 < iVar7" (number_literal "-1") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n            lVar11 = (long)iVar7 * 0xc;\n            lVar6 = lVar11 + *(long *)(local_48 + 0x30);\n            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }\n            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;\n            while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }\n          }" ({ "{") (expression_statement "lVar11 = (long)iVar7 * 0xc;" (assignment_expression "lVar11 = (long)iVar7 * 0xc" (identifier "lVar11") (= "=") (binary_expression "(long)iVar7 * 0xc" (cast_expression "(long)iVar7" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar7")) (* "*") (number_literal "0xc"))) (; ";")) (expression_statement "lVar6 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar6 = lVar11 + *(long *)(local_48 + 0x30)" (identifier "lVar6") (= "=") (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" (identifier "lVar11") (+ "+") (pointer_expression "*(long *)(local_48 + 0x30)" (* "*") (cast_expression "(long *)(local_48 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x30)" (( "(") (binary_expression "local_48 + 0x30" (identifier "local_48") (+ "+") (number_literal "0x30")) () ")")))))) (; ";")) (if_statement "if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {\n              return;\n            }" (if "if") (parenthesized_expression "(local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4))" (( "(") (binary_expression "local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (identifier "local_40") (< "<") (binary_expression "(*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)" (parenthesized_expression "(*(int *)(lVar6 + 8) + 1)" (( "(") (binary_expression "*(int *)(lVar6 + 8) + 1" (pointer_expression "*(int *)(lVar6 + 8)" (* "*") (cast_expression "(int *)(lVar6 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 8)" (( "(") (binary_expression "lVar6 + 8" (identifier "lVar6") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1")) () ")")) (- "-") (pointer_expression "*(int *)(lVar6 + 4)" (* "*") (cast_expression "(int *)(lVar6 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 4)" (( "(") (binary_expression "lVar6 + 4" (identifier "lVar6") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n              return;\n            }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;" (assignment_expression "lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" (identifier "lVar6") (= "=") (binary_expression "lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" (identifier "lVar11") (+ "+") (binary_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc" (call_expression "(ulong)(*(int *)(local_48 + 0x2c) - 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(int *)(local_48 + 0x2c) - 1)" (( "(") (binary_expression "*(int *)(local_48 + 0x2c) - 1" (pointer_expression "*(int *)(local_48 + 0x2c)" (* "*") (cast_expression "(int *)(local_48 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x2c)" (( "(") (binary_expression "local_48 + 0x2c" (identifier "local_48") (+ "+") (number_literal "0x2c")) () ")")))) (- "-") (number_literal "1")) () ")"))) (* "*") (number_literal "-0xc")))) (; ";")) (while_statement "while( true ) {\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);\n              if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }\n              puVar2 = *(undefined8 **)(lVar4 + 0x20);\n              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));\n              *puVar2 = *puVar8;\n              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);\n              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;\n              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;\n              if (lVar6 == lVar11) break;\n              lVar11 = lVar11 + -0xc;\n              lVar9 = lVar11 + *(long *)(local_48 + 0x30);\n              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }\n            }" ({ "{") (expression_statement "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);" (call_expression "FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1)" (identifier "FUN_001704b7") (argument_list "(param_1 + 0x34,param_3,param_2,1,1)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) (, ",") (identifier "param_3") (, ",") (identifier "param_2") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x34) != 0) {\n                return;\n              }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) != 0" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                return;\n              }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = *(undefined8 **)(lVar4 + 0x20);" (assignment_expression "puVar2 = *(undefined8 **)(lVar4 + 0x20)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined8 **)(lVar4 + 0x20)" (* "*") (cast_expression "(undefined8 **)(lVar4 + 0x20)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));" (assignment_expression "puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)(lVar11 + *(long *)(local_48 + 0x30))" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + *(long *)(local_48 + 0x30))" (( "(") (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" (identifier "lVar11") (+ "+") (pointer_expression "*(long *)(local_48 + 0x30)" (* "*") (cast_expression "(long *)(local_48 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x30)" (( "(") (binary_expression "local_48 + 0x30" (identifier "local_48") (+ "+") (number_literal "0x30")) () ")"))))) () ")")))) (; ";")) (expression_statement "*puVar2 = *puVar8;" (assignment_expression "*puVar2 = *puVar8" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);" (assignment_expression "*(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1)" (pointer_expression "*(undefined4 *)(puVar2 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(puVar8 + 1)" (* "*") (cast_expression "(undefined4 *)(puVar8 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar8 + 1)" (( "(") (binary_expression "puVar8 + 1" (identifier "puVar8") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;" (assignment_expression "*(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(int *)(lVar4 + 0x1c) + 1" (pointer_expression "*(int *)(lVar4 + 0x1c)" (* "*") (cast_expression "(int *)(lVar4 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x1c)" (( "(") (binary_expression "lVar4 + 0x1c" (identifier "lVar4") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;" (assignment_expression "*(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" (* "*") (cast_expression "(int *)(local_48 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x2c)" (( "(") (binary_expression "local_48 + 0x2c" (identifier "local_48") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "*(int *)(local_48 + 0x2c) + -1" (pointer_expression "*(int *)(local_48 + 0x2c)" (* "*") (cast_expression "(int *)(local_48 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x2c)" (( "(") (binary_expression "local_48 + 0x2c" (identifier "local_48") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (lVar6 == lVar11) break;" (if "if") (parenthesized_expression "(lVar6 == lVar11)" (( "(") (binary_expression "lVar6 == lVar11" (identifier "lVar6") (== "==") (identifier "lVar11")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar11 = lVar11 + -0xc;" (assignment_expression "lVar11 = lVar11 + -0xc" (identifier "lVar11") (= "=") (binary_expression "lVar11 + -0xc" (identifier "lVar11") (+ "+") (number_literal "-0xc"))) (; ";")) (expression_statement "lVar9 = lVar11 + *(long *)(local_48 + 0x30);" (assignment_expression "lVar9 = lVar11 + *(long *)(local_48 + 0x30)" (identifier "lVar9") (= "=") (binary_expression "lVar11 + *(long *)(local_48 + 0x30)" (identifier "lVar11") (+ "+") (pointer_expression "*(long *)(local_48 + 0x30)" (* "*") (cast_expression "(long *)(local_48 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x30)" (( "(") (binary_expression "local_48 + 0x30" (identifier "local_48") (+ "+") (number_literal "0x30")) () ")")))))) (; ";")) (if_statement "if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {\n                return;\n              }" (if "if") (parenthesized_expression "(local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4))" (( "(") (binary_expression "local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" (identifier "local_40") (< "<") (binary_expression "(*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)" (parenthesized_expression "(*(int *)(lVar9 + 8) + 1)" (( "(") (binary_expression "*(int *)(lVar9 + 8) + 1" (pointer_expression "*(int *)(lVar9 + 8)" (* "*") (cast_expression "(int *)(lVar9 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 8)" (( "(") (binary_expression "lVar9 + 8" (identifier "lVar9") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1")) () ")")) (- "-") (pointer_expression "*(int *)(lVar9 + 4)" (* "*") (cast_expression "(int *)(lVar9 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar9 + 4)" (( "(") (binary_expression "lVar9 + 4" (identifier "lVar9") (+ "+") (number_literal "4")) () ")")))))) () ")")) (compound_statement "{\n                return;\n              }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "local_3c = local_3c + 1;" (assignment_expression "local_3c = local_3c + 1" (identifier "local_3c") (= "=") (binary_expression "local_3c + 1" (identifier "local_3c") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(int *)(param_3 + 0x14) <= local_3c) break;" (if "if") (parenthesized_expression "(*(int *)(param_3 + 0x14) <= local_3c)" (( "(") (binary_expression "*(int *)(param_3 + 0x14) <= local_3c" (pointer_expression "*(int *)(param_3 + 0x14)" (* "*") (cast_expression "(int *)(param_3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (<= "<=") (identifier "local_3c")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "piVar5 = (int *)(local_48 + 0x38);" (assignment_expression "piVar5 = (int *)(local_48 + 0x38)" (identifier "piVar5") (= "=") (cast_expression "(int *)(local_48 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_48 + 0x38)" (( "(") (binary_expression "local_48 + 0x38" (identifier "local_48") (+ "+") (number_literal "0x38")) () ")")))) (; ";")) (expression_statement "local_48 = local_48 + 0x10;" (assignment_expression "local_48 = local_48 + 0x10" (identifier "local_48") (= "=") (binary_expression "local_48 + 0x10" (identifier "local_48") (+ "+") (number_literal "0x10"))) (; ";")) (if_statement "if (*piVar5 != 0) {\n            return;\n          }" (if "if") (parenthesized_expression "(*piVar5 != 0)" (( "(") (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,int var_2,type_2 *pStruct)

{
  int var_4;
  type_3 *pFVar2;
  type_4 *var_13;
  long var_12;
  int var_7;
  type_3 **var_5;
  int *var_8;
  int var_3;
  int var_6;
  long var_1;
  long var_14;
  type_3 **var_15;
  int var_9;
  int var_10;
  
  if (p->rc == 0) {
    var_5 = &pStruct->aLevel[(long)var_2 + -2].aSeg;
    if (*(int *)((long)var_5 + 0x1c) != 0) {
      var_1 = (long)var_5[4] + -0xc + (long)*(int *)((long)var_5 + 0x1c) * 0xc;
      var_9 = (*(int *)(var_1 + 8) + 1) - *(int *)(var_1 + 4);
      var_3 = var_2 + -1;
      if (-1 < var_3) {
        var_4 = *(int *)((long)var_5 + 0xc);
        while (var_4 == 0) {
          var_3 = var_3 + -1;
          if (var_3 == -1) goto LAB_0017062a;
          var_4 = *(int *)((long)var_5 + -4);
          var_5 = var_5 + -2;
        }
        var_4 = pStruct->aLevel[var_3].nSeg;
        var_6 = 0;
        if (0 < var_4) {
          pFVar2 = pStruct->aLevel[var_3].aSeg;
          var_8 = &pFVar2->pgnoFirst;
          do {
            var_7 = (var_8[1] - *var_8) + 1;
            if (var_6 < var_7) {
              var_6 = var_7;
            }
            var_8 = var_8 + 3;
          } while (var_8 != &pFVar2[(ulong)(var_4 - 1) + 1].pgnoFirst);
        }
        if (var_9 <= var_6) {
          var_2 = var_3;
          var_9 = var_6;
        }
      }
LAB_0017062a:
      var_5 = &pStruct->aLevel[(long)var_2 + -2].aSeg;
      if (((*(int *)(var_5 + 3) == 0) && (var_10 = var_2 + 1, var_10 < pStruct->nLevel)) &&
         (*(int *)(var_5 + 5) == 0)) {
        var_15 = var_5;
        while( true ) {
          var_3 = *(int *)((long)var_15 + 0x2c) + -1;
          if (-1 < var_3) {
            var_1 = (long)var_3 * 0xc;
            if (var_9 <
                (*(int *)(var_1 + (long)var_15[6] + 8) + 1) -
                *(int *)(var_1 + (long)var_15[6] + 4)) {
              return;
            }
            var_14 = var_1 + (ulong)(*(int *)((long)var_15 + 0x2c) - 1) * -0xc;
            while( true ) {
              var_11(&p->rc,pStruct,var_2,1,1);
              if (p->rc != 0) {
                return;
              }
              var_13 = (type_4 *)var_5[4];
              var_12 = (long)var_15[6];
              *var_13 = *(type_4 *)(var_1 + var_12);
              *(type_5 *)(var_13 + 1) = *(type_5 *)((type_4 *)(var_1 + var_12) + 1);
              *(int *)((long)var_5 + 0x1c) = *(int *)((long)var_5 + 0x1c) + 1;
              *(int *)((long)var_15 + 0x2c) = *(int *)((long)var_15 + 0x2c) + -1;
              if (var_14 == var_1) break;
              var_1 = var_1 + -0xc;
              if (var_9 <
                  (*(int *)(var_1 + (long)var_15[6] + 8) + 1) -
                  *(int *)(var_1 + (long)var_15[6] + 4)) {
                return;
              }
            }
          }
          var_10 = var_10 + 1;
          if (pStruct->nLevel <= var_10) break;
          var_8 = (int *)(var_15 + 7);
          var_15 = var_15 + 2;
          if (*var_8 != 0) {
            return;
          }
        }
        return;
      }
    }
  }
  return;
}


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

void MASKED(long param_1,int param_2,long param_3)

{
  int iVar1;
  undefined8 *puVar2;
  int iVar3;
  long lVar4;
  int *piVar5;
  long lVar6;
  int iVar7;
  undefined8 *puVar8;
  long lVar9;
  int iVar10;
  long lVar11;
  long local_48;
  int local_40;
  int local_3c;
  
  if (*(int *)(param_1 + 0x34) == 0) {
    lVar4 = (long)param_2 * 0x10 + param_3;
    if (*(int *)(lVar4 + 0x1c) != 0) {
      lVar6 = *(long *)(lVar4 + 0x20) + -0xc + (long)*(int *)(lVar4 + 0x1c) * 0xc;
      local_40 = (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4);
      iVar7 = param_2 + -1;
      if (-1 < iVar7) {
        iVar1 = *(int *)(lVar4 + 0xc);
        while (iVar1 == 0) {
          iVar7 = iVar7 + -1;
          if (iVar7 == -1) goto LAB_0017062a;
          iVar1 = *(int *)(lVar4 + -4);
          lVar4 = lVar4 + -0x10;
        }
        lVar4 = (long)iVar7 * 0x10 + param_3;
        iVar1 = *(int *)(lVar4 + 0x1c);
        iVar10 = 0;
        if (0 < iVar1) {
          lVar4 = *(long *)(lVar4 + 0x20);
          piVar5 = (int *)(lVar4 + 4);
          do {
            iVar3 = (piVar5[1] - *piVar5) + 1;
            if (iVar10 < iVar3) {
              iVar10 = iVar3;
            }
            piVar5 = piVar5 + 3;
          } while (piVar5 != (int *)(lVar4 + 0x10 + (ulong)(iVar1 - 1) * 0xc));
        }
        if (local_40 <= iVar10) {
          param_2 = iVar7;
          local_40 = iVar10;
        }
      }
LAB_0017062a:
      lVar4 = (long)param_2 * 0x10 + param_3;
      if (((*(int *)(lVar4 + 0x18) == 0) &&
          (local_3c = param_2 + 1, local_3c < *(int *)(param_3 + 0x14))) &&
         (*(int *)(lVar4 + 0x28) == 0)) {
        local_48 = lVar4;
        while( true ) {
          iVar7 = *(int *)(local_48 + 0x2c) + -1;
          if (-1 < iVar7) {
            lVar11 = (long)iVar7 * 0xc;
            lVar6 = lVar11 + *(long *)(local_48 + 0x30);
            if (local_40 < (*(int *)(lVar6 + 8) + 1) - *(int *)(lVar6 + 4)) {
              return;
            }
            lVar6 = lVar11 + (ulong)(*(int *)(local_48 + 0x2c) - 1) * -0xc;
            while( true ) {
              FUN_001704b7(param_1 + 0x34,param_3,param_2,1,1);
              if (*(int *)(param_1 + 0x34) != 0) {
                return;
              }
              puVar2 = *(undefined8 **)(lVar4 + 0x20);
              puVar8 = (undefined8 *)(lVar11 + *(long *)(local_48 + 0x30));
              *puVar2 = *puVar8;
              *(undefined4 *)(puVar2 + 1) = *(undefined4 *)(puVar8 + 1);
              *(int *)(lVar4 + 0x1c) = *(int *)(lVar4 + 0x1c) + 1;
              *(int *)(local_48 + 0x2c) = *(int *)(local_48 + 0x2c) + -1;
              if (lVar6 == lVar11) break;
              lVar11 = lVar11 + -0xc;
              lVar9 = lVar11 + *(long *)(local_48 + 0x30);
              if (local_40 < (*(int *)(lVar9 + 8) + 1) - *(int *)(lVar9 + 4)) {
                return;
              }
            }
          }
          local_3c = local_3c + 1;
          if (*(int *)(param_3 + 0x14) <= local_3c) break;
          piVar5 = (int *)(local_48 + 0x38);
          local_48 = local_48 + 0x10;
          if (*piVar5 != 0) {
            return;
          }
        }
        return;
      }
    }
  }
  return;
}

